Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 9 of 9) sorted by relevance

/block/
Dblk-lib.c25 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard() argument
60 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard()
72 sector_t sector_mapped = sector + part_offset; in __blkdev_issue_discard()
98 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard()
103 sector += req_sects; in __blkdev_issue_discard()
131 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard() argument
139 ret = __blkdev_issue_discard(bdev, sector, nr_sects, gfp_mask, flags, in blkdev_issue_discard()
165 static int __blkdev_issue_write_same(struct block_device *bdev, sector_t sector, in __blkdev_issue_write_same() argument
181 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_write_same()
192 bio->bi_iter.bi_sector = sector; in __blkdev_issue_write_same()
[all …]
Dblk-zoned.c56 sector_t sector) in blk_zone_start() argument
60 return sector & ~zone_mask; in blk_zone_start()
155 int blkdev_report_zones(struct block_device *bdev, sector_t sector, in blkdev_report_zones() argument
165 if (!nr_zones || sector >= capacity) in blkdev_report_zones()
168 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones()
173 sector_t sector, 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()
222 if (end_sector <= sector || end_sector > capacity) in blkdev_zone_mgmt()
[all …]
Dbadblocks.c520 unsigned long long sector; in badblocks_store() local
524 switch (sscanf(page, "%llu %d%c", &sector, &length, &newline)) { in badblocks_store()
537 if (badblocks_set(bb, sector, length, !unack)) in badblocks_store()
Delevator.c283 struct request *elv_rb_find(struct rb_root *root, sector_t sector) in elv_rb_find() argument
291 if (sector < blk_rq_pos(rq)) in elv_rb_find()
293 else if (sector > blk_rq_pos(rq)) in elv_rb_find()
Dbfq-iosched.c560 sector_t sector, struct rb_node **ret_parent, in bfq_rq_pos_tree_lookup() argument
578 if (sector > blk_rq_pos(bfqq->next_rq)) in bfq_rq_pos_tree_lookup()
580 else if (sector < blk_rq_pos(bfqq->next_rq)) in bfq_rq_pos_tree_lookup()
593 (unsigned long long)sector, in bfq_rq_pos_tree_lookup()
2419 sector_t sector) in bfq_rq_close_to_sector() argument
2421 return abs(bfq_io_struct_pos(io_struct, request) - sector) <= in bfq_rq_close_to_sector()
2427 sector_t sector) in bfqq_find_close() argument
2440 __bfqq = bfq_rq_pos_tree_lookup(bfqd, root, sector, &parent, NULL); in bfqq_find_close()
2450 if (bfq_rq_close_to_sector(__bfqq->next_rq, true, sector)) in bfqq_find_close()
2453 if (blk_rq_pos(__bfqq->next_rq) < sector) in bfqq_find_close()
[all …]
Dgenhd.c296 static inline int sector_in_part(struct hd_struct *part, sector_t sector) in sector_in_part() argument
298 return part->start_sect <= sector && in sector_in_part()
299 sector < part->start_sect + part_nr_sects_read(part); in sector_in_part()
319 struct hd_struct *disk_map_sector_rcu(struct gendisk *disk, sector_t sector) in disk_map_sector_rcu() argument
329 if (part && sector_in_part(part, sector) && hd_struct_try_get(part)) in disk_map_sector_rcu()
335 if (part && sector_in_part(part, sector)) { in disk_map_sector_rcu()
Dmq-deadline-main.c667 sector_t sector = bio_end_sector(bio); in dd_request_merge() local
673 __rq = elv_rb_find(&per_prio->sort_list[bio_data_dir(bio)], sector); in dd_request_merge()
675 BUG_ON(sector != blk_rq_pos(__rq)); in dd_request_merge()
Dblk.h355 struct hd_struct *disk_map_sector_rcu(struct gendisk *disk, sector_t sector);
/block/partitions/
DKconfig132 first sector a new partition table in BSD disklabel format. Saying Y