Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/md/
Ddm-zone.c329 static int dm_update_zone_wp_offset(struct mapped_device *md, unsigned int zno, in dm_update_zone_wp_offset() argument
332 sector_t sector = zno * bdev_zone_sectors(md->disk->part0); in dm_update_zone_wp_offset()
369 unsigned int zno, struct bio *clone) in dm_zone_map_bio_begin() argument
372 unsigned int zwp_offset = READ_ONCE(md->zwp_offset[zno]); in dm_zone_map_bio_begin()
381 if (dm_update_zone_wp_offset(md, zno, &zwp_offset)) in dm_zone_map_bio_begin()
383 WRITE_ONCE(md->zwp_offset[zno], zwp_offset); in dm_zone_map_bio_begin()
424 static blk_status_t dm_zone_map_bio_end(struct mapped_device *md, unsigned int zno, in dm_zone_map_bio_end() argument
428 unsigned int zwp_offset = READ_ONCE(md->zwp_offset[zno]); in dm_zone_map_bio_end()
437 WRITE_ONCE(md->zwp_offset[zno], 0); in dm_zone_map_bio_end()
440 WRITE_ONCE(md->zwp_offset[zno], in dm_zone_map_bio_end()
[all …]
/linux-6.1.9/drivers/scsi/
Dsd_zbc.c368 sector_t zno; in sd_zbc_update_wp_offset_workfn() local
374 for (zno = 0; zno < sdkp->zone_info.nr_zones; zno++) { in sd_zbc_update_wp_offset_workfn()
375 if (sdkp->zones_wp_offset[zno] != SD_ZBC_UPDATING_WP_OFST) in sd_zbc_update_wp_offset_workfn()
381 zno * sdkp->zone_info.zone_blocks, true); in sd_zbc_update_wp_offset_workfn()
385 zno, sd_zbc_update_wp_offset_cb, in sd_zbc_update_wp_offset_workfn()
411 unsigned int wp_offset, zno = blk_rq_zone_no(rq); in sd_zbc_prepare_zone_append() local
427 wp_offset = sdkp->zones_wp_offset[zno]; in sd_zbc_prepare_zone_append()
440 sdkp->zones_wp_offset[zno] = SD_ZBC_UPDATING_WP_OFST; in sd_zbc_prepare_zone_append()
531 unsigned int zno = blk_rq_zone_no(rq); in sd_zbc_zone_wp_update() local
554 if (sdkp->zones_wp_offset[zno] != SD_ZBC_UPDATING_WP_OFST) in sd_zbc_zone_wp_update()
[all …]
Dscsi_debug.c2733 u32 zno = lba >> devip->zsize_shift; in zbc_zone() local
2736 if (devip->zcap == devip->zsize || zno < devip->nr_conv_zones) in zbc_zone()
2737 return &devip->zstate[zno]; in zbc_zone()
2743 zno = 2 * zno - devip->nr_conv_zones; in zbc_zone()
2744 WARN_ONCE(zno >= devip->nr_zones, "%u > %u\n", zno, devip->nr_zones); in zbc_zone()
2745 zsp = &devip->zstate[zno]; in zbc_zone()
/linux-6.1.9/drivers/block/null_blk/
Dzoned.c286 unsigned int zno, i; in null_close_imp_open_zone() local
288 zno = dev->imp_close_zone_no; in null_close_imp_open_zone()
289 if (zno >= dev->nr_zones) in null_close_imp_open_zone()
290 zno = dev->zone_nr_conv; in null_close_imp_open_zone()
293 zone = &dev->zones[zno]; in null_close_imp_open_zone()
294 zno++; in null_close_imp_open_zone()
295 if (zno >= dev->nr_zones) in null_close_imp_open_zone()
296 zno = dev->zone_nr_conv; in null_close_imp_open_zone()
300 dev->imp_close_zone_no = zno; in null_close_imp_open_zone()
373 unsigned int zno = null_zone_no(dev, sector); in null_zone_write() local
[all …]
/linux-6.1.9/fs/btrfs/
Dzoned.h306 unsigned int zno; in btrfs_dev_set_empty_zone_bit() local
311 zno = pos >> zone_info->zone_size_shift; in btrfs_dev_set_empty_zone_bit()
313 set_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit()
315 clear_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit()
Dzoned.c221 u32 zno; in btrfs_get_dev_zones() local
238 zno = pos >> zinfo->zone_size_shift; in btrfs_get_dev_zones()
243 *nr_zones = min_t(u32, *nr_zones, zinfo->nr_zones - zno); in btrfs_get_dev_zones()
248 zone_info = &zinfo->zone_cache[zno + i]; in btrfs_get_dev_zones()
255 memcpy(zones, zinfo->zone_cache + zno, in btrfs_get_dev_zones()
276 memcpy(zinfo->zone_cache + zno, zones, in btrfs_get_dev_zones()
1096 unsigned int zno = (pos >> zone_info->zone_size_shift); in btrfs_dev_set_active_zone() local
1102 if (!test_bit(zno, zone_info->active_zones)) { in btrfs_dev_set_active_zone()
1106 if (test_and_set_bit(zno, zone_info->active_zones)) { in btrfs_dev_set_active_zone()
1118 unsigned int zno = (pos >> zone_info->zone_size_shift); in btrfs_dev_clear_active_zone() local
[all …]
/linux-6.1.9/block/
Dblk-zoned.c75 unsigned int zno = blk_rq_zone_no(rq); in blk_req_zone_write_trylock() local
77 if (test_and_set_bit(zno, rq->q->disk->seq_zones_wlock)) in blk_req_zone_write_trylock()
/linux-6.1.9/fs/f2fs/
Df2fs.h4418 unsigned int zno = blkaddr >> sbi->log_blocks_per_blkz; in f2fs_blkz_is_seq() local
4420 return test_bit(zno, FDEV(devi).blkz_seq); in f2fs_blkz_is_seq()