Lines Matching refs:zonenum
64 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_mark_used() local
66 dev_dbg(&mtd->dev, "mark zone %llu used\n", zonenum); in mtdpstore_mark_used()
67 set_bit(zonenum, cxt->usedmap); in mtdpstore_mark_used()
74 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_mark_unused() local
76 dev_dbg(&mtd->dev, "mark zone %llu unused\n", zonenum); in mtdpstore_mark_unused()
77 clear_bit(zonenum, cxt->usedmap); in mtdpstore_mark_unused()
85 u64 zonenum; in mtdpstore_block_mark_unused() local
88 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_block_mark_unused()
90 dev_dbg(&mtd->dev, "mark zone %llu unused\n", zonenum); in mtdpstore_block_mark_unused()
91 clear_bit(zonenum, cxt->usedmap); in mtdpstore_block_mark_unused()
92 zonenum++; in mtdpstore_block_mark_unused()
99 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_is_used() local
104 return test_bit(zonenum, cxt->usedmap); in mtdpstore_is_used()
112 u64 zonenum; in mtdpstore_block_is_used() local
115 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_block_is_used()
117 if (test_bit(zonenum, cxt->usedmap)) in mtdpstore_block_is_used()
119 zonenum++; in mtdpstore_block_is_used()
143 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_mark_removed() local
145 dev_dbg(&mtd->dev, "mark zone %llu removed\n", zonenum); in mtdpstore_mark_removed()
146 set_bit(zonenum, cxt->rmmap); in mtdpstore_mark_removed()
154 u64 zonenum; in mtdpstore_block_clear_removed() local
157 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_block_clear_removed()
159 clear_bit(zonenum, cxt->rmmap); in mtdpstore_block_clear_removed()
160 zonenum++; in mtdpstore_block_clear_removed()
170 u64 zonenum; in mtdpstore_block_is_removed() local
173 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_block_is_removed()
175 if (test_bit(zonenum, cxt->rmmap)) in mtdpstore_block_is_removed()
177 zonenum++; in mtdpstore_block_is_removed()
241 u32 zonenum = (u32)div_u64(off, cxt->info.kmsg_size); in mtdpstore_security() local
247 u32 num = (zonenum + i) % zonecnt; in mtdpstore_security()