Lines Matching refs:inst
61 IOExtensiblePaniclog *inst = OSTypeAlloc(IOExtensiblePaniclog); in createWithUUID() local
62 if (!inst) { in createWithUUID()
67 if (!inst->init()) { in createWithUUID()
69 OSSafeReleaseNULL(inst); in createWithUUID()
73 inst->extPaniclogHandle = ext_paniclog_handle_alloc_with_uuid(uuid, data_id, in createWithUUID()
75 if (inst->extPaniclogHandle == NULL) { in createWithUUID()
77 OSSafeReleaseNULL(inst); in createWithUUID()
81 *out = inst; in createWithUUID()
152 IOExtensiblePaniclog * inst = NULL; in Create_Impl() local
170 inst = OSTypeAlloc(IOExtensiblePaniclog); in Create_Impl()
171 if (!inst->init()) { in Create_Impl()
172 OSSafeReleaseNULL(inst); in Create_Impl()
177 inst->iomd = IOBufferMemoryDescriptor::withOptions(mem_options, max_len); in Create_Impl()
178 if (inst->iomd == NULL) { in Create_Impl()
180 OSSafeReleaseNULL(inst); in Create_Impl()
184 inst->extPaniclogHandle = ext_paniclog_handle_alloc_with_buffer(uuid_copy, in Create_Impl()
185 data_id->getCStringNoCopy(), max_len, inst->iomd->getBytesNoCopy(), in Create_Impl()
187 if (inst->extPaniclogHandle == NULL) { in Create_Impl()
188 OSSafeReleaseNULL(inst); in Create_Impl()
192 *out = inst; in Create_Impl()