Lines Matching refs:ptoa

88 	data = (typeof(data))IOMallocAligned(ptoa(8), page_size);  in IOMultMemoryDescriptorTest()
89 for (i = 0; i < ptoa(8); i++) { in IOMultMemoryDescriptorTest()
93 ranges[0].address = (IOVirtualAddress)(data + ptoa(4)); in IOMultMemoryDescriptorTest()
94 ranges[0].length = ptoa(4); in IOMultMemoryDescriptorTest()
95 ranges[1].address = (IOVirtualAddress)(data + ptoa(0)); in IOMultMemoryDescriptorTest()
96 ranges[1].length = ptoa(4); in IOMultMemoryDescriptorTest()
104 assert(ptoa(1) == dmaLen); in IOMultMemoryDescriptorTest()
113 assert(ptoa(2) == dmaLen); in IOMultMemoryDescriptorTest()
122 assert(ptoa(8) == dmaLen); in IOMultMemoryDescriptorTest()
124 mds[1] = IOSubMemoryDescriptor::withSubRange(mds[0], ptoa(3), ptoa(2), kIODirectionOutIn); in IOMultMemoryDescriptorTest()
129 assert(ptoa(2) == dmaLen); in IOMultMemoryDescriptorTest()
131 mds[2] = IOSubMemoryDescriptor::withSubRange(mds[0], ptoa(7), ptoa(1), kIODirectionOutIn); in IOMultMemoryDescriptorTest()
138 assert(ptoa(11) == dmaLen); in IOMultMemoryDescriptorTest()
143 …ngInTask(kernel_task, 0, kIOMapAnywhere | kIOMapGuardedSmall, ptoa(7), mmd->getLength() - ptoa(7)); in IOMultMemoryDescriptorTest()
148 assert(ptoa(4) == map->getLength()); in IOMultMemoryDescriptorTest()
149 assert(0xd3d3d3d3 == ((uint32_t *)addr)[ptoa(0) / sizeof(uint32_t)]); in IOMultMemoryDescriptorTest()
150 assert(0xd7d7d7d7 == ((uint32_t *)addr)[ptoa(1) / sizeof(uint32_t)]); in IOMultMemoryDescriptorTest()
151 assert(0xd0d0d0d0 == ((uint32_t *)addr)[ptoa(2) / sizeof(uint32_t)]); in IOMultMemoryDescriptorTest()
152 assert(0xd3d3d3d3 == ((uint32_t *)addr)[ptoa(3) / sizeof(uint32_t)]); in IOMultMemoryDescriptorTest()
154 IOFreeAligned(data, ptoa(8)); in IOMultMemoryDescriptorTest()
186 dir | kIOMemoryPageable, ptoa(8)); in IODMACommandForceDoubleBufferTest()
192 assert(ptoa(8) == dmaLen); in IODMACommandForceDoubleBufferTest()
270 vm_size_t bufSize = ptoa(4); in IODMACommandLocalMappedNonContig()
281 kr = mach_vm_inherit(kernel_map, buffer + ptoa(1), ptoa(1), VM_INHERIT_NONE); in IODMACommandLocalMappedNonContig()
424 kIODirectionOutIn | kIOMemoryPageable, ptoa(8)); in IOMemoryPrefaultTest()
506 kIODirectionIn | kIOMemoryPageable, ptoa(1)); in BadFixedAllocTest()
522 kIODirectionIn | kIOMemoryPageable, ptoa(24)); in IODirectionPrepareNoZeroFillTest()
624 ptoa(13)); in AllocationNameTest()
748 ptoa(13)); in IOMDContextTest()
798 …Descriptor::inTaskWithOptions(kernel_task, kIODirectionOutIn | kIOMemoryKernelUserShared, ptoa(1)); in IOMemoryDescriptorTest()
799 …Descriptor::inTaskWithOptions(kernel_task, kIODirectionOutIn | kIOMemoryKernelUserShared, ptoa(2)); in IOMemoryDescriptorTest()
800 …Descriptor::inTaskWithOptions(kernel_task, kIODirectionOutIn | kIOMemoryKernelUserShared, ptoa(3)); in IOMemoryDescriptorTest()
803 …Descriptor::inTaskWithOptions(kernel_task, kIODirectionOutIn | kIOMemoryKernelUserShared, ptoa(1)); in IOMemoryDescriptorTest()
1082 mach_vm_inherit(kernel_map, data[0] + ptoa(1), ptoa(1), VM_INHERIT_NONE); in IOMemoryDescriptorTest()
1083 mach_vm_inherit(kernel_map, data[0] + ptoa(16), ptoa(4), VM_INHERIT_NONE); in IOMemoryDescriptorTest()
1102 if (srcsize > ptoa(5)) { in IOMemoryDescriptorTest()
1109 } else if ((srcsize > ptoa(2)) && !(page_mask & srcoffset)) { in IOMemoryDescriptorTest()
1110 ranges[0].length = ptoa(1); in IOMemoryDescriptorTest()
1111 ranges[1].length = ptoa(1); in IOMemoryDescriptorTest()
1113 ranges[0].address = data[0] + srcoffset + ptoa(1); in IOMemoryDescriptorTest()
1157 if ((srcsize <= ptoa(5)) && (srcsize > ptoa(2)) && !(page_mask & srcoffset)) { in IOMemoryDescriptorTest()
1158 if (offidx < ptoa(2)) { in IOMemoryDescriptorTest()
1159 offidx ^= ptoa(1); in IOMemoryDescriptorTest()