Lines Matching refs:sect_size
169 unsigned int sect_size = mtdblk->cache_size; in do_cached_write() local
176 if (!sect_size) in do_cached_write()
180 unsigned long sect_start = (pos/sect_size)*sect_size; in do_cached_write()
182 unsigned int size = sect_size - offset; in do_cached_write()
186 if (size == sect_size) { in do_cached_write()
209 ret = MTD_READ(mtd, sect_start, sect_size, &retlen, mtdblk->cache_data); in do_cached_write()
212 if (retlen != sect_size) in do_cached_write()
216 mtdblk->cache_size = sect_size; in do_cached_write()
238 unsigned int sect_size = mtdblk->cache_size; in do_cached_read() local
245 if (!sect_size) in do_cached_read()
249 unsigned long sect_start = (pos/sect_size)*sect_size; in do_cached_read()
251 unsigned int size = sect_size - offset; in do_cached_read()