Lines Matching refs:nextpage
65 int nextpage; member
137 cxt->nextpage++; in mtdoops_inc_counter()
138 if (cxt->nextpage >= cxt->oops_pages) in mtdoops_inc_counter()
139 cxt->nextpage = 0; in mtdoops_inc_counter()
144 if (page_is_used(cxt, cxt->nextpage)) { in mtdoops_inc_counter()
150 cxt->nextpage, cxt->nextcount); in mtdoops_inc_counter()
165 mod = (cxt->nextpage * record_size) % mtd->erasesize; in mtdoops_workfunc_erase()
167 cxt->nextpage = cxt->nextpage + ((mtd->erasesize - mod) / record_size); in mtdoops_workfunc_erase()
168 if (cxt->nextpage >= cxt->oops_pages) in mtdoops_workfunc_erase()
169 cxt->nextpage = 0; in mtdoops_workfunc_erase()
172 while ((ret = mtd_block_isbad(mtd, cxt->nextpage * record_size)) > 0) { in mtdoops_workfunc_erase()
175 cxt->nextpage * record_size); in mtdoops_workfunc_erase()
177 cxt->nextpage = cxt->nextpage + (mtd->erasesize / record_size); in mtdoops_workfunc_erase()
178 if (cxt->nextpage >= cxt->oops_pages) in mtdoops_workfunc_erase()
179 cxt->nextpage = 0; in mtdoops_workfunc_erase()
192 ret = mtdoops_erase_block(cxt, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
196 cxt->nextpage, cxt->nextcount); in mtdoops_workfunc_erase()
201 ret = mtd_block_markbad(mtd, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
223 ret = mtd_panic_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
230 ret = mtd_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
235 cxt->nextpage * record_size, retlen, record_size, ret); in mtdoops_write()
236 mark_page_used(cxt, cxt->nextpage); in mtdoops_write()
292 cxt->nextpage = cxt->oops_pages - 1; in find_next_position()
296 cxt->nextpage = maxpos; in find_next_position()