• Home
  • Raw
  • Download

Lines Matching refs:kr

68     IOReturn kr;  in try_interfaces()  local
96 kr = (*dev)->CreateInterfaceIterator(dev, &request, &iterator); in try_interfaces()
98 if (kr != 0) { in try_interfaces()
99 ERR("Couldn't create a device interface iterator: (%08x)\n", kr); in try_interfaces()
105 kr = IOCreatePlugInInterfaceForService( in try_interfaces()
115 if ((kr != 0) || (!plugInInterface)) { in try_interfaces()
116 WARN("Unable to create plugin (%08x)\n", kr); in try_interfaces()
153 kr = (*interface)->USBInterfaceOpen(interface); in try_interfaces()
155 if (kr != 0) { in try_interfaces()
156 WARN("Could not open interface: (%08x)\n", kr); in try_interfaces()
163 kr = (*interface)->GetNumEndpoints(interface, &interfaceNumEndpoints); in try_interfaces()
165 if (kr != 0) { in try_interfaces()
166 ERR("Unable to get number of endpoints: (%08x)\n", kr); in try_interfaces()
191 kr = (*interface)->GetPipeProperties(interface, endpoint, in try_interfaces()
195 if (kr == 0) { in try_interfaces()
231 kr = (*interface)->ClearPipeStallBothEnds(interface, in try_interfaces()
233 if (kr != 0) { in try_interfaces()
234 ERR("could not clear input pipe; result %x, ignoring...\n", kr); in try_interfaces()
239 kr = (*interface)->ClearPipeStallBothEnds(interface, in try_interfaces()
241 if (kr != 0) { in try_interfaces()
242 ERR("could not clear output pipe; result %x, ignoring....\n", kr); in try_interfaces()
261 kern_return_t kr; in try_device() local
270 kr = IOCreatePlugInInterfaceForService(device, in try_device()
275 if ((kr != 0) || (plugin == NULL)) { in try_device()
276 ERR("Unable to create a plug-in (%08x)\n", kr); in try_device()
296 kr = (*dev)->GetDeviceVendor(dev, &handle->info.dev_vendor); in try_device()
297 if (kr != 0) { in try_device()
302 kr = (*dev)->GetDeviceProduct(dev, &handle->info.dev_product); in try_device()
303 if (kr != 0) { in try_device()
308 kr = (*dev)->GetDeviceClass(dev, &handle->info.dev_class); in try_device()
309 if (kr != 0) { in try_device()
314 kr = (*dev)->GetDeviceSubClass(dev, &handle->info.dev_subclass); in try_device()
315 if (kr != 0) { in try_device()
320 kr = (*dev)->GetDeviceProtocol(dev, &handle->info.dev_protocol); in try_device()
321 if (kr != 0) { in try_device()
326 kr = (*dev)->GetLocationID(dev, &locationId); in try_device()
327 if (kr != 0) { in try_device()
333 kr = (*dev)->USBGetSerialNumberStringIndex(dev, &serialIndex); in try_device()
346 kr = (*dev)->DeviceRequest(dev, &req); in try_device()
348 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in try_device()