Home
last modified time | relevance | path

Searched refs:nextoffset (Results 1 – 18 of 18) sorted by relevance

/openbmc/u-boot/scripts/dtc/libfdt/
H A Dfdt.c94 uint32_t fdt_next_tag(const void *fdt, int startoffset, int *nextoffset) in fdt_next_tag() argument
101 *nextoffset = -FDT_ERR_TRUNCATED; in fdt_next_tag()
108 *nextoffset = -FDT_ERR_BADSTRUCTURE; in fdt_next_tag()
143 *nextoffset = FDT_TAGALIGN(offset); in fdt_next_tag()
167 int nextoffset = 0; in fdt_next_node() local
171 if ((nextoffset = fdt_check_node_offset_(fdt, offset)) < 0) in fdt_next_node()
172 return nextoffset; in fdt_next_node()
175 offset = nextoffset; in fdt_next_node()
176 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_next_node()
190 return nextoffset; in fdt_next_node()
[all …]
H A Dfdt_sw.c263 int offset, nextoffset; in fdt_finish() local
281 while ((tag = fdt_next_tag(fdt, offset, &nextoffset)) != FDT_END) { in fdt_finish()
291 offset = nextoffset; in fdt_finish()
293 if (nextoffset < 0) in fdt_finish()
294 return nextoffset; in fdt_finish()
H A Dfdt_rw.c225 int nextoffset; in fdt_add_property_() local
229 if ((nextoffset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_add_property_()
230 return nextoffset; in fdt_add_property_()
236 *prop = fdt_offset_ptr_w_(fdt, nextoffset); in fdt_add_property_()
351 int offset, nextoffset; in fdt_add_subnode_namelen() local
366 fdt_next_tag(fdt, parentoffset, &nextoffset); /* skip the BEGIN_NODE */ in fdt_add_subnode_namelen()
368 offset = nextoffset; in fdt_add_subnode_namelen()
369 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_add_subnode_namelen()
H A Dfdt_ro.c138 int nextoffset; in nextprop_() local
141 tag = fdt_next_tag(fdt, offset, &nextoffset); in nextprop_()
145 if (nextoffset >= 0) in nextprop_()
148 return nextoffset; in nextprop_()
153 offset = nextoffset; in nextprop_()
H A Dlibfdt.h154 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
/openbmc/linux/scripts/dtc/libfdt/
H A Dfdt.c162 uint32_t fdt_next_tag(const void *fdt, int startoffset, int *nextoffset) in fdt_next_tag() argument
169 *nextoffset = -FDT_ERR_TRUNCATED; in fdt_next_tag()
176 *nextoffset = -FDT_ERR_BADSTRUCTURE; in fdt_next_tag()
219 *nextoffset = FDT_TAGALIGN(offset); in fdt_next_tag()
249 int nextoffset = 0; in fdt_next_node() local
253 if ((nextoffset = fdt_check_node_offset_(fdt, offset)) < 0) in fdt_next_node()
254 return nextoffset; in fdt_next_node()
257 offset = nextoffset; in fdt_next_node()
258 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_next_node()
272 return nextoffset; in fdt_next_node()
[all …]
H A Dfdt_rw.c206 int nextoffset; in fdt_add_property_() local
211 if ((nextoffset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_add_property_()
212 return nextoffset; in fdt_add_property_()
218 *prop = fdt_offset_ptr_w_(fdt, nextoffset); in fdt_add_property_()
337 int offset, nextoffset; in fdt_add_subnode_namelen() local
352 tag = fdt_next_tag(fdt, parentoffset, &nextoffset); in fdt_add_subnode_namelen()
357 offset = nextoffset; in fdt_add_subnode_namelen()
358 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_add_subnode_namelen()
H A Dfdt_sw.c343 int offset, nextoffset; in fdt_finish() local
361 while ((tag = fdt_next_tag(fdt, offset, &nextoffset)) != FDT_END) { in fdt_finish()
371 offset = nextoffset; in fdt_finish()
373 if (nextoffset < 0) in fdt_finish()
374 return nextoffset; in fdt_finish()
H A Dfdt_ro.c204 int nextoffset; in nextprop_() local
207 tag = fdt_next_tag(fdt, offset, &nextoffset); in nextprop_()
211 if (nextoffset >= 0) in nextprop_()
214 return nextoffset; in nextprop_()
219 offset = nextoffset; in nextprop_()
H A Dlibfdt.h127 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
/openbmc/u-boot/lib/libfdt/
H A Dfdt_region.c37 int nextoffset = 0; in fdt_find_regions() local
56 offset = nextoffset; in fdt_find_regions()
57 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_find_regions()
58 stop_at = nextoffset; in fdt_find_regions()
134 if (nextoffset != fdt_size_dt_struct(fdt)) in fdt_find_regions()
140 region[count].size = nextoffset - start; in fdt_find_regions()
356 p->nextoffset = 0; in fdt_first_region()
491 offset = p.nextoffset; in fdt_next_region()
492 tag = fdt_next_tag(fdt, offset, &p.nextoffset); in fdt_next_region()
493 stop_at = p.nextoffset; in fdt_next_region()
[all …]
H A Dfdt_ro.c96 int nextoffset; in _nextprop() local
99 tag = fdt_next_tag(fdt, offset, &nextoffset); in _nextprop()
103 if (nextoffset >= 0) in _nextprop()
106 return nextoffset; in _nextprop()
111 offset = nextoffset; in _nextprop()
/openbmc/u-boot/fs/cramfs/
H A Dcramfs.c120 unsigned long inodeoffset = 0, nextoffset; in cramfs_resolve() local
138 nextoffset = in cramfs_resolve()
200 inodeoffset = nextoffset; in cramfs_resolve()
299 unsigned long inodeoffset = 0, nextoffset; in cramfs_ls() local
336 nextoffset = cramfs_list_inode (info, offset + inodeoffset); in cramfs_ls()
337 if (nextoffset == 0) in cramfs_ls()
339 inodeoffset += sizeof (struct cramfs_inode) + nextoffset; in cramfs_ls()
/openbmc/linux/scripts/dtc/
H A Dfdtget.c138 int nextoffset; /* next node offset from libfdt */ in list_subnodes() local
145 tag = fdt_next_tag(blob, node, &nextoffset); in list_subnodes()
177 node = nextoffset; in list_subnodes()
/openbmc/u-boot/include/linux/
H A Dlibfdt.h74 int nextoffset; /* Next node offset to check */ member
/openbmc/u-boot/tools/
H A Dfdtgrep.c239 int offset, nextoffset; in display_fdt_by_regions() local
295 nextoffset = 0; in display_fdt_by_regions()
303 offset = nextoffset; in display_fdt_by_regions()
314 tag = fdt_next_tag(blob, offset, &nextoffset); in display_fdt_by_regions()
/openbmc/u-boot/cmd/
H A Dfdt.c996 int nextoffset; /* next node offset from libfdt */ in fdt_print() local
1038 tag = fdt_next_tag(working_fdt, nodeoffset, &nextoffset); in fdt_print()
1101 nodeoffset = nextoffset; in fdt_print()
/openbmc/linux/fs/cramfs/
H A Dinode.c715 unsigned long nextoffset; in cramfs_readdir() local
735 nextoffset = offset + sizeof(*de) + namelen; in cramfs_readdir()
748 ctx->pos = offset = nextoffset; in cramfs_readdir()