Searched refs:fdt (Results 1 – 8 of 8) sorted by relevance
/system/libufdt/utils/src/ |
D | mkdtimg_dump.c | 43 void *fdt = NULL; in read_fdt_from_image() local 45 fdt = malloc(dt_size); in read_fdt_from_image() 48 if (fread(fdt, dt_size, 1, img_fp) == 0) { in read_fdt_from_image() 51 free(fdt); in read_fdt_from_image() 55 return fdt; in read_fdt_from_image() 58 static int write_fdt_to_file(const char *filename, const void *fdt) { in write_fdt_to_file() argument 68 size_t fdt_size = fdt_totalsize(fdt); in write_fdt_to_file() 69 if (fwrite(fdt, fdt_size, 1, out_fp) < 1) { in write_fdt_to_file() 82 static void free_fdt(void *fdt) { in free_fdt() argument 83 if (fdt == NULL) { in free_fdt() [all …]
|
D | mkdtimg_core.c | 135 static fdt32_t get_fdt32_from_prop(void *fdt, const char *path, const char *prop) { in get_fdt32_from_prop() argument 136 int node_off = fdt_path_offset(fdt, path); in get_fdt32_from_prop() 143 fdt32_t *prop_value_ptr = (fdt32_t *)fdt_getprop(fdt, node_off, prop, &len); in get_fdt32_from_prop() 156 static fdt32_t get_fdt32_from_number_or_prop(void *fdt, char *value_str) { in get_fdt32_from_number_or_prop() argument 163 return get_fdt32_from_prop(fdt, path, prop); in get_fdt32_from_number_or_prop() 192 void *fdt = NULL; in output_img_entry() local 195 fdt = load_file(fdt_info->filename, &fdt_file_size); in output_img_entry() 196 if (fdt == NULL) { in output_img_entry() 201 if (fdt_check_header(fdt) != 0) { in output_img_entry() 206 size_t fdt_size = fdt_totalsize(fdt); in output_img_entry() [all …]
|
/system/libufdt/tests/src/ |
D | util.c | 82 int write_fdt_to_file(const char *filename, const void *fdt) { in write_fdt_to_file() argument 83 return write_buf_to_file(filename, fdt, fdt_totalsize(fdt)); in write_fdt_to_file()
|
D | util.h | 24 int write_fdt_to_file(const char *filename, const void *fdt);
|
/system/libufdt/ |
D | ufdt_convert.c | 94 void *fdt = tree->fdtps[i]; in ufdt_get_string_off() local 95 const char *strtab_start = (const char *)fdt + fdt_off_dt_strings(fdt); in ufdt_get_string_off() 96 int strtab_size = fdt_size_dt_strings(fdt); in ufdt_get_string_off() 386 static int _ufdt_output_strtab_to_fdt(const struct ufdt *tree, void *fdt) { in _ufdt_output_strtab_to_fdt() argument 391 (char *)fdt + fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt); in _ufdt_output_strtab_to_fdt() 392 char *dest = (char *)fdt + fdt_totalsize(fdt); in _ufdt_output_strtab_to_fdt() 411 fdt_set_size_dt_strings(fdt, dest_size); in _ufdt_output_strtab_to_fdt()
|
D | ufdt_overlay.c | 556 void *fdt = overlay_tree->fdtps[i]; in _ufdt_overlay_fdtps() local 557 if (ufdt_add_fdt(main_tree, fdt) < 0) { in _ufdt_overlay_fdtps()
|
/system/libufdt/tests/ |
D | gen_test.sh | 53 $SCRIPT_DIR/apply_overlay.sh --fdt "$BASE_DTS" "$OVERLAY_DTS" "$REF_MERGED_DTS"
|
D | run_performance_test.sh | 79 apply_overlay fdt $base_dts $overlay_dts $merged_dts
|