Lines Matching refs:err
71 int err; in fdt_splice_mem_rsv_() local
72 err = fdt_splice_(fdt, p, oldn * sizeof(*p), newn * sizeof(*p)); in fdt_splice_mem_rsv_()
73 if (err) in fdt_splice_mem_rsv_()
74 return err; in fdt_splice_mem_rsv_()
84 int err; in fdt_splice_struct_() local
86 if ((err = fdt_splice_(fdt, p, oldlen, newlen))) in fdt_splice_struct_()
87 return err; in fdt_splice_struct_()
106 int err; in fdt_splice_string_() local
108 if ((err = fdt_splice_(fdt, p, 0, newlen))) in fdt_splice_string_()
109 return err; in fdt_splice_string_()
121 int err; in fdt_find_add_string_() local
131 err = fdt_splice_string_(fdt, len); in fdt_find_add_string_()
132 if (err) in fdt_find_add_string_()
133 return err; in fdt_find_add_string_()
144 int err; in fdt_add_mem_rsv() local
149 err = fdt_splice_mem_rsv_(fdt, re, 0, 1); in fdt_add_mem_rsv()
150 if (err) in fdt_add_mem_rsv()
151 return err; in fdt_add_mem_rsv()
174 int err; in fdt_resize_property_() local
180 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in fdt_resize_property_()
182 return err; in fdt_resize_property_()
194 int err; in fdt_add_property_() local
207 err = fdt_splice_struct_(fdt, *prop, 0, proplen); in fdt_add_property_()
208 if (err) { in fdt_add_property_()
211 return err; in fdt_add_property_()
224 int err; in fdt_set_name() local
234 err = fdt_splice_struct_(fdt, namep, FDT_TAGALIGN(oldlen+1), in fdt_set_name()
236 if (err) in fdt_set_name()
237 return err; in fdt_set_name()
247 int err; in fdt_setprop_placeholder() local
251 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder()
252 if (err == -FDT_ERR_NOTFOUND) in fdt_setprop_placeholder()
253 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder()
254 if (err) in fdt_setprop_placeholder()
255 return err; in fdt_setprop_placeholder()
265 int err; in fdt_setprop() local
267 err = fdt_setprop_placeholder(fdt, nodeoffset, name, len, &prop_data); in fdt_setprop()
268 if (err) in fdt_setprop()
269 return err; in fdt_setprop()
280 int err, oldlen, newlen; in fdt_appendprop() local
287 err = fdt_splice_struct_(fdt, prop->data, in fdt_appendprop()
290 if (err) in fdt_appendprop()
291 return err; in fdt_appendprop()
295 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_appendprop()
296 if (err) in fdt_appendprop()
297 return err; in fdt_appendprop()
324 int err; in fdt_add_subnode_namelen() local
346 err = fdt_splice_struct_(fdt, nh, 0, nodelen); in fdt_add_subnode_namelen()
347 if (err) in fdt_add_subnode_namelen()
348 return err; in fdt_add_subnode_namelen()
402 int err; in fdt_open_into() local
426 err = fdt_move(fdt, buf, bufsize); in fdt_open_into()
427 if (err) in fdt_open_into()
428 return err; in fdt_open_into()