/linux/arch/powerpc/platforms/ps3/ |
A D | system-bus.c | 335 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 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 506 static void * ps3_alloc_coherent(struct device *_dev, size_t size, in ps3_alloc_coherent() argument 683 static int ps3_dma_supported(struct device *_dev, u64 mask) in ps3_dma_supported() argument [all …]
|
/linux/drivers/gpu/drm/gma500/ |
A D | power.c | 188 int gma_power_suspend(struct device *_dev) in gma_power_suspend() argument 190 struct pci_dev *pdev = to_pci_dev(_dev); in gma_power_suspend() 215 int gma_power_resume(struct device *_dev) in gma_power_resume() argument 217 struct pci_dev *pdev = to_pci_dev(_dev); in gma_power_resume() 320 int gma_power_thaw(struct device *_dev) in gma_power_thaw() argument 322 return gma_power_resume(_dev); in gma_power_thaw() 325 int gma_power_freeze(struct device *_dev) in gma_power_freeze() argument 327 return gma_power_suspend(_dev); in gma_power_freeze() 330 int gma_power_restore(struct device *_dev) in gma_power_restore() argument 332 return gma_power_resume(_dev); in gma_power_restore()
|
/linux/drivers/infiniband/hw/vmw_pvrdma/ |
A D | pvrdma_dev_api.h | 141 #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 && \ 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))) 158 #define PVRDMA_GET_CAP(_dev, _old_val, _val) \ argument [all …]
|
/linux/include/linux/fsl/ |
A D | mc.h | 210 #define to_fsl_mc_device(_dev) \ argument 211 container_of(_dev, struct fsl_mc_device, dev) 353 #define dev_is_fsl_mc(_dev) ((_dev)->bus == &fsl_mc_bus_type) argument 356 #define dev_is_fsl_mc(_dev) (0) argument 360 #define fsl_mc_is_cont_dev(_dev) (to_fsl_mc_device(_dev)->flags & \ argument 364 #define fsl_mc_cont_dev(_dev) (fsl_mc_is_cont_dev(_dev) ? \ argument 365 (_dev) : (_dev)->parent)
|
/linux/arch/mips/include/asm/ |
A D | gio_device.h | 50 #define gio_get_drvdata(_dev) dev_get_drvdata(&(_dev)->dev) argument 51 #define gio_set_drvdata(_dev, data) dev_set_drvdata(&(_dev)->dev, (data)) argument
|
/linux/include/scsi/ |
A D | scsi_transport_iscsi.h | 221 #define iscsi_dev_to_conn(_dev) \ argument 222 container_of(_dev, struct iscsi_cls_conn, dev) 268 #define iscsi_dev_to_session(_dev) \ argument 269 container_of(_dev, struct iscsi_cls_session, dev) 309 #define iscsi_dev_to_iface(_dev) \ argument 310 container_of(_dev, struct iscsi_iface, dev) 353 #define iscsi_dev_to_flash_conn(_dev) \ argument 354 container_of(_dev, struct iscsi_bus_flash_conn, dev) 415 #define iscsi_dev_to_flash_session(_dev) \ argument 416 container_of(_dev, struct iscsi_bus_flash_session, dev)
|
/linux/sound/pci/emu10k1/ |
A D | emu10k1_synth.c | 19 static int snd_emu10k1_synth_probe(struct device *_dev) in snd_emu10k1_synth_probe() argument 21 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_emu10k1_synth_probe() 70 static int snd_emu10k1_synth_remove(struct device *_dev) in snd_emu10k1_synth_remove() argument 72 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_emu10k1_synth_remove()
|
/linux/sound/isa/sb/ |
A D | emu8000_synth.c | 24 static int snd_emu8000_probe(struct device *_dev) in snd_emu8000_probe() argument 26 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_emu8000_probe() 84 static int snd_emu8000_remove(struct device *_dev) in snd_emu8000_remove() argument 86 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_emu8000_remove()
|
/linux/drivers/xen/xenbus/ |
A D | xenbus_probe.c | 210 static ssize_t name##_show(struct device *_dev, \ 214 struct xenbus_device *dev = to_xenbus_device(_dev); \ 225 static ssize_t spurious_threshold_show(struct device *_dev, in spurious_threshold_show() argument 229 struct xenbus_device *dev = to_xenbus_device(_dev); in spurious_threshold_show() 234 static ssize_t spurious_threshold_store(struct device *_dev, in spurious_threshold_store() argument 238 struct xenbus_device *dev = to_xenbus_device(_dev); in spurious_threshold_store() 267 int xenbus_dev_probe(struct device *_dev) in xenbus_dev_probe() argument 269 struct xenbus_device *dev = to_xenbus_device(_dev); in xenbus_dev_probe() 270 struct xenbus_driver *drv = to_xenbus_driver(_dev->driver); in xenbus_dev_probe() 328 void xenbus_dev_remove(struct device *_dev) in xenbus_dev_remove() argument [all …]
|
A D | xenbus.h | 107 int xenbus_match(struct device *_dev, struct device_driver *_drv); 108 int xenbus_dev_probe(struct device *_dev); 109 void xenbus_dev_remove(struct device *_dev);
|
/linux/drivers/hwtracing/coresight/ |
A D | coresight-priv.h | 45 static ssize_t name##_show(struct device *_dev, \ 48 type *drvdata = dev_get_drvdata(_dev->parent); \ 51 pm_runtime_get_sync(_dev->parent); \ 53 val = (u64)fn(_dev->parent, lo_off); \ 57 pm_runtime_put_sync(_dev->parent); \
|
/linux/drivers/thermal/ |
A D | thermal_core.h | 116 #define to_thermal_zone(_dev) \ argument 117 container_of(_dev, struct thermal_zone_device, device) 119 #define to_cooling_device(_dev) \ argument 120 container_of(_dev, struct thermal_cooling_device, device)
|
/linux/drivers/parport/ |
A D | parport_ax88796.c | 270 struct device *_dev = &pdev->dev; in parport_ax88796_probe() local 285 dev_err(_dev, "no MEM specified\n"); in parport_ax88796_probe() 295 dev_err(_dev, "cannot reserve memory\n"); in parport_ax88796_probe() 302 dev_err(_dev, "cannot ioremap region\n"); in parport_ax88796_probe() 316 dev_err(_dev, "failed to register parallel port\n"); in parport_ax88796_probe() 323 dd->dev = _dev; in parport_ax88796_probe() 345 dev_info(_dev, "attached parallel port driver\n"); in parport_ax88796_probe()
|
/linux/drivers/amba/ |
A D | bus.c | 82 static ssize_t driver_override_show(struct device *_dev, in driver_override_show() argument 85 struct amba_device *dev = to_amba_device(_dev); in driver_override_show() 88 device_lock(_dev); in driver_override_show() 90 device_unlock(_dev); in driver_override_show() 94 static ssize_t driver_override_store(struct device *_dev, in driver_override_store() argument 98 struct amba_device *dev = to_amba_device(_dev); in driver_override_store() 113 device_lock(_dev); in driver_override_store() 121 device_unlock(_dev); in driver_override_store() 130 static ssize_t name##_show(struct device *_dev, \ 133 struct amba_device *dev = to_amba_device(_dev); \
|
/linux/drivers/base/ |
A D | platform.c | 1386 static int platform_probe(struct device *_dev) in platform_probe() argument 1389 struct platform_device *dev = to_platform_device(_dev); in platform_probe() 1402 ret = of_clk_set_defaults(_dev->of_node, false); in platform_probe() 1406 ret = dev_pm_domain_attach(_dev, true); in platform_probe() 1413 dev_pm_domain_detach(_dev, true); in platform_probe() 1418 dev_warn(_dev, "probe deferral not supported\n"); in platform_probe() 1425 static void platform_remove(struct device *_dev) in platform_remove() argument 1436 dev_pm_domain_detach(_dev, true); in platform_remove() 1439 static void platform_shutdown(struct device *_dev) in platform_shutdown() argument 1444 if (!_dev->driver) in platform_shutdown() [all …]
|
/linux/sound/drivers/opl4/ |
A D | opl4_seq.c | 127 static int snd_opl4_seq_probe(struct device *_dev) in snd_opl4_seq_probe() argument 129 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_opl4_seq_probe() 184 static int snd_opl4_seq_remove(struct device *_dev) in snd_opl4_seq_remove() argument 186 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_opl4_seq_remove()
|
/linux/arch/powerpc/include/asm/ |
A D | ps3.h | 399 struct device *_dev) in ps3_dev_to_system_bus_dev() argument 401 return container_of(_dev, struct ps3_system_bus_device, core); in ps3_dev_to_system_bus_dev() 404 ps3_system_bus_dev_to_system_bus_drv(struct ps3_system_bus_device *_dev) in ps3_system_bus_dev_to_system_bus_drv() argument 406 BUG_ON(!_dev); in ps3_system_bus_dev_to_system_bus_drv() 407 BUG_ON(!_dev->core.driver); in ps3_system_bus_dev_to_system_bus_drv() 408 return ps3_drv_to_system_bus_drv(_dev->core.driver); in ps3_system_bus_dev_to_system_bus_drv()
|
/linux/net/l3mdev/ |
A D | l3mdev.c | 121 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/block/ |
A D | ps3disk.c | 379 static int ps3disk_probe(struct ps3_system_bus_device *_dev) in ps3disk_probe() argument 381 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3disk_probe() 413 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/sound/drivers/opl3/ |
A D | opl3_seq.c | 207 static int snd_opl3_seq_probe(struct device *_dev) in snd_opl3_seq_probe() argument 209 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_opl3_seq_probe() 250 static int snd_opl3_seq_remove(struct device *_dev) in snd_opl3_seq_remove() argument 252 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_opl3_seq_remove()
|
/linux/drivers/siox/ |
A D | siox.h | 9 #define to_siox_master(_dev) container_of((_dev), struct siox_master, dev) argument
|
/linux/include/sound/ |
A D | seq_device.h | 27 #define to_seq_dev(_dev) \ argument 28 container_of(_dev, struct snd_seq_device, dev)
|
/linux/drivers/infiniband/hw/qedr/ |
A D | qedr.h | 47 #define DP_NAME(_dev) dev_name(&(_dev)->ibdev.dev) argument 48 #define IS_IWARP(_dev) ((_dev)->rdma_type == QED_RDMA_TYPE_IWARP) argument 49 #define IS_ROCE(_dev) ((_dev)->rdma_type == QED_RDMA_TYPE_ROCE) argument
|
/linux/drivers/gpu/drm/hyperv/ |
A D | hyperv_drm.h | 40 #define to_hv(_dev) container_of(_dev, struct hyperv_drm_device, dev) argument
|
/linux/include/linux/ |
A D | siox.h | 8 #define to_siox_device(_dev) container_of((_dev), struct siox_device, dev) argument
|