Home
last modified time | relevance | path

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

/drivers/net/ethernet/huawei/hinic/
Dhinic_sriov.c262 struct hinic_hwdev *hw_dev = hwdev; in hinic_register_vf_msg_handler() local
266 nic_io = &hw_dev->func_to_io; in hinic_register_vf_msg_handler()
268 dev_err(&hw_dev->hwif->pdev->dev, "Register VF id %d exceed limit[0-%d]\n", in hinic_register_vf_msg_handler()
275 err = hinic_init_vf_config(hw_dev, vf_id); in hinic_register_vf_msg_handler()
290 struct hinic_hwdev *hw_dev = hwdev; in hinic_unregister_vf_msg_handler() local
293 nic_io = &hw_dev->func_to_io; in hinic_unregister_vf_msg_handler()
307 struct hinic_hwdev *hw_dev = hwdev; in hinic_change_vf_mtu_msg_handler() local
313 dev_err(&hw_dev->hwif->pdev->dev, "Failed to set VF %u mtu\n", in hinic_change_vf_mtu_msg_handler()
346 struct hinic_hwdev *hw_dev = hwdev; in hinic_set_vf_mac_msg_handler() local
351 nic_io = &hw_dev->func_to_io; in hinic_set_vf_mac_msg_handler()
[all …]
/drivers/comedi/
Ddrivers.c49 int comedi_set_hw_dev(struct comedi_device *dev, struct device *hw_dev) in comedi_set_hw_dev() argument
51 if (hw_dev == dev->hw_dev) in comedi_set_hw_dev()
53 if (dev->hw_dev) in comedi_set_hw_dev()
55 dev->hw_dev = get_device(hw_dev); in comedi_set_hw_dev()
62 put_device(dev->hw_dev); in comedi_clear_hw_dev()
63 dev->hw_dev = NULL; in comedi_clear_hw_dev()
Dcomedi_usb.c25 return dev->hw_dev ? to_usb_interface(dev->hw_dev) : NULL; in comedi_to_usb_interface()
Dcomedi_pcmcia.c26 return dev->hw_dev ? to_pcmcia_dev(dev->hw_dev) : NULL; in comedi_to_pcmcia_dev()
Dcomedi_pci.c26 return dev->hw_dev ? to_pci_dev(dev->hw_dev) : NULL; in comedi_to_pci_dev()
Dcomedi_buf.c89 bm->dma_hw_dev = get_device(dev->hw_dev); in comedi_buf_map_alloc()
Dcomedi_fops.c3288 if (dev && dev->hw_dev == hardware_device) { in comedi_release_hardware_device()
/drivers/net/wireless/intersil/p54/
Dled.c69 struct ieee80211_hw *dev = led->hw_dev; in p54_led_brightness_set()
93 led->hw_dev = priv->hw; in p54_register_led()
Dp54.h147 struct ieee80211_hw *hw_dev; member
/drivers/comedi/drivers/
Dcomedi_isadma.c173 if (dev->hw_dev) { in comedi_isadma_alloc()
174 dma->dev = dev->hw_dev; in comedi_isadma_alloc()
Dmite.c702 dma_free_coherent(ring->hw_dev, in mite_free_dma_descs()
729 descs = dma_alloc_coherent(ring->hw_dev, in mite_buf_change()
755 ring->hw_dev = get_device(&mite->pcidev->dev); in mite_alloc_ring()
756 if (!ring->hw_dev) { in mite_alloc_ring()
775 put_device(ring->hw_dev); in mite_free_ring()
Dni_atmio.c343 isapnp_dev = dev->hw_dev ? to_pnp_dev(dev->hw_dev) : NULL; in ni_atmio_detach()
Dmite.h30 struct device *hw_dev; member
Daddi_apci_3120.c916 dmabuf->virt = dma_alloc_coherent(dev->hw_dev, in apci3120_dma_alloc()
946 dma_free_coherent(dev->hw_dev, dmabuf->size, in apci3120_dma_free()
Dadl_pci9118.c1470 dma_alloc_coherent(dev->hw_dev, PAGE_SIZE << order, in pci9118_alloc_dma()
1498 dma_free_coherent(dev->hw_dev, dmabuf->size, in pci9118_free_dma()