Lines Matching refs:oldlen
56 static int fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) in fdt_splice_() argument
61 if (((p + oldlen) < p) || ((p + oldlen) > end)) in fdt_splice_()
63 if ((p < (char *)fdt) || ((end - oldlen + newlen) < (char *)fdt)) in fdt_splice_()
65 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) in fdt_splice_()
67 memmove(p + newlen, p + oldlen, end - p - oldlen); in fdt_splice_()
85 int oldlen, int newlen) in fdt_splice_struct_() argument
87 int delta = newlen - oldlen; in fdt_splice_struct_()
90 if ((err = fdt_splice_(fdt, p, oldlen, newlen))) in fdt_splice_struct_()
188 int oldlen; in fdt_resize_property_() local
191 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_()
193 return oldlen; in fdt_resize_property_()
195 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in fdt_resize_property_()
239 int oldlen, newlen; in fdt_set_name() local
244 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); in fdt_set_name()
246 return oldlen; in fdt_set_name()
250 err = fdt_splice_struct_(fdt, namep, FDT_TAGALIGN(oldlen+1), in fdt_set_name()
296 int err, oldlen, newlen; in fdt_appendprop() local
300 prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_appendprop()
302 newlen = len + oldlen; in fdt_appendprop()
304 FDT_TAGALIGN(oldlen), in fdt_appendprop()
309 memcpy(prop->data + oldlen, val, len); in fdt_appendprop()