Lines Matching refs:blob

155 static int store_key_value(char **blob, const char *node_name,  in store_key_value()  argument
161 node = fdt_path_offset(*blob, node_name); in store_key_value()
167 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value()
169 *blob = realloc_property(*blob, node, property, len); in store_key_value()
170 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value()
189 static int create_paths(char **blob, const char *in_path) in create_paths() argument
205 node = fdt_subnode_offset_namelen(*blob, offset, path, in create_paths()
208 *blob = realloc_node(*blob, path); in create_paths()
209 node = fdt_add_subnode_namelen(*blob, offset, path, in create_paths()
232 static int create_node(char **blob, const char *node_name) in create_node() argument
244 *blob = realloc_node(*blob, p + 1); in create_node()
247 node = fdt_path_offset(*blob, node_name); in create_node()
254 node = fdt_add_subnode(*blob, node, p + 1); in create_node()
271 static int delete_prop(char *blob, const char *node_name, const char *prop_name) in delete_prop() argument
275 node = fdt_path_offset(blob, node_name); in delete_prop()
281 node = fdt_delprop(blob, node, prop_name); in delete_prop()
297 static int delete_node(char *blob, const char *node_name) in delete_node() argument
301 node = fdt_path_offset(blob, node_name); in delete_node()
307 node = fdt_del_node(blob, node); in delete_node()
320 char *blob; in do_fdtput() local
324 blob = utilfdt_read(filename, NULL); in do_fdtput()
325 if (!blob) in do_fdtput()
335 if (disp->auto_path && create_paths(&blob, *arg)) in do_fdtput()
338 store_key_value(&blob, *arg, arg[1], value, len)) in do_fdtput()
344 ret = create_paths(&blob, *arg); in do_fdtput()
346 ret = create_node(&blob, *arg); in do_fdtput()
351 ret = delete_node(blob, *arg); in do_fdtput()
356 ret = delete_prop(blob, node, *arg); in do_fdtput()
360 fdt_pack(blob); in do_fdtput()
361 ret = utilfdt_write(filename, blob); in do_fdtput()
364 free(blob); in do_fdtput()