Home
last modified time | relevance | path

Searched refs:inst (Results 1 – 10 of 10) sorted by relevance

/xnu-11215/iokit/Kernel/
H A DIOExtensiblePaniclog.cpp62 if (!inst) { in createWithUUID()
67 if (!inst->init()) { in createWithUUID()
69 OSSafeReleaseNULL(inst); in createWithUUID()
77 OSSafeReleaseNULL(inst); in createWithUUID()
81 *out = inst; in createWithUUID()
171 if (!inst->init()) { in Create_Impl()
172 OSSafeReleaseNULL(inst); in Create_Impl()
178 if (inst->iomd == NULL) { in Create_Impl()
180 OSSafeReleaseNULL(inst); in Create_Impl()
188 OSSafeReleaseNULL(inst); in Create_Impl()
[all …]
H A DIOKitDebug.cpp911 inst = ((typeof(inst) *)left)[0]; in IOTrackingAddressCompare()
919 inst = ((typeof(inst) *)right)[0]; in IOTrackingAddressCompare()
936 inst = ((typeof(inst) *)left)[0]; in IOTrackingZoneElementCompare()
938 inst = ((typeof(inst) *)right)[0]; in IOTrackingZoneElementCompare()
1158 inst = instances[idx]; in IOTrackingLeaks()
1169 inst = instances[idx]; in IOTrackingLeaks()
1170 if (!inst) { in IOTrackingLeaks()
1620 if (inst && !inst->init()) { in OSDefineMetaClassAndStructors()
1621 inst->release(); in OSDefineMetaClassAndStructors()
1622 inst = NULL; in OSDefineMetaClassAndStructors()
[all …]
H A DIOUserServer.cpp1294 if (!inst) { in OSActionCreateWithTypeNameInternal()
1336 *action = inst; in OSActionCreateWithTypeNameInternal()
1524 inst->free(); in Create_Impl()
4111 if (inst && !inst->init()) { in OSDefineMetaClassAndStructors()
4113 inst = NULL; in OSDefineMetaClassAndStructors()
4114 return inst; in OSDefineMetaClassAndStructors()
4154 inst = NULL; in OSDefineMetaClassAndStructors()
4178 return inst; in OSDefineMetaClassAndStructors()
5207 inst = NULL; in Create_Impl()
7365 inst = NULL; in Create_Impl()
[all …]
H A DIOBufferMemoryDescriptor.cpp131 OSSharedPtr<IOBufferMemoryDescriptor> inst; in withCopy() local
139 inst = OSMakeShared<IOBufferMemoryDescriptor>(); in withCopy()
140 if (!inst) { in withCopy()
143 inst->_ranges.v64 = IOMallocType(IOAddressRange); in withCopy()
157 inst->_ranges.v64->address = address; in withCopy()
158 inst->_ranges.v64->length = size; in withCopy()
160 if (!inst->initWithPhysicalMask(inTask, options, size, page_size, 0)) { in withCopy()
166 return inst; in withCopy()
H A DIOService.cpp1415 if (inst && !inst->init()) { in iterator()
1417 inst = NULL; in iterator()
1419 if (inst) { in iterator()
1427 return inst; in iterator()
4065 if (!inst || !OSDynamicCast(IOService, inst)) { in probeCandidates()
4146 if (inst) { in probeCandidates()
5176 if (inst) { in configThread()
7151 if (inst && !inst->init()) { in resources()
7156 return inst; in resources()
7257 if (inst && !inst->init()) { in resources()
[all …]
/xnu-11215/libkern/libkern/c++/
H A DOSMetaClass.h412 #define OSDynamicCast(type, inst) \ argument
413 ((type *) OSMetaClassBase::safeMetaCast((inst), OSTypeID(type)))
434 #define OSRequiredCast(type, inst) \ argument
435 ((type *) OSMetaClassBase::requiredMetaCast((inst), OSTypeID(type)))
453 #define OSCheckTypeInst(typeinst, inst) \ argument
454 OSMetaClassBase::checkTypeInst(inst, typeinst)
456 #define OSSafeRelease(inst) \ argument
458 if (inst) (inst)->release(); } while (0)
464 #define OSSafeReleaseNULL(inst) do { if (inst != NULL) (inst)->release(); (inst) = NULL; } while … argument
862 const OSMetaClassBase * inst,
/xnu-11215/iokit/System/
H A DIODataQueueDispatchSourceShared.h78 IODataQueueDispatchSource * inst; in Create_Impl() local
87 inst = OSTypeAlloc(IODataQueueDispatchSource); in Create_Impl()
88 if (!inst) { in Create_Impl()
91 if (!inst->init()) { in Create_Impl()
92 inst->release(); in Create_Impl()
100 inst->release(); in Create_Impl()
103 inst->ivars->memory = bmd; in Create_Impl()
104 inst->ivars->queueByteCount = ((uint32_t) queueByteCount); in Create_Impl()
105 inst->ivars->options = 0; in Create_Impl()
106 inst->ivars->dataQueue = (typeof(inst->ivars->dataQueue))bmd->getBytesNoCopy(); in Create_Impl()
[all …]
/xnu-11215/bsd/dev/i386/
H A Ddtrace_isa.c1028 uint8_t *inst = (uint8_t *)saved_state->isf.rip; in dtrace_handle_trap() local
1031 if (inst[0] == 0x0f && inst[1] == 0x78 && inst[2] == 0xf8) { in dtrace_handle_trap()
H A Dsysctl.c665 SYSCTL_NODE(_machdep_cpu_tlb, OID_AUTO, inst, CTLFLAG_RW | CTLFLAG_LOCKED, 0,
/xnu-11215/libkern/c++/
H A DOSMetaClass.cpp327 const OSMetaClassBase * inst, in checkTypeInst() argument
331 return typeinst && inst && (NULL != inst->metaCast(toType)); in checkTypeInst()