| /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 …]
|
| /drivers/xen/xenbus/ |
| A D | xenbus_probe.c | 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() 275 struct xenbus_driver *drv = to_xenbus_driver(_dev->driver); in xenbus_dev_probe() 339 void xenbus_dev_remove(struct device *_dev) in xenbus_dev_remove() argument [all …]
|
| 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);
|
| 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()
|
| /drivers/gpu/drm/gma500/ |
| 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()
|
| /drivers/hwtracing/coresight/ |
| A D | coresight-sysfs.c | 27 ssize_t coresight_simple_show_pair(struct device *_dev, in coresight_simple_show_pair() argument 30 struct coresight_device *csdev = container_of(_dev, struct coresight_device, dev); in coresight_simple_show_pair() 34 pm_runtime_get_sync(_dev->parent); in coresight_simple_show_pair() 36 pm_runtime_put_sync(_dev->parent); in coresight_simple_show_pair() 41 ssize_t coresight_simple_show32(struct device *_dev, in coresight_simple_show32() argument 44 struct coresight_device *csdev = container_of(_dev, struct coresight_device, dev); in coresight_simple_show32() 48 pm_runtime_get_sync(_dev->parent); in coresight_simple_show32() 50 pm_runtime_put_sync(_dev->parent); in coresight_simple_show32()
|
| /drivers/amba/ |
| A D | bus.c | 85 static ssize_t driver_override_show(struct device *_dev, in driver_override_show() argument 88 struct amba_device *dev = to_amba_device(_dev); in driver_override_show() 91 device_lock(_dev); in driver_override_show() 93 device_unlock(_dev); in driver_override_show() 97 static ssize_t driver_override_store(struct device *_dev, in driver_override_store() argument 101 struct amba_device *dev = to_amba_device(_dev); in driver_override_store() 104 ret = driver_set_override(_dev, &dev->driver_override, buf, count); in driver_override_store() 113 static ssize_t name##_show(struct device *_dev, \ 116 struct amba_device *dev = to_amba_device(_dev); \
|
| /drivers/base/ |
| A D | platform.c | 1379 static int platform_probe(struct device *_dev) in platform_probe() argument 1382 struct platform_device *dev = to_platform_device(_dev); in platform_probe() 1395 ret = of_clk_set_defaults(_dev->of_node, false); in platform_probe() 1399 ret = dev_pm_domain_attach(_dev, PD_FLAG_ATTACH_POWER_ON | in platform_probe() 1409 dev_warn(_dev, "probe deferral not supported\n"); in platform_probe() 1416 static void platform_remove(struct device *_dev) in platform_remove() argument 1419 struct platform_device *dev = to_platform_device(_dev); in platform_remove() 1425 static void platform_shutdown(struct device *_dev) in platform_shutdown() argument 1427 struct platform_device *dev = to_platform_device(_dev); in platform_shutdown() 1430 if (!_dev->driver) in platform_shutdown() [all …]
|
| /drivers/thermal/ |
| A D | thermal_core.h | 252 #define to_thermal_zone(_dev) \ argument 253 container_of(_dev, struct thermal_zone_device, device) 255 #define to_cooling_device(_dev) \ argument 256 container_of(_dev, struct thermal_cooling_device, device)
|
| /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() 421 ps3_system_bus_set_drvdata(_dev, priv); in ps3disk_probe() 481 ps3_system_bus_set_drvdata(_dev, NULL); in ps3disk_probe() 489 static void ps3disk_remove(struct ps3_system_bus_device *_dev) in ps3disk_remove() argument 491 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3disk_remove() 506 ps3_system_bus_set_drvdata(_dev, NULL); in ps3disk_remove()
|
| /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
|
| /drivers/media/pci/intel/ipu6/ |
| A D | ipu6-bus.h | 42 #define to_ipu6_bus_device(_dev) \ argument 43 container_of(to_auxiliary_dev(_dev), struct ipu6_bus_device, auxdev)
|
| /drivers/siox/ |
| A D | siox.h | 9 #define to_siox_master(_dev) container_of((_dev), struct siox_master, dev) argument
|
| /drivers/gpu/drm/hyperv/ |
| A D | hyperv_drm.h | 42 #define to_hv(_dev) container_of(_dev, struct hyperv_drm_device, dev) argument
|
| /drivers/staging/media/ipu7/ |
| A D | ipu7-bus.h | 57 #define to_ipu7_bus_device(_dev) \ argument 58 container_of(to_auxiliary_dev(_dev), struct ipu7_bus_device, auxdev)
|
| /drivers/ps3/ |
| 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()
|
| /drivers/gpu/drm/nova/ |
| A D | file.rs | 20 fn open(_dev: &NovaDevice) -> Result<Pin<KBox<Self>>> { in open() 63 _dev: &NovaDevice, in gem_info()
|
| /drivers/misc/vmw_vmci/ |
| A D | vmci_guest.c | 479 static irqreturn_t vmci_interrupt(int irq, void *_dev) in vmci_interrupt() argument 481 struct vmci_guest_device *dev = _dev; in vmci_interrupt() 529 static irqreturn_t vmci_interrupt_bm(int irq, void *_dev) in vmci_interrupt_bm() argument 531 struct vmci_guest_device *dev = _dev; in vmci_interrupt_bm() 544 static irqreturn_t vmci_interrupt_dma_datagram(int irq, void *_dev) in vmci_interrupt_dma_datagram() argument 546 struct vmci_guest_device *dev = _dev; in vmci_interrupt_dma_datagram()
|
| /drivers/scsi/ |
| 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()
|
| /drivers/media/usb/uvc/ |
| A D | uvcvideo.h | 667 #define uvc_dbg(_dev, flag, fmt, ...) \ argument 670 dev_printk(KERN_DEBUG, &(_dev)->udev->dev, fmt, \ 680 #define uvc_warn_once(_dev, warn, fmt, ...) \ argument 682 if (!test_and_set_bit(warn, &(_dev)->warnings)) \ 683 dev_info(&(_dev)->udev->dev, fmt, ##__VA_ARGS__); \
|
| /drivers/char/ |
| 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()
|
| /drivers/usb/core/ |
| A D | hub.h | 123 #define to_usb_port(_dev) \ argument 124 container_of(_dev, struct usb_port, dev)
|
| A D | endpoint.c | 26 #define to_ep_device(_dev) \ argument 27 container_of(_dev, struct ep_device, dev)
|
| /drivers/i2c/busses/ |
| A D | i2c-altera.c | 222 static irqreturn_t altr_i2c_isr_quick(int irq, void *_dev) in altr_i2c_isr_quick() argument 224 struct altr_i2c_dev *idev = _dev; in altr_i2c_isr_quick() 235 static irqreturn_t altr_i2c_isr(int irq, void *_dev) in altr_i2c_isr() argument 239 struct altr_i2c_dev *idev = _dev; in altr_i2c_isr()
|
| /drivers/nvmem/ |
| A D | layouts.c | 21 #define to_nvmem_layout_device(_dev) \ argument 22 container_of((_dev), struct nvmem_layout, dev)
|