Home
last modified time | relevance | path

Searched refs:zno (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.15/drivers/md/
Ddm-zone.c335 static int dm_update_zone_wp_offset(struct mapped_device *md, unsigned int zno, in dm_update_zone_wp_offset() argument
338 sector_t sector = zno * blk_queue_zone_sectors(md->queue); in dm_update_zone_wp_offset()
373 unsigned int zno = bio_zone_no(orig_bio); in dm_zone_map_bio_begin() local
374 unsigned int zwp_offset = READ_ONCE(md->zwp_offset[zno]); in dm_zone_map_bio_begin()
383 if (dm_update_zone_wp_offset(md, zno, &zwp_offset)) in dm_zone_map_bio_begin()
385 WRITE_ONCE(md->zwp_offset[zno], zwp_offset); in dm_zone_map_bio_begin()
432 unsigned int zno = bio_zone_no(orig_bio); in dm_zone_map_bio_end() local
433 unsigned int zwp_offset = READ_ONCE(md->zwp_offset[zno]); in dm_zone_map_bio_end()
442 WRITE_ONCE(md->zwp_offset[zno], 0); in dm_zone_map_bio_end()
445 WRITE_ONCE(md->zwp_offset[zno], in dm_zone_map_bio_end()
[all …]
/Linux-v5.15/drivers/scsi/
Dsd_zbc.c283 sector_t zno; in sd_zbc_update_wp_offset_workfn() local
289 for (zno = 0; zno < sdkp->nr_zones; zno++) { in sd_zbc_update_wp_offset_workfn()
290 if (sdkp->zones_wp_offset[zno] != SD_ZBC_UPDATING_WP_OFST) in sd_zbc_update_wp_offset_workfn()
296 zno * sdkp->zone_blocks, true); in sd_zbc_update_wp_offset_workfn()
300 zno, sd_zbc_update_wp_offset_cb, in sd_zbc_update_wp_offset_workfn()
326 unsigned int wp_offset, zno = blk_rq_zone_no(rq); in sd_zbc_prepare_zone_append() local
342 wp_offset = sdkp->zones_wp_offset[zno]; in sd_zbc_prepare_zone_append()
355 sdkp->zones_wp_offset[zno] = SD_ZBC_UPDATING_WP_OFST; in sd_zbc_prepare_zone_append()
447 unsigned int zno = blk_rq_zone_no(rq); in sd_zbc_zone_wp_update() local
470 if (sdkp->zones_wp_offset[zno] != SD_ZBC_UPDATING_WP_OFST) in sd_zbc_zone_wp_update()
[all …]
/Linux-v5.15/drivers/block/null_blk/
Dzoned.c283 unsigned int zno, i; in null_close_imp_open_zone() local
285 zno = dev->imp_close_zone_no; in null_close_imp_open_zone()
286 if (zno >= dev->nr_zones) in null_close_imp_open_zone()
287 zno = dev->zone_nr_conv; in null_close_imp_open_zone()
290 zone = &dev->zones[zno]; in null_close_imp_open_zone()
291 zno++; in null_close_imp_open_zone()
292 if (zno >= dev->nr_zones) in null_close_imp_open_zone()
293 zno = dev->zone_nr_conv; in null_close_imp_open_zone()
297 dev->imp_close_zone_no = zno; in null_close_imp_open_zone()
370 unsigned int zno = null_zone_no(dev, sector); in null_zone_write() local
[all …]
/Linux-v5.15/fs/btrfs/
Dzoned.h228 unsigned int zno; in btrfs_dev_set_empty_zone_bit() local
233 zno = pos >> zone_info->zone_size_shift; in btrfs_dev_set_empty_zone_bit()
235 set_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit()
237 clear_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit()
/Linux-v5.15/block/
Dblk-zoned.c79 unsigned int zno = blk_rq_zone_no(rq); in blk_req_zone_write_trylock() local
81 if (test_and_set_bit(zno, rq->q->seq_zones_wlock)) in blk_req_zone_write_trylock()
/Linux-v5.15/fs/f2fs/
Df2fs.h4211 unsigned int zno = blkaddr >> sbi->log_blocks_per_blkz; in f2fs_blkz_is_seq() local
4213 return test_bit(zno, FDEV(devi).blkz_seq); in f2fs_blkz_is_seq()