Lines Matching refs:erasesize

33 	off = ALIGN_DOWN(off, mtd->erasesize);  in mtdpstore_block_isbad()
34 blknum = div_u64(off, mtd->erasesize); in mtdpstore_block_isbad()
55 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_panic_block_isbad()
56 blknum = div_u64(off, mtd->erasesize); in mtdpstore_panic_block_isbad()
84 u32 zonecnt = mtd->erasesize / cxt->info.kmsg_size; in mtdpstore_block_mark_unused()
87 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_mark_unused()
100 u64 blknum = div_u64(off, cxt->mtd->erasesize); in mtdpstore_is_used()
111 u32 zonecnt = mtd->erasesize / cxt->info.kmsg_size; in mtdpstore_block_is_used()
114 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_is_used()
153 u32 zonecnt = mtd->erasesize / cxt->info.kmsg_size; in mtdpstore_block_clear_removed()
156 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_clear_removed()
169 u32 zonecnt = mtd->erasesize / cxt->info.kmsg_size; in mtdpstore_block_is_removed()
172 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_is_removed()
189 off = ALIGN_DOWN(off, cxt->mtd->erasesize); in mtdpstore_erase_do()
191 erase.len = cxt->mtd->erasesize; in mtdpstore_erase_do()
243 u32 blkcnt = (u32)div_u64(cxt->mtd->size, cxt->mtd->erasesize); in mtdpstore_security()
244 u32 erasesize = cxt->mtd->erasesize; in mtdpstore_security() local
256 div64_u64_rem(off + erasesize, cxt->mtd->size, (u64 *)&off); in mtdpstore_security()
407 if (mtd->erasesize < info->kmsg_size) { in mtdpstore_notify_add()
423 longcnt = BITS_TO_LONGS(div_u64(mtd->size, mtd->erasesize)); in mtdpstore_notify_add()
453 buf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtdpstore_flush_removed_do()
458 ret = mtd_read(mtd, off, mtd->erasesize, &retlen, buf); in mtdpstore_flush_removed_do()
463 erase.len = mtd->erasesize; in mtdpstore_flush_removed_do()
502 u32 blkcnt = (u32)div_u64(mtd->size, mtd->erasesize); in mtdpstore_flush_removed()
504 for (off = 0; blkcnt > 0; blkcnt--, off += mtd->erasesize) { in mtdpstore_flush_removed()
513 ret = mtdpstore_flush_removed_do(cxt, off, mtd->erasesize); in mtdpstore_flush_removed()