Lines Matching refs:newlen
54 static int fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) in fdt_splice_() argument
62 if ((p < (char *)fdt) || (dsize + newlen < (unsigned)oldlen)) in fdt_splice_()
64 if (dsize - oldlen + newlen > fdt_totalsize(fdt)) in fdt_splice_()
66 memmove(p + newlen, p + oldlen, ((char *)fdt + dsize) - (p + oldlen)); in fdt_splice_()
84 int oldlen, int newlen) in fdt_splice_struct_() argument
86 int delta = newlen - oldlen; in fdt_splice_struct_()
89 if ((err = fdt_splice_(fdt, p, oldlen, newlen))) in fdt_splice_struct_()
100 int newlen = strlen(s) + 1; in fdt_del_last_string_() local
102 fdt_set_size_dt_strings(fdt, fdt_size_dt_strings(fdt) - newlen); in fdt_del_last_string_()
105 static int fdt_splice_string_(void *fdt, int newlen) in fdt_splice_string_() argument
111 if ((err = fdt_splice_(fdt, p, 0, newlen))) in fdt_splice_string_()
114 fdt_set_size_dt_strings(fdt, fdt_size_dt_strings(fdt) + newlen); in fdt_splice_string_()
238 int oldlen, newlen; in fdt_set_name() local
247 newlen = strlen(name); in fdt_set_name()
250 FDT_TAGALIGN(newlen+1)); in fdt_set_name()
254 memcpy(namep, name, newlen+1); in fdt_set_name()
295 int err, oldlen, newlen; in fdt_appendprop() local
301 newlen = len + oldlen; in fdt_appendprop()
304 FDT_TAGALIGN(newlen)); in fdt_appendprop()
307 prop->len = cpu_to_fdt32(newlen); in fdt_appendprop()