Home
last modified time | relevance | path

Searched refs:blockstart (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/tools/env/
H A Dfw_env.c679 static int flash_bad_block(int fd, uint8_t mtd_type, loff_t blockstart) in flash_bad_block() argument
682 int badblock = ioctl(fd, MEMGETBADBLOCK, &blockstart); in flash_bad_block()
692 (unsigned long long)blockstart); in flash_bad_block()
715 loff_t blockstart; /* running start of the current block - in flash_read_buf() local
719 blockstart = (offset / DEVESIZE (dev)) * DEVESIZE (dev); in flash_read_buf()
722 block_seek = offset - blockstart; in flash_read_buf()
740 rc = flash_bad_block(fd, DEVTYPE(dev), blockstart); in flash_read_buf()
744 if (blockstart + block_seek + readlen > environment_end(dev)) { in flash_read_buf()
752 blockstart += blocklen; in flash_read_buf()
760 lseek (fd, blockstart + block_seek, SEEK_SET); in flash_read_buf()
[all …]