Home
last modified time | relevance | path

Searched refs:_dev (Results 1 – 25 of 69) sorted by relevance

123

/linux/arch/powerpc/platforms/ps3/
H A Dsystem-bus.c335 static int ps3_system_bus_match(struct device *_dev, in ps3_system_bus_match() argument
340 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); in ps3_system_bus_match()
362 static int ps3_system_bus_probe(struct device *_dev) in ps3_system_bus_probe() argument
365 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); in ps3_system_bus_probe()
369 dev_dbg(_dev, "%s:%d\n", __func__, __LINE__); in ps3_system_bus_probe()
384 static void ps3_system_bus_remove(struct device *_dev) in ps3_system_bus_remove() argument
386 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); in ps3_system_bus_remove()
390 dev_dbg(_dev, "%s:%d\n", __func__, __LINE__); in ps3_system_bus_remove()
404 static void ps3_system_bus_shutdown(struct device *_dev) in ps3_system_bus_shutdown() argument
406 struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); in ps3_system_bus_shutdown()
[all …]
/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_dev_api.h141 #define PVRDMA_IS_VERSION17(_dev) \ argument
142 (_dev->dsr_version == PVRDMA_ROCEV1_VERSION && \
143 _dev->dsr->caps.gid_types == PVRDMA_GID_TYPE_FLAG_ROCE_V1)
145 #define PVRDMA_IS_VERSION18(_dev) \ argument
146 (_dev->dsr_version >= PVRDMA_ROCEV2_VERSION && \
147 (_dev->dsr->caps.gid_types == PVRDMA_GID_TYPE_FLAG_ROCE_V1 || \
148 _dev->dsr->caps.gid_types == PVRDMA_GID_TYPE_FLAG_ROCE_V2)) \
150 #define PVRDMA_SUPPORTED(_dev) \ argument
151 ((_dev->dsr->caps.mode == PVRDMA_DEVICE_MODE_ROCE) && \
152 (PVRDMA_IS_VERSION17(_dev) || PVRDMA_IS_VERSION18(_dev)))
[all …]
/linux/include/linux/fsl/
H A Dmc.h216 #define to_fsl_mc_device(_dev) \ argument
217 container_of(_dev, struct fsl_mc_device, dev)
359 #define dev_is_fsl_mc(_dev) ((_dev)->bus == &fsl_mc_bus_type) argument
363 #define dev_is_fsl_mc(_dev) (0) argument
364 #define fsl_mc_get_msi_id(_dev) (0) argument
368 #define fsl_mc_is_cont_dev(_dev) (to_fsl_mc_device(_dev)->flags & \ argument
372 #define fsl_mc_cont_dev(_dev) (fsl_mc_is_cont_dev(_dev) ? \ argument
373 (_dev) : (_dev)->parent)
/linux/sound/isa/sb/
H A Demu8000_synth.c24 snd_emu8000_probe(struct device * _dev) snd_emu8000_probe() argument
84 snd_emu8000_remove(struct device * _dev) snd_emu8000_remove() argument
/linux/include/linux/
H A Dpm_runtime.h630 #define PM_RUNTIME_ACQUIRE(_dev, _var) \ argument
631 ACQUIRE(pm_runtime_active_try, _var)(_dev)
633 #define PM_RUNTIME_ACQUIRE_AUTOSUSPEND(_dev, _var) \ argument
634 ACQUIRE(pm_runtime_active_auto_try, _var)(_dev)
636 #define PM_RUNTIME_ACQUIRE_IF_ENABLED(_dev, _var) \ argument
637 ACQUIRE(pm_runtime_active_try_enabled, _var)(_dev)
639 #define PM_RUNTIME_ACQUIRE_IF_ENABLED_AUTOSUSPEND(_dev, _var) \ argument
640 ACQUIRE(pm_runtime_active_auto_try_enabled, _var)(_dev)
H A Dsiox.h8 #define to_siox_device(_dev) container_of((_dev), struct siox_device, dev) argument
/linux/rust/kernel/net/
H A Dphy.rs577 fn soft_reset(_dev: &mut Device) -> Result { in soft_reset()
582 fn probe(_dev: &mut Device) -> Result { in probe()
587 fn get_features(_dev: &mut Device) -> Result { in get_features()
593 fn match_phy_device(_dev: &Device) -> bool { in match_phy_device()
599 fn config_aneg(_dev: &mut Device) -> Result { in config_aneg()
604 fn read_status(_dev: &mut Device) -> Result<u16> { in read_status()
609 fn suspend(_dev: &mut Device) -> Result { in suspend()
614 fn resume(_dev: &mut Device) -> Result { in resume()
619 fn read_mmd(_dev: &mut Device, _devnum: u8, _regnum: u16) -> Result<u16> { in read_mmd()
624 fn write_mmd(_dev: &mut Device, _devnum: u8, _regnum: u16, _val: u16) -> Result { in write_mmd()
[all …]
/linux/drivers/gpu/drm/gma500/
H A Dpower.c178 int gma_power_suspend(struct device *_dev) in gma_power_suspend() argument
180 struct pci_dev *pdev = to_pci_dev(_dev); in gma_power_suspend()
195 int gma_power_resume(struct device *_dev) in gma_power_resume() argument
197 struct pci_dev *pdev = to_pci_dev(_dev); in gma_power_resume()
/linux/tools/testing/selftests/vfio/lib/include/libvfio/
H A Dvfio_pci_device.h38 #define dev_info(_dev, _fmt, ...) printf("%s: " _fmt, (_dev)->bdf, ##__VA_ARGS__) argument
39 #define dev_err(_dev, _fmt, ...) fprintf(stderr, "%s: " _fmt, (_dev)->bdf, ##__VA_ARGS__) argument
/linux/net/l3mdev/
H A Dl3mdev.c121 struct net_device *_dev = (struct net_device *)dev; in l3mdev_master_ifindex_rcu() local
129 master = netdev_master_upper_dev_get_rcu(_dev); in l3mdev_master_ifindex_rcu()
176 struct net_device *_dev = (struct net_device *) dev; in l3mdev_fib_table_rcu() local
179 master = netdev_master_upper_dev_get_rcu(_dev); in l3mdev_fib_table_rcu()
/linux/drivers/siox/
H A Dsiox.h9 #define to_siox_master(_dev) container_of((_dev), struct siox_master, dev) argument
/linux/drivers/block/
H A Dps3disk.c383 static int ps3disk_probe(struct ps3_system_bus_device *_dev) in ps3disk_probe() argument
385 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3disk_probe()
425 ps3_system_bus_set_drvdata(_dev, priv); in ps3disk_probe()
485 ps3_system_bus_set_drvdata(_dev, NULL); in ps3disk_probe()
493 static void ps3disk_remove(struct ps3_system_bus_device *_dev) in ps3disk_remove() argument
495 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3disk_remove()
510 ps3_system_bus_set_drvdata(_dev, NULL); in ps3disk_remove()
/linux/drivers/ps3/
H A Dvuart.h49 ps3_system_bus_dev_to_vuart_drv(struct ps3_system_bus_device *_dev) in ps3_system_bus_dev_to_vuart_drv() argument
52 ps3_system_bus_dev_to_system_bus_drv(_dev); in ps3_system_bus_dev_to_vuart_drv()
/linux/drivers/xen/xenbus/
H A Dxenbus_probe_frontend.c76 static int xenbus_uevent_frontend(const struct device *_dev, in xenbus_uevent_frontend() argument
79 const struct xenbus_device *dev = to_xenbus_device(_dev); in xenbus_uevent_frontend()
128 static void xenbus_frontend_dev_shutdown(struct device *_dev) in xenbus_frontend_dev_shutdown() argument
130 struct xenbus_device *dev = to_xenbus_device(_dev); in xenbus_frontend_dev_shutdown()
/linux/drivers/usb/core/
H A Dhub.h123 #define to_usb_port(_dev) \ argument
124 container_of(_dev, struct usb_port, dev)
/linux/drivers/char/
H A Dps3flash.c330 static int ps3flash_probe(struct ps3_system_bus_device *_dev) in ps3flash_probe() argument
332 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3flash_probe()
406 static void ps3flash_remove(struct ps3_system_bus_device *_dev) in ps3flash_remove() argument
408 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3flash_remove()
/linux/drivers/nvmem/
H A Dlayouts.c21 #define to_nvmem_layout_device(_dev) \ argument
22 container_of((_dev), struct nvmem_layout, dev)
/linux/include/linux/cdx/
H A Dcdx_bus.h169 #define to_cdx_device(_dev) \ argument
170 container_of(_dev, struct cdx_device, dev)
/linux/drivers/media/test-drivers/vivid/
H A Dvivid-cec.h12 int vivid_cec_bus_thread(void *_dev);
/linux/drivers/usb/host/
H A Dohci-sa1111.c271 static void ohci_hcd_sa1111_shutdown(struct device *_dev) in ohci_hcd_sa1111_shutdown() argument
273 struct sa1111_dev *dev = to_sa1111_device(_dev); in ohci_hcd_sa1111_shutdown()
/linux/include/sound/
H A Dhda_codec.h292 #define dev_to_hda_codec(_dev) container_of(_dev, struct hda_codec, core.dev) argument
293 #define hda_codec_dev(_dev) (&(_dev)->core.dev) argument
/linux/drivers/pcmcia/
H A Dsocket_sysfs.c32 #define to_socket(_dev) container_of(_dev, struct pcmcia_socket, dev) argument
/linux/drivers/pinctrl/sunxi/
H A Dpinctrl-sunxi.h318 #define sunxi_pinctrl_init(_dev, _desc) \ argument
319 sunxi_pinctrl_init_with_flags(_dev, _desc, 0)
/linux/drivers/net/can/c_can/
H A Dc_can_pci.c270 #define C_CAN_ID(_vend, _dev, _driverdata) { \ argument
271 PCI_DEVICE(_vend, _dev), \
/linux/drivers/usb/gadget/udc/
H A Dpxa27x_udc.c2283 static irqreturn_t pxa_udc_irq(int irq, void *_dev) in pxa_udc_irq() argument
2285 struct pxa_udc *udc = _dev; in pxa_udc_irq()
2454 static void pxa_udc_remove(struct platform_device *_dev) in pxa_udc_remove() argument
2456 struct pxa_udc *udc = platform_get_drvdata(_dev); in pxa_udc_remove()
2471 static void pxa_udc_shutdown(struct platform_device *_dev) in pxa_udc_shutdown() argument
2473 struct pxa_udc *udc = platform_get_drvdata(_dev); in pxa_udc_shutdown()
2488 static int pxa_udc_suspend(struct platform_device *_dev, pm_message_t state) in pxa_udc_suspend() argument
2490 struct pxa_udc *udc = platform_get_drvdata(_dev); in pxa_udc_suspend()
2513 static int pxa_udc_resume(struct platform_device *_dev) in pxa_udc_resume() argument
2515 struct pxa_udc *udc = platform_get_drvdata(_dev); in pxa_udc_resume()

123