Lines Matching defs:dev
15 * @dev: COMEDI device.
17 * Assuming @dev->hw_dev is non-%NULL, it is assumed to be pointing to a
20 * Return: Attached USB interface if @dev->hw_dev is non-%NULL.
21 * Return %NULL if @dev->hw_dev is %NULL.
23 struct usb_interface *comedi_to_usb_interface(struct comedi_device *dev)
25 return dev->hw_dev ? to_usb_interface(dev->hw_dev) : NULL;
31 * @dev: COMEDI device.
33 * Assuming @dev->hw_dev is non-%NULL, it is assumed to be pointing to a
36 * Return: USB device to which the USB interface belongs if @dev->hw_dev is
37 * non-%NULL. Return %NULL if @dev->hw_dev is %NULL.
39 struct usb_device *comedi_to_usb_dev(struct comedi_device *dev)
41 struct usb_interface *intf = comedi_to_usb_interface(dev);
66 return comedi_auto_config(&intf->dev, driver, context);
86 comedi_auto_unconfig(&intf->dev);