Lines Matching refs:len
31 int len; in overlay_get_target_phandle() local
33 val = fdt_getprop(fdto, fragment, "target", &len); in overlay_get_target_phandle()
37 if ((len != sizeof(*val)) || (fdt32_to_cpu(*val) == (uint32_t)-1)) in overlay_get_target_phandle()
121 int len; in overlay_phandle_add_offset() local
123 val = fdt_getprop(fdt, node, name, &len); in overlay_phandle_add_offset()
125 return len; in overlay_phandle_add_offset()
127 if (len != sizeof(*val)) in overlay_phandle_add_offset()
433 int len; in overlay_fixup_phandle() local
436 &label, &len); in overlay_fixup_phandle()
438 if (len == -FDT_ERR_NOTFOUND) in overlay_fixup_phandle()
441 return len; in overlay_fixup_phandle()
452 fixup_end = memchr(value, '\0', len); in overlay_fixup_phandle()
457 len -= fixup_len + 1; in overlay_fixup_phandle()
488 } while (len > 0); in overlay_fixup_phandle()
653 int len = 0, namelen; in get_path_len() local
670 len += namelen + 1; in get_path_len()
674 if (len == 0) in get_path_len()
675 len++; in get_path_len()
676 return len; in get_path_len()
698 int len, frag_name_len, ret, rel_path_len; in overlay_symbol_update() local
752 len = sizeof("/__overlay__/") - 1; in overlay_symbol_update()
753 if ((e - s) > len && (memcmp(s, "/__overlay__/", len) == 0)) { in overlay_symbol_update()
755 rel_path = s + len; in overlay_symbol_update()
757 } else if ((e - s) == len in overlay_symbol_update()
758 && (memcmp(s, "/__overlay__", len - 1) == 0)) { in overlay_symbol_update()
792 len = ret; in overlay_symbol_update()
794 len = strlen(target_path); in overlay_symbol_update()
798 len + (len > 1) + rel_path_len + 1, &p); in overlay_symbol_update()
811 if (len > 1) { /* target is not root */ in overlay_symbol_update()
813 ret = fdt_get_path(fdt, target, buf, len + 1); in overlay_symbol_update()
817 memcpy(buf, target_path, len + 1); in overlay_symbol_update()
820 len--; in overlay_symbol_update()
822 buf[len] = '/'; in overlay_symbol_update()
823 memcpy(buf + len + 1, rel_path, rel_path_len); in overlay_symbol_update()
824 buf[len + 1 + rel_path_len] = '\0'; in overlay_symbol_update()