Searched refs:img_fp (Results 1 – 5 of 5) sorted by relevance
/system/libufdt/utils/src/ |
D | mkdtimg_create.c | 56 static int output_img_with_args(FILE *img_fp, int argc, char *argv[], int arg_start) { in output_img_with_args() argument 58 struct dt_image_writer *writer = dt_image_writer_start(img_fp, entry_count); in output_img_with_args() 120 FILE *img_fp = NULL; in handle_command_create() local 131 img_fp = fopen(img_filename, "wb"); in handle_command_create() 132 if (img_fp == NULL) { in handle_command_create() 137 ret = output_img_with_args(img_fp, argc, argv, arg_start + 1); in handle_command_create() 141 if (img_fp) { in handle_command_create() 142 fclose(img_fp); in handle_command_create()
|
D | mkdtimg_dump.c | 39 static void *read_fdt_from_image(FILE *img_fp, in read_fdt_from_image() argument 45 fseek(img_fp, dt_offset, SEEK_SET); in read_fdt_from_image() 46 if (fread(fdt, dt_size, 1, img_fp) == 0) { in read_fdt_from_image() 158 static int dump_image_from_fp(FILE *out_fp, FILE *img_fp, in dump_image_from_fp() argument 161 if (fread(&header, sizeof(header), 1, img_fp) != 1) { in dump_image_from_fp() 181 fseek(img_fp, entry_offset, SEEK_SET); in dump_image_from_fp() 182 if (fread(&entry, sizeof(entry), 1, img_fp) != 1) { in dump_image_from_fp() 191 void *fdt = read_fdt_from_image(img_fp, dt_offset, dt_size); in dump_image_from_fp() 213 FILE *img_fp = NULL; in process_command_dump() local 215 img_fp = fopen(params->img_filename, "rb"); in process_command_dump() [all …]
|
D | mkdtimg_cfg_create.c | 73 static int output_img_with_config(FILE *img_fp, FILE *cfg_fp) { in output_img_with_config() argument 75 struct dt_image_writer *writer = dt_image_writer_start(img_fp, entry_count); in output_img_with_config() 123 FILE *img_fp = NULL; in process_command_cfg_create() local 133 img_fp = fopen(params->img_filename, "wb"); in process_command_cfg_create() 134 if (img_fp == NULL) { in process_command_cfg_create() 146 ret = output_img_with_config(img_fp, cfg_fp); in process_command_cfg_create() 152 if (img_fp) { in process_command_cfg_create() 153 fclose(img_fp); in process_command_cfg_create()
|
D | mkdtimg_core.c | 52 FILE *img_fp; member 178 static int output_img_header(FILE *img_fp, in output_img_header() argument 189 fseek(img_fp, 0, SEEK_SET); in output_img_header() 190 fwrite(&header, sizeof(header), 1, img_fp); in output_img_header() 195 static int32_t output_img_entry(FILE *img_fp, size_t entry_offset, in output_img_entry() argument 225 fseek(img_fp, entry_offset, SEEK_SET); in output_img_entry() 226 fwrite(&entry, sizeof(entry), 1, img_fp); in output_img_entry() 229 fseek(img_fp, fdt_info->dt_offset, SEEK_SET); in output_img_entry() 230 fwrite(fdt, fdt_file_size, 1, img_fp); in output_img_entry() 242 struct dt_image_writer *dt_image_writer_start(FILE *img_fp, uint32_t entry_count) { in dt_image_writer_start() argument [all …]
|
D | mkdtimg_core.h | 31 struct dt_image_writer *dt_image_writer_start(FILE *img_fp, uint32_t entry_count);
|