Home
last modified time | relevance | path

Searched refs:ofnode (Results 1 – 25 of 113) sorted by relevance

12345

/openbmc/u-boot/include/dm/
H A Dofnode.h53 } ofnode; typedef
56 ofnode node;
69 static inline const struct device_node *ofnode_to_np(ofnode node) in ofnode_to_np()
86 static inline int ofnode_to_offset(ofnode node) in ofnode_to_offset()
100 static inline bool ofnode_valid(ofnode node) in ofnode_valid()
114 static inline ofnode offset_to_ofnode(int of_offset) in offset_to_ofnode()
116 ofnode node; in offset_to_ofnode()
132 static inline ofnode np_to_ofnode(const struct device_node *np) in np_to_ofnode()
134 ofnode node; in np_to_ofnode()
152 static inline bool ofnode_is_np(ofnode node) in ofnode_is_np()
[all …]
H A Dread.h36 static inline ofnode dev_ofnode(struct udevice *dev) in dev_ofnode()
125 ofnode dev_read_subnode(struct udevice *dev, const char *subbnode_name);
439 ofnode dev_read_first_subnode(struct udevice *dev);
448 ofnode dev_read_next_subnode(ofnode node);
575 static inline ofnode dev_read_subnode(struct udevice *dev, in dev_read_subnode()
715 static inline ofnode dev_read_first_subnode(struct udevice *dev) in dev_read_first_subnode()
720 static inline ofnode dev_read_next_subnode(ofnode node) in dev_read_next_subnode()
H A Dof_extra.h42 int ofnode_read_fmap_entry(ofnode node, struct fmap_entry *entry);
59 int ofnode_decode_region(ofnode node, const char *prop_name, fdt_addr_t *basep,
85 int ofnode_decode_memory_region(ofnode config_node, const char *mem_type,
H A Dlists.h61 int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp,
90 const char *dev_name, ofnode node,
H A Ddevice-internal.h44 const char *name, void *platdata, ofnode node,
68 ulong driver_data, ofnode node,
/openbmc/u-boot/drivers/core/
H A Dofnode.c18 int ofnode_read_u32(ofnode node, const char *propname, u32 *outp) in ofnode_read_u32()
42 int ofnode_read_u32_default(ofnode node, const char *propname, u32 def) in ofnode_read_u32_default()
50 int ofnode_read_s32_default(ofnode node, const char *propname, s32 def) in ofnode_read_s32_default()
58 int ofnode_read_u64(ofnode node, const char *propname, u64 *outp) in ofnode_read_u64()
82 int ofnode_read_u64_default(ofnode node, const char *propname, u64 def) in ofnode_read_u64_default()
90 bool ofnode_read_bool(ofnode node, const char *propname) in ofnode_read_bool()
104 const char *ofnode_read_string(ofnode node, const char *propname) in ofnode_read_string()
137 ofnode ofnode_find_subnode(ofnode node, const char *subnode_name) in ofnode_find_subnode()
139 ofnode subnode; in ofnode_find_subnode()
163 int ofnode_read_u32_array(ofnode node, const char *propname, in ofnode_read_u32_array()
[all …]
H A Ddevice.c35 ulong driver_data, ofnode node, in device_bind_common()
221 ulong driver_data, ofnode node, in device_bind_with_driver_data()
237 const char *name, void *platdata, ofnode node, in device_bind_ofnode()
531 static int device_find_by_ofnode(ofnode node, struct udevice **devp) in device_find_by_ofnode()
628 ofnode ofnode) in _device_find_global_by_ofnode() argument
632 if (ofnode_equal(dev_ofnode(parent), ofnode)) in _device_find_global_by_ofnode()
636 found = _device_find_global_by_ofnode(dev, ofnode); in _device_find_global_by_ofnode()
644 int device_find_global_by_ofnode(ofnode ofnode, struct udevice **devp) in device_find_global_by_ofnode() argument
646 *devp = _device_find_global_by_ofnode(gd->dm_root, ofnode); in device_find_global_by_ofnode()
651 int device_get_global_by_ofnode(ofnode ofnode, struct udevice **devp) in device_get_global_by_ofnode() argument
[all …]
H A Dread.c57 ofnode dev_read_subnode(struct udevice *dev, const char *subnode_name) in dev_read_subnode()
62 ofnode dev_read_first_subnode(struct udevice *dev) in dev_read_first_subnode()
67 ofnode dev_read_next_subnode(ofnode node) in dev_read_next_subnode()
198 ofnode node = dev_ofnode(dev); in dev_read_phandle()
213 ofnode node = dev_ofnode(dev); in dev_read_alias_seq()
243 ofnode node = dev_ofnode(dev); in dev_read_enabled()
H A Dof_extra.c13 int ofnode_read_fmap_entry(ofnode node, struct fmap_entry *entry) in ofnode_read_fmap_entry()
49 int ofnode_decode_region(ofnode node, const char *prop_name, fdt_addr_t *basep, in ofnode_decode_region()
70 int ofnode_decode_memory_region(ofnode config_node, const char *mem_type, in ofnode_decode_memory_region()
78 ofnode node; in ofnode_decode_memory_region()
H A Dlists.c81 const char *dev_name, ofnode node, in device_bind_driver_to_node()
125 int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp, in lists_bind_fdt()
/openbmc/u-boot/cmd/
H A Dbind.c126 ofnode ofnode; in bind_by_node_path() local
135 ofnode = ofnode_path(path); in bind_by_node_path()
136 if (!ofnode_valid(ofnode)) { in bind_by_node_path()
141 while (ofnode_valid(ofnode)) { in bind_by_node_path()
142 if (!device_find_global_by_ofnode(ofnode, &parent)) in bind_by_node_path()
144 ofnode = ofnode_get_parent(ofnode); in bind_by_node_path()
152 ofnode = ofnode_path(path); in bind_by_node_path()
153 ret = device_bind_with_driver_data(parent, drv, ofnode_get_name(ofnode), in bind_by_node_path()
154 0, ofnode, &dev); in bind_by_node_path()
167 ofnode ofnode; in unbind_by_node_path() local
[all …]
/openbmc/u-boot/test/dm/
H A Dnop.c20 ofnode ofnode = dev_read_first_subnode(parent); in noptest_bind() local
22 while (ofnode_valid(ofnode)) { in noptest_bind()
24 const char *bind_flag = ofnode_read_string(ofnode, "bind"); in noptest_bind()
27 lists_bind_fdt(parent, ofnode, &dev, false); in noptest_bind()
28 ofnode = dev_read_next_subnode(ofnode); in noptest_bind()
H A Dofnode.c11 ofnode root_node = ofnode_path("/"); in dm_test_ofnode_compatible()
25 ofnode node = ofnode_null(); in dm_test_ofnode_by_prop_value()
50 ofnode node; in dm_test_ofnode_fmap()
/openbmc/linux/arch/powerpc/kernel/
H A Dcacheinfo.c118 struct device_node *ofnode; /* OF node for this cache, may be cpu */ member
145 struct device_node *ofnode, int group_id) in cache_init() argument
149 cache->ofnode = of_node_get(ofnode); in cache_init()
156 struct device_node *ofnode, int group_id) in new_cache() argument
162 cache_init(cache, type, level, ofnode, group_id); in new_cache()
174 iter->ofnode, in release_cache_debugcheck()
176 cache->ofnode, in release_cache_debugcheck()
186 cache_type_string(cache), cache->ofnode); in release_cache()
190 of_node_put(cache->ofnode); in release_cache()
201 cpu, next->ofnode, in cache_cpu_set()
[all …]
/openbmc/u-boot/drivers/net/phy/
H A Dfixed.c19 int ofnode = phydev->addr; in fixedphy_probe() local
24 ofnode, 0, "speed", 0); in fixedphy_probe()
38 priv->duplex = fdtdec_get_bool(gd->fdt_blob, ofnode, "full-duplex"); in fixedphy_probe()
39 priv->pause = fdtdec_get_bool(gd->fdt_blob, ofnode, "pause"); in fixedphy_probe()
40 priv->asym_pause = fdtdec_get_bool(gd->fdt_blob, ofnode, "asym-pause"); in fixedphy_probe()
/openbmc/u-boot/doc/driver-model/
H A Dlivetree.txt52 The 'ofnode' type provides this. An ofnode can point to either a flat tree
54 caller of an ofnode function does not need to worry about these details.
59 'struct udevice *', rather than having to obtain the ofnode first.
63 hood it uses ofnode so it works with both flat and live device trees.
106 back to using ofnode. For example, for old code like this:
118 ofnode subnode;
126 Useful ofnode functions
143 directly, such as of_read_u32(). Use ofnode functions instead, to allow your
152 ofnode_to_np() - converts ofnode to struct device_node *
153 ofnode_to_offset() - converts ofnode to offset
[all …]
/openbmc/u-boot/arch/arm/mach-tegra/
H A Dxusb-padctl-common.c77 ofnode node) in tegra_xusb_padctl_group_parse_dt()
220 ofnode node) in tegra_xusb_padctl_config_parse_dt()
222 ofnode subnode; in tegra_xusb_padctl_config_parse_dt()
245 ofnode node) in tegra_xusb_padctl_parse_dt()
247 ofnode subnode; in tegra_xusb_padctl_parse_dt()
275 int tegra_xusb_process_nodes(ofnode nodes[], unsigned int count, in tegra_xusb_process_nodes()
/openbmc/u-boot/drivers/net/mdio/
H A Dmdio-uclass.c25 int mdio_device_get_from_phy(ofnode phy_node, struct udevice **devp) in mdio_device_get_from_phy()
27 ofnode mdio_node; in mdio_device_get_from_phy()
33 int mdio_mii_bus_get_from_phy(ofnode phy_node, struct mii_dev **busp) in mdio_mii_bus_get_from_phy()
/openbmc/u-boot/include/net/
H A Dmdio.h29 int mdio_device_get_from_phy(ofnode phy_node, struct udevice **devp);
38 int mdio_mii_bus_get_from_phy(ofnode phy_node, struct mii_dev **busp);
/openbmc/u-boot/drivers/sound/
H A Dhda_codec.c174 static int find_verb_data(struct udevice *dev, uint id, ofnode *nodep) in find_verb_data()
176 ofnode parent = dev_read_subnode(dev, "codecs"); in find_verb_data()
177 ofnode node; in find_verb_data()
202 static int send_verbs(ofnode node, const char *prop_name, struct hda_regs *regs) in send_verbs()
235 ofnode node; in codec_init()
/openbmc/u-boot/drivers/bootcount/
H A Dbootcount-uclass.c35 ofnode node; in bootcount_store()
62 ofnode node; in bootcount_load()
/openbmc/u-boot/drivers/power/pmic/
H A Dpalmas.c46 ofnode pmic_node = ofnode_null(), regulators_node; in palmas_bind()
47 ofnode subnode; in palmas_bind()
/openbmc/u-boot/include/
H A Dphy.h117 ofnode node;
199 static inline ofnode phy_get_ofnode(struct phy_device *phydev) in phy_get_ofnode()
211 static inline ofnode phy_get_ofnode(struct phy_device *phydev) in phy_get_ofnode()
/openbmc/u-boot/include/asm-generic/
H A Dgpio.h510 int gpio_request_by_name_nodev(ofnode node, const char *list_name, int index,
519 int gpio_request_list_by_name_nodev(ofnode node, const char *list_name,
/openbmc/u-boot/arch/x86/cpu/tangier/
H A Dpinmux.c127 static int mrfld_pinctrl_cfg_pin(ofnode pin_node) in mrfld_pinctrl_cfg_pin()
163 ofnode pin_node; in tangier_pinctrl_probe()

12345