Home
last modified time | relevance | path

Searched refs:obj1 (Results 1 – 13 of 13) sorted by relevance

/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dreset.retain.cpp18 T obj1{1}; in tests() local
23 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests()
33 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests()
64 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests()
71 CHECK(ptr.get() == &obj1); in tests()
81 bool ok = (ptr.reset() && ptr2.reset(&obj1, libkern::retain)); in tests()
H A Dassign.copy.cpp31 Stored obj1{1}; in tests() local
36 tracked_shared_ptr<From> const from(&obj1, libkern::retain); in tests()
43 CHECK(from.get() == &obj1); in tests()
44 CHECK(to.get() == &obj1); in tests()
49 tracked_shared_ptr<From> const from(&obj1, libkern::retain); in tests()
56 CHECK(from.get() == &obj1); in tests()
57 CHECK(to.get() == &obj1); in tests()
H A Dcompare.equal.raw.cpp49 T obj1{1}; in tests() local
53 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests()
59 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests()
60 TQual* b = &obj1; in tests()
71 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests()
H A Dreset.no_retain.cpp18 T obj1{1}; in tests() local
23 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests()
43 tracked_shared_ptr<T> ptr(&obj1, libkern::retain); in tests()
68 bool ok = (ptr.reset() && ptr2.reset(&obj1, libkern::no_retain)); in tests()
H A Dcompare.equal.cpp43 T obj1{1}; in tests() local
47 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests()
53 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests()
54 test_shared_ptr<TQual> const b(&obj1, libkern::no_retain); in tests()
H A Dswap.cpp16 T obj1{1}; in tests() local
21 tracked_shared_ptr<T> a(&obj1, libkern::retain); in tests()
37 tracked_shared_ptr<T> a(&obj1, libkern::retain); in tests()
81 tracked_shared_ptr<T> a(&obj1, libkern::retain); in tests()
H A Dassign.move.cpp32 Stored obj1{1}; in tests() local
37 tracked_shared_ptr<From> from(&obj1, libkern::retain); in tests()
45 CHECK(to.get() == &obj1); in tests()
50 tracked_shared_ptr<From> from(&obj1, libkern::retain); in tests()
58 CHECK(to.get() == &obj1); in tests()
/xnu-11215/libkern/c++/
H A DOSSet.cpp316 const OSMetaClassBase *obj1; in isEqualTo() local
329 obj1 = aSet->members->getObject(i); in isEqualTo()
330 if (containsObject(obj1)) { in isEqualTo()
334 if (!obj1 || !obj2) { in isEqualTo()
338 if (!obj1->isEqualTo(obj2)) { in isEqualTo()
H A DOSOrderedSet.cpp101 OSOrderedSetBlockToFunc(const OSMetaClassBase * obj1, in OSOrderedSetBlockToFunc() argument
107 return ordering(obj1, obj2); in OSOrderedSetBlockToFunc()
264 #define ORDER(obj1, obj2) \ argument
265 (ordering ? ((*ordering)( (const OSObject *) obj1, (const OSObject *) obj2, orderingRef)) : 0)
H A DOSDictionary.cpp594 const OSMetaClassBase * obj1; in setObject() local
615 obj1 = getObject(aKey); in setObject()
617 if (!obj1 || !obj2) { in setObject()
622 if (!obj1->isEqualTo(obj2)) { in setObject()
/xnu-11215/libkern/libkern/c++/
H A DOSOrderedSet.h123 typedef SInt32 (*OSOrderFunction)(const OSMetaClassBase * obj1,
127 typedef int32_t (^OSOrderBlock)(const OSMetaClassBase * obj1,
/xnu-11215/osfmk/vm/
H A Dvm_tests.c853 vm_object_t obj1, obj2, obj3, obj4; in vm_test_map_copy_adjust_to_target() local
871 obj1 = vm_object_allocate(0x100000); in vm_test_map_copy_adjust_to_target()
877 vm_object_reference(obj1); in vm_test_map_copy_adjust_to_target()
881 VM_MAP_KERNEL_FLAGS_DATA_ANYWHERE(), obj1, 0, in vm_test_map_copy_adjust_to_target()
888 vm_object_reference(obj1); in vm_test_map_copy_adjust_to_target()
892 VM_MAP_KERNEL_FLAGS_DATA_ANYWHERE(), obj1, 0, in vm_test_map_copy_adjust_to_target()
954 assert(os_ref_get_count_raw(&obj1->ref_count) == 1); in vm_test_map_copy_adjust_to_target()
959 vm_object_deallocate(obj1); in vm_test_map_copy_adjust_to_target()
/xnu-11215/iokit/Kernel/
H A DIOService.cpp3656 const _IOServiceNotifier * obj1 = (const _IOServiceNotifier *) inObj1; in IONotifyOrdering() local
3663 if (obj1) { in IONotifyOrdering()
3664 val1 = obj1->priority; in IONotifyOrdering()
3715 const OSObject * obj1 = (const OSObject *) inObj1; in IOServiceOrdering() local
3723 if (obj1) { in IOServiceOrdering()
3724 val1 = IOServiceObjectOrder( obj1, ref ); in IOServiceOrdering()