/drivers/block/ |
D | null_blk_zoned.c | 105 unsigned int nr_sectors = len >> SECTOR_SHIFT; in null_zone_valid_read_len() local 109 sector + nr_sectors <= zone->wp) in null_zone_valid_read_len() 119 unsigned int nr_sectors) in null_zone_write() argument 139 zone->wp += nr_sectors; in null_zone_write() 181 sector_t sector, sector_t nr_sectors) in null_handle_zoned() argument 185 return null_zone_write(cmd, sector, nr_sectors); in null_handle_zoned()
|
D | null_blk.h | 98 sector_t nr_sectors); 110 sector_t nr_sectors) in null_handle_zoned() argument
|
D | null_blk_main.c | 1183 sector_t nr_sectors) in null_handle_badblocks() argument 1189 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks() 1236 sector_t nr_sectors, enum req_opf op) in null_handle_cmd() argument 1254 cmd->error = null_handle_badblocks(cmd, sector, nr_sectors); in null_handle_cmd() 1263 cmd->error = null_handle_zoned(cmd, op, sector, nr_sectors); in null_handle_cmd() 1310 sector_t nr_sectors = bio_sectors(bio); in null_queue_bio() local 1318 null_handle_cmd(cmd, sector, nr_sectors, bio_op(bio)); in null_queue_bio() 1352 sector_t nr_sectors = blk_rq_sectors(bd->rq); in null_queue_rq() local 1382 return null_handle_cmd(cmd, sector, nr_sectors, req_op(bd->rq)); in null_queue_rq()
|
D | floppy.c | 2217 unsigned int nr_sectors = current_count_sectors; in floppy_end_request() local 2222 nr_sectors = blk_rq_cur_sectors(req); in floppy_end_request() 2223 if (blk_update_request(req, error, nr_sectors << 9)) in floppy_end_request() 2279 int nr_sectors; in rw_interrupt() local 2291 nr_sectors = 0; in rw_interrupt() 2304 nr_sectors = (((R_TRACK - TRACK) * heads + in rw_interrupt() 2308 if (nr_sectors / ssize > in rw_interrupt() 2311 nr_sectors, current_count_sectors); in rw_interrupt() 2321 nr_sectors -= in_sector_offset; in rw_interrupt() 2322 INFBOUND(nr_sectors, 0); in rw_interrupt() [all …]
|
D | xen-blkfront.c | 553 ring_req->u.discard.nr_sectors = blk_rq_sectors(req); in blkif_queue_discard_req()
|
/drivers/md/bcache/ |
D | writeback.h | 45 unsigned int nr_sectors) in bcache_dev_stripe_dirty() argument 53 if (nr_sectors <= dc->disk.stripe_size) in bcache_dev_stripe_dirty() 56 nr_sectors -= dc->disk.stripe_size; in bcache_dev_stripe_dirty() 111 uint64_t offset, int nr_sectors);
|
D | writeback.c | 519 uint64_t offset, int nr_sectors) in bcache_dev_sectors_dirty_add() argument 528 atomic_long_add(nr_sectors, &c->flash_dev_dirty_sectors); in bcache_dev_sectors_dirty_add() 533 while (nr_sectors) { in bcache_dev_sectors_dirty_add() 534 int s = min_t(unsigned int, abs(nr_sectors), in bcache_dev_sectors_dirty_add() 537 if (nr_sectors < 0) in bcache_dev_sectors_dirty_add() 550 nr_sectors -= s; in bcache_dev_sectors_dirty_add()
|
/drivers/block/xen-blkback/ |
D | common.h | 94 uint64_t nr_sectors; member 148 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()
|
D | blkback.c | 1021 preq.nr_sects = req->u.discard.nr_sectors; in dispatch_discard_io() 1037 req->u.discard.nr_sectors, in dispatch_discard_io()
|
/drivers/md/ |
D | dm-log-writes.c | 97 __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()
|
D | dm-zoned-target.c | 624 unsigned int nr_sectors = bio_sectors(bio); in dmz_map() local 632 bio_op(bio), (unsigned long long)sector, nr_sectors, in dmz_map() 639 if (!nr_sectors && bio_op(bio) != REQ_OP_WRITE) in dmz_map() 643 if ((nr_sectors & DMZ_BLOCK_SECTORS_MASK) || (sector & DMZ_BLOCK_SECTORS_MASK)) in dmz_map() 653 if (!nr_sectors && bio_op(bio) == REQ_OP_WRITE) { in dmz_map() 663 if (chunk_sector + nr_sectors > dev->zone_nr_sectors) in dmz_map()
|
D | md.h | 537 static inline void md_sync_acct(struct block_device *bdev, unsigned long nr_sectors) in md_sync_acct() argument 539 atomic_add(nr_sectors, &bdev->bd_contains->bd_disk->sync_io); in md_sync_acct() 542 static inline void md_sync_acct_bio(struct bio *bio, unsigned long nr_sectors) in md_sync_acct_bio() argument 544 atomic_add(nr_sectors, &bio->bi_disk->sync_io); in md_sync_acct_bio()
|
D | raid10.c | 2907 sector_t max_sector, nr_sectors; in raid10_sync_request() local 3418 nr_sectors = 0; in raid10_sync_request() 3437 nr_sectors += len>>9; in raid10_sync_request() 3440 r10_bio->sectors = nr_sectors; in raid10_sync_request() 3445 if (conf->cluster_sync_high < sector_nr + nr_sectors) { in raid10_sync_request() 3466 if (conf->cluster_sync_high < sect_va1 + nr_sectors) { in raid10_sync_request() 3494 r10_bio->sectors = nr_sectors; in raid10_sync_request() 3497 md_sync_acct_bio(bio, nr_sectors); in raid10_sync_request() 3509 return sectors_skipped + nr_sectors; in raid10_sync_request() 4437 int nr_sectors; in reshape_request() local [all …]
|
D | raid1.c | 2637 sector_t max_sector, nr_sectors; in raid1_sync_request() local 2853 nr_sectors = 0; in raid1_sync_request() 2887 nr_sectors += len>>9; in raid1_sync_request() 2892 r1_bio->sectors = nr_sectors; in raid1_sync_request() 2895 conf->cluster_sync_high < sector_nr + nr_sectors) { in raid1_sync_request() 2913 md_sync_acct_bio(bio, nr_sectors); in raid1_sync_request() 2922 md_sync_acct_bio(bio, nr_sectors); in raid1_sync_request() 2927 return nr_sectors; in raid1_sync_request()
|
/drivers/block/drbd/ |
D | drbd_actlog.c | 852 sector_t esector, nr_sectors; in __drbd_change_sync() local 868 nr_sectors = drbd_get_capacity(device->this_bdev); 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()
|
D | drbd_req.c | 902 sector_t esector, nr_sectors; in drbd_may_do_local_read() local 909 nr_sectors = drbd_get_capacity(device->this_bdev); in drbd_may_do_local_read() 910 D_ASSERT(device, sector < nr_sectors); in drbd_may_do_local_read() 911 D_ASSERT(device, esector < nr_sectors); in drbd_may_do_local_read()
|
D | drbd_receiver.c | 1511 …discard_or_zero_out(struct drbd_device *device, sector_t start, unsigned int nr_sectors, int flags) in drbd_issue_discard_or_zero_out() argument 1532 if (nr_sectors < granularity) in drbd_issue_discard_or_zero_out() 1537 if (nr_sectors < 2*granularity) in drbd_issue_discard_or_zero_out() 1547 nr_sectors -= nr; in drbd_issue_discard_or_zero_out() 1550 while (nr_sectors >= max_discard_sectors) { in drbd_issue_discard_or_zero_out() 1552 nr_sectors -= max_discard_sectors; in drbd_issue_discard_or_zero_out() 1555 if (nr_sectors) { in drbd_issue_discard_or_zero_out() 1560 nr = nr_sectors; in drbd_issue_discard_or_zero_out() 1564 nr_sectors -= nr; in drbd_issue_discard_or_zero_out() 1569 if (nr_sectors) { in drbd_issue_discard_or_zero_out() [all …]
|
D | drbd_int.h | 1548 sector_t start, unsigned int nr_sectors, int flags);
|