Home
last modified time | relevance | path

Searched refs:dev_ops (Results 1 – 17 of 17) sorted by relevance

/drivers/infiniband/core/
Ddevice.c2568 struct ib_device_ops *dev_ops = &dev->ops; in ib_set_device_ops() local
2579 WARN_ON(dev_ops->driver_id != RDMA_DRIVER_UNKNOWN && in ib_set_device_ops()
2580 dev_ops->driver_id != ops->driver_id); in ib_set_device_ops()
2581 dev_ops->driver_id = ops->driver_id; in ib_set_device_ops()
2584 WARN_ON(dev_ops->owner && dev_ops->owner != ops->owner); in ib_set_device_ops()
2585 dev_ops->owner = ops->owner; in ib_set_device_ops()
2588 dev_ops->uverbs_abi_ver = ops->uverbs_abi_ver; in ib_set_device_ops()
2590 dev_ops->uverbs_no_driver_id_binding |= in ib_set_device_ops()
2593 SET_DEVICE_OP(dev_ops, add_gid); in ib_set_device_ops()
2594 SET_DEVICE_OP(dev_ops, advise_mr); in ib_set_device_ops()
[all …]
/drivers/net/dsa/microchip/
Dksz_common.c38 dev->dev_ops->cfg_port_member(dev, i, dev->member); in ksz_update_port_member()
50 dev->dev_ops->r_mib_cnt(dev, port, mib->cnt_ptr, in port_r_cnt()
60 dev->dev_ops->r_mib_pkt(dev, port, mib->cnt_ptr, in port_r_cnt()
107 dev->dev_ops->port_init_cnt(dev, i); in ksz_init_mib_timer()
116 dev->dev_ops->r_phy(dev, addr, reg, &val); in ksz_phy_read16()
126 dev->dev_ops->w_phy(dev, addr, reg, val); in ksz_phy_write16()
212 dev->dev_ops->flush_dyn_mac_table(dev, port); in ksz_port_fast_age()
230 ret = dev->dev_ops->r_dyn_mac_table(dev, i, alu.mac, &fid, in ksz_port_fdb_dump()
257 if (!dev->dev_ops->r_sta_mac_table(dev, index, &alu)) { in ksz_port_mdb_add()
286 dev->dev_ops->w_sta_mac_table(dev, index, &alu); in ksz_port_mdb_add()
[all …]
Dksz_common.h55 const struct ksz_dev_ops *dev_ops; member
245 ksz_read8(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pread8()
251 ksz_read16(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pread16()
257 ksz_read32(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pread32()
263 ksz_write8(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pwrite8()
269 ksz_write16(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pwrite16()
275 ksz_write32(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pwrite32()
Dksz9477_i2c.c74 if (dev->dev_ops->shutdown) in ksz9477_i2c_shutdown()
75 dev->dev_ops->shutdown(dev); in ksz9477_i2c_shutdown()
Dksz8795_spi.c109 if (dev->dev_ops->shutdown) in ksz8795_spi_shutdown()
110 dev->dev_ops->shutdown(dev); in ksz8795_spi_shutdown()
Dksz8795.c436 dev->dev_ops->r_mib_cnt(dev, port, mib->cnt_ptr, in ksz8_port_init_cnt()
446 dev->dev_ops->r_mib_pkt(dev, port, mib->cnt_ptr, in ksz8_port_init_cnt()
/drivers/gpu/drm/i915/display/
Dintel_dvo.c61 .dev_ops = &sil164_ops,
69 .dev_ops = &ch7xxx_ops,
77 .dev_ops = &ch7xxx_ops,
85 .dev_ops = &ivch_ops,
93 .dev_ops = &tfp410_ops,
102 .dev_ops = &ch7017_ops,
110 .dev_ops = &ns2501_ops,
146 return intel_dvo->dev.dev_ops->get_hw_state(&intel_dvo->dev); in intel_dvo_connector_get_hw_state()
197 intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, false); in intel_disable_dvo()
212 intel_dvo->dev.dev_ops->mode_set(&intel_dvo->dev, in intel_enable_dvo()
[all …]
Dintel_dvo_dev.h42 const struct intel_dvo_dev_ops *dev_ops; member
/drivers/reset/
Dreset-ti-sci.c75 const struct ti_sci_dev_ops *dev_ops = &sci->ops.dev_ops; in ti_sci_reset_set() local
86 ret = dev_ops->get_device_resets(sci, control->dev_id, &reset_state); in ti_sci_reset_set()
95 ret = dev_ops->set_device_resets(sci, control->dev_id, reset_state); in ti_sci_reset_set()
156 const struct ti_sci_dev_ops *dev_ops = &sci->ops.dev_ops; in ti_sci_reset_status() local
165 ret = dev_ops->get_device_resets(sci, control->dev_id, &reset_state); in ti_sci_reset_status()
/drivers/soc/ti/
Dti_sci_pm_domains.c63 return ti_sci->ops.dev_ops.put_device(ti_sci, pd->idx); in ti_sci_pd_power_off()
76 return ti_sci->ops.dev_ops.get_device_exclusive(ti_sci, in ti_sci_pd_power_on()
79 return ti_sci->ops.dev_ops.get_device(ti_sci, pd->idx); in ti_sci_pd_power_on()
/drivers/remoteproc/
Dti_k3_dsp_remoteproc.c180 ret = kproc->ti_sci->ops.dev_ops.put_device(kproc->ti_sci, in k3_dsp_rproc_reset()
200 ret = kproc->ti_sci->ops.dev_ops.get_device(kproc->ti_sci, in k3_dsp_rproc_release()
211 if (kproc->ti_sci->ops.dev_ops.put_device(kproc->ti_sci, in k3_dsp_rproc_release()
234 ret = kproc->ti_sci->ops.dev_ops.get_device(kproc->ti_sci, in k3_dsp_rproc_prepare()
258 ret = kproc->ti_sci->ops.dev_ops.put_device(kproc->ti_sci, in k3_dsp_rproc_unprepare()
Dti_k3_r5_remoteproc.c241 ret = core->ti_sci->ops.dev_ops.put_device(core->ti_sci, in k3_r5_split_reset()
257 ret = core->ti_sci->ops.dev_ops.get_device(core->ti_sci, in k3_r5_split_release()
269 if (core->ti_sci->ops.dev_ops.put_device(core->ti_sci, in k3_r5_split_release()
295 ret = core->ti_sci->ops.dev_ops.put_device(core->ti_sci, in k3_r5_lockstep_reset()
308 if (core->ti_sci->ops.dev_ops.put_device(core->ti_sci, in k3_r5_lockstep_reset()
329 ret = core->ti_sci->ops.dev_ops.get_device(core->ti_sci, in k3_r5_lockstep_release()
359 if (core->ti_sci->ops.dev_ops.put_device(core->ti_sci, in k3_r5_lockstep_release()
/drivers/net/
Dloopback.c166 const struct net_device_ops *dev_ops, in gen_lo_setup() argument
190 dev->netdev_ops = dev_ops; in gen_lo_setup()
/drivers/base/power/
Ddomain.c35 __routine = genpd->dev_ops.callback; \
1198 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_finish_suspend()
1257 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_resume_noirq()
1291 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_freeze_noirq()
1316 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_thaw_noirq()
1376 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_restore_noirq()
1998 genpd->dev_ops.stop = pm_clk_suspend; in pm_genpd_init()
1999 genpd->dev_ops.start = pm_clk_resume; in pm_genpd_init()
/drivers/net/ethernet/netronome/nfp/bpf/
Doffload.c401 offmap->dev_ops = &nfp_bpf_map_ops; in nfp_bpf_map_alloc()
/drivers/net/netdevsim/
Dbpf.c523 offmap->dev_ops = &nsim_bpf_map_ops; in nsim_bpf_map_alloc()
/drivers/firmware/
Dti_sci.c2777 struct ti_sci_dev_ops *dops = &ops->dev_ops; in ti_sci_setup_ops()