Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 837) sorted by relevance

12345678910>>...34

/rk3399_rockchip-uboot/drivers/power/fuel_gauge/
H A Dfuel_gauge_uclass.c15 const struct dm_fuel_gauge_ops *ops = dev_get_driver_ops(dev); in fuel_gauge_capability() local
17 if (!ops || !ops->capability) in fuel_gauge_capability()
20 return ops->capability(dev); in fuel_gauge_capability()
25 const struct dm_fuel_gauge_ops *ops = dev_get_driver_ops(dev); in fuel_gauge_bat_is_exist() local
27 if (!ops || !ops->bat_is_exist) in fuel_gauge_bat_is_exist()
30 return ops->bat_is_exist(dev); in fuel_gauge_bat_is_exist()
35 const struct dm_fuel_gauge_ops *ops = dev_get_driver_ops(dev); in fuel_gauge_get_current() local
37 if (!ops || !ops->get_current) in fuel_gauge_get_current()
40 return ops->get_current(dev); in fuel_gauge_get_current()
45 const struct dm_fuel_gauge_ops *ops = dev_get_driver_ops(dev); in fuel_gauge_get_voltage() local
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dboot_android.c93 AvbOps *ops; in do_avb_init_ab_metadata() local
101 ops = avb_ops_user_new(); in do_avb_init_ab_metadata()
102 if (ops == NULL) { in do_avb_init_ab_metadata()
108 if (ops->ab_ops->write_ab_metadata(ops->ab_ops, &ab_data) != 0) { in do_avb_init_ab_metadata()
110 avb_ops_user_free(ops); in do_avb_init_ab_metadata()
115 avb_ops_user_free(ops); in do_avb_init_ab_metadata()
123 AvbOps *ops; in do_avb_ab_mark_slot_active() local
129 ops = avb_ops_user_new(); in do_avb_ab_mark_slot_active()
130 if (ops == NULL) { in do_avb_ab_mark_slot_active()
136 if (avb_ab_mark_slot_active(ops->ab_ops, slot_number) != 0) { in do_avb_ab_mark_slot_active()
[all …]
/rk3399_rockchip-uboot/drivers/crypto/
H A Dcrypto-uclass.c92 const struct dm_crypto_ops *ops; in crypto_get_device() local
112 ops = device_get_ops(dev); in crypto_get_device()
113 if (!ops || !ops->capability) in crypto_get_device()
116 cur_secure = ops->is_secure ? ops->is_secure(dev) : false; in crypto_get_device()
118 cap = ops->capability(dev); in crypto_get_device()
135 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_sha_init() local
140 if (!ops || !ops->sha_init) in crypto_sha_init()
143 return ops->sha_init(dev, ctx); in crypto_sha_init()
148 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_sha_update() local
153 if (!ops || !ops->sha_update) in crypto_sha_update()
[all …]
/rk3399_rockchip-uboot/drivers/video/
H A Ds6e8ax0.c17 struct mipi_dsim_master_ops *ops = dsim_dev->master_ops; in s6e8ax0_panel_cond() local
36 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_panel_cond()
40 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_panel_cond()
47 struct mipi_dsim_master_ops *ops = dsim_dev->master_ops; in s6e8ax0_display_cond() local
52 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_display_cond()
58 struct mipi_dsim_master_ops *ops = dsim_dev->master_ops; in s6e8ax0_gamma_cond() local
66 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_gamma_cond()
72 struct mipi_dsim_master_ops *ops = dsim_dev->master_ops; in s6e8ax0_gamma_update() local
77 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_SHORT_WRITE_PARAM, data_to_send, in s6e8ax0_gamma_update()
83 struct mipi_dsim_master_ops *ops = dsim_dev->master_ops; in s6e8ax0_etc_source_control() local
[all …]
H A Ddisplay-uclass.c15 struct dm_display_ops *ops = display_get_ops(dev); in display_read_edid() local
17 if (!ops || !ops->read_edid) in display_read_edid()
19 return ops->read_edid(dev, buf, buf_size); in display_read_edid()
25 struct dm_display_ops *ops = display_get_ops(dev); in display_enable() local
29 if (!ops || !ops->enable) in display_enable()
31 ret = ops->enable(dev, panel_bpp, timing); in display_enable()
43 struct dm_display_ops *ops = display_get_ops(dev); in display_read_timing() local
48 if (ops && ops->read_timing) in display_read_timing()
49 return ops->read_timing(dev, timing); in display_read_timing()
51 if (!ops || !ops->read_edid) in display_read_timing()
[all …]
/rk3399_rockchip-uboot/drivers/rtc/
H A Drtc-uclass.c15 struct rtc_ops *ops = rtc_get_ops(dev); in dm_rtc_get() local
17 assert(ops); in dm_rtc_get()
18 if (!ops->get) in dm_rtc_get()
20 return ops->get(dev, time); in dm_rtc_get()
25 struct rtc_ops *ops = rtc_get_ops(dev); in dm_rtc_set() local
27 assert(ops); in dm_rtc_set()
28 if (!ops->set) in dm_rtc_set()
30 return ops->set(dev, time); in dm_rtc_set()
35 struct rtc_ops *ops = rtc_get_ops(dev); in dm_rtc_reset() local
37 assert(ops); in dm_rtc_reset()
[all …]
/rk3399_rockchip-uboot/drivers/watchdog/
H A Dwdt-uclass.c18 const struct wdt_ops *ops = device_get_ops(dev); in wdt_start() local
20 if (!ops->start) in wdt_start()
23 return ops->start(dev, timeout_ms, flags); in wdt_start()
28 const struct wdt_ops *ops = device_get_ops(dev); in wdt_stop() local
30 if (!ops->stop) in wdt_stop()
33 return ops->stop(dev); in wdt_stop()
38 const struct wdt_ops *ops = device_get_ops(dev); in wdt_reset() local
40 if (!ops->reset) in wdt_reset()
43 return ops->reset(dev); in wdt_reset()
49 const struct wdt_ops *ops; in wdt_expire_now() local
[all …]
/rk3399_rockchip-uboot/drivers/misc/
H A Dmisc-uclass.c20 const struct misc_ops *ops = device_get_ops(dev); in misc_read() local
22 if (!ops->read) in misc_read()
25 return ops->read(dev, offset, buf, size); in misc_read()
30 const struct misc_ops *ops = device_get_ops(dev); in misc_write() local
32 if (!ops->write) in misc_write()
35 return ops->write(dev, offset, buf, size); in misc_write()
40 const struct misc_ops *ops = device_get_ops(dev); in misc_ioctl() local
42 if (!ops->ioctl) in misc_ioctl()
45 return ops->ioctl(dev, request, buf); in misc_ioctl()
51 const struct misc_ops *ops = device_get_ops(dev); in misc_call() local
[all …]
/rk3399_rockchip-uboot/lib/avb/libavb_user/
H A Davb_ops_user.c71 static AvbIOResult get_size_of_partition(AvbOps *ops, in get_size_of_partition() argument
91 static AvbIOResult read_from_partition(AvbOps *ops, in read_from_partition() argument
104 if (get_size_of_partition(ops, partition, &partition_size)) in read_from_partition()
147 static AvbIOResult write_to_partition(AvbOps *ops, in write_to_partition() argument
188 validate_vbmeta_public_key(AvbOps *ops, in validate_vbmeta_public_key() argument
199 avb_atx_validate_vbmeta_public_key(ops, in validate_vbmeta_public_key()
213 static AvbIOResult read_rollback_index(AvbOps *ops, in read_rollback_index() argument
264 static AvbIOResult write_rollback_index(AvbOps *ops, in write_rollback_index() argument
279 static AvbIOResult read_is_device_unlocked(AvbOps *ops, bool *out_is_unlocked) in read_is_device_unlocked() argument
330 static AvbIOResult write_is_device_unlocked(AvbOps *ops, bool *out_is_unlocked) in write_is_device_unlocked() argument
[all …]
/rk3399_rockchip-uboot/drivers/pinctrl/
H A Dpinctrl-uclass.c41 const struct pinctrl_ops *ops; in pinctrl_config_one() local
54 ops = pinctrl_get_ops(pctldev); in pinctrl_config_one()
55 return ops->set_state(pctldev, config); in pinctrl_config_one()
234 const struct pinctrl_ops *ops; in pinctrl_gpio_request() local
244 ops = pinctrl_get_ops(pctldev); in pinctrl_gpio_request()
245 assert(ops); in pinctrl_gpio_request()
246 if (!ops->gpio_request_enable) in pinctrl_gpio_request()
249 return ops->gpio_request_enable(pctldev, pin_selector); in pinctrl_gpio_request()
261 const struct pinctrl_ops *ops; in pinctrl_gpio_free() local
271 ops = pinctrl_get_ops(pctldev); in pinctrl_gpio_free()
[all …]
H A Dpinctrl-generic.c21 const struct pinctrl_ops *ops = pinctrl_get_ops(dev); in pinctrl_pin_name_to_selector() local
24 if (!ops->get_pins_count || !ops->get_pin_name) { in pinctrl_pin_name_to_selector()
29 npins = ops->get_pins_count(dev); in pinctrl_pin_name_to_selector()
33 const char *pname = ops->get_pin_name(dev, selector); in pinctrl_pin_name_to_selector()
52 const struct pinctrl_ops *ops = pinctrl_get_ops(dev); in pinctrl_group_name_to_selector() local
55 if (!ops->get_groups_count || !ops->get_group_name) { in pinctrl_group_name_to_selector()
60 ngroups = ops->get_groups_count(dev); in pinctrl_group_name_to_selector()
64 const char *gname = ops->get_group_name(dev, selector); in pinctrl_group_name_to_selector()
84 const struct pinctrl_ops *ops = pinctrl_get_ops(dev); in pinmux_func_name_to_selector() local
87 if (!ops->get_functions_count || !ops->get_function_name) { in pinmux_func_name_to_selector()
[all …]
/rk3399_rockchip-uboot/drivers/phy/
H A Dphy-uclass.c41 return (struct phy_ops *)dev->driver->ops; in phy_dev_ops()
125 struct phy_ops *ops; in generic_phy_get_by_index() local
150 ops = phy_dev_ops(phydev); in generic_phy_get_by_index()
152 if (ops->of_xlate) in generic_phy_get_by_index()
153 ret = ops->of_xlate(phy, &args); in generic_phy_get_by_index()
192 struct phy_ops const *ops; in generic_phy_init() local
197 ops = phy_dev_ops(phy->dev); in generic_phy_init()
198 if (!ops->init) in generic_phy_init()
207 ret = ops->init(phy); in generic_phy_init()
219 struct phy_ops const *ops; in generic_phy_reset() local
[all …]
/rk3399_rockchip-uboot/drivers/power/regulator/
H A Dregulator-uclass.c33 const struct dm_regulator_ops *ops = dev_get_driver_ops(dev); in regulator_get_value() local
35 if (!ops || !ops->get_value) in regulator_get_value()
38 return ops->get_value(dev); in regulator_get_value()
43 const struct dm_regulator_ops *ops = dev_get_driver_ops(dev); in regulator_set_value() local
54 if (!ops || !ops->set_value) in regulator_set_value()
57 if ((uc_pdata->ramp_delay != -ENODATA) || ops->get_ramp_delay) { in regulator_set_value()
58 if (!ops->get_value) in regulator_set_value()
60 old_uV = ops->get_value(dev); in regulator_set_value()
65 ret = ops->set_value(dev, uV); in regulator_set_value()
68 if (ops->get_ramp_delay) in regulator_set_value()
[all …]
/rk3399_rockchip-uboot/drivers/pch/
H A Dpch-uclass.c16 struct pch_ops *ops = pch_get_ops(dev); in pch_get_spi_base() local
19 if (!ops->get_spi_base) in pch_get_spi_base()
22 return ops->get_spi_base(dev, sbasep); in pch_get_spi_base()
27 struct pch_ops *ops = pch_get_ops(dev); in pch_set_spi_protect() local
29 if (!ops->set_spi_protect) in pch_set_spi_protect()
32 return ops->set_spi_protect(dev, protect); in pch_set_spi_protect()
37 struct pch_ops *ops = pch_get_ops(dev); in pch_get_gpio_base() local
40 if (!ops->get_gpio_base) in pch_get_gpio_base()
43 return ops->get_gpio_base(dev, gbasep); in pch_get_gpio_base()
48 struct pch_ops *ops = pch_get_ops(dev); in pch_get_io_base() local
[all …]
/rk3399_rockchip-uboot/drivers/power/pmic/
H A Dpmic-uclass.c121 const struct dm_pmic_ops *ops = dev_get_driver_ops(dev); in pmic_reg_count() local
123 if (!ops || !ops->reg_count) in pmic_reg_count()
126 return ops->reg_count(dev); in pmic_reg_count()
131 const struct dm_pmic_ops *ops = dev_get_driver_ops(dev); in pmic_read() local
136 if (!ops || !ops->read) in pmic_read()
139 return ops->read(dev, reg, buffer, len); in pmic_read()
144 const struct dm_pmic_ops *ops = dev_get_driver_ops(dev); in pmic_write() local
149 if (!ops || !ops->write) in pmic_write()
152 return ops->write(dev, reg, buffer, len); in pmic_write()
194 const struct dm_pmic_ops *ops = dev_get_driver_ops(dev); in pmic_suspend() local
[all …]
/rk3399_rockchip-uboot/drivers/tpm/
H A Dtpm-uclass.c16 struct tpm_ops *ops = tpm_get_ops(dev); in tpm_open() local
18 if (!ops->open) in tpm_open()
21 return ops->open(dev); in tpm_open()
26 struct tpm_ops *ops = tpm_get_ops(dev); in tpm_close() local
28 if (!ops->close) in tpm_close()
31 return ops->close(dev); in tpm_close()
36 struct tpm_ops *ops = tpm_get_ops(dev); in tpm_get_desc() local
38 if (!ops->get_desc) in tpm_get_desc()
41 return ops->get_desc(dev, buf, size); in tpm_get_desc()
72 struct tpm_ops *ops = tpm_get_ops(dev); in tpm_xfer() local
[all …]
/rk3399_rockchip-uboot/drivers/video/bridge/
H A Dvideo-bridge-uclass.c16 struct video_bridge_ops *ops = video_bridge_get_ops(dev); in video_bridge_set_backlight() local
18 if (!ops->set_backlight) in video_bridge_set_backlight()
21 return ops->set_backlight(dev, percent); in video_bridge_set_backlight()
26 struct video_bridge_ops *ops = video_bridge_get_ops(dev); in video_bridge_attach() local
28 if (!ops->attach) in video_bridge_attach()
31 return ops->attach(dev); in video_bridge_attach()
37 struct video_bridge_ops *ops = video_bridge_get_ops(dev); in video_bridge_check_attached() local
40 if (!ops->check_attached) { in video_bridge_check_attached()
46 return ops->check_attached(dev); in video_bridge_check_attached()
51 struct video_bridge_ops *ops = video_bridge_get_ops(dev); in video_bridge_read_edid() local
[all …]
/rk3399_rockchip-uboot/drivers/sound/
H A Drockchip-sound.c34 const struct snd_soc_dai_ops *ops = dev_get_driver_ops(dev); in sound_hw_params() local
36 if (!ops || !ops->hw_params) in sound_hw_params()
39 return ops->hw_params(dev, samplerate, fmt, channels); in sound_hw_params()
44 const struct snd_soc_dai_ops *ops = dev_get_driver_ops(dev); in sound_startup() local
46 if (!ops || !ops->startup) in sound_startup()
49 return ops->startup(dev); in sound_startup()
54 const struct snd_soc_dai_ops *ops = dev_get_driver_ops(dev); in sound_set_sysclk() local
56 if (!ops || !ops->set_sysclk) in sound_set_sysclk()
59 return ops->set_sysclk(dev, freq); in sound_set_sysclk()
96 const struct snd_soc_dai_ops *ops = dev_get_driver_ops(dev); in _sound_play() local
[all …]
/rk3399_rockchip-uboot/drivers/demo/
H A Ddemo-uclass.c28 const struct demo_ops *ops = device_get_ops(dev); in demo_hello() local
30 if (!ops->hello) in demo_hello()
33 return ops->hello(dev, ch); in demo_hello()
38 const struct demo_ops *ops = device_get_ops(dev); in demo_status() local
40 if (!ops->status) in demo_status()
43 return ops->status(dev, status); in demo_status()
48 const struct demo_ops *ops = device_get_ops(dev); in demo_get_light() local
50 if (!ops->get_light) in demo_get_light()
53 return ops->get_light(dev); in demo_get_light()
58 const struct demo_ops *ops = device_get_ops(dev); in demo_set_light() local
[all …]
/rk3399_rockchip-uboot/arch/sandbox/lib/
H A Dpci_io.c27 struct dm_pci_emul_ops *ops = pci_get_emul_ops(dev); in pci_map_physmem() local
29 if (!ops || !ops->map_physmem) in pci_map_physmem()
31 ret = (ops->map_physmem)(dev, paddr, lenp, ptrp); in pci_map_physmem()
45 struct dm_pci_emul_ops *ops = pci_get_emul_ops(dev); in pci_unmap_physmem() local
47 if (!ops || !ops->unmap_physmem) in pci_unmap_physmem()
49 return (ops->unmap_physmem)(dev, vaddr, len); in pci_unmap_physmem()
61 struct dm_pci_emul_ops *ops = pci_get_emul_ops(dev); in pci_io_read() local
63 if (ops && ops->read_io) { in pci_io_read()
64 ret = (ops->read_io)(dev, addr, valuep, size); in pci_io_read()
82 struct dm_pci_emul_ops *ops = pci_get_emul_ops(dev); in pci_io_write() local
[all …]
/rk3399_rockchip-uboot/fs/yaffs2/
H A Dyaffs_mtdif.c66 struct mtd_oob_ops ops; in nandmtd_WriteChunkToNAND() local
78 ops.mode = MTD_OPS_AUTO_OOB; in nandmtd_WriteChunkToNAND()
79 ops.ooblen = 8; /* temp hack */ in nandmtd_WriteChunkToNAND()
81 ops.mode = MTD_OPS_RAW; in nandmtd_WriteChunkToNAND()
82 ops.ooblen = YAFFS_BYTES_PER_SPARE; in nandmtd_WriteChunkToNAND()
84 ops.len = data ? dev->data_bytes_per_chunk : ops.ooblen; in nandmtd_WriteChunkToNAND()
85 ops.datbuf = (u8 *)data; in nandmtd_WriteChunkToNAND()
86 ops.ooboffs = 0; in nandmtd_WriteChunkToNAND()
87 ops.oobbuf = spareAsBytes; in nandmtd_WriteChunkToNAND()
88 retval = mtd_write_oob(mtd, addr, &ops); in nandmtd_WriteChunkToNAND()
[all …]
/rk3399_rockchip-uboot/drivers/cpu/
H A Dcpu-uclass.c19 struct cpu_ops *ops = cpu_get_ops(dev); in cpu_get_desc() local
21 if (!ops->get_desc) in cpu_get_desc()
24 return ops->get_desc(dev, buf, size); in cpu_get_desc()
29 struct cpu_ops *ops = cpu_get_ops(dev); in cpu_get_info() local
31 if (!ops->get_info) in cpu_get_info()
34 return ops->get_info(dev, info); in cpu_get_info()
39 struct cpu_ops *ops = cpu_get_ops(dev); in cpu_get_count() local
41 if (!ops->get_count) in cpu_get_count()
44 return ops->get_count(dev); in cpu_get_count()
49 struct cpu_ops *ops = cpu_get_ops(dev); in cpu_get_vendor() local
[all …]
/rk3399_rockchip-uboot/drivers/input/
H A Drc-uclass.c12 const struct dm_rc_ops *ops = dev_get_driver_ops(dev); in rc_get_keycode() local
14 if (!ops || !ops->get_keycode) in rc_get_keycode()
17 return ops->get_keycode(dev); in rc_get_keycode()
22 const struct dm_rc_ops *ops = dev_get_driver_ops(dev); in rc_get_repeat() local
24 if (!ops || !ops->get_repeat) in rc_get_repeat()
27 return ops->get_repeat(dev); in rc_get_repeat()
/rk3399_rockchip-uboot/drivers/serial/
H A Dserial-uclass.c158 struct dm_serial_ops *ops = serial_get_ops(dev); in _serial_putc() local
165 err = ops->putc(dev, ch); in _serial_putc()
177 struct dm_serial_ops *ops = serial_get_ops(dev); in __serial_getc() local
181 err = ops->getc(dev); in __serial_getc()
191 struct dm_serial_ops *ops = serial_get_ops(dev); in __serial_tstc() local
193 if (ops->pending) in __serial_tstc()
194 return ops->pending(dev, true); in __serial_tstc()
201 struct dm_serial_ops *ops = serial_get_ops(dev); in __serial_clear() local
203 if (ops->clear) in __serial_clear()
204 ops->clear(dev); in __serial_clear()
[all …]
/rk3399_rockchip-uboot/drivers/pci/
H A Dpci_sandbox.c20 struct dm_pci_emul_ops *ops; in sandbox_pci_write_config() local
27 ops = pci_get_emul_ops(emul); in sandbox_pci_write_config()
28 if (!ops || !ops->write_config) in sandbox_pci_write_config()
31 return ops->write_config(emul, offset, value, size); in sandbox_pci_write_config()
38 struct dm_pci_emul_ops *ops; in sandbox_pci_read_config() local
47 ops = pci_get_emul_ops(emul); in sandbox_pci_read_config()
48 if (!ops || !ops->read_config) in sandbox_pci_read_config()
51 return ops->read_config(emul, offset, valuep, size); in sandbox_pci_read_config()
68 .ops = &sandbox_pci_ops,

12345678910>>...34