Lines Matching refs:p
17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() local
19 if (!p || olen < len) in fdt_nodename_eq_()
23 if (memcmp(p, s, len) != 0) in fdt_nodename_eq_()
26 if (p[len] == '\0') in fdt_nodename_eq_()
28 else if (!memchr(s, '@', len) && (p[len] == '@')) in fdt_nodename_eq_()
109 const char *p = fdt_get_string(fdt, stroffset, &slen); in fdt_string_eq_() local
111 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_()
253 const char *p = path; in fdt_path_offset_namelen() local
260 const char *q = memchr(path, '/', end - p); in fdt_path_offset_namelen()
265 p = fdt_get_alias_namelen(fdt, p, q - p); in fdt_path_offset_namelen()
266 if (!p) in fdt_path_offset_namelen()
268 offset = fdt_path_offset(fdt, p); in fdt_path_offset_namelen()
270 p = q; in fdt_path_offset_namelen()
273 while (p < end) { in fdt_path_offset_namelen()
276 while (*p == '/') { in fdt_path_offset_namelen()
277 p++; in fdt_path_offset_namelen()
278 if (p == end) in fdt_path_offset_namelen()
281 q = memchr(p, '/', end - p); in fdt_path_offset_namelen()
285 offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); in fdt_path_offset_namelen()
289 p = q; in fdt_path_offset_namelen()
544 int pdepth = 0, p = 0; in fdt_get_path() local
558 p--; in fdt_get_path()
559 } while (buf[p-1] != '/'); in fdt_get_path()
567 if ((p + namelen + 1) <= buflen) { in fdt_get_path()
568 memcpy(buf + p, name, namelen); in fdt_get_path()
569 p += namelen; in fdt_get_path()
570 buf[p++] = '/'; in fdt_get_path()
579 if (p > 1) /* special case so that root path is "/", not "" */ in fdt_get_path()
580 p--; in fdt_get_path()
581 buf[p] = '\0'; in fdt_get_path()
709 const char *p; in fdt_stringlist_contains() local
714 p = memchr(strlist, '\0', listlen); in fdt_stringlist_contains()
715 if (!p) in fdt_stringlist_contains()
717 listlen -= (p-strlist) + 1; in fdt_stringlist_contains()
718 strlist = p + 1; in fdt_stringlist_contains()