/u-boot/drivers/core/ |
A D | read.c | 82 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 D | util.c | 43 ret = ofnode_read_pci_addr(dev_ofnode(dev), FDT_PCI_SPACE_CONFIG, in pci_get_devfn()
|
A D | syscon-uclass.c | 64 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 D | fdtaddr.c | 209 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 D | read.h | 24 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 D | device.h | 220 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 D | tegra_car.c | 25 dev_ofnode(dev), &child); in tegra_car_bpmp_bind() 30 "tegra_car_reset", dev_ofnode(dev), in tegra_car_bpmp_bind()
|
A D | stm32_rcc.c | 59 dev_ofnode(dev), &child); in stm32_rcc_bind() 72 dev_ofnode(dev), &child); in stm32_rcc_bind()
|
A D | tegra186_bpmp.c | 120 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 D | pinctrl-bcm6838.c | 96 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 D | usb.c | 92 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 D | reset-mediatek.c | 75 priv->regmap = syscon_node_to_regmap(dev_ofnode(dev)); in mediatek_reset_probe() 89 dev_ofnode(pdev), &rst_dev); in mediatek_reset_bind()
|
A D | reset-uclass.c | 87 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 D | mdio-ipq4019.c | 110 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 D | rockchip_sound.c | 56 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 D | sound-uclass.c | 131 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 D | button-adc.c | 75 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 D | ihs_mdio.c | 33 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 D | pci_mvebu.c | 430 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 D | sandbox.c | 51 if (!pmic_bind_children(dev, dev_ofnode(dev), pmic_children_info)) in sandbox_pmic_bind()
|
A D | fan53555.c | 65 dev_ofnode(dev), &child); in pmic_fan53555_bind()
|
/u-boot/arch/x86/cpu/apollolake/ |
A D | fsp_m.c | 33 node = dev_ofnode(dev); in fspm_update_config()
|
/u-boot/drivers/usb/host/ |
A D | dwc3-sti-glue.c | 112 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 D | ehci-generic.c | 88 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 D | dsa-uclass.c | 212 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()
|