Searched refs:fd_target (Results 1 – 1 of 1) sorted by relevance
/external/u-boot/tools/env/ |
D | fw_env.c | 1160 static int flash_write(int fd_current, int fd_target, int dev_target) in flash_write() argument 1185 if (ubi_update_start(fd_target, CUR_ENVSIZE) < 0) in flash_write() 1187 return ubi_write(fd_target, environment.image, CUR_ENVSIZE); in flash_write() 1190 rc = flash_write_buf(dev_target, fd_target, environment.image, in flash_write() 1268 int fd_target = -1, rc, dev_target; in flash_io_write() local 1275 fd_target = open(DEVNAME(dev_target), O_RDWR); in flash_io_write() 1276 if (fd_target < 0) { in flash_io_write() 1290 fd_target = flash_open_tempfile(&dname, &target_temp); in flash_io_write() 1293 if (fd_target == -1) in flash_io_write() 1294 fd_target = fd_current; in flash_io_write() [all …]
|