Home
last modified time | relevance | path

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

12345

/openbmc/linux/include/linux/soc/mediatek/
H A Dmtk_wed.h220 #define mtk_wed_device_active(_dev) !!(_dev)->ops argument
221 #define mtk_wed_device_detach(_dev) (_dev)->ops->detach(_dev) argument
222 #define mtk_wed_device_start(_dev, _mask) (_dev)->ops->start(_dev, _mask) argument
226 (_dev)->ops->txfree_ring_setup(_dev, _regs)
228 (_dev)->ops->reg_read(_dev, _reg)
230 (_dev)->ops->reg_write(_dev, _reg, _val)
232 (_dev)->ops->irq_get(_dev, _mask)
234 (_dev)->ops->irq_set_mask(_dev, _mask)
240 (_dev)->ops->msg_update(_dev, _id, _msg, _len)
241 #define mtk_wed_device_stop(_dev) (_dev)->ops->stop(_dev) argument
[all …]
/openbmc/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
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 …]
/openbmc/qemu/include/hw/ppc/
H A Dspapr_vio.h121 #define vio_stb(_dev, _addr, _val) \ argument
122 (stb_dma(&(_dev)->as, (_addr), (_val), MEMTXATTRS_UNSPECIFIED))
123 #define vio_sth(_dev, _addr, _val) \ argument
124 (stw_be_dma(&(_dev)->as, (_addr), (_val), MEMTXATTRS_UNSPECIFIED))
125 #define vio_stl(_dev, _addr, _val) \ argument
126 (stl_be_dma(&(_dev)->as, (_addr), (_val), MEMTXATTRS_UNSPECIFIED))
127 #define vio_stq(_dev, _addr, _val) \ argument
128 (stq_be_dma(&(_dev)->as, (_addr), (_val), MEMTXATTRS_UNSPECIFIED))
129 #define vio_ldq(_dev, _addr) \ argument
132 ldq_be_dma(&(_dev)->as, (_addr), &_val, MEMTXATTRS_UNSPECIFIED); \
/openbmc/u-boot/common/
H A Dstdio.c208 struct stdio_dev *_dev; in stdio_clone() local
213 _dev = calloc(1, sizeof(struct stdio_dev)); in stdio_clone()
215 if(!_dev) in stdio_clone()
218 memcpy(_dev, dev, sizeof(struct stdio_dev)); in stdio_clone()
220 return _dev; in stdio_clone()
225 struct stdio_dev *_dev; in stdio_register_dev() local
227 _dev = stdio_clone(dev); in stdio_register_dev()
228 if(!_dev) in stdio_register_dev()
230 list_add_tail(&(_dev->list), &(devs.list)); in stdio_register_dev()
232 *devp = _dev; in stdio_register_dev()
/openbmc/linux/arch/mips/include/asm/
H A Dgio_device.h50 #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
/openbmc/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 && \
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 …]
/openbmc/qemu/include/standard-headers/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 && \
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 …]
/openbmc/linux/include/drm/
H A Ddrm_kunit_helpers.h44 #define drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, _type, _member, _drv) \ argument
45 ((_type *)__drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, \
89 #define drm_kunit_helper_alloc_drm_device(_test, _dev, _type, _member, _feat) \ argument
90 ((_type *)__drm_kunit_helper_alloc_drm_device(_test, _dev, \
/openbmc/linux/include/linux/fsl/
H A Dmc.h220 #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)
/openbmc/linux/sound/pci/emu10k1/
H A Demu10k1_synth.c19 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()
68 static int snd_emu10k1_synth_remove(struct device *_dev) in snd_emu10k1_synth_remove() argument
70 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_emu10k1_synth_remove()
/openbmc/linux/sound/isa/sb/
H A Demu8000_synth.c24 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()
/openbmc/linux/drivers/thermal/
H A Dthermal_core.h105 #define to_thermal_zone(_dev) \ argument
106 container_of(_dev, struct thermal_zone_device, device)
108 #define to_cooling_device(_dev) \ argument
109 container_of(_dev, struct thermal_cooling_device, device)
/openbmc/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()
/openbmc/linux/include/scsi/
H A Dscsi_transport_iscsi.h223 #define iscsi_dev_to_conn(_dev) \ argument
224 container_of(_dev, struct iscsi_cls_conn, dev)
281 #define iscsi_dev_to_session(_dev) \ argument
282 container_of(_dev, struct iscsi_cls_session, dev)
321 #define iscsi_dev_to_iface(_dev) \ argument
322 container_of(_dev, struct iscsi_iface, dev)
365 #define iscsi_dev_to_flash_conn(_dev) \ argument
366 container_of(_dev, struct iscsi_bus_flash_conn, dev)
427 #define iscsi_dev_to_flash_session(_dev) \ argument
428 container_of(_dev, struct iscsi_bus_flash_session, dev)
/openbmc/qemu/hw/audio/
H A Dintel-hda.h56 #define dprint(_dev, _level, _fmt, ...) \ argument
58 if (_dev->debug >= _level) { \
59 fprintf(stderr, "%s: ", _dev->name); \
/openbmc/linux/drivers/xen/xenbus/
H A Dxenbus_probe.c215 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()
333 void xenbus_dev_remove(struct device *_dev) in xenbus_dev_remove() argument
[all …]
H A Dxenbus.h107 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);
/openbmc/linux/sound/drivers/opl4/
H A Dopl4_seq.c127 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()
/openbmc/linux/drivers/amba/
H A Dbus.c84 static ssize_t driver_override_show(struct device *_dev, in driver_override_show() argument
87 struct amba_device *dev = to_amba_device(_dev); in driver_override_show()
90 device_lock(_dev); in driver_override_show()
92 device_unlock(_dev); in driver_override_show()
96 static ssize_t driver_override_store(struct device *_dev, in driver_override_store() argument
100 struct amba_device *dev = to_amba_device(_dev); in driver_override_store()
103 ret = driver_set_override(_dev, &dev->driver_override, buf, count); in driver_override_store()
112 static ssize_t name##_show(struct device *_dev, \
115 struct amba_device *dev = to_amba_device(_dev); \
/openbmc/linux/arch/powerpc/include/asm/
H A Dps3.h399 const 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()
/openbmc/linux/drivers/base/
H A Dplatform.c1379 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, true); in platform_probe()
1406 dev_pm_domain_detach(_dev, true); in platform_probe()
1411 dev_warn(_dev, "probe deferral not supported\n"); in platform_probe()
1418 static void platform_remove(struct device *_dev) in platform_remove() argument
1431 dev_pm_domain_detach(_dev, true); in platform_remove()
1434 static void platform_shutdown(struct device *_dev) in platform_shutdown() argument
1439 if (!_dev->driver) in platform_shutdown()
[all …]
/openbmc/linux/drivers/siox/
H A Dsiox.h9 #define to_siox_master(_dev) container_of((_dev), struct siox_master, dev) argument
/openbmc/linux/include/sound/
H A Dseq_device.h27 #define to_seq_dev(_dev) \ argument
28 container_of(_dev, struct snd_seq_device, dev)
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/hyperv/
H A Dhyperv_drm.h40 #define to_hv(_dev) container_of(_dev, struct hyperv_drm_device, dev) argument

12345