Lines Matching refs:device

31 /* Define these values to match your device */
54 /* we can have up to this number of device plugged in at once */
69 /* Structure to hold all of our device specific stuff */
72 struct usb_device *udev; /* save off the usb device pointer */
74 unsigned int minor; /* the starting minor number for this device */
105 static inline void adu_debug_data(struct device *dev, const char *function,
242 pr_err("%s - error, can't find device for minor %d\n",
254 /* check that nobody else is using the device */
264 /* save device in the file's private structure */
297 /* decrement our usage count for the device */
326 dev_dbg(&dev->udev->dev, "%s : device not opened\n", __func__);
333 /* the device was unplugged before the file was released */
359 /* verify that the device wasn't unplugged */
362 pr_err("No device or device unplugged %d\n", retval);
497 /* unlock the device */
520 /* verify that the device wasn't unplugged */
523 pr_err("No device or device unplugged %d\n", retval);
635 * and to have the device registered with devfs and the driver core
646 * Called by the usb core when a new device is connected that it thinks
659 /* allocate memory for our device state and initialize it */
728 /* we can register the device now, as it is ready */
735 dev_err(&interface->dev, "Not able to get a minor for this device.\n");
742 /* let the user know what node this device is now attached to */
757 * Called by the usb core when the device is removed from the system.
777 /* if the device is not opened, then we clean up right now */