Lines Matching refs:record_size

42 static unsigned long record_size = 4096;  variable
43 module_param(record_size, ulong, 0400);
44 MODULE_PARM_DESC(record_size,
91 u32 start_page = start_page_offset / record_size; in mtdoops_erase_block()
92 u32 erase_pages = mtd->erasesize / record_size; in mtdoops_erase_block()
145 mod = (cxt->nextpage * record_size) % mtd->erasesize; in mtdoops_workfunc_erase()
147 cxt->nextpage = cxt->nextpage + ((mtd->erasesize - mod) / record_size); in mtdoops_workfunc_erase()
152 while ((ret = mtd_block_isbad(mtd, cxt->nextpage * record_size)) > 0) { in mtdoops_workfunc_erase()
155 cxt->nextpage * record_size); in mtdoops_workfunc_erase()
157 cxt->nextpage = cxt->nextpage + (mtd->erasesize / record_size); in mtdoops_workfunc_erase()
160 if (i == cxt->oops_pages / (mtd->erasesize / record_size)) { in mtdoops_workfunc_erase()
172 ret = mtdoops_erase_block(cxt, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
181 ret = mtd_block_markbad(mtd, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
203 ret = mtd_panic_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
204 record_size, &retlen, cxt->oops_buf); in mtdoops_write()
210 ret = mtd_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
211 record_size, &retlen, cxt->oops_buf); in mtdoops_write()
213 if (retlen != record_size || ret < 0) in mtdoops_write()
215 cxt->nextpage * record_size, retlen, record_size, ret); in mtdoops_write()
217 memset(cxt->oops_buf, 0xff, record_size); in mtdoops_write()
238 if (mtd_block_isbad(mtd, page * record_size)) in find_next_position()
242 ret = mtd_read(mtd, page * record_size, MTDOOPS_HEADER_SIZE, in find_next_position()
247 page * record_size, retlen, in find_next_position()
294 record_size - MTDOOPS_HEADER_SIZE, NULL); in mtdoops_do_dump()
307 u64 mtdoops_pages = div_u64(mtd->size, record_size); in mtdoops_notify_add()
321 if (mtd->erasesize < record_size) { in mtdoops_notify_add()
353 cxt->oops_pages = (int)mtd->size / record_size; in mtdoops_notify_add()
389 if ((record_size & 4095) != 0) { in mtdoops_init()
393 if (record_size < 4096) { in mtdoops_init()
404 cxt->oops_buf = vmalloc(record_size); in mtdoops_init()
409 memset(cxt->oops_buf, 0xff, record_size); in mtdoops_init()