/openbmc/linux/drivers/md/ |
H A D | dm-zone.c | 328 static int dm_update_zone_wp_offset(struct mapped_device *md, unsigned int zno, in dm_update_zone_wp_offset() argument 331 sector_t sector = zno * bdev_zone_sectors(md->disk->part0); in dm_update_zone_wp_offset() 368 unsigned int zno, struct bio *clone) in dm_zone_map_bio_begin() argument 371 unsigned int zwp_offset = READ_ONCE(md->zwp_offset[zno]); in dm_zone_map_bio_begin() 380 if (dm_update_zone_wp_offset(md, zno, &zwp_offset)) in dm_zone_map_bio_begin() 382 WRITE_ONCE(md->zwp_offset[zno], zwp_offset); in dm_zone_map_bio_begin() 423 static blk_status_t dm_zone_map_bio_end(struct mapped_device *md, unsigned int zno, in dm_zone_map_bio_end() argument 427 unsigned int zwp_offset = READ_ONCE(md->zwp_offset[zno]); in dm_zone_map_bio_end() 436 WRITE_ONCE(md->zwp_offset[zno], 0); in dm_zone_map_bio_end() 439 WRITE_ONCE(md->zwp_offset[zno], in dm_zone_map_bio_end() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | sd_zbc.c | 372 sector_t zno; in sd_zbc_update_wp_offset_workfn() local 378 for (zno = 0; zno < sdkp->zone_info.nr_zones; zno++) { in sd_zbc_update_wp_offset_workfn() 379 if (sdkp->zones_wp_offset[zno] != SD_ZBC_UPDATING_WP_OFST) in sd_zbc_update_wp_offset_workfn() 385 zno * sdkp->zone_info.zone_blocks, true); in sd_zbc_update_wp_offset_workfn() 389 zno, sd_zbc_update_wp_offset_cb, in sd_zbc_update_wp_offset_workfn() 415 unsigned int wp_offset, zno = blk_rq_zone_no(rq); in sd_zbc_prepare_zone_append() local 431 wp_offset = sdkp->zones_wp_offset[zno]; in sd_zbc_prepare_zone_append() 444 sdkp->zones_wp_offset[zno] = SD_ZBC_UPDATING_WP_OFST; in sd_zbc_prepare_zone_append() 536 unsigned int zno = blk_rq_zone_no(rq); in sd_zbc_zone_wp_update() local 559 if (sdkp->zones_wp_offset[zno] != SD_ZBC_UPDATING_WP_OFST) in sd_zbc_zone_wp_update() [all …]
|
H A D | scsi_debug.c | 2721 u32 zno = lba >> devip->zsize_shift; in zbc_zone() local 2724 if (devip->zcap == devip->zsize || zno < devip->nr_conv_zones) in zbc_zone() 2725 return &devip->zstate[zno]; in zbc_zone() 2731 zno = 2 * zno - devip->nr_conv_zones; in zbc_zone() 2732 WARN_ONCE(zno >= devip->nr_zones, "%u > %u\n", zno, devip->nr_zones); in zbc_zone() 2733 zsp = &devip->zstate[zno]; in zbc_zone()
|
/openbmc/linux/drivers/block/null_blk/ |
H A D | zoned.c | 291 unsigned int zno, i; in null_close_imp_open_zone() local 293 zno = dev->imp_close_zone_no; in null_close_imp_open_zone() 294 if (zno >= dev->nr_zones) in null_close_imp_open_zone() 295 zno = dev->zone_nr_conv; in null_close_imp_open_zone() 298 zone = &dev->zones[zno]; in null_close_imp_open_zone() 299 zno++; in null_close_imp_open_zone() 300 if (zno >= dev->nr_zones) in null_close_imp_open_zone() 301 zno = dev->zone_nr_conv; in null_close_imp_open_zone() 305 dev->imp_close_zone_no = zno; in null_close_imp_open_zone() 378 unsigned int zno = null_zone_no(dev, sector); in null_zone_write() local [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | zoned.h | 289 unsigned int zno; in btrfs_dev_set_empty_zone_bit() local 294 zno = pos >> zone_info->zone_size_shift; in btrfs_dev_set_empty_zone_bit() 296 set_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit() 298 clear_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit()
|
H A D | zoned.c | 241 u32 zno; in btrfs_get_dev_zones() local 244 zno = pos >> zinfo->zone_size_shift; in btrfs_get_dev_zones() 249 *nr_zones = min_t(u32, *nr_zones, zinfo->nr_zones - zno); in btrfs_get_dev_zones() 254 zone_info = &zinfo->zone_cache[zno + i]; in btrfs_get_dev_zones() 261 memcpy(zones, zinfo->zone_cache + zno, in btrfs_get_dev_zones() 282 u32 zno = pos >> zinfo->zone_size_shift; in btrfs_get_dev_zones() local 284 memcpy(zinfo->zone_cache + zno, zones, in btrfs_get_dev_zones() 1106 unsigned int zno = (pos >> zone_info->zone_size_shift); in btrfs_dev_set_active_zone() local 1112 if (!test_bit(zno, zone_info->active_zones)) { in btrfs_dev_set_active_zone() 1116 if (test_and_set_bit(zno, zone_info->active_zones)) { in btrfs_dev_set_active_zone() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/xmlsec1/xmlsec1/ |
H A D | 0001-nss-nspr-fix-for-multilib.patch | 19 if test "z$NSPR_FOUND" = "zno" -a "z$with_nspr" != "z" -a "z$with_nspr" != "zyes" ; then 34 if test "z$NSS_FOUND" = "zno" -a "z$with_nss" != "z" -a "z$with_nss" != "zyes" ; then
|
/openbmc/linux/block/ |
H A D | blk-zoned.c | 69 unsigned int zno = blk_rq_zone_no(rq); in blk_req_zone_write_trylock() local 71 if (test_and_set_bit(zno, rq->q->disk->seq_zones_wlock)) in blk_req_zone_write_trylock()
|
/openbmc/linux/fs/f2fs/ |
H A D | f2fs.h | 4476 unsigned int zno = blkaddr / sbi->blocks_per_blkz; in f2fs_blkz_is_seq() local 4478 return test_bit(zno, FDEV(devi).blkz_seq); in f2fs_blkz_is_seq()
|