Lines Matching refs:newlen
97 static int fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) in fdt_splice_() argument
104 if ((p < (char *)fdt) || ((end - oldlen + newlen) < (char *)fdt)) in fdt_splice_()
106 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) in fdt_splice_()
108 memmove(p + newlen, p + oldlen, end - p - oldlen); in fdt_splice_()
126 int oldlen, int newlen) in fdt_splice_struct_() argument
128 int delta = newlen - oldlen; in fdt_splice_struct_()
131 if ((err = fdt_splice_(fdt, p, oldlen, newlen))) in fdt_splice_struct_()
139 static int fdt_splice_string_(void *fdt, int newlen) in fdt_splice_string_() argument
145 if ((err = fdt_splice_(fdt, p, 0, newlen))) in fdt_splice_string_()
148 fdt_set_size_dt_strings(fdt, fdt_size_dt_strings(fdt) + newlen); in fdt_splice_string_()
252 int oldlen, newlen; in fdt_set_name() local
261 newlen = strlen(name); in fdt_set_name()
264 FDT_TAGALIGN(newlen+1)); in fdt_set_name()
268 memcpy(namep, name, newlen+1); in fdt_set_name()
309 int err, oldlen, newlen; in fdt_appendprop() local
315 newlen = len + oldlen; in fdt_appendprop()
318 FDT_TAGALIGN(newlen)); in fdt_appendprop()
321 prop->len = cpu_to_fdt32(newlen); in fdt_appendprop()