Lines Matching refs:zone
174 int zone = msb_get_zone_from_pba(pba); in msb_mark_block_used() local
188 msb->free_block_count[zone]--; in msb_mark_block_used()
194 int zone = msb_get_zone_from_pba(pba); in msb_mark_block_unused() local
207 msb->free_block_count[zone]++; in msb_mark_block_unused()
1078 static u16 msb_get_free_block(struct msb_data *msb, int zone) in msb_get_free_block() argument
1081 int pba = zone * MS_BLOCKS_IN_ZONE; in msb_get_free_block()
1086 if (!msb->free_block_count[zone]) { in msb_get_free_block()
1087 …O free blocks in the zone %d, to use for a write, (media is WORN out) switching to RO mode", zone); in msb_get_free_block()
1092 pos %= msb->free_block_count[zone]; in msb_get_free_block()
1095 msb->free_block_count[zone], pos); in msb_get_free_block()
1105 if (pba == msb->block_count || (msb_get_zone_from_pba(pba)) != zone) { in msb_get_free_block()