Searched refs:fdt (Results 1 – 9 of 9) sorted by relevance
/system/libufdt/utils/src/ |
D | mkdtimg_dump.c | 41 void *fdt = NULL; in read_fdt_from_image() local 43 fdt = malloc(dt_size); in read_fdt_from_image() 46 if (fread(fdt, dt_size, 1, img_fp) == 0) { in read_fdt_from_image() 49 free(fdt); in read_fdt_from_image() 53 return fdt; in read_fdt_from_image() 56 static int write_fdt_to_file(const char *filename, const void *fdt, in write_fdt_to_file() argument 67 uint32_t fdt_size = get_fdt_size(fdt); in write_fdt_to_file() 68 if (fwrite(fdt, fdt_size, 1, out_fp) < 1) { in write_fdt_to_file() 81 static void free_fdt(void *fdt) { in free_fdt() argument 82 if (fdt == NULL) { in free_fdt() [all …]
|
D | mkdtimg_core.c | 140 static fdt32_t get_fdt32_from_prop(void *fdt, const char *path, const char *prop) { in get_fdt32_from_prop() argument 141 int node_off = fdt_path_offset(fdt, path); in get_fdt32_from_prop() 148 fdt32_t *prop_value_ptr = (fdt32_t *)fdt_getprop(fdt, node_off, prop, &len); in get_fdt32_from_prop() 161 static fdt32_t get_fdt32_from_number_or_prop(void *fdt, char *value_str) { in get_fdt32_from_number_or_prop() argument 168 return get_fdt32_from_prop(fdt, path, prop); in get_fdt32_from_number_or_prop() 200 void *fdt = NULL; in output_img_entry() local 203 fdt = load_file(fdt_info->filename, &fdt_file_size); in output_img_entry() 204 if (fdt == NULL) { in output_img_entry() 209 ret = fdt_verifier(fdt, fdt_file_size); in output_img_entry() 219 entry.id = get_fdt32_from_number_or_prop(fdt, options->id); 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 | 555 void *fdt = overlay_tree->fdtps[i]; in _ufdt_overlay_fdtps() local 556 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 | verifyDTBO.sh | 24 adb pull /sys/firmware/fdt final_dt > /dev/null
|
D | run_performance_test.sh | 79 apply_overlay fdt $base_dts $overlay_dts $merged_dts
|