/linux/block/ |
A D | blk-ia-ranges.c | 25 return sprintf(buf, "%llu\n", iar->nr_sectors); in blk_ia_range_nr_sectors_show() 204 sector < iar->sector + iar->nr_sectors) in disk_find_ia_range() 234 swap(iar->nr_sectors, tmp->nr_sectors); in disk_check_ia_ranges() 237 sector += iar->nr_sectors; in disk_check_ia_ranges() 262 new->ia_range[i].nr_sectors != old->ia_range[i].nr_sectors) in disk_ia_ranges_changed()
|
A D | blk-zoned.c | 266 sector_t sector, sector_t nr_sectors, in blkdev_zone_mgmt() argument 272 sector_t end_sector = sector + nr_sectors; in blkdev_zone_mgmt() 293 if ((nr_sectors & (zone_sectors - 1)) && end_sector != capacity) in blkdev_zone_mgmt() 302 if (op == REQ_OP_ZONE_RESET && sector == 0 && nr_sectors == capacity) { in blkdev_zone_mgmt() 387 if (zrange->sector + zrange->nr_sectors <= zrange->sector || in blkdev_truncate_zone_range() 388 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range() 393 end = ((zrange->sector + zrange->nr_sectors) << SECTOR_SHIFT) - 1; in blkdev_truncate_zone_range() 450 ret = blkdev_zone_mgmt(bdev, op, zrange.sector, zrange.nr_sectors, in blkdev_zone_mgmt_ioctl()
|
A D | blk-core.c | 656 unsigned int nr_sectors = bio_sectors(bio); in bio_check_eod() local 658 if (nr_sectors && maxsector && in bio_check_eod() 659 (nr_sectors > maxsector || in bio_check_eod() 660 bio->bi_iter.bi_sector > maxsector - nr_sectors)) { in bio_check_eod() 693 int nr_sectors = bio_sectors(bio); in blk_check_zone_append() local 709 if (nr_sectors > q->limits.chunk_sectors) in blk_check_zone_append() 713 if (nr_sectors > q->limits.max_zone_append_sectors) in blk_check_zone_append()
|
/linux/drivers/md/bcache/ |
A D | writeback.h | 80 unsigned int nr_sectors) in bcache_dev_stripe_dirty() argument 91 if (nr_sectors <= dc->disk.stripe_size) in bcache_dev_stripe_dirty() 94 nr_sectors -= dc->disk.stripe_size; in bcache_dev_stripe_dirty() 149 uint64_t offset, int nr_sectors);
|
A D | writeback.c | 558 uint64_t offset, int nr_sectors) in bcache_dev_sectors_dirty_add() argument 572 atomic_long_add(nr_sectors, &c->flash_dev_dirty_sectors); in bcache_dev_sectors_dirty_add() 576 while (nr_sectors) { in bcache_dev_sectors_dirty_add() 577 int s = min_t(unsigned int, abs(nr_sectors), in bcache_dev_sectors_dirty_add() 580 if (nr_sectors < 0) in bcache_dev_sectors_dirty_add() 593 nr_sectors -= s; in bcache_dev_sectors_dirty_add()
|
/linux/drivers/block/null_blk/ |
A D | zoned.c | 238 unsigned int nr_sectors = len >> SECTOR_SHIFT; in null_zone_valid_read_len() local 242 sector + nr_sectors <= zone->wp) in null_zone_valid_read_len() 367 unsigned int nr_sectors, bool append) in null_zone_write() argument 379 return null_process_cmd(cmd, REQ_OP_WRITE, sector, nr_sectors); in null_zone_write() 407 if (zone->wp + nr_sectors > zone->start + zone->capacity) { in null_zone_write() 434 ret = null_process_cmd(cmd, REQ_OP_WRITE, sector, nr_sectors); in null_zone_write() 438 zone->wp += nr_sectors; in null_zone_write() 654 sector_t sector, sector_t nr_sectors) in null_process_zoned_cmd() argument 662 return null_zone_write(cmd, sector, nr_sectors, false); in null_process_zoned_cmd() 664 return null_zone_write(cmd, sector, nr_sectors, true); in null_process_zoned_cmd() [all …]
|
A D | null_blk.h | 129 sector_t nr_sectors); 132 unsigned int nr_sectors); 142 sector_t nr_sectors); 158 enum req_opf op, sector_t sector, sector_t nr_sectors) in null_process_zoned_cmd() argument
|
A D | main.c | 1138 sector_t sector, sector_t nr_sectors) in null_handle_discard() argument 1141 size_t n = nr_sectors << SECTOR_SHIFT; in null_handle_discard() 1301 sector_t nr_sectors) in null_handle_badblocks() argument 1316 sector_t nr_sectors) in null_handle_memory_backed() argument 1322 return null_handle_discard(dev, sector, nr_sectors); in null_handle_memory_backed() 1387 unsigned int nr_sectors) in null_process_cmd() argument 1393 ret = null_handle_badblocks(cmd, sector, nr_sectors); in null_process_cmd() 1405 sector_t nr_sectors, enum req_opf op) in null_handle_cmd() argument 1425 sts = null_process_cmd(cmd, op, sector, nr_sectors); in null_handle_cmd() 1476 sector_t nr_sectors = bio_sectors(bio); in null_submit_bio() local [all …]
|
/linux/block/partitions/ |
A D | ibm.c | 201 sector_t nr_sectors, in find_lnx1_partitions() argument 223 size = nr_sectors; in find_lnx1_partitions() 297 sector_t nr_sectors; in ibm_partition() local 312 nr_sectors = bdev_nr_sectors(bdev); in ibm_partition() 313 if (nr_sectors == 0) in ibm_partition() 340 label, labelsect, nr_sectors, in ibm_partition() 357 size = nr_sectors; in ibm_partition()
|
/linux/fs/zonefs/ |
A D | trace.h | 30 __field(sector_t, nr_sectors) 37 __entry->nr_sectors = 43 __entry->nr_sectors
|
/linux/drivers/block/xen-blkback/ |
A D | common.h | 93 uint64_t nr_sectors; member 147 uint64_t nr_sectors; member 419 dst->u.discard.nr_sectors = src->u.discard.nr_sectors; in blkif_get_x86_32_req() 467 dst->u.discard.nr_sectors = src->u.discard.nr_sectors; in blkif_get_x86_64_req()
|
/linux/drivers/md/ |
A D | dm-zone.c | 430 unsigned int nr_sectors) in dm_zone_map_bio_end() argument 451 WRITE_ONCE(md->zwp_offset[zno], zwp_offset + nr_sectors); in dm_zone_map_bio_end() 458 if (nr_sectors != bio_sectors(orig_bio)) { in dm_zone_map_bio_end() 462 WRITE_ONCE(md->zwp_offset[zno], zwp_offset + nr_sectors); in dm_zone_map_bio_end()
|
A D | dm-log-writes.c | 97 __le64 nr_sectors; member 126 sector_t nr_sectors; member 339 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() 939 block->nr_sectors = ALIGN(bytes, lc->sectorsize) >> lc->sectorshift; in log_dax()
|
A D | md.h | 552 static inline void md_sync_acct(struct block_device *bdev, unsigned long nr_sectors) in md_sync_acct() argument 554 atomic_add(nr_sectors, &bdev->bd_disk->sync_io); in md_sync_acct() 557 static inline void md_sync_acct_bio(struct bio *bio, unsigned long nr_sectors) in md_sync_acct_bio() argument 559 md_sync_acct(bio->bi_bdev, nr_sectors); in md_sync_acct_bio()
|
A D | dm-zoned-target.c | 632 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()
|
A D | raid10.c | 3221 sector_t max_sector, nr_sectors; in raid10_sync_request() local 3732 nr_sectors = 0; in raid10_sync_request() 3751 nr_sectors += len>>9; in raid10_sync_request() 3754 r10_bio->sectors = nr_sectors; in raid10_sync_request() 3808 r10_bio->sectors = nr_sectors; in raid10_sync_request() 3811 md_sync_acct_bio(bio, nr_sectors); in raid10_sync_request() 4743 int nr_sectors; in reshape_request() local 4935 nr_sectors = 0; in reshape_request() 4950 nr_sectors += len >> 9; in reshape_request() 4953 r10_bio->sectors = nr_sectors; in reshape_request() [all …]
|
/linux/fs/btrfs/ |
A D | zoned.c | 320 sector_t nr_sectors; in btrfs_get_dev_zone_info() local 369 nr_sectors = bdev_nr_sectors(bdev); in btrfs_get_dev_zone_info() 371 zone_info->nr_zones = nr_sectors >> ilog2(zone_sectors); in btrfs_get_dev_zone_info() 372 if (!IS_ALIGNED(nr_sectors, zone_sectors)) in btrfs_get_dev_zone_info() 412 while (sector < nr_sectors) { in btrfs_get_dev_zone_info() 772 sector_t nr_sectors; in btrfs_sb_log_location_bdev() local 786 nr_sectors = bdev_nr_sectors(bdev); in btrfs_sb_log_location_bdev() 787 nr_zones = nr_sectors >> zone_sectors_shift; in btrfs_sb_log_location_bdev() 903 sector_t nr_sectors; in btrfs_reset_sb_log_zones() local 910 nr_sectors = bdev_nr_sectors(bdev); in btrfs_reset_sb_log_zones() [all …]
|
/linux/Documentation/block/ |
A D | request.rst | 67 unsigned long nr_sectors DBI Total number of sectors in request 69 unsigned long hard_nr_sectors B Used to keep nr_sectors sane
|
A D | queue-sysfs.rst | 301 indicate the first sector of the range and the nr_sectors (RO) attribute file 309 | |-- nr_sectors 312 |-- nr_sectors 315 The sector and nr_sectors attributes use 512B sector unit, regardless of
|
/linux/drivers/block/drbd/ |
A D | drbd_actlog.c | 852 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()
|
A D | drbd_req.c | 888 sector_t esector, nr_sectors; in drbd_may_do_local_read() local 895 nr_sectors = get_capacity(device->vdisk); in drbd_may_do_local_read() 896 D_ASSERT(device, sector < nr_sectors); in drbd_may_do_local_read() 897 D_ASSERT(device, esector < nr_sectors); in drbd_may_do_local_read()
|
/linux/include/uapi/linux/ |
A D | blkzoned.h | 145 __u64 nr_sectors; member
|
/linux/include/xen/interface/io/ |
A D | blkif.h | 214 uint64_t nr_sectors; member
|
/linux/fs/fat/ |
A D | inode.c | 68 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, 1564 if (floppy_defaults[i].nr_sectors == bd_sects) { in fat_read_static_bpb() 1588 bpb->fat_sectors = fdefaults->nr_sectors; in fat_read_static_bpb()
|
/linux/drivers/block/ |
A D | floppy.c | 2261 unsigned int nr_sectors = current_count_sectors; in floppy_end_request() local 2266 nr_sectors = blk_rq_cur_sectors(req); in floppy_end_request() 2267 if (blk_update_request(req, error, nr_sectors << 9)) in floppy_end_request() 2323 int nr_sectors; in rw_interrupt() local 2347 nr_sectors = (((reply_buffer[R_TRACK] - raw_cmd->cmd[TRACK]) * heads + in rw_interrupt() 2351 if (nr_sectors / ssize > in rw_interrupt() 2354 nr_sectors, current_count_sectors); in rw_interrupt() 2367 nr_sectors -= in_sector_offset; in rw_interrupt() 2368 INFBOUND(nr_sectors, 0); in rw_interrupt() 2369 SUPBOUND(current_count_sectors, nr_sectors); in rw_interrupt() [all …]
|