Searched refs:ops (Results 1 - 25 of 1706) sorted by relevance

1234567891011>>

/u-boot/drivers/video/
H A Dbacklight-uclass.c15 const struct backlight_ops *ops = backlight_get_ops(dev); local
17 if (!ops->enable)
20 return ops->enable(dev);
25 const struct backlight_ops *ops = backlight_get_ops(dev); local
27 if (!ops->set_brightness)
30 return ops->set_brightness(dev, percent);
H A Ddisplay-uclass.c16 struct dm_display_ops *ops = display_get_ops(dev); local
18 if (!ops || !ops->read_edid)
20 return ops->read_edid(dev, buf, buf_size);
26 struct dm_display_ops *ops = display_get_ops(dev); local
30 if (!ops || !ops->enable)
32 ret = ops->enable(dev, panel_bpp, timing);
45 struct dm_display_ops *ops = display_get_ops(dev); local
47 if (ops
55 struct dm_display_ops *ops = display_get_ops(dev); local
[all...]
H A Dpanel-uclass.c15 struct panel_ops *ops = panel_get_ops(dev); local
17 if (!ops->enable_backlight)
20 return ops->enable_backlight(dev);
33 struct panel_ops *ops = panel_get_ops(dev); local
35 if (!ops->set_backlight)
38 return ops->set_backlight(dev, percent);
44 struct panel_ops *ops = panel_get_ops(dev); local
46 if (!ops->get_display_timing)
49 return ops->get_display_timing(dev, timings);
H A Ddsi-host-uclass.c20 struct dsi_host_ops *ops = dsi_host_get_ops(dev); local
22 if (!ops->init)
25 return ops->init(dev, device, timings, max_data_lanes, phy_ops);
30 struct dsi_host_ops *ops = dsi_host_get_ops(dev); local
32 if (!ops->enable)
35 return ops->enable(dev);
/u-boot/drivers/pch/
H A Dpch-uclass.c15 struct pch_ops *ops = pch_get_ops(dev); local
18 if (!ops->get_spi_base)
21 return ops->get_spi_base(dev, sbasep);
26 struct pch_ops *ops = pch_get_ops(dev); local
28 if (!ops->set_spi_protect)
31 return ops->set_spi_protect(dev, protect);
36 struct pch_ops *ops = pch_get_ops(dev); local
39 if (!ops->get_gpio_base)
42 return ops->get_gpio_base(dev, gbasep);
47 struct pch_ops *ops local
58 struct pch_ops *ops = pch_get_ops(dev); local
[all...]
/u-boot/drivers/misc/
H A Dmisc-uclass.c21 const struct misc_ops *ops = device_get_ops(dev); local
23 if (!ops->read)
26 return ops->read(dev, offset, buf, size);
31 const struct misc_ops *ops = device_get_ops(dev); local
33 if (!ops->write)
36 return ops->write(dev, offset, buf, size);
41 const struct misc_ops *ops = device_get_ops(dev); local
43 if (!ops->ioctl)
46 return ops->ioctl(dev, request, buf);
52 const struct misc_ops *ops local
62 const struct misc_ops *ops = device_get_ops(dev); local
[all...]
H A Dpwrseq-uclass.c14 struct pwrseq_ops *ops = pwrseq_get_ops(dev); local
16 if (!ops->set_power)
19 return ops->set_power(dev, enable);
H A Dirq-uclass.c18 const struct irq_ops *ops = irq_get_ops(dev); local
20 if (!ops->route_pmc_gpio_gpe)
23 return ops->route_pmc_gpio_gpe(dev, pmc_gpe_num);
28 const struct irq_ops *ops = irq_get_ops(dev); local
30 if (!ops->set_polarity)
33 return ops->set_polarity(dev, irq, active_low);
38 const struct irq_ops *ops = irq_get_ops(dev); local
40 if (!ops->snapshot_polarities)
43 return ops->snapshot_polarities(dev);
48 const struct irq_ops *ops local
58 const struct irq_ops *ops = irq_get_ops(irq->dev); local
110 const struct irq_ops *ops; local
158 const struct irq_ops *ops; local
185 struct irq_ops *ops; local
[all...]
/u-boot/drivers/smem/
H A Dsmem-uclass.c15 struct smem_ops *ops = smem_get_ops(dev); local
17 if (!ops->alloc)
20 return ops->alloc(host, item, size);
26 struct smem_ops *ops = smem_get_ops(dev); local
28 if (!ops->get)
31 return ops->get(host, item, size);
36 struct smem_ops *ops = smem_get_ops(dev); local
38 if (!ops->get_free_space)
41 return ops->get_free_space(host);
/u-boot/drivers/pwm/
H A Dpwm-uclass.c15 struct pwm_ops *ops = pwm_get_ops(dev); local
17 if (!ops->set_invert)
20 return ops->set_invert(dev, channel, polarity);
26 struct pwm_ops *ops = pwm_get_ops(dev); local
28 if (!ops->set_config)
31 return ops->set_config(dev, channel, period_ns, duty_ns);
36 struct pwm_ops *ops = pwm_get_ops(dev); local
38 if (!ops->set_enable)
41 return ops->set_enable(dev, channel, enable);
/u-boot/drivers/rtc/
H A Drtc-uclass.c17 struct rtc_ops *ops = rtc_get_ops(dev); local
19 assert(ops);
20 if (!ops->get)
22 return ops->get(dev, time);
27 struct rtc_ops *ops = rtc_get_ops(dev); local
29 assert(ops);
30 if (!ops->set)
32 return ops->set(dev, time);
37 struct rtc_ops *ops = rtc_get_ops(dev); local
39 assert(ops);
47 struct rtc_ops *ops = rtc_get_ops(dev); local
67 struct rtc_ops *ops = rtc_get_ops(dev); local
85 struct rtc_ops *ops = rtc_get_ops(dev); local
103 struct rtc_ops *ops = rtc_get_ops(dev); local
[all...]
/u-boot/drivers/cache/
H A Dcache-uclass.c14 struct cache_ops *ops = cache_get_ops(dev); local
16 if (!ops->get_info)
19 return ops->get_info(dev, info);
24 struct cache_ops *ops = cache_get_ops(dev); local
26 if (!ops->enable)
29 return ops->enable(dev);
34 struct cache_ops *ops = cache_get_ops(dev); local
36 if (!ops->disable)
39 return ops->disable(dev);
/u-boot/drivers/scsi/
H A Dscsi-uclass.c19 struct scsi_ops *ops = scsi_get_ops(dev); local
21 if (!ops->exec)
24 return ops->exec(dev, pccb);
29 struct scsi_ops *ops = scsi_get_ops(dev); local
31 if (!ops->bus_reset)
34 return ops->bus_reset(dev);
/u-boot/drivers/spmi/
H A Dspmi-uclass.c18 const struct dm_spmi_ops *ops = dev_get_driver_ops(dev); local
20 if (!ops || !ops->read)
23 return ops->read(dev, usid, pid, reg);
29 const struct dm_spmi_ops *ops = dev_get_driver_ops(dev); local
31 if (!ops || !ops->write)
34 return ops->write(dev, usid, pid, reg, value);
/u-boot/drivers/rng/
H A Drng-uclass.c13 const struct dm_rng_ops *ops = device_get_ops(dev); local
15 if (!ops->read)
18 return ops->read(dev, buffer, size);
/u-boot/drivers/demo/
H A Ddemo-uclass.c25 const struct demo_ops *ops = device_get_ops(dev); local
27 if (!ops->hello)
30 return ops->hello(dev, ch);
35 const struct demo_ops *ops = device_get_ops(dev); local
37 if (!ops->status)
40 return ops->status(dev, status);
45 const struct demo_ops *ops = device_get_ops(dev); local
47 if (!ops->get_light)
50 return ops->get_light(dev);
55 const struct demo_ops *ops local
[all...]
/u-boot/drivers/fuzz/
H A Dfuzzing_engine-uclass.c17 const struct dm_fuzzing_engine_ops *ops = device_get_ops(dev); local
19 if (!ops->get_input)
22 return ops->get_input(dev, data, size);
/u-boot/drivers/sysinfo/
H A Dsysinfo-uclass.c34 struct sysinfo_ops *ops = sysinfo_get_ops(dev); local
36 if (!ops->detect)
39 ret = ops->detect(dev);
50 struct sysinfo_ops *ops = sysinfo_get_ops(dev); local
55 if (!ops->get_fit_loadable)
58 return ops->get_fit_loadable(dev, index, type, strp);
64 struct sysinfo_ops *ops = sysinfo_get_ops(dev); local
69 if (!ops->get_bool)
72 return ops->get_bool(dev, id, val);
78 struct sysinfo_ops *ops local
92 struct sysinfo_ops *ops = sysinfo_get_ops(dev); local
[all...]
/u-boot/drivers/axi/
H A Daxi_sandbox.c27 struct axi_emul_ops *ops; local
36 ops = axi_emul_get_ops(emul);
37 if (!ops || !ops->read)
40 return ops->read(emul, address, data, size);
46 struct axi_emul_ops *ops; local
55 ops = axi_emul_get_ops(emul);
56 if (!ops || !ops->write)
59 return ops
[all...]
H A Daxi-uclass.c16 struct axi_ops *ops = axi_get_ops(dev); local
18 if (!ops->read)
21 return ops->read(dev, address, data, size);
27 struct axi_ops *ops = axi_get_ops(dev); local
29 if (!ops->write)
32 return ops->write(dev, address, data, size);
/u-boot/drivers/pci_endpoint/
H A Dpci_ep-uclass.c25 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
27 if (!ops->write_header)
30 return ops->write_header(dev, fn, hdr);
35 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
37 if (!ops->read_header)
40 return ops->read_header(dev, fn, hdr);
45 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
60 if (!ops->set_bar)
63 return ops->set_bar(dev, func_no, ep_bar);
69 struct pci_ep_ops *ops local
83 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
94 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
104 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
114 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
133 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
152 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
165 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
182 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
192 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
202 struct pci_ep_ops *ops = pci_ep_get_ops(dev); local
[all...]
/u-boot/drivers/sm/
H A Dsm-uclass.c15 return (const struct sm_ops *)dev->driver->ops;
20 const struct sm_ops *ops = get_sm_ops(dev); local
22 if (ops->sm_call)
23 return ops->sm_call(dev, cmd, ret, args);
31 const struct sm_ops *ops = get_sm_ops(dev); local
33 if (ops->sm_call_read)
34 return ops->sm_call_read(dev, buffer, size, cmd,
43 const struct sm_ops *ops = get_sm_ops(dev); local
45 if (ops->sm_call_write)
46 return ops
[all...]
/u-boot/drivers/fwu-mdata/
H A Dfwu-mdata-uclass.c25 const struct fwu_mdata_ops *ops = device_get_ops(dev); local
27 if (!ops->read_mdata) {
32 return ops->read_mdata(dev, mdata, primary);
42 const struct fwu_mdata_ops *ops = device_get_ops(dev); local
44 if (!ops->write_mdata) {
49 return ops->write_mdata(dev, mdata, primary);
/u-boot/drivers/button/
H A Dbutton-uclass.c33 struct button_ops *ops = button_get_ops(dev); local
35 if (!ops->get_state)
38 return ops->get_state(dev);
43 struct button_ops *ops = button_get_ops(dev); local
45 if (!ops->get_code)
48 return ops->get_code(dev);
/u-boot/drivers/pinctrl/
H A Dpinctrl-uclass.c32 const struct pinctrl_ops *ops; local
45 ops = pinctrl_get_ops(pctldev);
46 return ops->set_state(pctldev, config);
234 const struct pinctrl_ops *ops; local
244 ops = pinctrl_get_ops(pctldev);
245 assert(ops);
246 if (!ops->gpio_request_enable)
249 return ops->gpio_request_enable(pctldev, pin_selector);
261 const struct pinctrl_ops *ops; local
271 ops
288 struct pinctrl_ops *ops; local
332 struct pinctrl_ops *ops = pinctrl_get_ops(dev); local
347 struct pinctrl_ops *ops = pinctrl_get_ops(dev); local
357 struct pinctrl_ops *ops = pinctrl_get_ops(dev); local
367 struct pinctrl_ops *ops = pinctrl_get_ops(dev); local
378 struct pinctrl_ops *ops = pinctrl_get_ops(dev); local
391 struct pinctrl_ops *ops = pinctrl_get_ops(dev); local
408 const struct pinctrl_ops *ops = pinctrl_get_ops(dev); local
[all...]

Completed in 410 milliseconds

1234567891011>>