Home
last modified time | relevance | path

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

/drivers/infiniband/core/
Ddevice.c2569 struct ib_device_ops *dev_ops = &dev->ops; in ib_set_device_ops() local
2580 WARN_ON(dev_ops->driver_id != RDMA_DRIVER_UNKNOWN && in ib_set_device_ops()
2581 dev_ops->driver_id != ops->driver_id); in ib_set_device_ops()
2582 dev_ops->driver_id = ops->driver_id; in ib_set_device_ops()
2585 WARN_ON(dev_ops->owner && dev_ops->owner != ops->owner); in ib_set_device_ops()
2586 dev_ops->owner = ops->owner; in ib_set_device_ops()
2589 dev_ops->uverbs_abi_ver = ops->uverbs_abi_ver; in ib_set_device_ops()
2591 dev_ops->uverbs_no_driver_id_binding |= in ib_set_device_ops()
2594 SET_DEVICE_OP(dev_ops, add_gid); in ib_set_device_ops()
2595 SET_DEVICE_OP(dev_ops, advise_mr); in ib_set_device_ops()
[all …]
/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/net/dsa/microchip/
Dksz_common.c1502 if (dev->dev_ops->get_caps) in ksz_phylink_get_caps()
1503 dev->dev_ops->get_caps(dev, port, config); in ksz_phylink_get_caps()
1648 dev->dev_ops->cfg_port_member(dev, i, val | cpu_port); in ksz_update_port_member()
1651 dev->dev_ops->cfg_port_member(dev, port, port_member | cpu_port); in ksz_update_port_member()
1663 ret = dev->dev_ops->r_phy(dev, addr, regnum, &val); in ksz_sw_mdio_read()
1678 return dev->dev_ops->w_phy(dev, addr, regnum, val); in ksz_sw_mdio_write()
1912 pirq->reg_mask = dev->dev_ops->get_port_addr(p, REG_PORT_INT_MASK); in ksz_pirq_setup()
1913 pirq->reg_status = dev->dev_ops->get_port_addr(p, REG_PORT_INT_STATUS); in ksz_pirq_setup()
1938 ret = dev->dev_ops->reset(dev); in ksz_setup()
1950 dev->dev_ops->config_cpu_port(ds); in ksz_setup()
[all …]
Dksz_common.h115 const struct ksz_dev_ops *dev_ops; member
460 return ksz_read8(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pread8()
466 return ksz_read16(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pread16()
472 return ksz_read32(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pread32()
478 return ksz_write8(dev, dev->dev_ops->get_port_addr(port, offset), data); in ksz_pwrite8()
484 return ksz_write16(dev, dev->dev_ops->get_port_addr(port, offset), in ksz_pwrite16()
491 return ksz_write32(dev, dev->dev_ops->get_port_addr(port, offset), in ksz_pwrite32()
499 dev->dev_ops->get_port_addr(port, offset), in ksz_prmw8()
Dksz9477_i2c.c70 if (dev->dev_ops->reset) in ksz9477_i2c_shutdown()
71 dev->dev_ops->reset(dev); in ksz9477_i2c_shutdown()
Dksz_spi.c119 if (dev->dev_ops->reset) in ksz_spi_shutdown()
120 dev->dev_ops->reset(dev); in ksz_spi_shutdown()
Dlan937x_main.c201 dev->dev_ops->cfg_port_member(dev, port, member); in lan937x_port_setup()
Dksz8795.c272 dev->dev_ops->r_mib_cnt(dev, port, mib->cnt_ptr, in ksz8_port_init_cnt()
282 dev->dev_ops->r_mib_pkt(dev, port, mib->cnt_ptr, in ksz8_port_init_cnt()
/drivers/reset/
Dreset-ti-sci.c67 const struct ti_sci_dev_ops *dev_ops = &sci->ops.dev_ops; in ti_sci_reset_set() local
78 ret = dev_ops->get_device_resets(sci, control->dev_id, &reset_state); in ti_sci_reset_set()
87 ret = dev_ops->set_device_resets(sci, control->dev_id, reset_state); in ti_sci_reset_set()
148 const struct ti_sci_dev_ops *dev_ops = &sci->ops.dev_ops; in ti_sci_reset_status() local
157 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()
272 ret = kproc->ti_sci->ops.dev_ops.get_device(kproc->ti_sci, in k3_dsp_rproc_prepare()
296 ret = kproc->ti_sci->ops.dev_ops.put_device(kproc->ti_sci, in k3_dsp_rproc_unprepare()
760 ret = kproc->ti_sci->ops.dev_ops.is_on(kproc->ti_sci, kproc->ti_sci_id, in k3_dsp_rproc_probe()
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()
1121 ret = core->ti_sci->ops.dev_ops.is_on(core->ti_sci, core->ti_sci_id, in k3_r5_rproc_configure_mode()
/drivers/net/
Dloopback.c167 const struct net_device_ops *dev_ops, in gen_lo_setup() argument
191 dev->netdev_ops = dev_ops; in gen_lo_setup()
/drivers/base/power/
Ddomain.c35 __routine = genpd->dev_ops.callback; \
1213 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_finish_suspend()
1272 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_resume_noirq()
1306 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_freeze_noirq()
1331 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_thaw_noirq()
1391 if (genpd->dev_ops.stop && genpd->dev_ops.start && in genpd_restore_noirq()
2075 genpd->dev_ops.stop = pm_clk_suspend; in pm_genpd_init()
2076 genpd->dev_ops.start = pm_clk_resume; in pm_genpd_init()
/drivers/net/netdevsim/
Dbpf.c523 offmap->dev_ops = &nsim_bpf_map_ops; in nsim_bpf_map_alloc()
/drivers/net/ethernet/netronome/nfp/bpf/
Doffload.c401 offmap->dev_ops = &nfp_bpf_map_ops; in nfp_bpf_map_alloc()
/drivers/firmware/
Dti_sci.c2793 struct ti_sci_dev_ops *dops = &ops->dev_ops; in ti_sci_setup_ops()