Lines Matching refs:namep

224 	char *namep;  in bootx_scan_dt_build_strings()  local
227 namep = np->full_name ? (char *)(base + np->full_name) : NULL; in bootx_scan_dt_build_strings()
228 if (namep == NULL) { in bootx_scan_dt_build_strings()
230 namep = ""; in bootx_scan_dt_build_strings()
232 DBG("* strings: %s\n", namep); in bootx_scan_dt_build_strings()
234 if (!strcmp(namep, "/chosen")) { in bootx_scan_dt_build_strings()
247 strscpy(bootx_disp_path, namep, sizeof(bootx_disp_path)); in bootx_scan_dt_build_strings()
255 namep = pp->name ? (char *)(base + pp->name) : NULL; in bootx_scan_dt_build_strings()
256 if (namep == NULL || strcmp(namep, "name") == 0) in bootx_scan_dt_build_strings()
259 soff = bootx_dt_find_string(namep); in bootx_scan_dt_build_strings()
261 bootx_dt_add_string(namep, mem_end); in bootx_scan_dt_build_strings()
281 char *namep, *p, *ep, *lp; in bootx_scan_dt_build_struct() local
287 namep = np->full_name ? (char *)(base + np->full_name) : NULL; in bootx_scan_dt_build_struct()
288 if (namep == NULL) in bootx_scan_dt_build_struct()
289 namep = ""; in bootx_scan_dt_build_struct()
290 l = strlen(namep); in bootx_scan_dt_build_struct()
292 DBG("* struct: %s\n", namep); in bootx_scan_dt_build_struct()
298 memcpy((void *)*mem_end, namep, l + 1); in bootx_scan_dt_build_struct()
299 namep = (char *)*mem_end; in bootx_scan_dt_build_struct()
300 for (lp = p = namep, ep = namep + l; p < ep; p++) { in bootx_scan_dt_build_struct()
302 lp = namep; in bootx_scan_dt_build_struct()
314 namep = pp->name ? (char *)(base + pp->name) : NULL; in bootx_scan_dt_build_struct()
316 if (namep == NULL || !strcmp(namep, "name")) in bootx_scan_dt_build_struct()
319 if (node == bootx_node_chosen && !strcmp(namep, "bootargs")) in bootx_scan_dt_build_struct()
323 bootx_dt_add_prop(namep, in bootx_scan_dt_build_struct()