Lines Matching refs:len
14 const char *s, int len) in fdt_nodename_eq_() argument
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_()
38 size_t len; in fdt_get_string() local
58 len = totalsize - absoffset; in fdt_get_string()
66 if ((fdt_size_dt_strings(fdt) - stroffset) < len) in fdt_get_string()
67 len = fdt_size_dt_strings(fdt) - stroffset; in fdt_get_string()
75 if (sw_stroffset < len) in fdt_get_string()
76 len = sw_stroffset; in fdt_get_string()
83 n = memchr(s, '\0', len); in fdt_get_string()
106 const char *s, int len) in fdt_string_eq_() argument
111 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_()
300 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument
327 if (len) in fdt_get_name()
328 *len = strlen(nameptr); in fdt_get_name()
333 if (len) in fdt_get_name()
334 *len = err; in fdt_get_name()
373 *lenp = fdt32_ld(&prop->len); in fdt_get_property_by_offset_()
464 (poffset + sizeof(*prop)) % 8 && fdt32_ld(&prop->len) >= 8) in fdt_getprop_namelen()
497 (offset + sizeof(*prop)) % 8 && fdt32_ld(&prop->len) >= 8) in fdt_getprop_by_offset()
511 int len; in fdt_get_phandle() local
515 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); in fdt_get_phandle()
516 if (!php || (len != sizeof(*php))) { in fdt_get_phandle()
517 php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len); in fdt_get_phandle()
518 if (!php || (len != sizeof(*php))) in fdt_get_phandle()
660 int len; in fdt_node_offset_by_prop_value() local
672 val = fdt_getprop(fdt, offset, propname, &len); in fdt_node_offset_by_prop_value()
673 if (val && (len == proplen) in fdt_node_offset_by_prop_value()
674 && (memcmp(val, propval, len) == 0)) in fdt_node_offset_by_prop_value()
708 int len = strlen(str); in fdt_stringlist_contains() local
711 while (listlen >= len) { in fdt_stringlist_contains()
712 if (memcmp(str, strlist, len+1) == 0) in fdt_stringlist_contains()
751 int length, len, idx = 0; in fdt_stringlist_search() local
758 len = strlen(string) + 1; in fdt_stringlist_search()
768 if (length == len && memcmp(list, string, length) == 0) in fdt_stringlist_search()
827 int len; in fdt_node_check_compatible() local
829 prop = fdt_getprop(fdt, nodeoffset, "compatible", &len); in fdt_node_check_compatible()
831 return len; in fdt_node_check_compatible()
833 return !fdt_stringlist_contains(prop, len, compatible); in fdt_node_check_compatible()