Lines Matching refs:kr
134 kern_return_t kr = IOMasterPort(MACH_PORT_NULL, &MasterPort);
135 if (kr != kIOReturnSuccess)
137 LogRel(("IOMasterPort -> %d\n", kr));
150 kr = IOServiceGetMatchingServices(MasterPort, ClassToMatch, &Iterator);
151 if (kr != kIOReturnSuccess)
153 LogRel(("IOServiceGetMatchingServices returned %d\n", kr));
173 kr = IOServiceOpen(ServiceObject, mach_task_self(), SUP_DARWIN_IOSERVICE_COOKIE, &Connection);
175 if (kr != kIOReturnSuccess)
177 LogRel(("SUP: IOServiceOpen returned %d. Driver open failed.\n", kr));
206 kern_return_t kr = IOServiceClose((io_connect_t)pThis->uConnection);
207 if (kr != kIOReturnSuccess)
209 LogRel(("Warning: IOServiceClose(%RCv) returned %d\n", pThis->uConnection, kr));
230 kern_return_t kr = IOServiceClose((io_connect_t)pThis->uConnection);
231 if (kr != kIOReturnSuccess)
233 LogRel(("Warning: IOServiceClose(%RCv) returned %d\n", pThis->uConnection, kr));