Lines Matching refs:blocklen
892 size_t blocklen; /* erase / write length - one block on NAND, in flash_read_buf() local
912 blocklen = DEVESIZE(dev); in flash_read_buf()
915 if (readlen > blocklen - block_seek) in flash_read_buf()
916 readlen = blocklen - block_seek; in flash_read_buf()
918 blocklen = 0; in flash_read_buf()
934 blockstart += blocklen; in flash_read_buf()
956 readlen = min(blocklen, count - processed); in flash_read_buf()
958 blockstart += blocklen; in flash_read_buf()
974 size_t blocklen; /* length of NAND block / NOR erase sector */ in flash_write_buf() local
994 blocklen = count; in flash_write_buf()
995 erase_len = blocklen; in flash_write_buf()
998 write_total = blocklen; in flash_write_buf()
1000 blocklen = DEVESIZE(dev); in flash_write_buf()
1017 write_total = ((block_seek + count + blocklen - 1) / in flash_write_buf()
1018 blocklen) * blocklen; in flash_write_buf()
1067 erasesize = blocklen; in flash_write_buf()
1086 blockstart += blocklen; in flash_write_buf()