Lines Matching refs:sect_size
114 unsigned int sect_size = mtdblk->cache_size; in do_cached_write() local
121 if (!sect_size) in do_cached_write()
125 unsigned long sect_start = (pos/sect_size)*sect_size; in do_cached_write()
127 unsigned int size = sect_size - offset; in do_cached_write()
131 if (size == sect_size) { in do_cached_write()
154 ret = mtd_read(mtd, sect_start, sect_size, in do_cached_write()
158 if (retlen != sect_size) in do_cached_write()
162 mtdblk->cache_size = sect_size; in do_cached_write()
184 unsigned int sect_size = mtdblk->cache_size; in do_cached_read() local
191 if (!sect_size) { in do_cached_read()
199 unsigned long sect_start = (pos/sect_size)*sect_size; in do_cached_read()
201 unsigned int size = sect_size - offset; in do_cached_read()