Searched defs:fdt (Results 1 - 5 of 5) sorted by relevance

/system/libufdt/tests/src/
H A Dutil.c82 int write_fdt_to_file(const char *filename, const void *fdt) { argument
83 return write_buf_to_file(filename, fdt, fdt_totalsize(fdt));
/system/libufdt/utils/src/
H A Dmkdtimg_dump.c43 void *fdt = NULL; local
45 fdt = malloc(dt_size);
48 if (fread(fdt, dt_size, 1, img_fp) == 0) {
51 free(fdt);
55 return fdt;
58 static int write_fdt_to_file(const char *filename, const void *fdt) { argument
68 size_t fdt_size = fdt_totalsize(fdt);
69 if (fwrite(fdt, fdt_size, 1, out_fp) < 1) {
82 static void free_fdt(void *fdt) { argument
83 if (fdt
132 output_fdt_info(FILE *out_fp, void *fdt) argument
175 void *fdt = read_fdt_from_image(img_fp, dt_offset, dt_size); local
[all...]
H A Dmkdtimg_core.c137 static fdt32_t get_fdt32_from_prop(void *fdt, const char *path, const char *prop) { argument
138 int node_off = fdt_path_offset(fdt, path);
145 fdt32_t *prop_value_ptr = (fdt32_t *)fdt_getprop(fdt, node_off, prop, &len);
158 static fdt32_t get_fdt32_from_number_or_prop(void *fdt, char *value_str) { argument
165 return get_fdt32_from_prop(fdt, path, prop);
195 void *fdt = NULL; local
198 fdt = load_file(fdt_info->filename, &fdt_file_size);
199 if (fdt == NULL) {
204 if (fdt_check_header(fdt) != 0) {
209 size_t fdt_size = fdt_totalsize(fdt);
[all...]
/system/libufdt/
H A Dufdt_overlay.c555 void *fdt = overlay_tree->fdtps[i]; local
556 if (ufdt_add_fdt(main_tree, fdt) < 0) {
567 dto_error("failed to add more fdt into main ufdt tree.\n");
624 * Will dto_malloc a new fdt blob and return it. Will not dto_free parameters.
641 dto_error("Bad fdt size!\n");
H A Dufdt_convert.c88 /* fdt_create() sets the dt_string_off to the end of fdt buffer,
94 void *fdt = tree->fdtps[i]; local
95 const char *strtab_start = (const char *)fdt + fdt_off_dt_strings(fdt);
96 int strtab_size = fdt_size_dt_strings(fdt);
386 static int _ufdt_output_strtab_to_fdt(const struct ufdt *tree, void *fdt) { argument
388 string tables to the end of the target fdt buffer in reversed order.
391 (char *)fdt + fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt);
[all...]

Completed in 1311 milliseconds