Lines Matching refs:oldlen
97 static int _fdt_splice(void *fdt, void *splicepoint, int oldlen, int newlen) in _fdt_splice() argument
102 if (((p + oldlen) < p) || ((p + oldlen) > end)) in _fdt_splice()
104 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) in _fdt_splice()
106 memmove(p + newlen, p + oldlen, end - p - oldlen); in _fdt_splice()
124 int oldlen, int newlen) in _fdt_splice_struct() argument
126 int delta = newlen - oldlen; in _fdt_splice_struct()
129 if ((err = _fdt_splice(fdt, p, oldlen, newlen))) in _fdt_splice_struct()
208 int oldlen; in _fdt_resize_property() local
211 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in _fdt_resize_property()
213 return oldlen; in _fdt_resize_property()
215 if ((err = _fdt_splice_struct(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in _fdt_resize_property()
254 int oldlen, newlen; in fdt_set_name() local
259 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); in fdt_set_name()
261 return oldlen; in fdt_set_name()
265 err = _fdt_splice_struct(fdt, namep, FDT_TAGALIGN(oldlen+1), in fdt_set_name()