/u-boot/include/dm/ |
A D | read.h | 715 static inline int dev_read_u32(const struct udevice *dev, in dev_read_u32() 727 static inline int dev_read_u32_index(struct udevice *dev, in dev_read_u32_index() 741 static inline int dev_read_s32(const struct udevice *dev, in dev_read_s32() 753 static inline int dev_read_u32u(const struct udevice *dev, in dev_read_u32u() 767 static inline int dev_read_u64(const struct udevice *dev, in dev_read_u64() 785 static inline bool dev_read_bool(const struct udevice *dev, in dev_read_bool() 843 static inline void *dev_remap_addr(const struct udevice *dev) in dev_remap_addr() 931 static inline int dev_read_phandle(const struct udevice *dev) in dev_read_phandle() 993 static inline int dev_read_enabled(const struct udevice *dev) in dev_read_enabled() 1059 #define dev_for_each_subnode(subnode, dev) \ argument [all …]
|
A D | device-internal.h | 133 static inline int device_remove(struct udevice *dev, uint flags) { return 0; } in device_remove() 147 static inline int device_unbind(struct udevice *dev) { return 0; } in device_unbind() 153 static inline void device_free(struct udevice *dev) {} in device_free() 170 static inline int device_chld_unbind(struct udevice *dev, struct driver *drv) in device_chld_unbind() 196 static inline int device_chld_remove(struct udevice *dev, struct driver *drv, in device_chld_remove() 327 static inline void devres_release_probe(struct udevice *dev) in devres_release_probe() 331 static inline void devres_release_all(struct udevice *dev) in devres_release_all()
|
/u-boot/drivers/core/ |
A D | read.c | 90 ofnode dev_read_first_subnode(const struct udevice *dev) in dev_read_first_subnode() 163 fdt_addr_t dev_read_addr(const struct udevice *dev) in dev_read_addr() 168 void *dev_read_addr_ptr(const struct udevice *dev) in dev_read_addr_ptr() 175 void *dev_remap_addr(const struct udevice *dev) in dev_remap_addr() 186 const char *dev_read_name(const struct udevice *dev) in dev_read_name() 225 int dev_read_addr_cells(const struct udevice *dev) in dev_read_addr_cells() 230 int dev_read_size_cells(const struct udevice *dev) in dev_read_size_cells() 245 int dev_read_phandle(const struct udevice *dev) in dev_read_phandle() 311 int dev_read_enabled(const struct udevice *dev) in dev_read_enabled() 369 int dev_get_child_count(const struct udevice *dev) in dev_get_child_count() [all …]
|
A D | device.c | 42 struct udevice *dev; in device_bind_common() local 676 struct udevice *dev; in device_find_by_ofnode() local 695 struct udevice *dev; in device_get_child() local 707 struct udevice *dev; in device_get_child_count() local 719 struct udevice *dev; in device_find_child_by_seq() local 736 struct udevice *dev; in device_get_child_by_seq() local 748 struct udevice *dev; in device_find_child_by_of_offset() local 765 struct udevice *dev; in device_get_child_by_of_offset() local 799 struct udevice *dev; in device_get_global_by_ofnode() local 813 struct udevice *dev; in device_get_by_driver_info() local [all …]
|
A D | fdtaddr.c | 21 fdt_addr_t devfdt_get_addr_index(const struct udevice *dev, int index) in devfdt_get_addr_index() 96 fdt_addr_t devfdt_get_addr_size_index(const struct udevice *dev, int index, in devfdt_get_addr_size_index() 118 fdt_addr_t devfdt_get_addr_name(const struct udevice *dev, const char *name) in devfdt_get_addr_name() 134 fdt_addr_t devfdt_get_addr_size_name(const struct udevice *dev, in devfdt_get_addr_size_name() 151 fdt_addr_t devfdt_get_addr(const struct udevice *dev) in devfdt_get_addr() 156 void *devfdt_get_addr_ptr(const struct udevice *dev) in devfdt_get_addr_ptr() 163 void *devfdt_remap_addr_index(const struct udevice *dev, int index) in devfdt_remap_addr_index() 173 void *devfdt_remap_addr_name(const struct udevice *dev, const char *name) in devfdt_remap_addr_name() 183 void *devfdt_remap_addr(const struct udevice *dev) in devfdt_remap_addr() 188 void *devfdt_map_physmem(const struct udevice *dev, unsigned long size) in devfdt_map_physmem() [all …]
|
/u-boot/test/dm/ |
A D | test-driver.c | 23 static int testdrv_ping(struct udevice *dev, int pingval, int *pingret) in testdrv_ping() 38 static int test_bind(struct udevice *dev) in test_bind() 47 static int test_probe(struct udevice *dev) in test_probe() 59 static int test_remove(struct udevice *dev) in test_remove() 68 static int test_unbind(struct udevice *dev) in test_unbind() 99 static int test_manual_drv_ping(struct udevice *dev, int pingval, int *pingret) in test_manual_drv_ping() 110 static int test_manual_bind(struct udevice *dev) in test_manual_bind() 117 static int test_manual_probe(struct udevice *dev) in test_manual_probe() 130 static int test_manual_remove(struct udevice *dev) in test_manual_remove() 136 static int test_manual_unbind(struct udevice *dev) in test_manual_unbind()
|
A D | test-fdt.c | 118 struct udevice *dev; in dm_check_devices() local 154 struct udevice *dev; in dm_test_fdt() local 230 struct udevice *dev; in dm_test_fdt_uclass_seq() local 304 struct udevice *dev; in dm_test_fdt_uclass_seq_manual() local 328 struct udevice *dev; in dm_test_fdt_uclass_seq_more() local 369 struct udevice *dev; in dm_test_fdt_offset() local 439 struct udevice *dev; in dm_test_uclass_foreach() local 474 struct udevice *dev; in check_devices() local 614 struct udevice *dev; in dm_test_fdt_translation() local 679 struct udevice *dev; in dm_test_fdt_remap_addr_flat() local [all …]
|
/u-boot/drivers/power/regulator/ |
A D | regulator-uclass.c | 30 int regulator_get_value(struct udevice *dev) in regulator_get_value() 51 int regulator_set_value(struct udevice *dev, int uV) in regulator_set_value() 123 int regulator_get_current(struct udevice *dev) in regulator_get_current() 150 int regulator_get_enable(struct udevice *dev) in regulator_get_enable() 222 int regulator_get_mode(struct udevice *dev) in regulator_get_mode() 245 struct udevice *dev; in regulator_get_by_platname() local 281 int regulator_autoset(struct udevice *dev) in regulator_autoset() 333 struct udevice *dev; in regulator_autoset_by_name() local 351 struct udevice *dev; in regulator_list_autoset() local 374 struct udevice *dev; in regulator_name_is_unique() local [all …]
|
A D | sandbox.c | 141 static int out_get_mode(struct udevice *dev) in out_get_mode() 167 static int out_set_mode(struct udevice *dev, int mode) in out_set_mode() 202 static int buck_get_voltage(struct udevice *dev) in buck_get_voltage() 214 static int buck_get_current(struct udevice *dev) in buck_get_current() 234 static int buck_get_enable(struct udevice *dev) in buck_get_enable() 247 static int sandbox_buck_probe(struct udevice *dev) in sandbox_buck_probe() 278 static int ldo_get_voltage(struct udevice *dev) in ldo_get_voltage() 284 static int ldo_set_voltage(struct udevice *dev, int uV) in ldo_set_voltage() 290 static int ldo_get_current(struct udevice *dev) in ldo_get_current() 310 static int ldo_get_enable(struct udevice *dev) in ldo_get_enable() [all …]
|
A D | as3722_regulator.c | 19 static int stepdown_get_value(struct udevice *dev) in stepdown_get_value() 24 static int stepdown_set_value(struct udevice *dev, int uvolt) in stepdown_set_value() 29 static int stepdown_set_enable(struct udevice *dev, bool enable) in stepdown_set_enable() 45 static int stepdown_get_enable(struct udevice *dev) in stepdown_get_enable() 61 static int ldo_get_value(struct udevice *dev) in ldo_get_value() 66 static int ldo_set_value(struct udevice *dev, int uvolt) in ldo_set_value() 71 static int ldo_set_enable(struct udevice *dev, bool enable) in ldo_set_enable() 93 static int ldo_get_enable(struct udevice *dev) in ldo_get_enable() 115 static int as3722_stepdown_probe(struct udevice *dev) in as3722_stepdown_probe() 126 static int as3722_ldo_probe(struct udevice *dev) in as3722_ldo_probe()
|
A D | s5m8767.c | 97 static int reg_get_value(struct udevice *dev, const struct s5m8767_para *param) in reg_get_value() 131 static int s5m8767_ldo_probe(struct udevice *dev) in s5m8767_ldo_probe() 142 static int ldo_get_value(struct udevice *dev) in ldo_get_value() 149 static int ldo_set_value(struct udevice *dev, int uv) in ldo_set_value() 186 static int ldo_get_enable(struct udevice *dev) in ldo_get_enable() 193 static int ldo_set_enable(struct udevice *dev, bool enable) in ldo_set_enable() 200 static int s5m8767_buck_probe(struct udevice *dev) in s5m8767_buck_probe() 212 static int buck_get_value(struct udevice *dev) in buck_get_value() 219 static int buck_set_value(struct udevice *dev, int uv) in buck_set_value() 226 static int buck_get_enable(struct udevice *dev) in buck_get_enable() [all …]
|
A D | stpmic1.c | 154 static int stpmic1_buck_get_value(struct udevice *dev) in stpmic1_buck_get_value() 173 static int stpmic1_buck_get_enable(struct udevice *dev) in stpmic1_buck_get_enable() 211 static int stpmic1_buck_get_mode(struct udevice *dev) in stpmic1_buck_get_mode() 232 static int stpmic1_buck_probe(struct udevice *dev) in stpmic1_buck_probe() 312 static int stpmic1_ldo_get_value(struct udevice *dev) in stpmic1_ldo_get_value() 352 static int stpmic1_ldo_get_enable(struct udevice *dev) in stpmic1_ldo_get_enable() 390 static int stpmic1_ldo_get_mode(struct udevice *dev) in stpmic1_ldo_get_mode() 438 static int stpmic1_ldo_probe(struct udevice *dev) in stpmic1_ldo_probe() 512 static int stpmic1_vref_ddr_probe(struct udevice *dev) in stpmic1_vref_ddr_probe() 576 static int stpmic1_boost_probe(struct udevice *dev) in stpmic1_boost_probe() [all …]
|
/u-boot/drivers/misc/ |
A D | p2sb-uclass.c | 21 int p2sb_set_hide(struct udevice *dev, bool hide) in p2sb_set_hide() 31 void *pcr_reg_address(struct udevice *dev, uint offset) in pcr_reg_address() 60 uint pcr_read32(struct udevice *dev, uint offset) in pcr_read32() 75 uint pcr_read16(struct udevice *dev, uint offset) in pcr_read16() 83 uint pcr_read8(struct udevice *dev, uint offset) in pcr_read8() 97 static void write_completion(struct udevice *dev, uint offset) in write_completion() 122 void pcr_write8(struct udevice *dev, uint offset, uint indata) in pcr_write8() 162 int p2sb_get_port_id(struct udevice *dev) in p2sb_get_port_id() 169 int p2sb_set_port_id(struct udevice *dev, int portid) in p2sb_set_port_id() 182 static int p2sb_child_post_bind(struct udevice *dev) in p2sb_child_post_bind() [all …]
|
A D | test_drv.c | 23 static int testbus_drv_probe(struct udevice *dev) in testbus_drv_probe() 36 static int testbus_child_post_bind(struct udevice *dev) in testbus_child_post_bind() 47 static int testbus_child_pre_probe(struct udevice *dev) in testbus_child_pre_probe() 56 static int testbus_child_pre_probe_uclass(struct udevice *dev) in testbus_child_pre_probe_uclass() 65 static int testbus_child_post_probe_uclass(struct udevice *dev) in testbus_child_post_probe_uclass() 74 static int testbus_child_post_remove(struct udevice *dev) in testbus_child_post_remove() 111 static int testfdt_drv_ping(struct udevice *dev, int pingval, int *pingret) in testfdt_drv_ping() 126 static int testfdt_of_to_plat(struct udevice *dev) in testfdt_of_to_plat() 138 static int testfdt_drv_probe(struct udevice *dev) in testfdt_drv_probe() 192 int testfdt_ping(struct udevice *dev, int pingval, int *pingret) in testfdt_ping()
|
/u-boot/drivers/gpio/ |
A D | sandbox.c | 66 int sandbox_gpio_get_value(struct udevice *dev, unsigned offset) in sandbox_gpio_get_value() 78 int sandbox_gpio_get_direction(struct udevice *dev, unsigned offset) in sandbox_gpio_get_direction() 127 static int sb_gpio_get_value(struct udevice *dev, unsigned offset) in sb_gpio_get_value() 282 static int sandbox_gpio_of_to_plat(struct udevice *dev) in sandbox_gpio_of_to_plat() 293 static int gpio_sandbox_probe(struct udevice *dev) in gpio_sandbox_probe() 307 static int gpio_sandbox_remove(struct udevice *dev) in gpio_sandbox_remove() 344 static int sb_populate_gpio_dev_list(struct udevice *dev) in sb_populate_gpio_dev_list() 377 static int sb_pinctrl_get_pins_count(struct udevice *dev) in sb_pinctrl_get_pins_count() 436 static const char *sb_pinctrl_get_pin_name(struct udevice *dev, in sb_pinctrl_get_pin_name() 472 static int sb_pinctrl_get_pin_muxing(struct udevice *dev, in sb_pinctrl_get_pin_muxing() [all …]
|
/u-boot/drivers/clk/ |
A D | clk_sandbox_test.c | 26 int sandbox_clk_test_get(struct udevice *dev) in sandbox_clk_test_get() 41 int sandbox_clk_test_devm_get(struct udevice *dev) in sandbox_clk_test_devm_get() 72 int sandbox_clk_test_get_bulk(struct udevice *dev) in sandbox_clk_test_get_bulk() 109 int sandbox_clk_test_enable(struct udevice *dev, int id) in sandbox_clk_test_enable() 119 int sandbox_clk_test_enable_bulk(struct udevice *dev) in sandbox_clk_test_enable_bulk() 126 int sandbox_clk_test_disable(struct udevice *dev, int id) in sandbox_clk_test_disable() 136 int sandbox_clk_test_disable_bulk(struct udevice *dev) in sandbox_clk_test_disable_bulk() 143 int sandbox_clk_test_free(struct udevice *dev) in sandbox_clk_test_free() 158 int sandbox_clk_test_release_bulk(struct udevice *dev) in sandbox_clk_test_release_bulk() 165 int sandbox_clk_test_valid(struct udevice *dev) in sandbox_clk_test_valid() [all …]
|
/u-boot/drivers/pci_endpoint/ |
A D | pci_ep-uclass.c | 41 int pci_ep_set_bar(struct udevice *dev, uint func_no, struct pci_bar *ep_bar) in pci_ep_set_bar() 89 int pci_ep_map_addr(struct udevice *dev, uint func_no, phys_addr_t addr, in pci_ep_map_addr() 100 int pci_ep_unmap_addr(struct udevice *dev, uint func_no, phys_addr_t addr) in pci_ep_unmap_addr() 110 int pci_ep_set_msi(struct udevice *dev, uint func_no, uint interrupts) in pci_ep_set_msi() 129 int pci_ep_get_msi(struct udevice *dev, uint func_no) in pci_ep_get_msi() 148 int pci_ep_set_msix(struct udevice *dev, uint func_no, uint interrupts) in pci_ep_set_msix() 161 int pci_ep_get_msix(struct udevice *dev, uint func_no) in pci_ep_get_msix() 177 int pci_ep_raise_irq(struct udevice *dev, uint func_no, in pci_ep_raise_irq() 188 int pci_ep_start(struct udevice *dev) in pci_ep_start() 198 int pci_ep_stop(struct udevice *dev) in pci_ep_stop() [all …]
|
/u-boot/common/ |
A D | stdio.c | 45 static void nulldev_putc(struct stdio_dev *dev, const char c) in nulldev_putc() 50 static void nulldev_puts(struct stdio_dev *dev, const char *s) in nulldev_puts() 55 static int nulldev_input(struct stdio_dev *dev) in nulldev_input() 63 struct stdio_dev dev; in nulldev_register() local 90 static int stdio_serial_getc(struct stdio_dev *dev) in stdio_serial_getc() 95 static int stdio_serial_tstc(struct stdio_dev *dev) in stdio_serial_tstc() 107 struct stdio_dev dev; in drv_system_init() local 154 struct udevice *dev; in stdio_probe_device() local 216 struct stdio_dev *stdio_clone(struct stdio_dev *dev) in stdio_clone() 246 int stdio_register(struct stdio_dev *dev) in stdio_register() [all …]
|
/u-boot/drivers/reset/ |
A D | sandbox-reset-test.c | 23 int sandbox_reset_test_get(struct udevice *dev) in sandbox_reset_test_get() 31 int sandbox_reset_test_get_devm(struct udevice *dev) in sandbox_reset_test_get_devm() 51 int sandbox_reset_test_get_bulk(struct udevice *dev) in sandbox_reset_test_get_bulk() 59 int sandbox_reset_test_get_bulk_devm(struct udevice *dev) in sandbox_reset_test_get_bulk_devm() 72 int sandbox_reset_test_assert(struct udevice *dev) in sandbox_reset_test_assert() 79 int sandbox_reset_test_assert_bulk(struct udevice *dev) in sandbox_reset_test_assert_bulk() 86 int sandbox_reset_test_deassert(struct udevice *dev) in sandbox_reset_test_deassert() 93 int sandbox_reset_test_deassert_bulk(struct udevice *dev) in sandbox_reset_test_deassert_bulk() 100 int sandbox_reset_test_free(struct udevice *dev) in sandbox_reset_test_free() 107 int sandbox_reset_test_release_bulk(struct udevice *dev) in sandbox_reset_test_release_bulk()
|
/u-boot/drivers/pinctrl/ |
A D | pinctrl-uclass.c | 109 static int pinconfig_post_bind(struct udevice *dev) in pinconfig_post_bind() 168 static int pinconfig_post_bind(struct udevice *dev) in pinconfig_post_bind() 225 int pinctrl_gpio_request(struct udevice *dev, unsigned offset) in pinctrl_gpio_request() 251 int pinctrl_gpio_free(struct udevice *dev, unsigned offset) in pinctrl_gpio_free() 276 static int pinctrl_select_state_simple(struct udevice *dev) in pinctrl_select_state_simple() 303 int pinctrl_select_state(struct udevice *dev, const char *statename) in pinctrl_select_state() 321 int pinctrl_request(struct udevice *dev, int func, int flags) in pinctrl_request() 331 int pinctrl_request_noflags(struct udevice *dev, int func) in pinctrl_request_noflags() 346 int pinctrl_get_gpio_mux(struct udevice *dev, int banknum, int index) in pinctrl_get_gpio_mux() 356 int pinctrl_get_pins_count(struct udevice *dev) in pinctrl_get_pins_count() [all …]
|
A D | pinctrl-stmfx.c | 67 static int stmfx_read(struct udevice *dev, uint offset) in stmfx_read() 127 static int stmfx_gpio_get(struct udevice *dev, unsigned int offset) in stmfx_gpio_get() 156 static int stmfx_gpio_direction_output(struct udevice *dev, in stmfx_gpio_direction_output() 241 static int stmfx_gpio_probe(struct udevice *dev) in stmfx_gpio_probe() 335 static int stmfx_pinctrl_get_pins_count(struct udevice *dev) in stmfx_pinctrl_get_pins_count() 350 static const char *stmfx_pinctrl_get_pin_name(struct udevice *dev, in stmfx_pinctrl_get_pin_name() 388 static int stmfx_pinctrl_get_pin_muxing(struct udevice *dev, in stmfx_pinctrl_get_pin_muxing() 406 static int stmfx_pinctrl_bind(struct udevice *dev) in stmfx_pinctrl_bind() 418 static int stmfx_pinctrl_probe(struct udevice *dev) in stmfx_pinctrl_probe() 451 static int stmfx_chip_init(struct udevice *dev) in stmfx_chip_init() [all …]
|
/u-boot/arch/x86/cpu/ivybridge/ |
A D | northbridge.c | 26 int bridge_silicon_revision(struct udevice *dev) in bridge_silicon_revision() 39 static int get_pcie_bar(struct udevice *dev, u32 *base, u32 *len) in get_pcie_bar() 72 static void add_fixed_resources(struct udevice *dev, int index) in add_fixed_resources() 82 static void northbridge_dmi_init(struct udevice *dev, int rev) in northbridge_dmi_init() 110 static void northbridge_init(struct udevice *dev, int rev) in northbridge_init() 158 static void sandybridge_setup_northbridge_bars(struct udevice *dev) in sandybridge_setup_northbridge_bars() 188 static void sandybridge_init_iommu(struct udevice *dev) in sandybridge_init_iommu() 212 static int bd82x6x_northbridge_early_init(struct udevice *dev) in bd82x6x_northbridge_early_init() 241 static int bd82x6x_northbridge_probe(struct udevice *dev) in bd82x6x_northbridge_probe()
|
/u-boot/cmd/ |
A D | tpm_test.c | 40 static int test_timer(struct udevice *dev) in test_timer() 74 static int tpm_is_owned(struct udevice *dev) in tpm_is_owned() 84 static int test_early_extend(struct udevice *dev) in test_early_extend() 98 static int test_early_nvram(struct udevice *dev) in test_early_nvram() 112 static int test_early_nvram2(struct udevice *dev) in test_early_nvram2() 126 static int test_enable(struct udevice *dev) in test_enable() 152 static int test_fast_enable(struct udevice *dev) in test_fast_enable() 222 static int test_lock(struct udevice *dev) in test_lock() 255 static int test_readonly(struct udevice *dev) in test_readonly() 378 static int test_startup(struct udevice *dev) in test_startup() [all …]
|
/u-boot/drivers/adc/ |
A D | adc-uclass.c | 49 static int adc_supply_enable(struct udevice *dev) in adc_supply_enable() 94 int adc_stop(struct udevice *dev) in adc_stop() 197 struct udevice *dev; in adc_channel_single_shot() local 246 struct udevice *dev; in adc_channels_single_shot() local 270 static int adc_vdd_plat_update(struct udevice *dev) in adc_vdd_plat_update() 293 static int adc_vss_plat_update(struct udevice *dev) in adc_vss_plat_update() 310 int adc_vdd_value(struct udevice *dev, int *uV) in adc_vdd_value() 328 int adc_vss_value(struct udevice *dev, int *uV) in adc_vss_value() 370 static int adc_vdd_plat_set(struct udevice *dev) in adc_vdd_plat_set() 395 static int adc_vss_plat_set(struct udevice *dev) in adc_vss_plat_set() [all …]
|
/u-boot/drivers/net/ |
A D | cs8900.c | 52 static u16 get_reg_init_bus(struct eth_device *dev, int regno) in get_reg_init_bus() 69 static u16 get_reg(struct eth_device *dev, int regno) in get_reg() 77 static void put_reg(struct eth_device *dev, int regno, u16 val) in put_reg() 84 static void cs8900_reset(struct eth_device *dev) in cs8900_reset() 102 static void cs8900_reginit(struct eth_device *dev) in cs8900_reginit() 117 void cs8900_get_enetaddr(struct eth_device *dev) in cs8900_get_enetaddr() 140 void cs8900_halt(struct eth_device *dev) in cs8900_halt() 173 static int cs8900_recv(struct eth_device *dev) in cs8900_recv() 247 static void cs8900_e2prom_ready(struct eth_device *dev) in cs8900_e2prom_ready() 257 int cs8900_e2prom_read(struct eth_device *dev, in cs8900_e2prom_read() [all …]
|