Lines Matching defs:device
11 #include <linux/device.h>
28 * comedi_set_hw_dev() - Set hardware device associated with COMEDI device
29 * @dev: COMEDI device.
30 * @hw_dev: Hardware device.
35 * to associate the COMEDI device with the hardware device. It can also be
38 * has a &struct device.
42 * with the same hardware device is not considered an error. If it gets
43 * a reference to the hardware device, it will be automatically 'put' when
44 * the device is detached from COMEDI.
49 int comedi_set_hw_dev(struct comedi_device *dev, struct device *hw_dev)
67 * comedi_alloc_devpriv() - Allocate memory for the device private data
68 * @dev: COMEDI device.
72 * return. The memory will be automatically freed when the COMEDI device is
85 * comedi_alloc_subdevices() - Allocate subdevices for COMEDI device
86 * @dev: COMEDI device.
90 * COMEDI device. If successful, sets @dev->subdevices to point to the
112 s->device = dev;
237 * @dev: COMEDI device.
272 * @dev: COMEDI device.
311 * @dev: COMEDI device.
575 * @dev: COMEDI device.
823 * comedi_load_firmware() - Request and load firmware for a device
824 * @dev: COMEDI device.
825 * @device: Hardware device.
830 * Sends a firmware request for the hardware device and waits for it. Calls
831 * the callback function to upload the firmware to the device, them releases
838 struct device *device,
851 ret = request_firmware(&fw, name, device);
863 * @dev: COMEDI device.
895 * @dev: COMEDI device.
925 * @dev: COMEDI device.
929 * any special clean-up for their private device or subdevice storage. It
1009 * comedi_auto_config() - Create a COMEDI device for a hardware device
1010 * @hardware_device: Hardware device.
1011 * @driver: COMEDI low-level driver for the hardware device.
1014 * Allocates a new COMEDI device for the hardware device and calls the
1022 * module, which in turn is usually called from a bus device 'probe'
1026 * post-configuration determines the driver has set the COMEDI device up
1028 * COMEDI minor device numbers, or some negative error number returned by
1031 int comedi_auto_config(struct device *hardware_device,
1057 "driver '%s' could not create device.\n",
1072 "driver '%s' failed to auto-configure device.\n",
1091 * comedi_auto_unconfig() - Unconfigure auto-allocated COMEDI device
1092 * @hardware_device: Hardware device previously passed to
1095 * Cleans up and eventually destroys the COMEDI device allocated by
1096 * comedi_auto_config() for the same hardware device. As part of this
1098 * (The COMEDI device itself will persist in an unattached state if it is
1103 * module, which in turn is usually set as the bus device 'remove' function
1106 void comedi_auto_unconfig(struct device *hardware_device)
1175 "BUG! detaching device with use_count=%d\n",