Lines Matching defs:device
55 /** An open usb device */
101 // Get an iterator for the interfaces on the device
105 ERR("Couldn't create a device interface iterator: (%08x)\n", kr);
263 /** Try out the given device and see if there's a match. Returns 0 on
266 static int try_device(io_service_t device, usb_handle *handle) {
276 kr = IOCreatePlugInInterfaceForService(device,
285 // Now create the device interface.
289 ERR("Couldn't create a device interface (%08x)\n", (int) result);
294 * We don't need the intermediate interface after the device interface
299 // So, we have a device, finally. Grab its vitals.
364 // device has no serial number
427 io_service_t device = IOIteratorNext(iterator);
429 if (device == 0) {
433 if (try_device(device, &h) != 0) {
434 IOObjectRelease(device);
445 IOObjectRelease(device);