Lines Matching refs:blob
167 static int store_key_value(char **blob, const char *node_name, in store_key_value() argument
173 node = fdt_path_offset(*blob, node_name); in store_key_value()
179 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value()
181 *blob = realloc_property(*blob, node, property, len); in store_key_value()
182 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value()
201 static int create_paths(char **blob, const char *in_path) in create_paths() argument
217 node = fdt_subnode_offset_namelen(*blob, offset, path, in create_paths()
220 *blob = realloc_node(*blob, path); in create_paths()
221 node = fdt_add_subnode_namelen(*blob, offset, path, in create_paths()
244 static int create_node(char **blob, const char *node_name) in create_node() argument
256 *blob = realloc_node(*blob, p + 1); in create_node()
259 node = fdt_path_offset(*blob, node_name); in create_node()
266 node = fdt_add_subnode(*blob, node, p + 1); in create_node()
283 static int delete_prop(char *blob, const char *node_name, const char *prop_name) in delete_prop() argument
287 node = fdt_path_offset(blob, node_name); in delete_prop()
293 node = fdt_delprop(blob, node, prop_name); in delete_prop()
309 static int delete_node(char *blob, const char *node_name) in delete_node() argument
313 node = fdt_path_offset(blob, node_name); in delete_node()
319 node = fdt_del_node(blob, node); in delete_node()
332 char *blob; in do_fdtput() local
336 blob = utilfdt_read(filename); in do_fdtput()
337 if (!blob) in do_fdtput()
347 if (disp->auto_path && create_paths(&blob, *arg)) in do_fdtput()
350 store_key_value(&blob, *arg, arg[1], value, len)) in do_fdtput()
356 ret = create_paths(&blob, *arg); in do_fdtput()
358 ret = create_node(&blob, *arg); in do_fdtput()
363 ret = delete_node(blob, *arg); in do_fdtput()
368 ret = delete_prop(blob, node, *arg); in do_fdtput()
372 fdt_pack(blob); in do_fdtput()
373 ret = utilfdt_write(filename, blob); in do_fdtput()
376 free(blob); in do_fdtput()