Lines Matching refs:p

62 	const char *p = fdt_get_name(fdt, offset, &olen);  in fdt_nodename_eq_()  local
64 if (!p || olen < len) in fdt_nodename_eq_()
68 if (memcmp(p, s, len) != 0) in fdt_nodename_eq_()
71 if (p[len] == '\0') in fdt_nodename_eq_()
73 else if (!memchr(s, '@', len) && (p[len] == '@')) in fdt_nodename_eq_()
87 const char *p = fdt_string(fdt, stroffset); in fdt_string_eq_() local
89 return (strlen(p) == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_()
187 const char *p = path; in fdt_path_offset_namelen() local
194 const char *q = memchr(path, '/', end - p); in fdt_path_offset_namelen()
199 p = fdt_get_alias_namelen(fdt, p, q - p); in fdt_path_offset_namelen()
200 if (!p) in fdt_path_offset_namelen()
202 offset = fdt_path_offset(fdt, p); in fdt_path_offset_namelen()
204 p = q; in fdt_path_offset_namelen()
207 while (p < end) { in fdt_path_offset_namelen()
210 while (*p == '/') { in fdt_path_offset_namelen()
211 p++; in fdt_path_offset_namelen()
212 if (p == end) in fdt_path_offset_namelen()
215 q = memchr(p, '/', end - p); in fdt_path_offset_namelen()
219 offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); in fdt_path_offset_namelen()
223 p = q; in fdt_path_offset_namelen()
461 int pdepth = 0, p = 0; in fdt_get_path() local
475 p--; in fdt_get_path()
476 } while (buf[p-1] != '/'); in fdt_get_path()
484 if ((p + namelen + 1) <= buflen) { in fdt_get_path()
485 memcpy(buf + p, name, namelen); in fdt_get_path()
486 p += namelen; in fdt_get_path()
487 buf[p++] = '/'; in fdt_get_path()
496 if (p > 1) /* special case so that root path is "/", not "" */ in fdt_get_path()
497 p--; in fdt_get_path()
498 buf[p] = '\0'; in fdt_get_path()
623 const char *p; in fdt_stringlist_contains() local
628 p = memchr(strlist, '\0', listlen); in fdt_stringlist_contains()
629 if (!p) in fdt_stringlist_contains()
631 listlen -= (p-strlist) + 1; in fdt_stringlist_contains()
632 strlist = p + 1; in fdt_stringlist_contains()