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

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

Completed in 40 milliseconds