Lines Matching refs:np
48 struct device_node *np; in unflatten_dt_node() local
94 np = unflatten_dt_alloc(&mem, sizeof(struct device_node) + allocl, in unflatten_dt_node()
99 fn = (char *)np + sizeof(*np); in unflatten_dt_node()
100 np->full_name = fn; in unflatten_dt_node()
118 prev_pp = &np->properties; in unflatten_dt_node()
120 np->parent = dad; in unflatten_dt_node()
121 np->sibling = dad->child; in unflatten_dt_node()
122 dad->child = np; in unflatten_dt_node()
155 if (np->phandle == 0) in unflatten_dt_node()
156 np->phandle = be32_to_cpup(p); in unflatten_dt_node()
163 np->phandle = be32_to_cpup(p); in unflatten_dt_node()
205 np->name = of_get_property(np, "name", NULL); in unflatten_dt_node()
206 np->type = of_get_property(np, "device_type", NULL); in unflatten_dt_node()
208 if (!np->name) in unflatten_dt_node()
209 np->name = "<NULL>"; in unflatten_dt_node()
210 if (!np->type) in unflatten_dt_node()
211 np->type = "<NULL>"; } in unflatten_dt_node()
218 mem = unflatten_dt_node(blob, mem, poffset, np, NULL, in unflatten_dt_node()
233 if (!dryrun && np->child) { in unflatten_dt_node()
234 struct device_node *child = np->child; in unflatten_dt_node()
235 np->child = NULL; in unflatten_dt_node()
239 child->sibling = np->child; in unflatten_dt_node()
240 np->child = child; in unflatten_dt_node()
246 *nodepp = np; in unflatten_dt_node()