Lines Matching refs:err
74 int err; in fdt_splice_mem_rsv_() local
75 err = fdt_splice_(fdt, p, oldn * sizeof(*p), newn * sizeof(*p)); in fdt_splice_mem_rsv_()
76 if (err) in fdt_splice_mem_rsv_()
77 return err; in fdt_splice_mem_rsv_()
87 int err; in fdt_splice_struct_() local
89 if ((err = fdt_splice_(fdt, p, oldlen, newlen))) in fdt_splice_struct_()
90 return err; in fdt_splice_struct_()
109 int err; in fdt_splice_string_() local
111 if ((err = fdt_splice_(fdt, p, 0, newlen))) in fdt_splice_string_()
112 return err; in fdt_splice_string_()
133 int err; in fdt_find_add_string_() local
144 err = fdt_splice_string_(fdt, len); in fdt_find_add_string_()
145 if (err) in fdt_find_add_string_()
146 return err; in fdt_find_add_string_()
158 int err; in fdt_add_mem_rsv() local
163 err = fdt_splice_mem_rsv_(fdt, re, 0, 1); in fdt_add_mem_rsv()
164 if (err) in fdt_add_mem_rsv()
165 return err; in fdt_add_mem_rsv()
188 int err; in fdt_resize_property_() local
194 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in fdt_resize_property_()
196 return err; in fdt_resize_property_()
208 int err; in fdt_add_property_() local
221 err = fdt_splice_struct_(fdt, *prop, 0, proplen); in fdt_add_property_()
222 if (err) { in fdt_add_property_()
226 return err; in fdt_add_property_()
239 int err; in fdt_set_name() local
249 err = fdt_splice_struct_(fdt, namep, FDT_TAGALIGN(oldlen+1), in fdt_set_name()
251 if (err) in fdt_set_name()
252 return err; in fdt_set_name()
262 int err; in fdt_setprop_placeholder() local
266 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder()
267 if (err == -FDT_ERR_NOTFOUND) in fdt_setprop_placeholder()
268 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder()
269 if (err) in fdt_setprop_placeholder()
270 return err; in fdt_setprop_placeholder()
280 int err; in fdt_setprop() local
282 err = fdt_setprop_placeholder(fdt, nodeoffset, name, len, &prop_data); in fdt_setprop()
283 if (err) in fdt_setprop()
284 return err; in fdt_setprop()
295 int err, oldlen, newlen; in fdt_appendprop() local
302 err = fdt_splice_struct_(fdt, prop->data, in fdt_appendprop()
305 if (err) in fdt_appendprop()
306 return err; in fdt_appendprop()
310 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_appendprop()
311 if (err) in fdt_appendprop()
312 return err; in fdt_appendprop()
339 int err; in fdt_add_subnode_namelen() local
364 err = fdt_splice_struct_(fdt, nh, 0, nodelen); in fdt_add_subnode_namelen()
365 if (err) in fdt_add_subnode_namelen()
366 return err; in fdt_add_subnode_namelen()
421 int err; in fdt_open_into() local
448 err = fdt_move(fdt, buf, bufsize); in fdt_open_into()
449 if (err) in fdt_open_into()
450 return err; in fdt_open_into()