Home
last modified time | relevance | path

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

/scripts/dtc/libfdt/
Dfdt_sw.c140 struct fdt_node_header *nh; in fdt_begin_node() local
145 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); in fdt_begin_node()
146 if (! nh) in fdt_begin_node()
149 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); in fdt_begin_node()
150 memcpy(nh->name, name, namelen); in fdt_begin_node()
Dfdt_rw.c310 struct fdt_node_header *nh; in fdt_add_subnode_namelen() local
332 nh = _fdt_offset_ptr_w(fdt, offset); in fdt_add_subnode_namelen()
333 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE; in fdt_add_subnode_namelen()
335 err = _fdt_splice_struct(fdt, nh, 0, nodelen); in fdt_add_subnode_namelen()
339 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); in fdt_add_subnode_namelen()
340 memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); in fdt_add_subnode_namelen()
341 memcpy(nh->name, name, namelen); in fdt_add_subnode_namelen()
342 endtag = (uint32_t *)((char *)nh + nodelen - FDT_TAGSIZE); in fdt_add_subnode_namelen()
Dfdt_ro.c163 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); in fdt_get_name() local
171 *len = strlen(nh->name); in fdt_get_name()
173 return nh->name; in fdt_get_name()