Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 7 of 7) sorted by relevance

/scripts/dtc/
Dfdtput.c120 static int store_key_value(void *blob, const char *node_name, in store_key_value() argument
126 node = fdt_path_offset(blob, node_name); in store_key_value()
132 err = fdt_setprop(blob, node, property, buf, len); in store_key_value()
150 static int create_paths(void *blob, const char *in_path) in create_paths() argument
166 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths()
169 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths()
192 static int create_node(void *blob, const char *node_name) in create_node() argument
205 node = fdt_path_offset(blob, node_name); in create_node()
212 node = fdt_add_subnode(blob, node, p + 1); in create_node()
225 char *blob; in do_fdtput() local
[all …]
Dfdtget.c108 static int list_properties(const void *blob, int node) in list_properties() argument
114 prop = fdt_first_property_offset(blob, node); in list_properties()
119 data = fdt_get_property_by_offset(blob, prop, NULL); in list_properties()
120 name = fdt_string(blob, fdt32_to_cpu(data->nameoff)); in list_properties()
123 prop = fdt_next_property_offset(blob, prop); in list_properties()
136 static int list_subnodes(const void *blob, int node) in list_subnodes() argument
145 tag = fdt_next_tag(blob, node, &nextoffset); in list_subnodes()
148 pathp = fdt_get_name(blob, node, NULL); in list_subnodes()
192 static int show_data_for_item(const void *blob, struct display_info *disp, in show_data_for_item() argument
200 err = list_properties(blob, node); in show_data_for_item()
[all …]
Dfdtoverlay.c97 char *blob = NULL; in do_fdtoverlay() local
102 blob = utilfdt_read(input_filename, &buf_len); in do_fdtoverlay()
103 if (!blob) { in do_fdtoverlay()
107 if (fdt_totalsize(blob) > buf_len) { in do_fdtoverlay()
110 (unsigned long)buf_len, fdt_totalsize(blob)); in do_fdtoverlay()
135 buf_len = fdt_totalsize(blob); in do_fdtoverlay()
139 blob = apply_one(blob, ovblob[i], &buf_len, argv[i]); in do_fdtoverlay()
140 if (!blob) in do_fdtoverlay()
144 fdt_pack(blob); in do_fdtoverlay()
145 ret = utilfdt_write(output_filename, blob); in do_fdtoverlay()
[all …]
Dflattree.c350 struct data blob = empty_data; in dt_to_blob() local
405 blob = data_append_data(blob, &fdt, vi->hdr_size); in dt_to_blob()
406 blob = data_append_align(blob, 8); in dt_to_blob()
407 blob = data_merge(blob, reservebuf); in dt_to_blob()
408 blob = data_append_zeroes(blob, sizeof(struct fdt_reserve_entry)); in dt_to_blob()
409 blob = data_merge(blob, dtbuf); in dt_to_blob()
410 blob = data_merge(blob, strbuf); in dt_to_blob()
416 blob = data_append_zeroes(blob, padlen); in dt_to_blob()
418 if (fwrite(blob.val, blob.len, 1, f) != 1) { in dt_to_blob()
430 data_free(blob); in dt_to_blob()
[all …]
Dutil.c302 int utilfdt_write_err(const char *filename, const void *blob) in utilfdt_write_err() argument
308 const char *ptr = blob; in utilfdt_write_err()
316 totalsize = fdt_totalsize(blob); in utilfdt_write_err()
334 int utilfdt_write(const char *filename, const void *blob) in utilfdt_write() argument
336 int ret = utilfdt_write_err(filename, blob); in utilfdt_write()
Dutil.h120 int utilfdt_write(const char *filename, const void *blob);
131 int utilfdt_write_err(const char *filename, const void *blob);
Ddtx_diff47 If DTx contains the binary blob magic value in the first four bytes,
48 it is treated as a binary blob (aka .dtb or FDT).