Home
last modified time | relevance | path

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

/scripts/dtc/libfdt/
Dfdt_sw.c172 struct fdt_node_header *nh; in fdt_begin_node() local
177 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); in fdt_begin_node()
178 if (! nh) in fdt_begin_node()
181 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); in fdt_begin_node()
182 memcpy(nh->name, name, namelen); in fdt_begin_node()
Dfdt_rw.c339 struct fdt_node_header *nh; in fdt_add_subnode_namelen() local
361 nh = _fdt_offset_ptr_w(fdt, offset); in fdt_add_subnode_namelen()
362 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE; in fdt_add_subnode_namelen()
364 err = _fdt_splice_struct(fdt, nh, 0, nodelen); in fdt_add_subnode_namelen()
368 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); in fdt_add_subnode_namelen()
369 memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); in fdt_add_subnode_namelen()
370 memcpy(nh->name, name, namelen); in fdt_add_subnode_namelen()
371 endtag = (fdt32_t *)((char *)nh + nodelen - FDT_TAGSIZE); in fdt_add_subnode_namelen()
Dfdt_ro.c209 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); in fdt_get_name() local
217 *len = strlen(nh->name); in fdt_get_name()
219 return nh->name; in fdt_get_name()