Lines Matching refs:device

73  * The wrapper library maintains the open device handle states to be
74 * able to map the device handle to the correct plugin. As such each
401 * In trying to map the device handle to a bus
426 * upon a call to open adds the device handle to the
428 * so that it can map device handles to bus
431 * to map the device handles to the plugin module
434 usb_add_dev(struct usb_dev_handle *dev, struct usb_device *device,
441 /* first device handle to be added */
446 "Error adding device to list \n");
463 "Error adding device to list \n");
471 devh->device = device;
479 * upon a call to usb_close removes the device handle from the
481 * entries do not get removed on a device removal only on close
571 * Used to find the plugin whose bus links this device ptr
572 * We will walk the bus list and then traverse the device list
573 * of each bus to find the matching device
574 * Once we have a match we know the bus that this device hangs off of
580 get_index_devicep(struct usb_device *device)
594 if (devicep == device) {
672 * Given a device handle map it to a bus
686 "%s: Invalid device handle \n", func);
693 "%s: device handle not found\n", func);
705 * Given a device handle, device pointer
706 * map the device to the bus and call into
1024 usb_open(struct usb_device *device)
1031 usb_dprintf(DEBUG_DETAILED, "usb_open: device ptr is 0x%x\n", device);
1034 pindex = get_index_devicep(device);
1035 /* could not find this device pointer */
1038 "%s: could not map device pointer to bus\n", func);
1051 dev = (*hdl)(device);
1052 if (usb_add_dev(dev, device, pindex) == SUCCESS) {
1055 usb_dprintf(DEBUG_ERRORS, "%s:No Memory to add device\n", func);