Lines Matching defs:dev
16 * @dev: COMEDI device.
18 * Assuming @dev->hw_dev is non-%NULL, it is assumed to be pointing to a
21 * Return: Attached PCMCIA device if @dev->hw_dev is non-%NULL.
22 * Return %NULL if @dev->hw_dev is %NULL.
24 struct pcmcia_device *comedi_to_pcmcia_dev(struct comedi_device *dev)
26 return dev->hw_dev ? to_pcmcia_dev(dev->hw_dev) : NULL;
41 * @dev: COMEDI device.
45 * Assuming @dev->hw_dev is non-%NULL, it is assumed to be pointing to a a
66 * -%ENODEV id @dev->hw_dev is %NULL,
70 int comedi_pcmcia_enable(struct comedi_device *dev,
74 struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
93 * @dev: COMEDI device.
95 * Assuming @dev->hw_dev is non-%NULL, it is assumed to be pointing to a
99 void comedi_pcmcia_disable(struct comedi_device *dev)
101 struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
124 return comedi_auto_config(&link->dev, driver, 0);
144 comedi_auto_unconfig(&link->dev);