Lines Matching refs:len

59 			    const char *s, int len)  in _fdt_nodename_eq()  argument
61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq()
67 if (memcmp(p, s, len) != 0) in _fdt_nodename_eq()
70 if (p[len] == '\0') in _fdt_nodename_eq()
72 else if (!memchr(s, '@', len) && (p[len] == '@')) in _fdt_nodename_eq()
161 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument
170 if (len) in fdt_get_name()
171 *len = strlen(nh->name); in fdt_get_name()
176 if (len) in fdt_get_name()
177 *len = err; in fdt_get_name()
218 int len = fdt32_to_cpu(prop->len); in fdt_get_property() local
220 sizeof(*prop)+len); in fdt_get_property()
225 *lenp = len; in fdt_get_property()
259 int len; in fdt_get_phandle() local
261 php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len); in fdt_get_phandle()
262 if (!php || (len != sizeof(*php))) in fdt_get_phandle()
384 int len; in fdt_node_offset_by_prop_value() local
396 val = fdt_getprop(fdt, offset, propname, &len); in fdt_node_offset_by_prop_value()
397 if (val && (len == proplen) in fdt_node_offset_by_prop_value()
398 && (memcmp(val, propval, len) == 0)) in fdt_node_offset_by_prop_value()
416 int len = strlen(str); in _stringlist_contains() local
419 while (listlen >= len) { in _stringlist_contains()
420 if (memcmp(str, strlist, len+1) == 0) in _stringlist_contains()
435 int len; in fdt_node_check_compatible() local
437 prop = fdt_getprop(fdt, nodeoffset, "compatible", &len); in fdt_node_check_compatible()
439 return len; in fdt_node_check_compatible()
440 if (_stringlist_contains(prop, len, compatible)) in fdt_node_check_compatible()