Lines Matching refs:alignMask
420 mach_vm_size_t alignMask; member
438 mach_vm_size_t alignMask, in IOMallocAlignedSetHdr() argument
446 ptrauth_blend_discriminator((void *)(alignedStart | alignMask), in IOMallocAlignedSetHdr()
450 hdr->alignMask = alignMask; in IOMallocAlignedSetHdr()
457 mach_vm_size_t alignMask, in IOMallocAlignedHdrCorruptionPanic() argument
468 if (os_add3_overflow(address, sizeofIOLibPageMallocHeader, alignMask, in IOMallocAlignedHdrCorruptionPanic()
471 "%p", alignMask, (void *)recalAlignedStart, (void *)alignedStart); in IOMallocAlignedHdrCorruptionPanic()
473 if (((recalAlignedStart &= ~alignMask) != alignedStart) && in IOMallocAlignedHdrCorruptionPanic()
483 alignMask, (size_t)size, (void *)alignedStart); in IOMallocAlignedHdrCorruptionPanic()
495 mach_vm_size_t alignMask = hdr->alignMask; in IOMallocAlignedGetAddress() local
499 ptrauth_blend_discriminator((void *)(alignedStart | alignMask), in IOMallocAlignedGetAddress()
503 os_add3_overflow(address, sizeofIOLibPageMallocHeader, alignMask, in IOMallocAlignedGetAddress()
505 (((recalAlignedStart &= ~alignMask) != alignedStart) && in IOMallocAlignedGetAddress()
508 os_add_overflow(*size, alignMask, size)) { in IOMallocAlignedGetAddress()
509 IOMallocAlignedHdrCorruptionPanic(offset, alignMask, alignedStart, *size); in IOMallocAlignedGetAddress()
522 uintptr_t alignMask; variable
542 alignMask = alignment - 1;
549 size, alignMask, kma_flags, IOMemoryTag(kernel_map));
559 adjustedSize += alignMask;
573 address = (allocationAddress + alignMask + sizeofIOLibPageMallocHeader)
574 & (~alignMask);
577 IOMallocAlignedSetHdr(hdr, alignMask, allocationAddress, address);
591 assert(0 == (address & alignMask));
733 mach_vm_address_t alignMask; in IOKernelAllocateWithPhysicalRestrict() local
743 alignMask = alignment - 1; in IOKernelAllocateWithPhysicalRestrict()
779 alignMask, (ppnum_t) atop(maxPhys), (ppnum_t) atop(alignMask), in IOKernelAllocateWithPhysicalRestrict()
783 size, alignMask, options, IOMemoryTag(kernel_map)); in IOKernelAllocateWithPhysicalRestrict()
796 adjustedSize += alignMask; in IOKernelAllocateWithPhysicalRestrict()
808 address = (allocationAddress + alignMask + sizeofIOLibPageMallocHeader) in IOKernelAllocateWithPhysicalRestrict()
809 & (~alignMask); in IOKernelAllocateWithPhysicalRestrict()
816 IOMallocAlignedSetHdr(hdr, alignMask, allocationAddress, address); in IOKernelAllocateWithPhysicalRestrict()
871 vm_offset_t alignMask; in IOMallocContiguous() local
873 alignMask = alignment - 1; in IOMallocContiguous()
874 physicalMask = (0xFFFFFFFF ^ alignMask); in IOMallocContiguous()