• Home
  • Raw
  • Download

Lines Matching refs:blob

153 static int store_key_value(char **blob, const char *node_name,  in store_key_value()  argument
159 node = fdt_path_offset(*blob, node_name); in store_key_value()
165 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value()
167 *blob = realloc_property(*blob, node, property, len); in store_key_value()
168 err = fdt_setprop(*blob, node, property, buf, len); in store_key_value()
187 static int create_paths(char **blob, const char *in_path) in create_paths() argument
203 node = fdt_subnode_offset_namelen(*blob, offset, path, in create_paths()
206 *blob = realloc_node(*blob, path); in create_paths()
207 node = fdt_add_subnode_namelen(*blob, offset, path, in create_paths()
230 static int create_node(char **blob, const char *node_name) in create_node() argument
242 *blob = realloc_node(*blob, p + 1); in create_node()
245 node = fdt_path_offset(*blob, node_name); in create_node()
252 node = fdt_add_subnode(*blob, node, p + 1); in create_node()
269 static int delete_prop(char *blob, const char *node_name, const char *prop_name) in delete_prop() argument
273 node = fdt_path_offset(blob, node_name); in delete_prop()
279 node = fdt_delprop(blob, node, prop_name); in delete_prop()
295 static int delete_node(char *blob, const char *node_name) in delete_node() argument
299 node = fdt_path_offset(blob, node_name); in delete_node()
305 node = fdt_del_node(blob, node); in delete_node()
318 char *blob; in do_fdtput() local
322 blob = utilfdt_read(filename, NULL); in do_fdtput()
323 if (!blob) in do_fdtput()
333 if (disp->auto_path && create_paths(&blob, *arg)) in do_fdtput()
336 store_key_value(&blob, *arg, arg[1], value, len)) in do_fdtput()
342 ret = create_paths(&blob, *arg); in do_fdtput()
344 ret = create_node(&blob, *arg); in do_fdtput()
349 ret = delete_node(blob, *arg); in do_fdtput()
354 ret = delete_prop(blob, node, *arg); in do_fdtput()
358 fdt_pack(blob); in do_fdtput()
359 ret = utilfdt_write(filename, blob); in do_fdtput()
362 free(blob); in do_fdtput()