/u-boot/drivers/pci_endpoint/ |
A D | pci_ep-uclass.c | 25 if (!ops->write_header) in pci_ep_write_header() 35 if (!ops->read_header) in pci_ep_read_header() 58 if (!ops->set_bar) in pci_ep_set_bar() 73 if (!ops->read_bar) in pci_ep_read_bar() 83 if (!ops->clear_bar) in pci_ep_clear_bar() 94 if (!ops->map_addr) in pci_ep_map_addr() 118 if (!ops->set_msi) in pci_ep_set_msi() 134 if (!ops->get_msi) in pci_ep_get_msi() 155 if (!ops->set_msix) in pci_ep_set_msix() 192 if (!ops->start) in pci_ep_start() [all …]
|
/u-boot/drivers/rtc/ |
A D | rtc-uclass.c | 17 assert(ops); in dm_rtc_get() 18 if (!ops->get) in dm_rtc_get() 27 assert(ops); in dm_rtc_set() 28 if (!ops->set) in dm_rtc_set() 37 assert(ops); in dm_rtc_reset() 38 if (!ops->reset) in dm_rtc_reset() 47 assert(ops); in dm_rtc_read() 48 if (ops->read) in dm_rtc_read() 67 assert(ops); in dm_rtc_write() 85 assert(ops); in rtc_read8() [all …]
|
/u-boot/drivers/video/ |
A D | s6e8ax0.c | 17 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() 52 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_display_cond() 66 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_gamma_cond() 88 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_etc_source_control() 100 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_etc_pentile_control() 111 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_etc_mipi_control1() 122 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_etc_mipi_control2() 133 ops->cmd_write(dsim_dev, MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_etc_power_control() [all …]
|
A D | display-uclass.c | 14 struct dm_display_ops *ops = display_get_ops(dev); in display_read_edid() local 16 if (!ops || !ops->read_edid) in display_read_edid() 18 return ops->read_edid(dev, buf, buf_size); in display_read_edid() 28 if (!ops || !ops->enable) in display_enable() 30 ret = ops->enable(dev, panel_bpp, timing); in display_enable() 45 if (ops && ops->mode_valid) in display_mode_valid() 46 return ops->mode_valid(dev, timing); in display_mode_valid() 58 if (ops && ops->read_timing) in display_read_timing() 59 return ops->read_timing(dev, timing); in display_read_timing() 61 if (!ops || !ops->read_edid) in display_read_timing() [all …]
|
A D | panel-uclass.c | 13 struct panel_ops *ops = panel_get_ops(dev); in panel_enable_backlight() local 15 if (!ops->enable_backlight) in panel_enable_backlight() 18 return ops->enable_backlight(dev); in panel_enable_backlight() 31 struct panel_ops *ops = panel_get_ops(dev); in panel_set_backlight() local 33 if (!ops->set_backlight) in panel_set_backlight() 36 return ops->set_backlight(dev, percent); in panel_set_backlight() 42 struct panel_ops *ops = panel_get_ops(dev); in panel_get_display_timing() local 44 if (!ops->get_display_timing) in panel_get_display_timing() 47 return ops->get_display_timing(dev, timings); in panel_get_display_timing()
|
/u-boot/drivers/watchdog/ |
A D | wdt-uclass.c | 65 if (!ops->start) in wdt_start() 75 if (!ops->stop) in wdt_stop() 78 return ops->stop(dev); in wdt_stop() 85 if (!ops->reset) in wdt_reset() 88 return ops->reset(dev); in wdt_reset() 98 if (ops->expire_now) { in wdt_expire_now() 101 if (!ops->start) in wdt_expire_now() 145 if (ops->start) in wdt_post_bind() 147 if (ops->stop) in wdt_post_bind() 149 if (ops->reset) in wdt_post_bind() [all …]
|
/u-boot/drivers/virtio/ |
A D | virtio-uclass.c | 36 struct dm_virtio_ops *ops; in virtio_get_config() local 46 struct dm_virtio_ops *ops; in virtio_set_config() local 55 struct dm_virtio_ops *ops; in virtio_generation() local 58 if (!ops->generation) in virtio_generation() 66 struct dm_virtio_ops *ops; in virtio_get_status() local 205 ops = (struct dm_virtio_ops *)(udev->driver->ops); in virtio_uclass_pre_probe() 213 if (!ops->get_config || !ops->set_config || in virtio_uclass_pre_probe() 214 !ops->get_status || !ops->set_status || in virtio_uclass_pre_probe() 215 !ops->get_features || !ops->set_features || in virtio_uclass_pre_probe() 216 !ops->find_vqs || !ops->del_vqs || in virtio_uclass_pre_probe() [all …]
|
/u-boot/drivers/hwspinlock/ |
A D | hwspinlock-uclass.c | 44 const struct hwspinlock_ops *ops; in hwspinlock_get_by_index() local 70 if (ops->of_xlate) in hwspinlock_get_by_index() 92 if (!ops->lock) in hwspinlock_lock_timeout() 101 if (ops->relax) in hwspinlock_lock_timeout() 102 ops->relax(hws->dev); in hwspinlock_lock_timeout() 118 if (!ops->unlock) in hwspinlock_unlock() 131 if (ops->lock) in hwspinlock_post_bind() 132 ops->lock += gd->reloc_off; in hwspinlock_post_bind() 133 if (ops->unlock) in hwspinlock_post_bind() 135 if (ops->relax) in hwspinlock_post_bind() [all …]
|
/u-boot/drivers/pch/ |
A D | pch-uclass.c | 13 struct pch_ops *ops = pch_get_ops(dev); in pch_get_spi_base() local 16 if (!ops->get_spi_base) in pch_get_spi_base() 19 return ops->get_spi_base(dev, sbasep); in pch_get_spi_base() 24 struct pch_ops *ops = pch_get_ops(dev); in pch_set_spi_protect() local 26 if (!ops->set_spi_protect) in pch_set_spi_protect() 34 struct pch_ops *ops = pch_get_ops(dev); in pch_get_gpio_base() local 37 if (!ops->get_gpio_base) in pch_get_gpio_base() 40 return ops->get_gpio_base(dev, gbasep); in pch_get_gpio_base() 48 if (!ops->get_io_base) in pch_get_io_base() 51 return ops->get_io_base(dev, iobasep); in pch_get_io_base() [all …]
|
/u-boot/drivers/sysinfo/ |
A D | sysinfo-uclass.c | 18 struct sysinfo_ops *ops = sysinfo_get_ops(dev); in sysinfo_detect() local 20 if (!ops->detect) in sysinfo_detect() 23 return ops->detect(dev); in sysinfo_detect() 29 struct sysinfo_ops *ops = sysinfo_get_ops(dev); in sysinfo_get_fit_loadable() local 31 if (!ops->get_fit_loadable) in sysinfo_get_fit_loadable() 41 if (!ops->get_bool) in sysinfo_get_bool() 44 return ops->get_bool(dev, id, val); in sysinfo_get_bool() 51 if (!ops->get_int) in sysinfo_get_int() 54 return ops->get_int(dev, id, val); in sysinfo_get_int() 61 if (!ops->get_str) in sysinfo_get_str() [all …]
|
/u-boot/drivers/dma/ |
A D | dma-uclass.c | 53 const struct dma_ops *ops; in dma_get_by_index() local 79 if (ops->of_xlate) in dma_get_by_index() 116 if (!ops->request) in dma_request() 128 if (!ops->rfree) in dma_free() 131 return ops->rfree(dma); in dma_free() 140 if (!ops->enable) in dma_enable() 152 if (!ops->disable) in dma_disable() 176 if (!ops->receive) in dma_receive() 188 if (!ops->send) in dma_send() 200 if (!ops->get_cfg) in dma_get_cfg() [all …]
|
/u-boot/drivers/misc/ |
A D | irq-uclass.c | 20 if (!ops->route_pmc_gpio_gpe) in irq_route_pmc_gpio_gpe() 30 if (!ops->set_polarity) in irq_set_polarity() 60 if (!ops->read_and_clear) in irq_read_and_clear() 104 const struct irq_ops *ops; in irq_get_by_index_tail() local 121 if (ops->of_xlate) in irq_get_by_index_tail() 152 const struct irq_ops *ops; in irq_request() local 155 ops = irq_get_ops(dev); in irq_request() 159 if (!ops->request) in irq_request() 162 return ops->request(irq); in irq_request() 179 struct irq_ops *ops; in irq_get_acpi() local [all …]
|
A D | misc-uclass.c | 19 const struct misc_ops *ops = device_get_ops(dev); in misc_read() local 21 if (!ops->read) in misc_read() 24 return ops->read(dev, offset, buf, size); in misc_read() 29 const struct misc_ops *ops = device_get_ops(dev); in misc_write() local 31 if (!ops->write) in misc_write() 34 return ops->write(dev, offset, buf, size); in misc_write() 41 if (!ops->ioctl) in misc_ioctl() 44 return ops->ioctl(dev, request, buf); in misc_ioctl() 52 if (!ops->call) in misc_call() 62 if (!ops->set_enabled) in misc_set_enabled() [all …]
|
/u-boot/drivers/pinctrl/ |
A D | pinctrl-uclass.c | 31 const struct pinctrl_ops *ops; in pinctrl_config_one() local 238 if (!ops || !ops->gpio_request_enable) in pinctrl_gpio_request() 264 if (!ops || !ops->gpio_disable_free) in pinctrl_gpio_free() 279 struct pinctrl_ops *ops; in pinctrl_select_state_simple() local 325 if (!ops->request) in pinctrl_request() 340 if (!ops->get_periph_id) in pinctrl_get_periph_id() 350 if (!ops->get_gpio_mux) in pinctrl_get_gpio_mux() 360 if (!ops->get_pins_count) in pinctrl_get_pins_count() 371 if (!ops->get_pin_name) in pinctrl_get_pin_name() 401 if (!ops) { in pinctrl_post_bind() [all …]
|
A D | pinctrl-generic.c | 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() 55 if (!ops->get_groups_count || !ops->get_group_name) { in pinctrl_group_name_to_selector() 87 if (!ops->get_functions_count || !ops->get_function_name) { in pinmux_func_name_to_selector() 121 if (!ops->pinmux_group_set) { in pinmux_enable_setting() 128 if (!ops->pinmux_set) { in pinmux_enable_setting() 164 if (!ops->pinconf_num_params || !ops->pinconf_params) { in pinconf_prop_name_to_param() 169 p = ops->pinconf_params; in pinconf_prop_name_to_param() 200 if (!ops->pinconf_group_set) { in pinconf_enable_setting() 208 if (!ops->pinconf_set) { in pinconf_enable_setting() [all …]
|
/u-boot/drivers/demo/ |
A D | demo-uclass.c | 29 const struct demo_ops *ops = device_get_ops(dev); in demo_hello() local 31 if (!ops->hello) in demo_hello() 34 return ops->hello(dev, ch); in demo_hello() 39 const struct demo_ops *ops = device_get_ops(dev); in demo_status() local 41 if (!ops->status) in demo_status() 44 return ops->status(dev, status); in demo_status() 49 const struct demo_ops *ops = device_get_ops(dev); in demo_get_light() local 51 if (!ops->get_light) in demo_get_light() 54 return ops->get_light(dev); in demo_get_light() 61 if (!ops->set_light) in demo_set_light() [all …]
|
/u-boot/drivers/serial/ |
A D | serial-uclass.c | 225 if (ops->pending) in __serial_tstc() 308 if (ops->setbrg) in serial_setbrg() 344 if (ops->getinfo) in serial_getinfo() 451 if (ops->setbrg) in serial_post_probe() 453 if (ops->getc) in serial_post_probe() 455 if (ops->putc) in serial_post_probe() 457 if (ops->pending) in serial_post_probe() 459 if (ops->clear) in serial_post_probe() 466 if (ops->loop) in serial_post_probe() 469 if (ops->getinfo) in serial_post_probe() [all …]
|
/u-boot/drivers/cache/ |
A D | cache-uclass.c | 12 struct cache_ops *ops = cache_get_ops(dev); in cache_get_info() local 14 if (!ops->get_info) in cache_get_info() 17 return ops->get_info(dev, info); in cache_get_info() 22 struct cache_ops *ops = cache_get_ops(dev); in cache_enable() local 24 if (!ops->enable) in cache_enable() 27 return ops->enable(dev); in cache_enable() 32 struct cache_ops *ops = cache_get_ops(dev); in cache_disable() local 34 if (!ops->disable) in cache_disable() 37 return ops->disable(dev); in cache_disable()
|
/u-boot/drivers/tpm/ |
A D | tpm-uclass.c | 18 struct tpm_ops *ops = tpm_get_ops(dev); in tpm_open() local 20 if (!ops->open) in tpm_open() 23 return ops->open(dev); in tpm_open() 30 if (!ops->close) in tpm_close() 33 return ops->close(dev); in tpm_close() 40 if (!ops->get_desc) in tpm_get_desc() 43 return ops->get_desc(dev, buf, size); in tpm_get_desc() 79 if (ops->xfer) in tpm_xfer() 82 if (!ops->send || !ops->recv) in tpm_xfer() 126 if (ops->cleanup) { in tpm_xfer() [all …]
|
/u-boot/arch/sandbox/lib/ |
A D | pci_io.c | 27 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() 84 if (ops && ops->write_io) { in pci_io_write() [all …]
|
/u-boot/drivers/cpu/ |
A D | cpu-uclass.c | 41 struct cpu_ops *ops = cpu_get_ops(cpu); in cpu_is_current() local 43 if (ops->is_current) { in cpu_is_current() 44 if (ops->is_current(cpu)) in cpu_is_current() 74 struct cpu_ops *ops = cpu_get_ops(dev); in cpu_get_desc() local 76 if (!ops->get_desc) in cpu_get_desc() 79 return ops->get_desc(dev, buf, size); in cpu_get_desc() 86 if (!ops->get_info) in cpu_get_info() 92 return ops->get_info(dev, info); in cpu_get_info() 99 if (!ops->get_count) in cpu_get_count() 102 return ops->get_count(dev); in cpu_get_count() [all …]
|
/u-boot/drivers/axi/ |
A D | axi_sandbox.c | 27 struct axi_emul_ops *ops; in axi_sandbox_read() local 36 ops = axi_emul_get_ops(emul); in axi_sandbox_read() 37 if (!ops || !ops->read) in axi_sandbox_read() 40 return ops->read(emul, address, data, size); in axi_sandbox_read() 46 struct axi_emul_ops *ops; in axi_sandbox_write() local 55 ops = axi_emul_get_ops(emul); in axi_sandbox_write() 56 if (!ops || !ops->write) in axi_sandbox_write() 59 return ops->write(emul, address, data, size); in axi_sandbox_write() 76 .ops = &axi_sandbox_ops,
|
/u-boot/drivers/power/regulator/ |
A D | regulator-uclass.c | 34 if (!ops || !ops->get_value) in regulator_get_value() 37 return ops->get_value(dev); in regulator_get_value() 63 if (!ops || !ops->set_value) in regulator_set_value() 117 if (!ops || !ops->set_value) in regulator_set_value_force() 127 if (!ops || !ops->get_current) in regulator_get_current() 144 if (!ops || !ops->set_current) in regulator_set_current() 154 if (!ops || !ops->get_enable) in regulator_get_enable() 166 if (!ops || !ops->set_enable) in regulator_set_enable() 226 if (!ops || !ops->get_mode) in regulator_get_mode() 229 return ops->get_mode(dev); in regulator_get_mode() [all …]
|
/u-boot/test/dm/ |
A D | mdio.c | 29 struct mdio_ops *ops; in dm_test_mdio() local 36 ops = mdio_get_ops(dev); in dm_test_mdio() 37 ut_assertnonnull(ops); in dm_test_mdio() 38 ut_assertnonnull(ops->read); in dm_test_mdio() 39 ut_assertnonnull(ops->write); in dm_test_mdio() 41 ut_assertok(ops->write(dev, SANDBOX_PHY_ADDR, MDIO_DEVAD_NONE, in dm_test_mdio() 43 reg = ops->read(dev, SANDBOX_PHY_ADDR, MDIO_DEVAD_NONE, in dm_test_mdio() 47 ut_assert(ops->read(dev, SANDBOX_PHY_ADDR + 1, MDIO_DEVAD_NONE, in dm_test_mdio() 50 ut_assertok(ops->reset(dev)); in dm_test_mdio() 51 reg = ops->read(dev, SANDBOX_PHY_ADDR, MDIO_DEVAD_NONE, in dm_test_mdio()
|
/u-boot/fs/yaffs2/ |
A D | yaffs_mtdif.c | 66 struct mtd_oob_ops ops; in nandmtd_WriteChunkToNAND() local 81 ops.mode = MTD_OPS_RAW; 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() 101 struct mtd_oob_ops ops; in nandmtd_ReadChunkFromNAND() local 116 ops.mode = MTD_OPS_RAW; in nandmtd_ReadChunkFromNAND() 119 ops.len = data ? dev->data_bytes_per_chunk : ops.ooblen; in nandmtd_ReadChunkFromNAND() 120 ops.datbuf = data; in nandmtd_ReadChunkFromNAND() [all …]
|