Lines Matching refs:oldlen
76 static int _fdt_splice(void *fdt, void *splicepoint, int oldlen, int newlen)
81 if (((p + oldlen) < p) || ((p + oldlen) > end))
83 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt)))
85 memmove(p + newlen, p + oldlen, end - p - oldlen);
103 int oldlen, int newlen)
105 int delta = newlen - oldlen;
108 if ((err = _fdt_splice(fdt, p, oldlen, newlen)))
187 int oldlen;
190 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen);
192 return oldlen;
194 if ((err = _fdt_splice_struct(fdt, (*prop)->data, FDT_TAGALIGN(oldlen),
233 int oldlen, newlen;
238 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen);
240 return oldlen;
244 err = _fdt_splice_struct(fdt, namep, FDT_TAGALIGN(oldlen+1),
275 int err, oldlen, newlen;
279 prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen);
281 newlen = len + oldlen;
283 FDT_TAGALIGN(oldlen),
288 memcpy(prop->data + oldlen, val, len);