| /linux/arch/powerpc/platforms/ps3/ |
| H 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 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 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 && \ 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 D | mc.h | 220 #define to_fsl_mc_device(_dev) \ argument 221 container_of(_dev, struct fsl_mc_device, dev) 363 #define dev_is_fsl_mc(_dev) ((_dev)->bus == &fsl_mc_bus_type) argument 366 #define dev_is_fsl_mc(_dev) (0) argument 370 #define fsl_mc_is_cont_dev(_dev) (to_fsl_mc_device(_dev)->flags & \ argument 374 #define fsl_mc_cont_dev(_dev) (fsl_mc_is_cont_dev(_dev) ? \ argument 375 (_dev) : (_dev)->parent)
|
| /linux/arch/mips/include/asm/ |
| H 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/sound/isa/sb/ |
| H 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/include/drm/ |
| H A D | drm_kunit_helpers.h | 49 #define drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, _type, _member, _drv) \ argument 50 ((_type *)__drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, \ 94 #define drm_kunit_helper_alloc_drm_device(_test, _dev, _type, _member, _feat) \ argument 95 ((_type *)__drm_kunit_helper_alloc_drm_device(_test, _dev, \
|
| /linux/include/linux/ |
| H A D | pm_runtime.h | 642 #define PM_RUNTIME_ACQUIRE(_dev, _var) \ argument 643 ACQUIRE(pm_runtime_active_try, _var)(_dev) 645 #define PM_RUNTIME_ACQUIRE_AUTOSUSPEND(_dev, _var) \ argument 646 ACQUIRE(pm_runtime_active_auto_try, _var)(_dev) 648 #define PM_RUNTIME_ACQUIRE_IF_ENABLED(_dev, _var) \ argument 649 ACQUIRE(pm_runtime_active_try_enabled, _var)(_dev) 651 #define PM_RUNTIME_ACQUIRE_IF_ENABLED_AUTOSUSPEND(_dev, _var) \ argument 652 ACQUIRE(pm_runtime_active_auto_try_enabled, _var)(_dev)
|
| H A D | siox.h | 8 #define to_siox_device(_dev) container_of((_dev), struct siox_device, dev) argument
|
| /linux/drivers/gpu/drm/gma500/ |
| H A D | power.c | 178 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/drivers/xen/xenbus/ |
| H A D | xenbus_probe.c | 97 int xenbus_match(struct device *_dev, const struct device_driver *_drv) in xenbus_match() argument 104 return match_device(drv->ids, to_xenbus_device(_dev)) != NULL; in xenbus_match() 215 static ssize_t name##_show(struct device *_dev, \ 219 struct xenbus_device *dev = to_xenbus_device(_dev); \ 230 static ssize_t spurious_threshold_show(struct device *_dev, in spurious_threshold_show() argument 234 struct xenbus_device *dev = to_xenbus_device(_dev); in spurious_threshold_show() 239 static ssize_t spurious_threshold_store(struct device *_dev, in spurious_threshold_store() argument 243 struct xenbus_device *dev = to_xenbus_device(_dev); in spurious_threshold_store() 272 int xenbus_dev_probe(struct device *_dev) in xenbus_dev_probe() argument 274 struct xenbus_device *dev = to_xenbus_device(_dev); in xenbus_dev_probe() [all …]
|
| H A D | xenbus.h | 109 int xenbus_match(struct device *_dev, const struct device_driver *_drv); 110 int xenbus_dev_probe(struct device *_dev); 111 void xenbus_dev_remove(struct device *_dev);
|
| H A D | xenbus_probe_frontend.c | 76 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/tools/testing/selftests/vfio/lib/include/libvfio/ |
| H A D | vfio_pci_device.h | 38 #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/arch/powerpc/include/asm/ |
| H A D | ps3.h | 395 const struct device *_dev) in ps3_dev_to_system_bus_dev() argument 397 return container_of(_dev, struct ps3_system_bus_device, core); in ps3_dev_to_system_bus_dev() 400 ps3_system_bus_dev_to_system_bus_drv(struct ps3_system_bus_device *_dev) in ps3_system_bus_dev_to_system_bus_drv() argument 402 BUG_ON(!_dev); in ps3_system_bus_dev_to_system_bus_drv() 403 BUG_ON(!_dev->core.driver); in ps3_system_bus_dev_to_system_bus_drv() 404 return ps3_drv_to_system_bus_drv(_dev->core.driver); in ps3_system_bus_dev_to_system_bus_drv()
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-sysfs.c | 28 ssize_t coresight_simple_show_pair(struct device *_dev, in coresight_simple_show_pair() argument 31 struct coresight_device *csdev = container_of(_dev, struct coresight_device, dev); in coresight_simple_show_pair() 35 pm_runtime_get_sync(_dev->parent); in coresight_simple_show_pair() 37 pm_runtime_put_sync(_dev->parent); in coresight_simple_show_pair() 42 ssize_t coresight_simple_show32(struct device *_dev, in coresight_simple_show32() argument 45 struct coresight_device *csdev = container_of(_dev, struct coresight_device, dev); in coresight_simple_show32() 49 pm_runtime_get_sync(_dev->parent); in coresight_simple_show32() 51 pm_runtime_put_sync(_dev->parent); in coresight_simple_show32()
|
| /linux/net/l3mdev/ |
| H 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/include/sound/ |
| H A D | seq_device.h | 27 #define to_seq_dev(_dev) \ argument 28 container_of(_dev, struct snd_seq_device, dev)
|
| /linux/drivers/siox/ |
| H A D | siox.h | 9 #define to_siox_master(_dev) container_of((_dev), struct siox_master, dev) argument
|
| /linux/drivers/infiniband/hw/qedr/ |
| H 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/ps3/ |
| H A D | vuart.h | 49 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/gpu/drm/nova/ |
| H A D | file.rs | 18 fn open(_dev: &NovaDevice) -> Result<Pin<KBox<Self>>> { in open() 59 _dev: &NovaDevice, in gem_info()
|
| /linux/drivers/scsi/ |
| H A D | ps3rom.c | 340 static int ps3rom_probe(struct ps3_system_bus_device *_dev) in ps3rom_probe() argument 342 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3rom_probe() 401 static void ps3rom_remove(struct ps3_system_bus_device *_dev) in ps3rom_remove() argument 403 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3rom_remove()
|
| /linux/drivers/usb/core/ |
| H A D | hub.h | 123 #define to_usb_port(_dev) \ argument 124 container_of(_dev, struct usb_port, dev)
|
| /linux/drivers/char/ |
| H A D | ps3flash.c | 330 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/include/linux/cdx/ |
| H A D | cdx_bus.h | 173 #define to_cdx_device(_dev) \ argument 174 container_of(_dev, struct cdx_device, dev)
|