Lines Matching refs:dest_path
88 …td_write(char *src_path, long long offset, long long size, long long flash_offset, char *dest_path) in mtd_write() argument
90 …LOGI("mtd_write %s, offset = %#llx size = %#llx flash_offset = %lld.\n", dest_path, offset, size, … in mtd_write()
95 stat(dest_path, &sb); in mtd_write()
102 sprintf(mtd_write_erase_cmd, "flash_erase %s 0 0", dest_path); in mtd_write()
111 src_path, dd_bs, dd_skip, dd_count, dest_path ); in mtd_write()
114 LOGE("flash_erase: can't erase MTD \"%s\"\n", dest_path); in mtd_write()
126 …ck_write(char *src_path, long long offset, long long size, long long flash_offset, char *dest_path) in block_write() argument
128 LOGI("block_write src %s dest %s.\n", src_path, dest_path); in block_write()
157 fd_dest = open(dest_path, O_RDWR | O_CREAT | O_TRUNC, 0644); in block_write()
160 LOGE("Can't open %s\n", dest_path); in block_write()
272 pcmd->dest_path, dst_file); in flash_normal()
275 pcmd->flash_offset, pcmd->dest_path); in flash_normal()
278 pcmd->flash_offset, pcmd->dest_path); in flash_normal()
298 ret = mtd_write(src_path, pcmd->offset, pcmd->size, pcmd->flash_offset, pcmd->dest_path); in flash_normal()
697 int fd_dest = open(pcmd->dest_path, O_CREAT | O_RDWR | O_TRUNC, 0644); in flash_parameter()
699 LOGE("Can't open %s, %s\n", pcmd->dest_path, strerror(errno)); in flash_parameter()
774 if (!download_loader(data_buf, pcmd->size, pcmd->dest_path)) { in flash_bootloader()