Home
last modified time | relevance | path

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

/scripts/dtc/
Dfdtput.c134 static int store_key_value(void *blob, const char *node_name, in store_key_value() argument
140 node = fdt_path_offset(blob, node_name); in store_key_value()
146 err = fdt_setprop(blob, node, property, buf, len); in store_key_value()
164 static int create_paths(void *blob, const char *in_path) in create_paths() argument
180 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths()
183 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths()
206 static int create_node(void *blob, const char *node_name) in create_node() argument
219 node = fdt_path_offset(blob, node_name); in create_node()
226 node = fdt_add_subnode(blob, node, p + 1); in create_node()
239 char *blob; in do_fdtput() local
[all …]
Dfdtget.c122 static int list_properties(const void *blob, int node) in list_properties() argument
128 prop = fdt_first_property_offset(blob, node); in list_properties()
133 data = fdt_get_property_by_offset(blob, prop, NULL); in list_properties()
134 name = fdt_string(blob, fdt32_to_cpu(data->nameoff)); in list_properties()
137 prop = fdt_next_property_offset(blob, prop); in list_properties()
150 static int list_subnodes(const void *blob, int node) in list_subnodes() argument
159 tag = fdt_next_tag(blob, node, &nextoffset); in list_subnodes()
162 pathp = fdt_get_name(blob, node, NULL); in list_subnodes()
206 static int show_data_for_item(const void *blob, struct display_info *disp, in show_data_for_item() argument
214 err = list_properties(blob, node); in show_data_for_item()
[all …]
Dflattree.c373 struct data blob = empty_data; in dt_to_blob() local
428 blob = data_append_data(blob, &fdt, vi->hdr_size); in dt_to_blob()
429 blob = data_append_align(blob, 8); in dt_to_blob()
430 blob = data_merge(blob, reservebuf); in dt_to_blob()
431 blob = data_append_zeroes(blob, sizeof(struct fdt_reserve_entry)); in dt_to_blob()
432 blob = data_merge(blob, dtbuf); in dt_to_blob()
433 blob = data_merge(blob, strbuf); in dt_to_blob()
439 blob = data_append_zeroes(blob, padlen); in dt_to_blob()
441 if (fwrite(blob.val, blob.len, 1, f) != 1) { in dt_to_blob()
453 data_free(blob); in dt_to_blob()
[all …]
Dfdtdump.c45 static void dump_blob(void *blob) in dump_blob() argument
47 struct fdt_header *bph = blob; in dump_blob()
52 (struct fdt_reserve_entry *)((char *)blob + off_mem_rsvmap); in dump_blob()
53 const char *p_struct = (const char *)blob + off_dt; in dump_blob()
54 const char *p_strings = (const char *)blob + off_str; in dump_blob()
Dutil.c297 int utilfdt_write_err(const char *filename, const void *blob) in utilfdt_write_err() argument
303 const char *ptr = blob; in utilfdt_write_err()
311 totalsize = fdt_totalsize(blob); in utilfdt_write_err()
329 int utilfdt_write(const char *filename, const void *blob) in utilfdt_write() argument
331 int ret = utilfdt_write_err(filename, blob); in utilfdt_write()
Dutil.h126 int utilfdt_write(const char *filename, const void *blob);
137 int utilfdt_write_err(const char *filename, const void *blob);
Ddtx_diff44 If DTx contains the binary blob magic value in the first four bytes,
45 it is treated as a binary blob (aka .dtb or FDT).