Lines Matching defs:blob
170 static int store_key_value(char **blob, const char *node_name,
176 node = fdt_path_offset(*blob, node_name);
182 err = fdt_setprop(*blob, node, property, buf, len);
184 *blob = realloc_property(*blob, node, property, len);
185 err = fdt_setprop(*blob, node, property, buf, len);
200 * @param blob FDT blob to write into
204 static int create_paths(char **blob, const char *in_path)
220 node = fdt_subnode_offset_namelen(*blob, offset, path,
223 *blob = realloc_node(*blob, path);
224 node = fdt_add_subnode_namelen(*blob, offset, path,
243 * @param blob FDT blob to write into
247 static int create_node(char **blob, const char *node_name)
259 *blob = realloc_node(*blob, p + 1);
262 node = fdt_path_offset(*blob, node_name);
269 node = fdt_add_subnode(*blob, node, p + 1);
282 char *blob;
285 blob = utilfdt_read(filename);
286 if (!blob)
296 if (disp->auto_path && create_paths(&blob, *arg))
299 store_key_value(&blob, *arg, arg[1], value, len))
305 ret = create_paths(&blob, *arg);
307 ret = create_node(&blob, *arg);
312 fdt_pack(blob);
313 ret = utilfdt_write(filename, blob);
316 free(blob);