Home
last modified time | relevance | path

Searched refs:nh (Results 1 – 3 of 3) sorted by relevance

/scripts/dtc/libfdt/
Dfdt_sw.c221 struct fdt_node_header *nh; in fdt_begin_node() local
227 nh = fdt_grab_space_(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); in fdt_begin_node()
228 if (! nh) in fdt_begin_node()
231 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); in fdt_begin_node()
232 memcpy(nh->name, name, namelen); in fdt_begin_node()
Dfdt_rw.c336 struct fdt_node_header *nh; in fdt_add_subnode_namelen() local
358 nh = fdt_offset_ptr_w_(fdt, offset); in fdt_add_subnode_namelen()
359 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE; in fdt_add_subnode_namelen()
361 err = fdt_splice_struct_(fdt, nh, 0, nodelen); in fdt_add_subnode_namelen()
365 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); in fdt_add_subnode_namelen()
366 memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); in fdt_add_subnode_namelen()
367 memcpy(nh->name, name, namelen); in fdt_add_subnode_namelen()
368 endtag = (fdt32_t *)((char *)nh + nodelen - FDT_TAGSIZE); in fdt_add_subnode_namelen()
Dfdt_ro.c302 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); in fdt_get_name() local
310 nameptr = nh->name; in fdt_get_name()