Home
last modified time | relevance | path

Searched refs:hw_dev (Results 1 – 11 of 11) sorted by relevance

/drivers/staging/comedi/
Ddrivers.c47 int comedi_set_hw_dev(struct comedi_device *dev, struct device *hw_dev) in comedi_set_hw_dev() argument
49 if (hw_dev == dev->hw_dev) in comedi_set_hw_dev()
51 if (dev->hw_dev != NULL) in comedi_set_hw_dev()
53 dev->hw_dev = get_device(hw_dev); in comedi_set_hw_dev()
60 put_device(dev->hw_dev); in comedi_clear_hw_dev()
61 dev->hw_dev = NULL; in comedi_clear_hw_dev()
Dcomedi_usb.c33 return dev->hw_dev ? to_usb_interface(dev->hw_dev) : NULL; in comedi_to_usb_interface()
Dcomedi_pcmcia.c36 return dev->hw_dev ? to_pcmcia_dev(dev->hw_dev) : NULL; in comedi_to_pcmcia_dev()
Dcomedi_pci.c33 return dev->hw_dev ? to_pci_dev(dev->hw_dev) : NULL; in comedi_to_pci_dev()
Dcomedidev.h204 struct device *hw_dev; member
331 int comedi_set_hw_dev(struct comedi_device *dev, struct device *hw_dev);
Dcomedi_buf.c55 dma_free_coherent(dev->hw_dev, in __comedi_buf_free()
96 buf->virt_addr = dma_alloc_coherent(dev->hw_dev, in __comedi_buf_alloc()
Dcomedi_fops.c2443 if (dev && dev->hw_dev == hardware_device) { in comedi_release_hardware_device()
/drivers/staging/comedi/drivers/
Dmite.c207 ring->hw_dev = get_device(&mite->pcidev->dev); in mite_alloc_ring()
208 if (ring->hw_dev == NULL) { in mite_alloc_ring()
223 dma_free_coherent(ring->hw_dev, in mite_free_ring()
229 put_device(ring->hw_dev); in mite_free_ring()
321 dma_free_coherent(ring->hw_dev, in mite_buf_change()
336 MDPRINTK("ring->hw_dev=%p, n_links=0x%04x\n", ring->hw_dev, n_links); in mite_buf_change()
339 dma_alloc_coherent(ring->hw_dev, in mite_buf_change()
Dmite.h50 struct device *hw_dev; member
/drivers/net/wireless/p54/
Dled.c73 struct ieee80211_hw *dev = led->hw_dev; in p54_led_brightness_set()
97 led->hw_dev = priv->hw; in p54_register_led()
Dp54.h150 struct ieee80211_hw *hw_dev; member