/u-boot/drivers/pci_endpoint/ |
A D | pci_ep-uclass.c | 27 if (!ops->write_header) in pci_ep_write_header() 37 if (!ops->read_header) in pci_ep_read_header() 60 if (!ops->set_bar) in pci_ep_set_bar() 75 if (!ops->read_bar) in pci_ep_read_bar() 85 if (!ops->clear_bar) in pci_ep_clear_bar() 96 if (!ops->map_addr) in pci_ep_map_addr() 120 if (!ops->set_msi) in pci_ep_set_msi() 136 if (!ops->get_msi) in pci_ep_get_msi() 157 if (!ops->set_msix) in pci_ep_set_msix() 194 if (!ops->start) in pci_ep_start() [all …]
|
/u-boot/drivers/rtc/ |
A D | rtc-uclass.c | 19 assert(ops); in dm_rtc_get() 20 if (!ops->get) in dm_rtc_get() 29 assert(ops); in dm_rtc_set() 30 if (!ops->set) in dm_rtc_set() 39 assert(ops); in dm_rtc_reset() 40 if (!ops->reset) in dm_rtc_reset() 49 assert(ops); in dm_rtc_read() 50 if (ops->read) in dm_rtc_read() 69 assert(ops); in dm_rtc_write() 87 assert(ops); in rtc_read8() [all …]
|
/u-boot/drivers/cpu/ |
A D | cpu-uclass.c | 36 if (ops->is_current) { in cpu_is_current() 37 if (ops->is_current(cpu)) in cpu_is_current() 69 if (!ops->get_desc) in cpu_get_desc() 79 if (!ops->get_info) in cpu_get_info() 92 if (!ops->get_count) in cpu_get_count() 102 if (!ops->get_vendor) in cpu_get_vendor() 138 if (ops->get_desc) in uclass_cpu_post_bind() 140 if (ops->get_info) in uclass_cpu_post_bind() 142 if (ops->get_count) in uclass_cpu_post_bind() 144 if (ops->get_vendor) in uclass_cpu_post_bind() [all …]
|
/u-boot/drivers/video/ |
A D | display-uclass.c | 16 struct dm_display_ops *ops = display_get_ops(dev); in display_read_edid() local 18 if (!ops || !ops->read_edid) in display_read_edid() 20 return ops->read_edid(dev, buf, buf_size); in display_read_edid() 30 if (!ops || !ops->enable) in display_enable() 32 ret = ops->enable(dev, panel_bpp, timing); in display_enable() 47 if (ops && ops->mode_valid) in display_mode_valid() 48 return ops->mode_valid(dev, timing); in display_mode_valid() 60 if (ops && ops->read_timing) in display_read_timing() 61 return ops->read_timing(dev, timing); in display_read_timing() 63 if (!ops || !ops->read_edid) in display_read_timing() [all …]
|
A D | panel-uclass.c | 15 struct panel_ops *ops = panel_get_ops(dev); in panel_enable_backlight() local 17 if (!ops->enable_backlight) in panel_enable_backlight() 20 return ops->enable_backlight(dev); in panel_enable_backlight() 33 struct panel_ops *ops = panel_get_ops(dev); in panel_set_backlight() local 35 if (!ops->set_backlight) in panel_set_backlight() 38 return ops->set_backlight(dev, percent); in panel_set_backlight() 44 struct panel_ops *ops = panel_get_ops(dev); in panel_get_display_timing() local 46 if (!ops->get_display_timing) in panel_get_display_timing() 49 return ops->get_display_timing(dev, timings); in panel_get_display_timing()
|
/u-boot/drivers/fwu-mdata/ |
A D | fwu-mdata-uclass.c | 32 const struct fwu_mdata_ops *ops = device_get_ops(dev); in fwu_get_mdata_part_num() local 34 if (!ops->get_mdata_part_num) { in fwu_get_mdata_part_num() 39 return ops->get_mdata_part_num(dev, mdata_parts); in fwu_get_mdata_part_num() 58 if (!ops->read_mdata_partition) { in fwu_read_mdata_partition() 82 if (!ops->write_mdata_partition) { in fwu_write_mdata_partition() 104 if (!ops->check_mdata) { in fwu_mdata_check() 109 return ops->check_mdata(dev); in fwu_mdata_check() 131 if (!ops->get_mdata) { in fwu_get_mdata() 136 return ops->get_mdata(dev, mdata); in fwu_get_mdata() 167 if (!ops->update_mdata) { in fwu_update_mdata() [all …]
|
/u-boot/drivers/hwspinlock/ |
A D | hwspinlock-uclass.c | 46 const struct hwspinlock_ops *ops; in hwspinlock_get_by_index() local 72 if (ops->of_xlate) in hwspinlock_get_by_index() 94 if (!ops->lock) in hwspinlock_lock_timeout() 103 if (ops->relax) in hwspinlock_lock_timeout() 104 ops->relax(hws->dev); in hwspinlock_lock_timeout() 120 if (!ops->unlock) in hwspinlock_unlock() 133 if (ops->lock) in hwspinlock_post_bind() 134 ops->lock += gd->reloc_off; in hwspinlock_post_bind() 135 if (ops->unlock) in hwspinlock_post_bind() 137 if (ops->relax) in hwspinlock_post_bind() [all …]
|
/u-boot/drivers/virtio/ |
A D | virtio-uclass.c | 39 struct dm_virtio_ops *ops; in virtio_get_config() local 49 struct dm_virtio_ops *ops; in virtio_set_config() local 58 struct dm_virtio_ops *ops; in virtio_generation() local 61 if (!ops->generation) in virtio_generation() 69 struct dm_virtio_ops *ops; in virtio_get_status() local 195 ops = (struct dm_virtio_ops *)(udev->driver->ops); in virtio_uclass_pre_probe() 203 if (!ops->get_config || !ops->set_config || in virtio_uclass_pre_probe() 204 !ops->get_status || !ops->set_status || in virtio_uclass_pre_probe() 205 !ops->get_features || !ops->set_features || in virtio_uclass_pre_probe() 206 !ops->find_vqs || !ops->del_vqs || in virtio_uclass_pre_probe() [all …]
|
/u-boot/drivers/pch/ |
A D | pch-uclass.c | 15 struct pch_ops *ops = pch_get_ops(dev); in pch_get_spi_base() local 18 if (!ops->get_spi_base) in pch_get_spi_base() 21 return ops->get_spi_base(dev, sbasep); in pch_get_spi_base() 26 struct pch_ops *ops = pch_get_ops(dev); in pch_set_spi_protect() local 28 if (!ops->set_spi_protect) in pch_set_spi_protect() 36 struct pch_ops *ops = pch_get_ops(dev); in pch_get_gpio_base() local 39 if (!ops->get_gpio_base) in pch_get_gpio_base() 42 return ops->get_gpio_base(dev, gbasep); in pch_get_gpio_base() 50 if (!ops->get_io_base) in pch_get_io_base() 53 return ops->get_io_base(dev, iobasep); in pch_get_io_base() [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() 110 const struct irq_ops *ops; in irq_get_by_index_tail() local 127 if (ops->of_xlate) in irq_get_by_index_tail() 158 const struct irq_ops *ops; in irq_request() local 161 ops = irq_get_ops(dev); in irq_request() 165 if (!ops->request) in irq_request() 168 return ops->request(irq); in irq_request() 185 struct irq_ops *ops; in irq_get_acpi() local [all …]
|
A D | misc-uclass.c | 21 const struct misc_ops *ops = device_get_ops(dev); in misc_read() local 23 if (!ops->read) in misc_read() 26 return ops->read(dev, offset, buf, size); in misc_read() 31 const struct misc_ops *ops = device_get_ops(dev); in misc_write() local 33 if (!ops->write) in misc_write() 36 return ops->write(dev, offset, buf, size); in misc_write() 43 if (!ops->ioctl) in misc_ioctl() 46 return ops->ioctl(dev, request, buf); in misc_ioctl() 54 if (!ops->call) in misc_call() 64 if (!ops->set_enabled) in misc_set_enabled() [all …]
|
/u-boot/drivers/dma/ |
A D | dma-uclass.c | 82 if (ops->of_xlate) in dma_get_by_index() 119 if (!ops->request) in dma_request() 131 if (!ops->rfree) in dma_free() 134 return ops->rfree(dma); in dma_free() 143 if (!ops->enable) in dma_enable() 146 return ops->enable(dma); in dma_enable() 155 if (!ops->disable) in dma_disable() 179 if (!ops->receive) in dma_receive() 191 if (!ops->send) in dma_send() 203 if (!ops->get_cfg) in dma_get_cfg() [all …]
|
/u-boot/drivers/pinctrl/ |
A D | pinctrl-uclass.c | 32 const struct pinctrl_ops *ops; in pinctrl_config_one() local 229 assert(ops); in pinctrl_gpio_request() 256 assert(ops); in pinctrl_gpio_free() 272 struct pinctrl_ops *ops; in pinctrl_select_state_simple() local 318 if (!ops->request) in pinctrl_request() 333 if (!ops->get_periph_id) in pinctrl_get_periph_id() 343 if (!ops->get_gpio_mux) in pinctrl_get_gpio_mux() 353 if (!ops->get_pins_count) in pinctrl_get_pins_count() 364 if (!ops->get_pin_name) in pinctrl_get_pin_name() 377 if (!ops->get_pin_muxing) in pinctrl_get_pin_muxing() [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/serial/ |
A D | serial-uclass.c | 242 if (!ops->pending) in _serial_flush() 267 if (ops->pending) in __serial_tstc() 360 if (ops->setbrg) in serial_setbrg() 396 if (ops->getinfo) in serial_getinfo() 511 if (ops->setbrg) in serial_post_probe() 513 if (ops->getc) in serial_post_probe() 515 if (ops->putc) in serial_post_probe() 517 if (ops->pending) in serial_post_probe() 519 if (ops->clear) in serial_post_probe() 526 if (ops->loop) in serial_post_probe() [all …]
|
/u-boot/drivers/demo/ |
A D | demo-uclass.c | 25 const struct demo_ops *ops = device_get_ops(dev); in demo_hello() local 27 if (!ops->hello) in demo_hello() 30 return ops->hello(dev, ch); in demo_hello() 35 const struct demo_ops *ops = device_get_ops(dev); in demo_status() local 37 if (!ops->status) in demo_status() 40 return ops->status(dev, status); in demo_status() 45 const struct demo_ops *ops = device_get_ops(dev); in demo_get_light() local 47 if (!ops->get_light) in demo_get_light() 50 return ops->get_light(dev); in demo_get_light() 57 if (!ops->set_light) in demo_set_light() [all …]
|
/u-boot/drivers/sysinfo/ |
A D | sysinfo-uclass.c | 34 struct sysinfo_ops *ops = sysinfo_get_ops(dev); in sysinfo_detect() local 36 if (!ops->detect) in sysinfo_detect() 39 ret = ops->detect(dev); in sysinfo_detect() 50 struct sysinfo_ops *ops = sysinfo_get_ops(dev); in sysinfo_get_fit_loadable() local 55 if (!ops->get_fit_loadable) in sysinfo_get_fit_loadable() 69 if (!ops->get_bool) in sysinfo_get_bool() 72 return ops->get_bool(dev, id, val); in sysinfo_get_bool() 83 if (!ops->get_int) in sysinfo_get_int() 86 return ops->get_int(dev, id, val); in sysinfo_get_int() 97 if (!ops->get_str) in sysinfo_get_str() [all …]
|
/u-boot/drivers/tpm/ |
A D | tpm-uclass.c | 26 if (!ops->open) in tpm_open() 29 return ops->open(dev); in tpm_open() 36 if (!ops->close) in tpm_close() 39 return ops->close(dev); in tpm_close() 46 if (!ops->get_desc) in tpm_get_desc() 49 return ops->get_desc(dev, buf, size); in tpm_get_desc() 56 if (!ops->report_state) in tpm_report_state() 95 if (ops->xfer) in tpm_xfer() 98 if (!ops->send || !ops->recv) in tpm_xfer() 142 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/crypto/hash/ |
A D | hash-uclass.c | 68 struct hash_ops *ops = (struct hash_ops *)device_get_ops(dev); in hash_digest() local 70 if (!ops->hash_digest) in hash_digest() 73 return ops->hash_digest(dev, algo, ibuf, ilen, obuf); in hash_digest() 80 struct hash_ops *ops = (struct hash_ops *)device_get_ops(dev); in hash_digest_wd() local 82 if (!ops->hash_digest_wd) in hash_digest_wd() 92 if (!ops->hash_init) in hash_init() 95 return ops->hash_init(dev, algo, ctxp); in hash_init() 102 if (!ops->hash_update) in hash_update() 105 return ops->hash_update(dev, ctx, ibuf, ilen); in hash_update() 112 if (!ops->hash_finish) in hash_finish() [all …]
|
/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 …]
|
/u-boot/drivers/cache/ |
A D | cache-uclass.c | 14 struct cache_ops *ops = cache_get_ops(dev); in cache_get_info() local 16 if (!ops->get_info) in cache_get_info() 19 return ops->get_info(dev, info); in cache_get_info() 24 struct cache_ops *ops = cache_get_ops(dev); in cache_enable() local 26 if (!ops->enable) in cache_enable() 29 return ops->enable(dev); in cache_enable() 34 struct cache_ops *ops = cache_get_ops(dev); in cache_disable() local 36 if (!ops->disable) in cache_disable() 39 return ops->disable(dev); in cache_disable()
|
/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/smem/ |
A D | smem-uclass.c | 15 struct smem_ops *ops = smem_get_ops(dev); in smem_alloc() local 17 if (!ops->alloc) in smem_alloc() 20 return ops->alloc(host, item, size); in smem_alloc() 26 struct smem_ops *ops = smem_get_ops(dev); in smem_get() local 28 if (!ops->get) in smem_get() 31 return ops->get(host, item, size); in smem_get() 36 struct smem_ops *ops = smem_get_ops(dev); in smem_get_free_space() local 38 if (!ops->get_free_space) in smem_get_free_space() 41 return ops->get_free_space(host); in smem_get_free_space()
|
/u-boot/drivers/power/regulator/ |
A D | regulator-uclass.c | 36 if (!ops || !ops->get_value) in regulator_get_value() 39 return ops->get_value(dev); in regulator_get_value() 65 if (!ops || !ops->set_value) in regulator_set_value() 119 if (!ops || !ops->set_value) in regulator_set_value_force() 129 if (!ops || !ops->get_current) in regulator_get_current() 146 if (!ops || !ops->set_current) in regulator_set_current() 156 if (!ops || !ops->get_enable) in regulator_get_enable() 168 if (!ops || !ops->set_enable) in regulator_set_enable() 228 if (!ops || !ops->get_mode) in regulator_get_mode() 231 return ops->get_mode(dev); in regulator_get_mode() [all …]
|