Lines Matching refs:nextpage

58 	int nextpage;  member
111 cxt->nextpage++; in mtdoops_inc_counter()
112 if (cxt->nextpage >= cxt->oops_pages) in mtdoops_inc_counter()
113 cxt->nextpage = 0; in mtdoops_inc_counter()
118 if (page_is_used(cxt, cxt->nextpage)) { in mtdoops_inc_counter()
124 cxt->nextpage, cxt->nextcount); in mtdoops_inc_counter()
139 mod = (cxt->nextpage * record_size) % mtd->erasesize; in mtdoops_workfunc_erase()
141 cxt->nextpage = cxt->nextpage + ((mtd->erasesize - mod) / record_size); in mtdoops_workfunc_erase()
142 if (cxt->nextpage >= cxt->oops_pages) in mtdoops_workfunc_erase()
143 cxt->nextpage = 0; in mtdoops_workfunc_erase()
146 while ((ret = mtd_block_isbad(mtd, cxt->nextpage * record_size)) > 0) { in mtdoops_workfunc_erase()
149 cxt->nextpage * record_size); in mtdoops_workfunc_erase()
151 cxt->nextpage = cxt->nextpage + (mtd->erasesize / record_size); in mtdoops_workfunc_erase()
152 if (cxt->nextpage >= cxt->oops_pages) in mtdoops_workfunc_erase()
153 cxt->nextpage = 0; in mtdoops_workfunc_erase()
166 ret = mtdoops_erase_block(cxt, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
170 cxt->nextpage, cxt->nextcount); in mtdoops_workfunc_erase()
175 ret = mtd_block_markbad(mtd, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
201 ret = mtd_panic_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
208 ret = mtd_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
213 cxt->nextpage * record_size, retlen, record_size, ret); in mtdoops_write()
214 mark_page_used(cxt, cxt->nextpage); in mtdoops_write()
274 cxt->nextpage = cxt->oops_pages - 1; in find_next_position()
278 cxt->nextpage = maxpos; in find_next_position()