Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 105) sorted by relevance

12345

/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dswap.cpp23 T* a_raw = a.get(); in tests()
24 T* b_raw = b.get(); in tests()
31 CHECK(a.get() == b_raw); in tests()
32 CHECK(b.get() == a_raw); in tests()
39 T* a_raw = a.get(); in tests()
46 CHECK(a.get() == nullptr); in tests()
47 CHECK(b.get() == a_raw); in tests()
54 T* b_raw = b.get(); in tests()
61 CHECK(a.get() == b_raw); in tests()
82 T* a_raw = a.get(); in tests()
[all …]
H A Dctor.move.cpp40 CHECK(from.get() == &obj); in tests()
44 CHECK(to.get() == &obj); in tests()
45 CHECK(from.get() == nullptr); in tests()
51 CHECK(from.get() == &obj); in tests()
55 CHECK(to.get() == &obj); in tests()
56 CHECK(from.get() == nullptr); in tests()
62 CHECK(from.get() == &obj); in tests()
66 CHECK(to.get() == &obj); in tests()
67 CHECK(from.get() == nullptr); in tests()
76 CHECK(to.get() == nullptr); in tests()
[all …]
H A Dcast.const.cpp29 CHECK(to.get() == const_cast<To*>(&obj)); in tests()
30 CHECK(from.get() == &obj); in tests()
38 CHECK(to.get() == const_cast<To*>(&obj)); in tests()
39 CHECK(from.get() == nullptr); in tests()
49 CHECK(to.get() == nullptr); in tests()
50 CHECK(from.get() == nullptr); in tests()
58 CHECK(to.get() == nullptr); in tests()
59 CHECK(from.get() == nullptr); in tests()
H A Dcast.reinterpret.cpp33 CHECK(to.get() == reinterpret_cast<To const*>(&obj)); in tests()
34 CHECK(from.get() == &obj); in tests()
42 CHECK(to.get() == reinterpret_cast<To const*>(&obj)); in tests()
43 CHECK(from.get() == nullptr); in tests()
53 CHECK(to.get() == nullptr); in tests()
54 CHECK(from.get() == nullptr); in tests()
62 CHECK(to.get() == nullptr); in tests()
63 CHECK(from.get() == nullptr); in tests()
H A Dcast.static.cpp38 CHECK(to.get() == static_cast<To const*>(&obj)); in tests()
39 CHECK(from.get() == &obj); in tests()
47 CHECK(to.get() == static_cast<To const*>(&obj)); in tests()
48 CHECK(from.get() == nullptr); in tests()
58 CHECK(to.get() == nullptr); in tests()
59 CHECK(from.get() == nullptr); in tests()
67 CHECK(to.get() == nullptr); in tests()
68 CHECK(from.get() == nullptr); in tests()
H A Dreset.retain.cpp28 CHECK(ptr.get() == &obj2); in tests()
38 CHECK(ptr.get() == nullptr); in tests()
48 CHECK(ptr.get() == &obj2); in tests()
58 CHECK(ptr.get() == nullptr); in tests()
66 ptr.reset(ptr.get(), libkern::retain); in tests()
71 CHECK(ptr.get() == &obj1); in tests()
82 CHECK(ptr2.get() == nullptr); in tests()
H A Dassign.copy.cpp43 CHECK(from.get() == &obj1); in tests()
44 CHECK(to.get() == &obj1); in tests()
56 CHECK(from.get() == &obj1); in tests()
57 CHECK(to.get() == &obj1); in tests()
69 CHECK(from.get() == nullptr); in tests()
70 CHECK(to.get() == nullptr); in tests()
82 CHECK(from.get() == nullptr); in tests()
83 CHECK(to.get() == nullptr); in tests()
H A Dassign.move.cpp44 CHECK(from.get() == nullptr); in tests()
45 CHECK(to.get() == &obj1); in tests()
57 CHECK(from.get() == nullptr); in tests()
58 CHECK(to.get() == &obj1); in tests()
70 CHECK(from.get() == nullptr); in tests()
71 CHECK(to.get() == nullptr); in tests()
83 CHECK(from.get() == nullptr); in tests()
84 CHECK(to.get() == nullptr); in tests()
H A Dctor.default.cpp19 CHECK(ptr.get() == nullptr); in tests()
23 CHECK(ptr.get() == nullptr); in tests()
27 CHECK(ptr.get() == nullptr); in tests()
31 CHECK(ptr.get() == nullptr); in tests()
H A Dreset.no_retain.cpp28 CHECK(ptr.get() == &obj2); in tests()
38 CHECK(ptr.get() == &obj2); in tests()
48 CHECK(ptr.get() == nullptr); in tests()
58 CHECK(ptr.get() == nullptr); in tests()
69 CHECK(ptr2.get() == nullptr); in tests()
H A Dget.cpp17 can_call_get_on_temporary(int)->decltype(std::declval<test_shared_ptr<T> >().get(), bool ()) in can_call_get_on_temporary()
37 T* raw = ptr.get(); in tests()
39 CHECK(ptr.get() == raw); // ptr didn't change in tests()
47 T_DECL(get, "intrusive_shared_ptr.get", T_META_TAG_VM_PREFERRED) {
H A Dctor.nullptr.cpp19 CHECK(ptr.get() == nullptr); in tests()
23 CHECK(ptr.get() == nullptr); in tests()
27 CHECK(ptr.get() == nullptr); in tests()
/xnu-11215/iokit/Tests/
H A DTests.cpp817 wl->removeEventSource(tes.get()); in IOWorkLoopTest()
830 wl->removeEventSource(tes.get()); in IOWorkLoopTest()
837 kprintf("ies %p\n", ies.get()); in IOWorkLoopTest()
844 wl->removeEventSource(ies.get()); in IOWorkLoopTest()
899 dict->serialize(s.get()); in OSCollectionTest()
1544 assert(collection.get() == OSDynamicCast(OSDictionary, dict.get())); in OSDynamicPtrCastTests()
1548 assert(newDict.get() == dict.get()); in OSDynamicPtrCastTests()
1615 .userNotify = userNotify.get(), in IOUserNotificationTests()
1739 OSSharedPtr<OSDictionary> result = IOService::propertyMatching(name.get(), value.get(), table); in IOServiceMatchingSharedPtrTests()
1799 array->setObject(str.get()); in IOServiceStateNotificationTests()
[all …]
/xnu-11215/libkern/libkern/c++/
H A Dintrusive_shared_ptr.h415 get() const & noexcept
552 return x.get() == y.get();
559 return x.get() != y.get();
566 return x.get() == y;
573 return x.get() != y;
580 return x == y.get();
587 return x != y.get();
594 return x.get() == nullptr;
601 return nullptr == x.get();
608 return x.get() != nullptr;
[all …]
/xnu-11215/libkern/c++/
H A DOSDictionary.cpp69 if ((uintptr_t)e1->key.get() == (uintptr_t)e2->key.get()) { in compare()
73 return (uintptr_t)e1->key.get() > (uintptr_t)e2->key.get() ? 1 : -1; in compare()
177 if (!newObject || !setObject(key.get(), newObject)) { in initWithObjects()
421 return setObject(aKey.get(), anObject.get()); in setObject()
427 return setObject(aKey, anObject.get()); in setObject()
433 return setObject(aKey, anObject.get()); in setObject()
646 obj = srcDict->getObject(dictionary[i].key.get()); in isEqualTo()
714 const OSSymbol *key = dictionary[i].key.get(); in serialize()
789 cycleDict = ourCycleDict.get(); in copyCollection()
838 if (!array->setObject(i, dictionary[i].key.get())) { in copyKeys()
[all …]
H A DOSOrderedSet.cpp236 return setObject(index, anObject.get()); in setObject()
248 return setFirstObject(anObject.get()); in setFirstObject()
260 return setLastObject(anObject.get()); in setLastObject()
274 (i < count) && (ORDER(array[i].obj.get(), anObject) >= 0); in setObject()
284 return setObject(anObject.get()); in setObject()
311 return removeObject(anObject.get()); in removeObject()
348 return const_cast<OSObject *>((const OSObject *) array[0].obj.get()); in getFirstObject()
472 cycleDict = ourCycleDict.get(); in copyCollection()
489 cycleDict->setObject((const OSSymbol *) this, newSet.get()); in copyCollection()
495 OSObject *obj = EXT_CAST(array[i].obj.get()); in copyCollection()
[all …]
H A DOSArray.cpp288 return setObject(index, anObject.get()); in setObject()
336 return replaceObject(index, anObject.get()); in replaceObject()
399 return static_cast<OSObject *>(const_cast<OSMetaClassBase *>(array[index].get())); in getObject()
409 return static_cast<OSObject *>(const_cast<OSMetaClassBase *>(array[count - 1].get())); in getLastObject()
448 *ret = static_cast<OSObject *>(const_cast<OSMetaClassBase *>(array[index].get())); in getNextObjectForIterator()
483 OSCollection *coll = OSDynamicCast(OSCollection, array[i].get()); in setOptions()
505 cycleDict = ourCycleDict.get(); in copyCollection()
521 cycleDict->setObject((const OSSymbol *) this, newArray.get()); in copyCollection()
527 newArray->array[i].get()))); in copyCollection()
535 newArray->replaceObject(i, newColl.get()); in copyCollection()
H A DOSSet.cpp118 return initWithArray(inSet->members.get(), inCapacity); in initWithSet()
234 return setObject(anObject.get()); in setObject()
261 return merge(set->members.get()); in merge()
281 removeObject(anObject.get()); in removeObject()
434 cycleDict = ourCycleDict.get(); in copyCollection()
448 cycleDict->setObject((const OSSymbol *) this, newSet.get()); in copyCollection()
450 OSArray *newMembers = newSet->members.get(); in copyCollection()
455 OSObject *obj = EXT_CAST(members->array[i].get()); in copyCollection()
460 obj = newColl.get(); // Rely on cycleDict ref for a bit in copyCollection()
/xnu-11215/iokit/Kernel/
H A DIOCatalogue.cpp125 rc = gIOCatalogue->init(array.get()); in initialize()
226 (void *)(gIOProbeScoreKey.get())); in findDrivers()
272 (void *)(gIOProbeScoreKey.get())); in findDrivers()
311 (void *)(gIOProbeScoreKey.get())); in exchangeDrivers()
427 (void *)(gIOProbeScoreKey.get())); in addDrivers()
516 (void *)(gIOProbeScoreKey.get()));
685 moduleHasLoaded(name.get()); in moduleHasLoaded()
997 removeDrivers(dict.get(), true); in terminateDriversForModule()
1003 ret = _removeDrivers(dict.get()); in terminateDriversForModule()
1047 (void *)(gIOProbeScoreKey.get())); in startMatching()
[all …]
H A DIOCPU.cpp405 provider->setProperty("bus-frequency", busFrequency.get()); in start()
408 provider->setProperty("bus-frequency", busFrequency.get()); in start()
413 provider->setProperty("clock-frequency", cpuFrequency.get()); in start()
416 provider->setProperty("clock-frequency", cpuFrequency.get()); in start()
450 return gIOCPUStateNames[_cpuState].get(); in getProperty()
476 dict->setObject(gIOCPUStateKey.get(), gIOCPUStateNames[_cpuState].get()); in serializeProperties()
499 if (setProperty(gIOCPUStateKey.get(), stateStr)) { in setProperties()
565 return _cpuGroup.get(); in getCPUGroup()
664 specifier->setObject(tmpData.get()); in setCPUInterruptProperties()
674 service->setProperty(gIOInterruptControllersKey, controller.get()); in setCPUInterruptProperties()
[all …]
H A DIOReportLegend.cpp96 return _reportLegend.get(); in getLegend()
118 legend = IOReportLegend::with(OSDynamicCast(OSArray, curLegend.get())); in addReporterLegend()
158 res = organizeLegend(legendEntry, tmpGroupName.get(), tmpSubGroupName.get()); in addLegendEntry()
176 res = addLegendEntry(legendEntry.get(), groupName, subGroupName); in addReporterLegend()
H A DIOPMrootDomain.cpp4168 dict->setObject(gIOPMSettingDebugWakeRelativeKey.get(), secs.get()); in scheduleImmediateDebugWake()
4982 list = newList.get();
5834 setPMSetting(setting.get(), num.get());
7280 ret = setPMSetting(gIOPMSettingMaintenanceWakeCalendarKey.get(), data.get());
7282 ret = setPMSetting(gIOPMSettingSleepServiceWakeCalendarKey.get(), data.get());
9385 responseDescription->setObject(_statsMessageTypeKey.get(), msgNum.get());
9395 responseDescription->setObject(_statsNameKey.get(), appname.get());
9404 responseDescription->setObject(_statsPIDKey.get(), pidNum.get());
9409 responseDescription->setObject(_statsTimeMSKey.get(), delayNum.get());
9432 responseDescription->setObject(_statsPowerCapsKey.get(), powerCaps.get());
[all …]
H A DIODMAController.cpp58 dmaParentData = OSDynamicCast(OSData, prop.get()); in getController()
76 …ODMAController, IOService::waitForService( IOService::nameMatching(dmaParentName.get()).detach())); in getController()
103 phandleData = OSDynamicCast(OSData, prop.get()); in registerDMAController()
107 setName(_dmaControllerName.get()); in registerDMAController()
H A DIONVRAM.cpp1119 return theObject.get(); in getProperty()
1221 data = OSDynamicCast(OSData, prop.get()); in getNVRAMProperties()
1229 data = OSDynamicCast(OSData, prop.get()); in getNVRAMProperties()
1237 data = OSDynamicCast(OSData, prop.get()); in getNVRAMProperties()
1282 setPropertyTable(dict.get()); in init()
1428 data = OSDynamicCast(OSData, prop.get()); in initImageFormat()
1438 data = OSDynamicCast(OSData, prop.get()); in initImageFormat()
1454 dumpDict(_varDict.get()); in initImageFormat()
1759 theObject = copyProperty(keySymbol.get()); in copyProperty()
1772 return theObject.get(); in getProperty()
[all …]
/xnu-11215/tests/
H A Dtask_info.c975 switch (get) { in info_get()
983 T_ASSERT_FAIL("illegal info_get %d %d", kind, get); in info_get()
993 T_ASSERT_FAIL("illegal info_get %d %d", kind, get); in info_get()
1009 T_ASSERT_FAIL("illegal info_get %d %d", kind, get); in info_get()
1019 T_ASSERT_FAIL("illegal info_get %d %d", kind, get); in info_get()
1035 T_ASSERT_FAIL("illegal info_get %d %d", kind, get); in info_get()
1045 T_ASSERT_FAIL("illegal info_get %d %d", kind, get); in info_get()
1062 T_ASSERT_FAIL("illegal info_get %d %d", kind, get); in info_get()
1072 T_ASSERT_FAIL("illegal info_get %d %d", kind, get); in info_get()
1089 T_ASSERT_FAIL("illegal info_get %d %d", kind, get); in info_get()
[all …]

12345