• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/scripts/dtc/libfdt/

Lines Matching refs:nodeoffset

325  * @nodeoffset: structure block offset of the starting node
329 * device tree node at structure block offset nodeoffset. If lenp is
338 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
343 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
348 * @nodeoffset: offset of the node whose property to find
354 * named 'name' of the node at offset nodeoffset. If lenp is
365 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
372 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
374 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset,
379 fdt_get_property(fdt, nodeoffset, name, lenp);
385 * @nodeoffset: offset of the node whose property to find
390 * named 'name' of the node at offset nodeoffset (this will be a
402 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
409 const void *fdt_getprop(const void *fdt, int nodeoffset,
411 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
414 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
420 * @nodeoffset: structure block offset of the node
423 * structure block offset nodeoffset.
426 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
429 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
434 * @nodeoffset: offset of the node whose path to find
439 * nodeoffset, and records that path in the buffer at buf.
442 * structure from the start to nodeoffset.
447 * nodeoffset, as a NUL-terminated string.
448 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
456 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
461 * @nodeoffset: offset of the node whose parent to find
468 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
470 * nodeoffset has depth D, then:
471 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
472 * will return nodeoffset itself.
475 * structure from the start to nodeoffset.
481 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
482 * -FDT_ERR_NOTFOUND, supernodedepth was greater than the depth of nodeoffset
488 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
494 * @nodeoffset: offset of the node whose parent to find
500 * structure from the start to nodeoffset.
503 * depth of the node at nodeoffset (>=0), on success
504 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
510 int fdt_node_depth(const void *fdt, int nodeoffset);
515 * @nodeoffset: offset of the node whose parent to find
519 * nodeoffset as a subnode).
522 * structure from the start to nodeoffset, *twice*.
525 * structure block offset of the parent of the node at nodeoffset
527 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
533 int fdt_parent_offset(const void *fdt, int nodeoffset);
567 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
601 * @nodeoffset: offset of a tree node
614 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
620 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
651 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
667 * @nodeoffset: offset of the node whose property to change
685 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
692 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
698 * @nodeoffset: offset of the node whose property to change
716 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
723 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
727 return fdt_setprop_inplace(fdt, nodeoffset, name, &val, sizeof(val));
733 * @nodeoffset: offset of the node whose property to nop
747 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
754 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
759 * @nodeoffset: offset of the node to nop
771 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
778 int fdt_nop_node(void *fdt, int nodeoffset);
857 * @nodeoffset: structure block offset of a node
873 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
878 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
883 * @nodeoffset: offset of the node whose property to change
899 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
908 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
914 * @nodeoffset: offset of the node whose property to change
930 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
939 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
943 return fdt_setprop(fdt, nodeoffset, name, &val, sizeof(val));
949 * @nodeoffset: offset of the node whose property to change
965 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
974 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
975 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
980 * @nodeoffset: offset of the node whose property to nop
991 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
999 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1050 * @nodeoffset: offset of the node to nop
1060 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1068 int fdt_del_node(void *fdt, int nodeoffset);