Home
last modified time | relevance | path

Searched refs:dev_ofnode (Results 1 – 25 of 167) sorted by relevance

1234567

/u-boot/drivers/core/
A Dread.c82 return ofnode_read_bool(dev_ofnode(dev), propname); in dev_read_bool()
92 return ofnode_first_subnode(dev_ofnode(dev)); in dev_read_first_subnode()
107 if (ofnode_is_np(dev_ofnode(dev))) in dev_read_addr_index()
116 if (ofnode_is_np(dev_ofnode(dev))) in dev_read_addr_size_index()
188 return ofnode_get_name(dev_ofnode(dev)); in dev_read_name()
227 return ofnode_read_addr_cells(dev_ofnode(dev)); in dev_read_addr_cells()
232 return ofnode_read_size_cells(dev_ofnode(dev)); in dev_read_size_cells()
247 ofnode node = dev_ofnode(dev); in dev_read_phandle()
279 ofnode node = dev_ofnode(dev); in dev_read_alias_seq()
313 ofnode node = dev_ofnode(dev); in dev_read_enabled()
[all …]
A Dutil.c43 ret = ofnode_read_pci_addr(dev_ofnode(dev), FDT_PCI_SPACE_CONFIG, in pci_get_devfn()
A Dsyscon-uclass.c64 return regmap_init_mem(dev_ofnode(dev), &priv->regmap); in syscon_pre_probe()
114 err = ofnode_read_u32(dev_ofnode(dev), name, &phandle); in syscon_regmap_lookup_by_phandle()
A Dfdtaddr.c209 ret = ofnode_read_pci_addr(dev_ofnode(dev), FDT_PCI_SPACE_MEM32, in devfdt_get_addr_pci()
213 ret = ofnode_read_pci_addr(dev_ofnode(dev), in devfdt_get_addr_pci()
/u-boot/include/dm/
A Dread.h24 return ofnode_to_np(dev_ofnode(dev)); in dev_np()
718 return ofnode_read_u32(dev_ofnode(dev), propname, outp); in dev_read_u32()
744 return ofnode_read_s32(dev_ofnode(dev), propname, outp); in dev_read_s32()
759 ret = ofnode_read_u32(dev_ofnode(dev), propname, &val); in dev_read_u32u()
770 return ofnode_read_u64(dev_ofnode(dev), propname, outp); in dev_read_u64()
782 return ofnode_read_string(dev_ofnode(dev), propname); in dev_read_string()
788 return ofnode_read_bool(dev_ofnode(dev), propname); in dev_read_bool()
799 return ofnode_read_size(dev_ofnode(dev), propname); in dev_read_size()
868 return ofnode_get_name(dev_ofnode(dev)); in dev_read_name()
978 return ofnode_first_subnode(dev_ofnode(dev)); in dev_read_first_subnode()
[all …]
A Ddevice.h220 static inline ofnode dev_ofnode(const struct udevice *dev) in dev_ofnode() function
243 return ofnode_to_offset(dev_ofnode(dev)); in dev_of_offset()
252 return ofnode_valid(dev_ofnode(dev)); in dev_has_ofnode()
/u-boot/drivers/misc/
A Dtegra_car.c25 dev_ofnode(dev), &child); in tegra_car_bpmp_bind()
30 "tegra_car_reset", dev_ofnode(dev), in tegra_car_bpmp_bind()
A Dstm32_rcc.c59 dev_ofnode(dev), &child); in stm32_rcc_bind()
72 dev_ofnode(dev), &child); in stm32_rcc_bind()
A Dtegra186_bpmp.c120 dev_ofnode(dev), &child); in tegra186_bpmp_bind()
125 "tegra186_reset", dev_ofnode(dev), in tegra186_bpmp_bind()
132 dev_ofnode(dev), &child); in tegra186_bpmp_bind()
/u-boot/drivers/pinctrl/broadcom/
A Dpinctrl-bcm6838.c96 err = ofnode_read_u32(dev_ofnode(dev), "regmap", &phandle); in bcm6838_pinctrl_probe()
116 err = ofnode_read_u32(dev_ofnode(dev), "brcm,pins-count", in bcm6838_pinctrl_probe()
124 err = ofnode_read_u32(dev_ofnode(dev), "brcm,functions-count", in bcm6838_pinctrl_probe()
/u-boot/test/dm/
A Dusb.c92 ut_asserteq(1, ofnode_equal(node, dev_ofnode(dev))); in dm_test_usb_fdt_node()
94 ut_asserteq(1, ofnode_equal(ofnode_null(), dev_ofnode(dev))); in dm_test_usb_fdt_node()
97 ut_asserteq(1, ofnode_equal(node, dev_ofnode(dev))); in dm_test_usb_fdt_node()
/u-boot/drivers/reset/
A Dreset-mediatek.c75 priv->regmap = syscon_node_to_regmap(dev_ofnode(dev)); in mediatek_reset_probe()
89 dev_ofnode(pdev), &rst_dev); in mediatek_reset_bind()
A Dreset-uclass.c87 return reset_get_by_index_tail(ret, dev_ofnode(dev), &args, "resets", in reset_get_by_index()
142 return __reset_get_bulk(dev, dev_ofnode(dev), bulk); in reset_get_bulk()
352 return devm_reset_bulk_get_by_node(dev, dev_ofnode(dev)); in devm_reset_bulk_get()
357 return devm_reset_bulk_get_optional_by_node(dev, dev_ofnode(dev)); in devm_reset_bulk_get_optional()
/u-boot/drivers/net/
A Dmdio-ipq4019.c110 if (ofnode_valid(dev_ofnode(dev))) in ipq4019_mdio_bind()
111 device_set_name(dev, ofnode_get_name(dev_ofnode(dev))); in ipq4019_mdio_bind()
/u-boot/drivers/sound/
A Drockchip_sound.c56 node = ofnode_find_subnode(dev_ofnode(dev), "cpu"); in rockchip_sound_probe()
73 node = ofnode_find_subnode(dev_ofnode(dev), "codec"); in rockchip_sound_probe()
A Dsound-uclass.c131 node = ofnode_find_subnode(dev_ofnode(dev), "codec"); in sound_find_codec_i2s()
150 node = ofnode_find_subnode(dev_ofnode(dev), "cpu"); in sound_find_codec_i2s()
/u-boot/drivers/button/
A Dbutton-adc.c75 ret = ofnode_read_u32(dev_ofnode(dev->parent), in button_adc_of_to_plat()
80 ret = ofnode_read_u32(dev_ofnode(dev), "press-threshold-microvolt", in button_adc_of_to_plat()
/u-boot/board/gdsys/common/
A Dihs_mdio.c33 regmap_init_mem(dev_ofnode(fpga), &map); in read_reg()
45 regmap_init_mem(dev_ofnode(fpga), &map); in write_reg()
/u-boot/drivers/pci/
A Dpci_mvebu.c430 if (ofnode_read_u32(dev_ofnode(dev), "marvell,pcie-port", in mvebu_pcie_of_to_plat()
436 if (ofnode_read_u32(dev_ofnode(dev), "marvell,pcie-lane", &pcie->lane)) in mvebu_pcie_of_to_plat()
448 ret = mvebu_get_tgt_attr(dev_ofnode(dev->parent), pcie->devfn, in mvebu_pcie_of_to_plat()
456 ret = mvebu_get_tgt_attr(dev_ofnode(dev->parent), pcie->devfn, in mvebu_pcie_of_to_plat()
465 ret = mvebu_pcie_port_parse_dt(dev_ofnode(dev), pcie); in mvebu_pcie_of_to_plat()
514 ofnode_for_each_subnode(subnode, dev_ofnode(parent)) { in mvebu_pcie_bind()
/u-boot/drivers/power/pmic/
A Dsandbox.c51 if (!pmic_bind_children(dev, dev_ofnode(dev), pmic_children_info)) in sandbox_pmic_bind()
A Dfan53555.c65 dev_ofnode(dev), &child); in pmic_fan53555_bind()
/u-boot/arch/x86/cpu/apollolake/
A Dfsp_m.c33 node = dev_ofnode(dev); in fspm_update_config()
/u-boot/drivers/usb/host/
A Ddwc3-sti-glue.c112 ret = ofnode_read_u32_array(dev_ofnode(dev), "reg", reg, in sti_dwc3_glue_of_to_plat()
159 ofnode_for_each_subnode(node, dev_ofnode(dev)) { in sti_dwc3_glue_bind()
A Dehci-generic.c88 clock_nb = ofnode_count_phandle_with_args(dev_ofnode(dev), "clocks", in ehci_usb_probe()
118 reset_nb = ofnode_count_phandle_with_args(dev_ofnode(dev), "resets", in ehci_usb_probe()
/u-boot/net/
A Ddsa-uclass.c212 err = ofnode_read_u32(dev_ofnode(pdev), "reg", &index); in dsa_port_of_to_pdata()
222 label = ofnode_read_string(dev_ofnode(pdev), "label"); in dsa_port_of_to_pdata()
230 ofnode_get_name(dev_ofnode(pdev))); in dsa_port_of_to_pdata()
326 ofnode node = dev_ofnode(dev), pnode; in dsa_post_bind()

Completed in 27 milliseconds

1234567