Lines Matching refs:np
50 struct device_node *np; in unflatten_dt_node() local
96 np = unflatten_dt_alloc(&mem, sizeof(struct device_node) + allocl, in unflatten_dt_node()
101 fn = (char *)np + sizeof(*np); in unflatten_dt_node()
102 np->full_name = fn; in unflatten_dt_node()
120 prev_pp = &np->properties; in unflatten_dt_node()
122 np->parent = dad; in unflatten_dt_node()
123 np->sibling = dad->child; in unflatten_dt_node()
124 dad->child = np; in unflatten_dt_node()
157 if (np->phandle == 0) in unflatten_dt_node()
158 np->phandle = be32_to_cpup(p); in unflatten_dt_node()
165 np->phandle = be32_to_cpup(p); in unflatten_dt_node()
207 np->name = of_get_property(np, "name", NULL); in unflatten_dt_node()
208 np->type = of_get_property(np, "device_type", NULL); in unflatten_dt_node()
210 if (!np->name) in unflatten_dt_node()
211 np->name = "<NULL>"; in unflatten_dt_node()
212 if (!np->type) in unflatten_dt_node()
213 np->type = "<NULL>"; } in unflatten_dt_node()
220 mem = unflatten_dt_node(blob, mem, poffset, np, NULL, in unflatten_dt_node()
235 if (!dryrun && np->child) { in unflatten_dt_node()
236 struct device_node *child = np->child; in unflatten_dt_node()
237 np->child = NULL; in unflatten_dt_node()
241 child->sibling = np->child; in unflatten_dt_node()
242 np->child = child; in unflatten_dt_node()
248 *nodepp = np; in unflatten_dt_node()