Home
last modified time | relevance | path

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

/block/
Dblk-settings.c46 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits()
83 lim->max_sectors = UINT_MAX; in blk_set_stacking_limits()
152 unsigned int max_sectors; in blk_queue_max_hw_sectors() local
161 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
162 max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS); in blk_queue_max_hw_sectors()
163 limits->max_sectors = max_sectors; in blk_queue_max_hw_sectors()
164 q->backing_dev_info->io_pages = max_sectors >> (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors()
232 unsigned int max_sectors; in blk_queue_max_zone_append_sectors() local
237 max_sectors = min(q->limits.max_hw_sectors, max_zone_append_sectors); in blk_queue_max_zone_append_sectors()
238 max_sectors = min(q->limits.chunk_sectors, max_sectors); in blk_queue_max_zone_append_sectors()
[all …]
Dblk-merge.c151 unsigned max_sectors = sectors; in get_max_io_size() local
156 max_sectors += start_offset; in get_max_io_size()
157 max_sectors &= ~(pbs - 1); in get_max_io_size()
158 if (max_sectors > start_offset) in get_max_io_size()
159 return max_sectors - start_offset; in get_max_io_size()
203 unsigned max_sectors) in bvec_split_segs() argument
205 unsigned max_len = (min(max_sectors, UINT_MAX >> 9) - *sectors) << 9; in bvec_split_segs()
256 const unsigned max_sectors = get_max_io_size(q, bio); in blk_bio_segment_split() local
268 sectors + (bv.bv_len >> 9) <= max_sectors && in blk_bio_segment_split()
273 max_sectors)) { in blk_bio_segment_split()
Dscsi_ioctl.c73 unsigned int max_sectors = queue_max_sectors(q); in max_sectors_bytes() local
75 max_sectors = min_t(unsigned int, max_sectors, INT_MAX >> 9); in max_sectors_bytes()
77 return max_sectors << 9; in max_sectors_bytes()
Dioctl.c509 unsigned int max_sectors; in blkdev_common_ioctl() local
549 max_sectors = min_t(unsigned int, USHRT_MAX, in blkdev_common_ioctl()
551 return put_ushort(argp, max_sectors); in blkdev_common_ioctl()
Dblk-sysfs.c224 unsigned long long max_sectors = q->limits.max_zone_append_sectors; in queue_zone_append_max_show() local
226 return sprintf(page, "%llu\n", max_sectors << SECTOR_SHIFT); in queue_zone_append_max_show()
247 q->limits.max_sectors = max_sectors_kb << 1; in queue_max_sectors_store()
Dblk-core.c1161 unsigned int max_sectors = blk_queue_get_max_sectors(q, req_op(rq)); in blk_cloned_rq_check_limits() local
1163 if (blk_rq_sectors(rq) > max_sectors) { in blk_cloned_rq_check_limits()
1174 if (max_sectors == 0) in blk_cloned_rq_check_limits()
1178 __func__, blk_rq_sectors(rq), max_sectors); in blk_cloned_rq_check_limits()
Dblk-map.c246 unsigned int max_sectors = queue_max_hw_sectors(rq->q); in bio_map_user_iov() local
286 max_sectors, &same_page)) { in bio_map_user_iov()
Dblk.h449 unsigned int max_sectors, bool *same_page);
Dbio.c795 unsigned int max_sectors, bool *same_page) in bio_add_hw_page() argument
802 if (((bio->bi_iter.bi_size + len) >> 9) > max_sectors) in bio_add_hw_page()