Lines Matching refs:record_size

28 static unsigned long record_size = 4096;  variable
29 module_param(record_size, ulong, 0400);
30 MODULE_PARM_DESC(record_size,
77 u32 start_page = start_page_offset / record_size; in mtdoops_erase_block()
78 u32 erase_pages = mtd->erasesize / record_size; in mtdoops_erase_block()
131 mod = (cxt->nextpage * record_size) % mtd->erasesize; in mtdoops_workfunc_erase()
133 cxt->nextpage = cxt->nextpage + ((mtd->erasesize - mod) / record_size); in mtdoops_workfunc_erase()
138 while ((ret = mtd_block_isbad(mtd, cxt->nextpage * record_size)) > 0) { in mtdoops_workfunc_erase()
141 cxt->nextpage * record_size); in mtdoops_workfunc_erase()
143 cxt->nextpage = cxt->nextpage + (mtd->erasesize / record_size); in mtdoops_workfunc_erase()
146 if (i == cxt->oops_pages / (mtd->erasesize / record_size)) { in mtdoops_workfunc_erase()
158 ret = mtdoops_erase_block(cxt, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
167 ret = mtd_block_markbad(mtd, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
189 ret = mtd_panic_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
190 record_size, &retlen, cxt->oops_buf); in mtdoops_write()
196 ret = mtd_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
197 record_size, &retlen, cxt->oops_buf); in mtdoops_write()
199 if (retlen != record_size || ret < 0) in mtdoops_write()
201 cxt->nextpage * record_size, retlen, record_size, ret); in mtdoops_write()
203 memset(cxt->oops_buf, 0xff, record_size); in mtdoops_write()
224 if (mtd_block_isbad(mtd, page * record_size)) in find_next_position()
228 ret = mtd_read(mtd, page * record_size, MTDOOPS_HEADER_SIZE, in find_next_position()
233 page * record_size, retlen, in find_next_position()
280 record_size - MTDOOPS_HEADER_SIZE, NULL); in mtdoops_do_dump()
293 u64 mtdoops_pages = div_u64(mtd->size, record_size); in mtdoops_notify_add()
307 if (mtd->erasesize < record_size) { in mtdoops_notify_add()
339 cxt->oops_pages = (int)mtd->size / record_size; in mtdoops_notify_add()
375 if ((record_size & 4095) != 0) { in mtdoops_init()
379 if (record_size < 4096) { in mtdoops_init()
390 cxt->oops_buf = vmalloc(record_size); in mtdoops_init()
395 memset(cxt->oops_buf, 0xff, record_size); in mtdoops_init()