Lines Matching refs:ptoa
89 data = (typeof(data))IOMallocAligned(ptoa(8), page_size); in IOMultMemoryDescriptorTest()
90 for (i = 0; i < ptoa(8); i++) { in IOMultMemoryDescriptorTest()
94 ranges[0].address = (IOVirtualAddress)(data + ptoa(4)); in IOMultMemoryDescriptorTest()
95 ranges[0].length = ptoa(4); in IOMultMemoryDescriptorTest()
96 ranges[1].address = (IOVirtualAddress)(data + ptoa(0)); in IOMultMemoryDescriptorTest()
97 ranges[1].length = ptoa(4); in IOMultMemoryDescriptorTest()
105 assert(ptoa(1) == dmaLen); in IOMultMemoryDescriptorTest()
114 assert(ptoa(2) == dmaLen); in IOMultMemoryDescriptorTest()
123 assert(ptoa(8) == dmaLen); in IOMultMemoryDescriptorTest()
125 mds[1] = IOSubMemoryDescriptor::withSubRange(mds[0], ptoa(3), ptoa(2), kIODirectionOutIn); in IOMultMemoryDescriptorTest()
130 assert(ptoa(2) == dmaLen); in IOMultMemoryDescriptorTest()
132 mds[2] = IOSubMemoryDescriptor::withSubRange(mds[0], ptoa(7), ptoa(1), kIODirectionOutIn); in IOMultMemoryDescriptorTest()
139 assert(ptoa(11) == dmaLen); in IOMultMemoryDescriptorTest()
144 …ngInTask(kernel_task, 0, kIOMapAnywhere | kIOMapGuardedSmall, ptoa(7), mmd->getLength() - ptoa(7)); in IOMultMemoryDescriptorTest()
149 assert(ptoa(4) == map->getLength()); in IOMultMemoryDescriptorTest()
150 assert(0xd3d3d3d3 == ((uint32_t *)addr)[ptoa(0) / sizeof(uint32_t)]); in IOMultMemoryDescriptorTest()
151 assert(0xd7d7d7d7 == ((uint32_t *)addr)[ptoa(1) / sizeof(uint32_t)]); in IOMultMemoryDescriptorTest()
152 assert(0xd0d0d0d0 == ((uint32_t *)addr)[ptoa(2) / sizeof(uint32_t)]); in IOMultMemoryDescriptorTest()
153 assert(0xd3d3d3d3 == ((uint32_t *)addr)[ptoa(3) / sizeof(uint32_t)]); in IOMultMemoryDescriptorTest()
155 IOFreeAligned(data, ptoa(8)); in IOMultMemoryDescriptorTest()
187 dir | kIOMemoryPageable, ptoa(8)); in IODMACommandForceDoubleBufferTest()
193 assert(ptoa(8) == dmaLen); in IODMACommandForceDoubleBufferTest()
271 vm_size_t bufSize = ptoa(4); in IODMACommandLocalMappedNonContig()
283 kr = mach_vm_inherit(kernel_map, buffer + ptoa(1), ptoa(1), VM_INHERIT_NONE); in IODMACommandLocalMappedNonContig()
426 kIODirectionOutIn | kIOMemoryPageable, ptoa(8)); in IOMemoryPrefaultTest()
508 kIODirectionIn | kIOMemoryPageable, ptoa(1)); in BadFixedAllocTest()
524 kIODirectionIn | kIOMemoryPageable, ptoa(24)); in IODirectionPrepareNoZeroFillTest()
626 ptoa(13)); in AllocationNameTest()
750 ptoa(13)); in IOMDContextTest()
800 …Descriptor::inTaskWithOptions(kernel_task, kIODirectionOutIn | kIOMemoryKernelUserShared, ptoa(1)); in IOMemoryDescriptorTest()
801 …Descriptor::inTaskWithOptions(kernel_task, kIODirectionOutIn | kIOMemoryKernelUserShared, ptoa(2)); in IOMemoryDescriptorTest()
802 …Descriptor::inTaskWithOptions(kernel_task, kIODirectionOutIn | kIOMemoryKernelUserShared, ptoa(3)); in IOMemoryDescriptorTest()
805 …Descriptor::inTaskWithOptions(kernel_task, kIODirectionOutIn | kIOMemoryKernelUserShared, ptoa(1)); in IOMemoryDescriptorTest()
1085 mach_vm_inherit(kernel_map, data[0] + ptoa(1), ptoa(1), VM_INHERIT_NONE); in IOMemoryDescriptorTest()
1086 mach_vm_inherit(kernel_map, data[0] + ptoa(16), ptoa(4), VM_INHERIT_NONE); in IOMemoryDescriptorTest()
1105 if (srcsize > ptoa(5)) { in IOMemoryDescriptorTest()
1112 } else if ((srcsize > ptoa(2)) && !(page_mask & srcoffset)) { in IOMemoryDescriptorTest()
1113 ranges[0].length = ptoa(1); in IOMemoryDescriptorTest()
1114 ranges[1].length = ptoa(1); in IOMemoryDescriptorTest()
1116 ranges[0].address = data[0] + srcoffset + ptoa(1); in IOMemoryDescriptorTest()
1160 if ((srcsize <= ptoa(5)) && (srcsize > ptoa(2)) && !(page_mask & srcoffset)) { in IOMemoryDescriptorTest()
1161 if (offidx < ptoa(2)) { in IOMemoryDescriptorTest()
1162 offidx ^= ptoa(1); in IOMemoryDescriptorTest()