Home
last modified time | relevance | path

Searched refs:nr_sectors (Results 1 – 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/block/
Dblk-zoned.c174 sector_t nr_sectors) in blkdev_allow_reset_all_zones() argument
183 return !sector && nr_sectors == get_capacity(bdev->bd_disk); in blkdev_allow_reset_all_zones()
203 sector_t sector, sector_t nr_sectors, in blkdev_zone_mgmt() argument
209 sector_t end_sector = sector + nr_sectors; in blkdev_zone_mgmt()
230 if ((nr_sectors & (zone_sectors - 1)) && end_sector != capacity) in blkdev_zone_mgmt()
242 blkdev_allow_reset_all_zones(bdev, sector, nr_sectors)) { in blkdev_zone_mgmt()
323 if (zrange->sector + zrange->nr_sectors <= zrange->sector || in blkdev_truncate_zone_range()
324 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range()
329 end = ((zrange->sector + zrange->nr_sectors) << SECTOR_SHIFT) - 1; in blkdev_truncate_zone_range()
385 ret = blkdev_zone_mgmt(bdev, op, zrange.sector, zrange.nr_sectors, in blkdev_zone_mgmt_ioctl()
Dblk-core.c729 unsigned int nr_sectors = bio_sectors(bio); in bio_check_eod() local
731 if (nr_sectors && maxsector && in bio_check_eod()
732 (nr_sectors > maxsector || in bio_check_eod()
733 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod()
778 int nr_sectors = bio_sectors(bio); in blk_check_zone_append() local
794 if (nr_sectors > q->limits.chunk_sectors) in blk_check_zone_append()
798 if (nr_sectors > q->limits.max_zone_append_sectors) in blk_check_zone_append()
Dblk-merge.c371 unsigned int nr_sectors = 0; in blk_recalc_rq_segments() local
396 bvec_split_segs(rq->q, &bv, &nr_phys_segs, &nr_sectors, in blk_recalc_rq_segments()
/kernel/linux/linux-5.10/drivers/md/bcache/
Dwriteback.h76 unsigned int nr_sectors) in bcache_dev_stripe_dirty() argument
87 if (nr_sectors <= dc->disk.stripe_size) in bcache_dev_stripe_dirty()
90 nr_sectors -= dc->disk.stripe_size; in bcache_dev_stripe_dirty()
145 uint64_t offset, int nr_sectors);
Dwriteback.c552 uint64_t offset, int nr_sectors) in bcache_dev_sectors_dirty_add() argument
566 atomic_long_add(nr_sectors, &c->flash_dev_dirty_sectors); in bcache_dev_sectors_dirty_add()
570 while (nr_sectors) { in bcache_dev_sectors_dirty_add()
571 int s = min_t(unsigned int, abs(nr_sectors), in bcache_dev_sectors_dirty_add()
574 if (nr_sectors < 0) in bcache_dev_sectors_dirty_add()
587 nr_sectors -= s; in bcache_dev_sectors_dirty_add()
/kernel/linux/linux-5.10/drivers/block/
Dnull_blk_zoned.c215 unsigned int nr_sectors = len >> SECTOR_SHIFT; in null_zone_valid_read_len() local
219 sector + nr_sectors <= zone->wp) in null_zone_valid_read_len()
334 unsigned int nr_sectors, bool append) in null_zone_write() argument
346 return null_process_cmd(cmd, REQ_OP_WRITE, sector, nr_sectors); in null_zone_write()
388 if (zone->wp + nr_sectors > zone->start + zone->capacity) { in null_zone_write()
409 ret = null_process_cmd(cmd, REQ_OP_WRITE, sector, nr_sectors); in null_zone_write()
416 zone->wp += nr_sectors; in null_zone_write()
590 sector_t sector, sector_t nr_sectors) in null_process_zoned_cmd() argument
598 sts = null_zone_write(cmd, sector, nr_sectors, false); in null_process_zoned_cmd()
601 sts = null_zone_write(cmd, sector, nr_sectors, true); in null_process_zoned_cmd()
[all …]
Dnull_blk.h99 unsigned int nr_sectors);
109 sector_t nr_sectors);
125 enum req_opf op, sector_t sector, sector_t nr_sectors) in null_process_zoned_cmd() argument
Dnull_blk_main.c1253 sector_t nr_sectors) in null_handle_badblocks() argument
1259 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks()
1334 unsigned int nr_sectors) in null_process_cmd() argument
1340 ret = null_handle_badblocks(cmd, sector, nr_sectors); in null_process_cmd()
1352 sector_t nr_sectors, enum req_opf op) in null_handle_cmd() argument
1370 sts = null_process_zoned_cmd(cmd, op, sector, nr_sectors); in null_handle_cmd()
1372 sts = null_process_cmd(cmd, op, sector, nr_sectors); in null_handle_cmd()
1423 sector_t nr_sectors = bio_sectors(bio); in null_submit_bio() local
1431 null_handle_cmd(cmd, sector, nr_sectors, bio_op(bio)); in null_submit_bio()
1477 sector_t nr_sectors = blk_rq_sectors(bd->rq); in null_queue_rq() local
[all …]
Dfloppy.c2258 unsigned int nr_sectors = current_count_sectors; in floppy_end_request() local
2263 nr_sectors = blk_rq_cur_sectors(req); in floppy_end_request()
2264 if (blk_update_request(req, error, nr_sectors << 9)) in floppy_end_request()
2320 int nr_sectors; in rw_interrupt() local
2332 nr_sectors = 0; in rw_interrupt()
2345 nr_sectors = (((reply_buffer[R_TRACK] - raw_cmd->cmd[TRACK]) * heads + in rw_interrupt()
2349 if (nr_sectors / ssize > in rw_interrupt()
2352 nr_sectors, current_count_sectors); in rw_interrupt()
2365 nr_sectors -= in_sector_offset; in rw_interrupt()
2366 INFBOUND(nr_sectors, 0); in rw_interrupt()
[all …]
/kernel/linux/linux-5.10/drivers/block/xen-blkback/
Dcommon.h93 uint64_t nr_sectors; member
147 uint64_t nr_sectors; member
424 dst->u.discard.nr_sectors = src->u.discard.nr_sectors; in blkif_get_x86_32_req()
472 dst->u.discard.nr_sectors = src->u.discard.nr_sectors; in blkif_get_x86_64_req()
/kernel/linux/linux-5.10/Documentation/block/
Drequest.rst67 unsigned long nr_sectors DBI Total number of sectors in request
69 unsigned long hard_nr_sectors B Used to keep nr_sectors sane
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dblkzoned.h43 __u64 nr_sectors; member
/kernel/linux/linux-5.10/drivers/md/
Ddm-log-writes.c97 __le64 nr_sectors; member
126 sector_t nr_sectors; member
340 entry.nr_sectors = cpu_to_le64(block->nr_sectors); in log_one_block()
473 lc->next_sector += dev_to_bio_sectors(lc, block->nr_sectors); in log_writes_kthread()
726 block->nr_sectors = bio_to_dev_sectors(lc, bio_sectors(bio)); in log_writes_map()
937 block->nr_sectors = ALIGN(bytes, lc->sectorsize) >> lc->sectorshift; in log_dax()
Dmd.h551 static inline void md_sync_acct(struct block_device *bdev, unsigned long nr_sectors) in md_sync_acct() argument
553 atomic_add(nr_sectors, &bdev->bd_disk->sync_io); in md_sync_acct()
556 static inline void md_sync_acct_bio(struct bio *bio, unsigned long nr_sectors) in md_sync_acct_bio() argument
558 atomic_add(nr_sectors, &bio->bi_disk->sync_io); in md_sync_acct_bio()
Ddm-zoned-target.c632 unsigned int nr_sectors = bio_sectors(bio); in dmz_map() local
641 bio_op(bio), (unsigned long long)sector, nr_sectors, in dmz_map()
646 if (!nr_sectors && bio_op(bio) != REQ_OP_WRITE) in dmz_map()
650 if ((nr_sectors & DMZ_BLOCK_SECTORS_MASK) || (sector & DMZ_BLOCK_SECTORS_MASK)) in dmz_map()
660 if (!nr_sectors && bio_op(bio) == REQ_OP_WRITE) { in dmz_map()
670 if (chunk_sector + nr_sectors > dmz_zone_nr_sectors(zmd)) in dmz_map()
Draid10.c2894 sector_t max_sector, nr_sectors; in raid10_sync_request() local
3405 nr_sectors = 0; in raid10_sync_request()
3424 nr_sectors += len>>9; in raid10_sync_request()
3427 r10_bio->sectors = nr_sectors; in raid10_sync_request()
3432 if (conf->cluster_sync_high < sector_nr + nr_sectors) { in raid10_sync_request()
3453 if (conf->cluster_sync_high < sect_va1 + nr_sectors) { in raid10_sync_request()
3481 r10_bio->sectors = nr_sectors; in raid10_sync_request()
3484 md_sync_acct_bio(bio, nr_sectors); in raid10_sync_request()
3496 return sectors_skipped + nr_sectors; in raid10_sync_request()
4416 int nr_sectors; in reshape_request() local
[all …]
Draid1.c2620 sector_t max_sector, nr_sectors; in raid1_sync_request() local
2836 nr_sectors = 0; in raid1_sync_request()
2870 nr_sectors += len>>9; in raid1_sync_request()
2875 r1_bio->sectors = nr_sectors; in raid1_sync_request()
2878 conf->cluster_sync_high < sector_nr + nr_sectors) { in raid1_sync_request()
2896 md_sync_acct_bio(bio, nr_sectors); in raid1_sync_request()
2905 md_sync_acct_bio(bio, nr_sectors); in raid1_sync_request()
2910 return nr_sectors; in raid1_sync_request()
/kernel/linux/linux-5.10/include/uapi/linux/
Dblkzoned.h145 __u64 nr_sectors; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dblkzoned.h61 __u64 nr_sectors; member
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_actlog.c852 sector_t esector, nr_sectors; in __drbd_change_sync() local
868 nr_sectors = get_capacity(device->vdisk); in __drbd_change_sync()
871 if (!expect(sector < nr_sectors)) in __drbd_change_sync()
873 if (!expect(esector < nr_sectors)) in __drbd_change_sync()
874 esector = nr_sectors - 1; in __drbd_change_sync()
876 lbnr = BM_SECT_TO_BIT(nr_sectors-1); in __drbd_change_sync()
883 if (unlikely(esector == (nr_sectors-1))) in __drbd_change_sync()
Ddrbd_req.c885 sector_t esector, nr_sectors; in drbd_may_do_local_read() local
892 nr_sectors = get_capacity(device->vdisk); in drbd_may_do_local_read()
893 D_ASSERT(device, sector < nr_sectors); in drbd_may_do_local_read()
894 D_ASSERT(device, esector < nr_sectors); in drbd_may_do_local_read()
/kernel/linux/linux-5.10/include/xen/interface/io/
Dblkif.h214 uint64_t nr_sectors; member
/kernel/linux/linux-5.10/fs/fat/
Dinode.c68 unsigned nr_sectors; member
75 .nr_sectors = 160 * KB_IN_SECTORS,
82 .nr_sectors = 180 * KB_IN_SECTORS,
89 .nr_sectors = 320 * KB_IN_SECTORS,
96 .nr_sectors = 360 * KB_IN_SECTORS,
1566 if (floppy_defaults[i].nr_sectors == bd_sects) { in fat_read_static_bpb()
1590 bpb->fat_sectors = fdefaults->nr_sectors; in fat_read_static_bpb()
/kernel/linux/linux-5.10/fs/btrfs/
Dfile-item.c536 int nr_sectors; in btrfs_csum_one_bio() local
585 nr_sectors = BTRFS_BYTES_TO_BLKS(fs_info, in btrfs_csum_one_bio()
589 for (i = 0; i < nr_sectors; i++) { in btrfs_csum_one_bio()
Dcompression.c716 unsigned int nr_sectors; in btrfs_submit_compressed_read() local
736 nr_sectors = DIV_ROUND_UP(comp_bio->bi_iter.bi_size, in btrfs_submit_compressed_read()
738 sums += csum_size * nr_sectors; in btrfs_submit_compressed_read()

12