Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 13 of 13) sorted by relevance

/block/
Dbadblocks.c53 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 …]
Dbounce.c217 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()
Dblk-merge.c148 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, &sectors, max_segs, in blk_bio_segment_split()
[all …]
Dblk-settings.c556 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()
Dgenhd.c55 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()
Dblk-core.c1249 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()
Dbio.c1496 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()
Dblk-cgroup.c886 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()
Dioctl.c406 unsigned char sectors; member
Dblk-mq.c52 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()
Dblk-throttle.c361 #define request_bucket_index(sectors) \ argument
362 clamp_t(int, order_base_2(sectors) - 3, 0, LATENCY_BUCKET_SIZE - 1)
/block/partitions/
Dibm.c41 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()
Dcore.c90 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()