Lines Matching refs:p
20 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq() local
22 if (!p) in _fdt_nodename_eq()
26 if (memcmp(p, s, len) != 0) in _fdt_nodename_eq()
29 if (p[len] == '\0') in _fdt_nodename_eq()
31 else if (!memchr(s, '@', len) && (p[len] == '@')) in _fdt_nodename_eq()
45 const char *p = fdt_string(fdt, stroffset); in _fdt_string_eq() local
47 return (strnlen(p, len + 1) == len) && (memcmp(p, s, len) == 0); in _fdt_string_eq()
164 const char *p = path; in fdt_path_offset_namelen() local
176 p = fdt_get_alias_namelen(fdt, p, q - p); in fdt_path_offset_namelen()
177 if (!p) in fdt_path_offset_namelen()
179 offset = fdt_path_offset(fdt, p); in fdt_path_offset_namelen()
181 p = q; in fdt_path_offset_namelen()
184 while (*p && (p < end)) { in fdt_path_offset_namelen()
187 while (*p == '/') in fdt_path_offset_namelen()
188 p++; in fdt_path_offset_namelen()
190 if (*p == '\0' || *p == ':') in fdt_path_offset_namelen()
193 q = fdt_path_next_separator(p, end - p); in fdt_path_offset_namelen()
197 offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); in fdt_path_offset_namelen()
201 p = q; in fdt_path_offset_namelen()
370 int pdepth = 0, p = 0; in fdt_get_path() local
384 p--; in fdt_get_path()
385 } while (buf[p-1] != '/'); in fdt_get_path()
393 if ((p + namelen + 1) <= buflen) { in fdt_get_path()
394 memcpy(buf + p, name, namelen); in fdt_get_path()
395 p += namelen; in fdt_get_path()
396 buf[p++] = '/'; in fdt_get_path()
405 if (p > 1) /* special case so that root path is "/", not "" */ in fdt_get_path()
406 p--; in fdt_get_path()
407 buf[p] = '\0'; in fdt_get_path()
532 const char *p; in fdt_stringlist_contains() local
537 p = memchr(strlist, '\0', listlen); in fdt_stringlist_contains()
538 if (!p) in fdt_stringlist_contains()
540 listlen -= (p-strlist) + 1; in fdt_stringlist_contains()
541 strlist = p + 1; in fdt_stringlist_contains()