Lines Matching refs:kr
68 kern_return_t kr = IOMasterPort(MACH_PORT_NULL, &MasterPort);
69 if (kr != kIOReturnSuccess)
71 LogRel(("USBLib: IOMasterPort -> %#x\n", kr));
72 return RTErrConvertFromDarwinKern(kr);
84 kr = IOServiceGetMatchingServices(g_MasterPort, ClassToMatch, &Iterator);
85 if (kr != kIOReturnSuccess)
87 LogRel(("USBLib: IOServiceGetMatchingServices returned %#x\n", kr));
88 return RTErrConvertFromDarwinKern(kr);
104 kr = IOServiceOpen(ServiceObject, mach_task_self(), VBOXUSB_DARWIN_IOSERVICE_COOKIE, &g_Connection);
106 if (kr != kIOReturnSuccess)
108 LogRel(("USBLib: IOServiceOpen returned %#x\n", kr));
109 return RTErrConvertFromDarwinKern(kr);
127 kern_return_t kr = IOServiceClose(g_Connection);
128 if (kr != kIOReturnSuccess)
130 LogRel(("USBLib: Warning: IOServiceClose(%p) returned %#x\n", g_Connection, kr));
131 AssertMsgFailed(("%#x\n", kr));
144 kern_return_t kr = IOConnectMethodStructureIStructureO(g_Connection,
152 kern_return_t kr = IOConnectCallStructMethod(g_Connection,
157 if ( kr == kIOReturnSuccess
165 AssertMsgFailed(("kr=%#x Out.rc=%Rrc\n", kr, Out.rc));
175 kern_return_t kr = IOConnectMethodStructureIStructureO(g_Connection,
183 kern_return_t kr = IOConnectCallStructMethod(g_Connection,
188 AssertMsg(kr == kIOReturnSuccess && RT_SUCCESS(rc), ("kr=%#x rc=%Rrc\n", kr, rc));
189 NOREF(kr);