Lines Matching refs:map

83 	IOMemoryMap * map;  in IOMultMemoryDescriptorTest()  local
144map = mmd->createMappingInTask(kernel_task, 0, kIOMapAnywhere | kIOMapGuardedSmall, ptoa(7), mmd->… in IOMultMemoryDescriptorTest()
146 assert(map); in IOMultMemoryDescriptorTest()
148 addr = (void *) map->getVirtualAddress(); in IOMultMemoryDescriptorTest()
149 assert(ptoa(4) == map->getLength()); in IOMultMemoryDescriptorTest()
154 map->release(); in IOMultMemoryDescriptorTest()
416 IOMemoryMap * map; in IOMemoryPrefaultTest() local
431 map = bmd->map(kIOMapPrefault); in IOMemoryPrefaultTest()
432 assert(map); in IOMemoryPrefaultTest()
434 p = (typeof(p))map->getVirtualAddress(); in IOMemoryPrefaultTest()
441 map->release(); in IOMemoryPrefaultTest()
464 IOMemoryMap * map; in IOBMDSetLengthMapTest() local
471 map = bmd->createMappingInTask(current_task(), 0, kIOMapAnywhere, 0, 0); in IOBMDSetLengthMapTest()
472 assert(map); in IOBMDSetLengthMapTest()
473 OSSafeReleaseNULL(map); in IOBMDSetLengthMapTest()
476 map = bmd->createMappingInTask(current_task(), 0, kIOMapAnywhere, 0, 0); in IOBMDSetLengthMapTest()
477 assert(map); in IOBMDSetLengthMapTest()
478 OSSafeReleaseNULL(map); in IOBMDSetLengthMapTest()
505 IOMemoryMap * map; in BadFixedAllocTest() local
510 map = bmd->createMappingInTask(kernel_task, 0x2000, 0); in BadFixedAllocTest()
511 assert(!map); in BadFixedAllocTest()
540 IOMemoryMap * map; in IOMemoryMapTest() local
570 map = md->map(kIOMapReadOnly); in IOMemoryMapTest()
572 assert(map); in IOMemoryMapTest()
575 p2 = (typeof(p2))map->getVirtualAddress(); in IOMemoryMapTest()
598 map->release(); in IOMemoryMapTest()
650 IOMemoryMap * map; in IOGuardPageMDTest() local
681 map = mmd->createMappingInTask(kernel_task, 0, kIOMapAnywhere, 0, mmd->getLength()); in IOGuardPageMDTest()
684 assert(map); in IOGuardPageMDTest()
685 addr = (void *)map->getAddress(); in IOGuardPageMDTest()
693 assert(page_size * leftGuardSize + page_size + page_size * rightGuardSize == map->getLength()); in IOGuardPageMDTest()
708 OSSafeReleaseNULL(map); in IOGuardPageMDTest()
730map = iobmd->createMappingInTask(kernel_task, 0, kIOMapAnywhere | kIOMapUnique, 0, iobmd->getLengt… in IOGuardPageMDTest()
731 assert(map->getLength() == iobmd->getLength()); in IOGuardPageMDTest()
735 assert(*((char *)map->getAddress() + i) == (char)(i & 0xFF)); in IOGuardPageMDTest()
738 OSSafeReleaseNULL(map); in IOGuardPageMDTest()
798 IOMemoryMap * map; in IOMemoryDescriptorTest()
808 map = mmd->createMappingInTask(kernel_task, 0, kIOMapAnywhere | kIOMapGuardedSmall); in IOMemoryDescriptorTest()
809 assert(map); in IOMemoryDescriptorTest()
810 map->release(); in IOMemoryDescriptorTest()
1135 IOMemoryMap * map; in IOMemoryDescriptorTest() local
1141map = md->createMappingInTask(kernel_task, 0, kIOMapAnywhere | kIOMapGuardedSmall, mapoffset, size… in IOMemoryDescriptorTest()
1142 if (map) { in IOMemoryDescriptorTest()
1143 addr = map->getAddress(); in IOMemoryDescriptorTest()
1168 …panic("vm mismatch md %p map %p, @ 0x%x, 0x%lx, 0x%lx,", md, map, idx, (long) srcoffset, (long) ma… in IOMemoryDescriptorTest()
1175 …panic("phys mismatch md %p map %p, @ 0x%x, 0x%lx, 0x%lx,", md, map, idx, (long) srcoffset, (long) … in IOMemoryDescriptorTest()
1181 map->release(); in IOMemoryDescriptorTest()