/block/ |
D | badblocks.c | 53 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, in badblocks_check() argument 60 sector_t target = s + sectors; in badblocks_check() 68 sectors = target - s; in badblocks_check() 163 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, in badblocks_set() argument 177 sector_t next = s + sectors; in badblocks_set() 182 sectors = next - s; in badblocks_set() 213 if (s == a && s + sectors >= e) in badblocks_set() 219 if (e < s + sectors) in badblocks_set() 220 e = s + sectors; in badblocks_set() 232 sectors = e - s; in badblocks_set() [all …]
|
D | bounce.c | 217 int sectors = 0; in __blk_queue_bounce() local 221 sectors += from.bv_len >> 9; in __blk_queue_bounce() 228 if (sectors < bio_sectors(*bio_orig)) { in __blk_queue_bounce() 229 bio = bio_split(*bio_orig, sectors, GFP_NOIO, &bounce_bio_split); in __blk_queue_bounce()
|
D | blk-merge.c | 148 unsigned sectors = blk_max_size_offset(q, bio->bi_iter.bi_sector, 0); in get_max_io_size() local 149 unsigned max_sectors = sectors; in get_max_io_size() 159 return sectors & ~(lbs - 1); in get_max_io_size() 200 unsigned *sectors, unsigned max_segs, in bvec_split_segs() argument 203 unsigned max_len = (min(max_sectors, UINT_MAX >> 9) - *sectors) << 9; in bvec_split_segs() 221 *sectors += total_len >> 9; in bvec_split_segs() 253 unsigned nsegs = 0, sectors = 0; in blk_bio_segment_split() local 266 sectors + (bv.bv_len >> 9) <= max_sectors && in blk_bio_segment_split() 270 sectors += bv.bv_len >> 9; in blk_bio_segment_split() 271 } else if (bvec_split_segs(q, &bv, &nsegs, §ors, max_segs, in blk_bio_segment_split() [all …]
|
D | blk-settings.c | 556 static unsigned int blk_round_down_sectors(unsigned int sectors, unsigned int lbs) in blk_round_down_sectors() argument 558 sectors = round_down(sectors, lbs >> SECTOR_SHIFT); in blk_round_down_sectors() 559 if (sectors < PAGE_SIZE >> SECTOR_SHIFT) in blk_round_down_sectors() 560 sectors = PAGE_SIZE >> SECTOR_SHIFT; in blk_round_down_sectors() 561 return sectors; in blk_round_down_sectors()
|
D | genhd.c | 55 void set_capacity(struct gendisk *disk, sector_t sectors) in set_capacity() argument 60 i_size_write(bdev->bd_inode, (loff_t)sectors << SECTOR_SHIFT); in set_capacity() 135 stat->sectors[group] += ptr->sectors[group]; in part_stat_read_all() 932 (unsigned long long)stat.sectors[STAT_READ], in part_stat_show() 936 (unsigned long long)stat.sectors[STAT_WRITE], in part_stat_show() 947 (unsigned long long)stat.sectors[STAT_DISCARD], in part_stat_show() 1194 stat.sectors[STAT_READ], in diskstats_show() 1199 stat.sectors[STAT_WRITE], in diskstats_show() 1211 stat.sectors[STAT_DISCARD], in diskstats_show()
|
D | blk-core.c | 1249 part_stat_add(req->part, sectors[sgrp], bytes >> 9); in blk_account_io_completion() 1290 unsigned int sectors, unsigned int op, in __part_start_io_acct() argument 1298 part_stat_add(part, sectors[sgrp], sectors); in __part_start_io_acct() 1330 unsigned long disk_start_io_acct(struct gendisk *disk, unsigned int sectors, in disk_start_io_acct() argument 1333 return __part_start_io_acct(disk->part0, sectors, op, jiffies); in disk_start_io_acct()
|
D | bio.c | 1496 struct bio *bio_split(struct bio *bio, int sectors, in bio_split() argument 1501 BUG_ON(sectors <= 0); in bio_split() 1502 BUG_ON(sectors >= bio_sectors(bio)); in bio_split() 1512 split->bi_iter.bi_size = sectors << 9; in bio_split()
|
D | blk-cgroup.c | 886 cpu_dkstats->sectors[STAT_READ] << 9; in blkcg_fill_root_iostats() 888 cpu_dkstats->sectors[STAT_WRITE] << 9; in blkcg_fill_root_iostats() 890 cpu_dkstats->sectors[STAT_DISCARD] << 9; in blkcg_fill_root_iostats()
|
D | ioctl.c | 406 unsigned char sectors; member
|
D | blk-mq.c | 52 int ddir, sectors, bucket; in blk_mq_poll_stats_bkt() local 55 sectors = blk_rq_stats_sectors(rq); in blk_mq_poll_stats_bkt() 57 bucket = ddir + 2 * ilog2(sectors); in blk_mq_poll_stats_bkt()
|
D | blk-throttle.c | 361 #define request_bucket_index(sectors) \ argument 362 clamp_t(int, order_base_2(sectors) - 3, 0, LATENCY_BUCKET_SIZE - 1)
|
/block/partitions/ |
D | ibm.c | 41 return cyl * geo->heads * geo->sectors + in cchh2blk() 42 head * geo->sectors; in cchh2blk() 59 return cyl * geo->heads * geo->sectors + in cchhb2blk() 60 head * geo->sectors + in cchhb2blk() 177 offset + geo->sectors; in find_vol1_partitions() 222 * geo->sectors * secperblk; in find_lnx1_partitions()
|
D | core.c | 90 static void bdev_set_nr_sectors(struct block_device *bdev, sector_t sectors) in bdev_set_nr_sectors() argument 93 i_size_write(bdev->bd_inode, (loff_t)sectors << SECTOR_SHIFT); in bdev_set_nr_sectors()
|