Searched refs:of_offset (Results 1 - 17 of 17) sorted by relevance

/u-boot/include/dm/
H A Dofnode_decl.h37 * 'tree ID' is encoded into the top bits of @of_offset - see immediately below
43 * For the multiple-tree case, an invalid offset (i.e. with of_offset < 0) is
48 * @of_offset: Pointer into flat device tree, used for flat tree. Note that this
53 long of_offset; member in union:ofnode_union
56 /* shift for the tree ID within of_offset */
59 /* mask to obtain the device tree offset from of_offset */
62 /* encode a tree ID and node offset into an of_offset value */
65 /* decode the node offset from an of_offset value */
68 /* decode the tree ID from an of_offset value */
71 /* encode a node offset in the tree given by another node's of_offset valu
[all...]
H A Dofnode.h77 * @of_offset: DT offset (either valid, or -1)
80 ofnode noffset_to_ofnode(ofnode other_node, int of_offset);
101 return node.of_offset;
117 static inline ofnode noffset_to_ofnode(ofnode other_node, int of_offset) argument
124 node.of_offset = of_offset;
180 return node.of_offset >= 0;
202 * @of_offset: DT offset (either valid, or -1)
205 static inline ofnode offset_to_ofnode(int of_offset) argument
212 node.of_offset
[all...]
H A Ddevice.h123 * in the device tree (in which case of_offset is >= 0). In the latter case
714 * @of_offset: Device tree offset to find
718 int device_find_child_by_of_offset(const struct udevice *parent, int of_offset,
729 * @of_offset: Device tree offset to find
733 int device_get_child_by_of_offset(const struct udevice *parent, int of_offset,
/u-boot/arch/mips/mach-octeon/include/mach/
H A Dcvmx-helper-gpio.h218 int of_offset; /** Offset in device tree */ member in struct:cvmx_fdt_gpio_info
264 int of_offset; /** Device tree node */ member in struct:cvmx_fdt_gpio_led
294 * @param of_offset node offset of GPIO device
299 struct cvmx_fdt_gpio_info *cvmx_fdt_gpio_get_info(const void *fdt_addr, int of_offset,
306 * @param of_offset node offset for property
311 struct cvmx_fdt_gpio_info *cvmx_fdt_gpio_get_info_phandle(const void *fdt_addr, int of_offset,
403 * @param of_offset Device tree offset
409 struct cvmx_fdt_gpio_led *cvmx_alloc_led(const char *name, int of_offset,
H A Dcvmx-helper-fdt.h50 int of_offset; member in struct:cvmx_fdt_i2c_bus_info
84 int of_offset; member in struct:cvmx_fdt_sfp_info
399 * @param of_offset node offset for property
404 struct cvmx_fdt_gpio_info *cvmx_fdt_gpio_get_info_phandle(const void *fdt_addr, int of_offset,
512 * @param of_offset offset of slice or phy in device tree
517 int cvmx_fdt_parse_cs4343(const void *fdt_addr, int of_offset, struct cvmx_phy_info *phy_info);
H A Dcvmx-helper-board.h100 int of_offset; member in struct:cvmx_phy_gpio_leds
168 int of_offset; /** Offset of channel info in dt */ member in struct:cvmx_vsc7224_chan
192 int of_offset; /** Offset in device tree */ member in struct:cvmx_vsc7224
202 int of_offset; /** Offset in device tree */ member in struct:cvmx_avsp5410
223 int of_offset; /** Offset in device tree */ member in struct:cvmx_cs4343_slice_info
261 int of_offset; member in struct:cvmx_cs4343_info
H A Dcvmx-helper-cfg.h770 * @param of_offset Node offset of port to search for
774 int cvmx_helper_cfg_get_ipd_port_by_fdt_node_offset(int of_offset);
789 * @param of_offset Node offset of port to search for
795 int cvmx_helper_cfg_get_xiface_index_by_fdt_node_offset(int of_offset, int *xiface, int *index);
H A Dcvmx-helper-sfp.h406 * @param of_offset flat device tree node offset
410 struct cvmx_fdt_sfp_info *cvmx_sfp_find_slot_by_fdt_node(int of_offset);
/u-boot/drivers/misc/
H A Dsocfpga_dtreg.c41 node.of_offset, name);
/u-boot/drivers/core/
H A Dofnode.c152 uint i = OFTREE_TREE_ID(node.of_offset);
192 if (CONFIG_IS_ENABLED(OFNODE_MULTI_TREE) && node.of_offset >= 0)
193 return OFTREE_OFFSET(node.of_offset);
195 return node.of_offset;
218 * @of_offset: DT offset (either valid, or -1)
221 ofnode noffset_to_ofnode(ofnode other_node, int of_offset) argument
227 else if (!CONFIG_IS_ENABLED(OFNODE_MULTI_TREE) || of_offset < 0 ||
229 node.of_offset = of_offset;
231 node.of_offset
[all...]
H A Ddevice.c853 int device_find_child_by_of_offset(const struct udevice *parent, int of_offset, argument
861 if (dev_of_offset(dev) == of_offset) {
/u-boot/test/dm/
H A Dofnode.c1061 ut_asserteq(subnode.of_offset, check.of_offset);
1081 ut_asserteq(subnode.of_offset, check.of_offset);
1088 ut_asserteq(subnode.of_offset, check.of_offset);
1379 ut_asserteq(check.of_offset, subnode.of_offset);
1428 ut_asserteq(try.of_offset, node.of_offset);
[all...]
/u-boot/arch/mips/mach-octeon/
H A Dcvmx-helper-fdt.c97 * @param of_offset Offset of vsc7224 node
180 channel->of_offset = ofnode_to_offset(node_chan);
310 vsc7224->of_offset = ofnode_to_offset(node);
441 businfo->of_offset = ofnode_to_offset(node);
H A Dcvmx-helper-sfp.c799 * @param of_offset Node in device tree for SFP slot
809 sfp->of_offset = ofnode_to_offset(node);
886 * @param of_offset Node in device tree for SFP slot
897 sfp->of_offset = ofnode_to_offset(node);
1157 * @param of_offset flat device tree node offset
1161 struct cvmx_fdt_sfp_info *cvmx_sfp_find_slot_by_fdt_node(int of_offset) argument
1166 if (sfp->of_offset == of_offset)
/u-boot/arch/x86/cpu/tangier/
H A Dpinmux.c202 __func__, pin_node.of_offset);
/u-boot/drivers/video/
H A Dnexell_display.c417 node = dev_ofnode(dev).of_offset;
/u-boot/drivers/mtd/nand/raw/
H A Docteontx_nand.c2020 __func__, tn, dev->name, nand_node.of_offset);

Completed in 157 milliseconds