Lines Matching defs:device
52 /** An open usb device */
95 // Get an iterator for the interfaces on the device
99 ERR("Couldn't create a device interface iterator: (%08x)\n", kr);
257 /** Try out the given device and see if there's a match. Returns 0 on
260 static int try_device(io_service_t device, usb_handle *handle) {
270 kr = IOCreatePlugInInterfaceForService(device,
280 // Now create the device interface.
284 ERR("Couldn't create a device interface (%08x)\n", (int) result);
289 * We don't need the intermediate interface after the device interface
294 // So, we have a device, finally. Grab its vitals.
358 // device has no serial number
421 io_service_t device = IOIteratorNext(iterator);
423 if (device == 0) {
427 if (try_device(device, &h) != 0) {
428 IOObjectRelease(device);
440 IOObjectRelease(device);