Home
last modified time | relevance | path

Searched refs:map1 (Results 1 – 2 of 2) sorted by relevance

/xnu-10002.81.5/osfmk/tests/
H A Dbitmap_test.c134 bitmap_t *map1 = bitmap_alloc(nbits); in test_bitmap() local
135 bitmap_full(map1, nbits); in test_bitmap()
136 assert(bitmap_is_full(map1, nbits)); in test_bitmap()
138 bitmap_and(map, map0, map1, nbits); in test_bitmap()
141 bitmap_and(map, map1, map1, nbits); in test_bitmap()
145 bitmap_or(map, map1, map0, nbits); in test_bitmap()
152 bitmap_and_not(map, map0, map1, nbits); in test_bitmap()
155 bitmap_and_not(map, map1, map0, nbits); in test_bitmap()
161 assert(!bitmap_equal(map, map1, nbits)); in test_bitmap()
163 assert(bitmap_equal(map, map1, nbits)); in test_bitmap()
[all …]
/xnu-10002.81.5/iokit/Tests/
H A DTestIOMemoryDescriptor.cpp959 IOMemoryMap * map1; in IOMemoryDescriptorTest()
969 map1 = md1->createMappingInTask(kernel_task, 0, kIOMapAnywhere | kIOMapUnique); in IOMemoryDescriptorTest()
970 assert(map1); in IOMemoryDescriptorTest()
971 buf1 = (uint32_t *) map1->getVirtualAddress(); in IOMemoryDescriptorTest()
984 kprintf("md1 %p, map1 %p, buf2 %p; md2 %p, map2 %p, buf2 %p\n", md1, map1, buf1, md2, map2, buf2); in IOMemoryDescriptorTest()
989 err = map1->redirect(md2, 0, 0ULL); in IOMemoryDescriptorTest()
993 err = map1->redirect(md1, 0, 0ULL); in IOMemoryDescriptorTest()
997 map1->release(); in IOMemoryDescriptorTest()