Home
last modified time | relevance | path

Searched refs:max_sectors (Results 1 – 8 of 8) sorted by relevance

/block/
Dblk-settings.c50 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits()
89 lim->max_sectors = UINT_MAX; in blk_set_stacking_limits()
188 unsigned int max_sectors; in blk_queue_max_hw_sectors() local
204 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
205 max_sectors = min(max_sectors, BLK_DEF_MAX_SECTORS); in blk_queue_max_hw_sectors()
206 max_sectors = round_down(max_sectors, in blk_queue_max_hw_sectors()
208 limits->max_sectors = max_sectors; in blk_queue_max_hw_sectors()
212 q->disk->bdi->io_pages = max_sectors >> (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors()
280 unsigned int max_sectors; in blk_queue_max_zone_append_sectors() local
285 max_sectors = min(q->limits.max_hw_sectors, max_zone_append_sectors); in blk_queue_max_zone_append_sectors()
[all …]
Dblk-merge.c149 unsigned max_sectors = sectors; in get_max_io_size() local
154 max_sectors += start_offset; in get_max_io_size()
155 max_sectors &= ~(pbs - 1); in get_max_io_size()
156 if (max_sectors > start_offset) in get_max_io_size()
157 return max_sectors - start_offset; in get_max_io_size()
201 unsigned max_sectors) in bvec_split_segs() argument
203 unsigned max_len = (min(max_sectors, UINT_MAX >> 9) - *sectors) << 9; in bvec_split_segs()
254 const unsigned max_sectors = get_max_io_size(q, bio); in blk_bio_segment_split() local
266 sectors + (bv.bv_len >> 9) <= max_sectors && in blk_bio_segment_split()
272 max_sectors)) { in blk_bio_segment_split()
Dioctl.c474 unsigned int max_sectors; in blkdev_common_ioctl() local
516 max_sectors = min_t(unsigned int, USHRT_MAX, in blkdev_common_ioctl()
518 return put_ushort(argp, max_sectors); in blkdev_common_ioctl()
Dblk-map.c236 unsigned int max_sectors = queue_max_hw_sectors(rq->q); in bio_map_user_iov() local
276 max_sectors, &same_page)) { in bio_map_user_iov()
Dblk-sysfs.c233 unsigned long long max_sectors = q->limits.max_zone_append_sectors; in queue_zone_append_max_show() local
235 return sprintf(page, "%llu\n", max_sectors << SECTOR_SHIFT); in queue_zone_append_max_show()
256 q->limits.max_sectors = max_sectors_kb << 1; in queue_max_sectors_store()
Dblk-core.c1119 unsigned int max_sectors = blk_queue_get_max_sectors(q, req_op(rq)); in blk_cloned_rq_check_limits() local
1121 if (blk_rq_sectors(rq) > max_sectors) { in blk_cloned_rq_check_limits()
1132 if (max_sectors == 0) in blk_cloned_rq_check_limits()
1136 __func__, blk_rq_sectors(rq), max_sectors); in blk_cloned_rq_check_limits()
Dblk.h404 unsigned int max_sectors, bool *same_page);
Dbio.c835 unsigned int max_sectors, bool *same_page) in bio_add_hw_page() argument
842 if (((bio->bi_iter.bi_size + len) >> 9) > max_sectors) in bio_add_hw_page()