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,
78 u32 start_page = start_page_offset / record_size; in mtdoops_erase_block()
79 u32 erase_pages = mtd->erasesize / record_size; in mtdoops_erase_block()
132 mod = (cxt->nextpage * record_size) % mtd->erasesize; in mtdoops_workfunc_erase()
134 cxt->nextpage = cxt->nextpage + ((mtd->erasesize - mod) / record_size); in mtdoops_workfunc_erase()
139 while ((ret = mtd_block_isbad(mtd, cxt->nextpage * record_size)) > 0) { in mtdoops_workfunc_erase()
142 cxt->nextpage * record_size); in mtdoops_workfunc_erase()
144 cxt->nextpage = cxt->nextpage + (mtd->erasesize / record_size); in mtdoops_workfunc_erase()
147 if (i == cxt->oops_pages / (mtd->erasesize / record_size)) { in mtdoops_workfunc_erase()
159 ret = mtdoops_erase_block(cxt, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
168 ret = mtd_block_markbad(mtd, cxt->nextpage * record_size); in mtdoops_workfunc_erase()
193 ret = mtd_panic_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
194 record_size, &retlen, cxt->oops_buf); in mtdoops_write()
200 ret = mtd_write(mtd, cxt->nextpage * record_size, in mtdoops_write()
201 record_size, &retlen, cxt->oops_buf); in mtdoops_write()
203 if (retlen != record_size || ret < 0) in mtdoops_write()
205 cxt->nextpage * record_size, retlen, record_size, ret); in mtdoops_write()
207 memset(cxt->oops_buf, 0xff, record_size); in mtdoops_write()
230 if (mtd_block_isbad(mtd, page * record_size)) in find_next_position()
234 ret = mtd_read(mtd, page * record_size, MTDOOPS_HEADER_SIZE, in find_next_position()
239 page * record_size, retlen, in find_next_position()
291 record_size - MTDOOPS_HEADER_SIZE, NULL); in mtdoops_do_dump()
306 u64 mtdoops_pages = div_u64(mtd->size, record_size); in mtdoops_notify_add()
320 if (mtd->erasesize < record_size) { in mtdoops_notify_add()
352 cxt->oops_pages = (int)mtd->size / record_size; in mtdoops_notify_add()
388 if ((record_size & 4095) != 0) { in mtdoops_init()
392 if (record_size < 4096) { in mtdoops_init()
403 cxt->oops_buf = vmalloc(record_size); in mtdoops_init()
406 memset(cxt->oops_buf, 0xff, record_size); in mtdoops_init()