Home
last modified time | relevance | path

Searched refs:max_hw_sectors (Results 1 – 7 of 7) sorted by relevance

/linux-4.4.14/block/
Dblk-settings.c94 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits()
128 lim->max_hw_sectors = UINT_MAX; in blk_set_stacking_limits()
237 void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_sectors) in blk_queue_max_hw_sectors() argument
242 if ((max_hw_sectors << 9) < PAGE_CACHE_SIZE) { in blk_queue_max_hw_sectors()
243 max_hw_sectors = 1 << (PAGE_CACHE_SHIFT - 9); in blk_queue_max_hw_sectors()
245 __func__, max_hw_sectors); in blk_queue_max_hw_sectors()
248 limits->max_hw_sectors = max_hw_sectors; in blk_queue_max_hw_sectors()
249 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
524 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
/linux-4.4.14/drivers/nvme/host/
Dnvme.h63 u32 max_hw_sectors; member
Dpci.c2275 if (dev->max_hw_sectors) { in nvme_alloc_ns()
2276 blk_queue_max_hw_sectors(ns->queue, dev->max_hw_sectors); in nvme_alloc_ns()
2278 (dev->max_hw_sectors / (dev->page_size >> 9)) + 1); in nvme_alloc_ns()
2640 dev->max_hw_sectors = 1 << (ctrl->mdts + shift - 9); in nvme_dev_add()
2642 dev->max_hw_sectors = UINT_MAX; in nvme_dev_add()
2645 unsigned int max_hw_sectors; in nvme_dev_add() local
2648 max_hw_sectors = dev->stripe_size >> (shift - 9); in nvme_dev_add()
2649 if (dev->max_hw_sectors) { in nvme_dev_add()
2650 dev->max_hw_sectors = min(max_hw_sectors, in nvme_dev_add()
2651 dev->max_hw_sectors); in nvme_dev_add()
[all …]
/linux-4.4.14/include/linux/
Dblkdev.h256 unsigned int max_hw_sectors; member
894 return q->limits.max_hw_sectors; in blk_rq_get_max_sectors()
1177 return q->limits.max_hw_sectors; in queue_max_hw_sectors()
/linux-4.4.14/drivers/block/drbd/
Ddrbd_nl.c1129 unsigned int max_hw_sectors = max_bio_size >> 9; in drbd_setup_queue_param() local
1136 max_hw_sectors = min(queue_max_hw_sectors(b), max_bio_size >> 9); in drbd_setup_queue_param()
1146 blk_queue_max_hw_sectors(q, max_hw_sectors); in drbd_setup_queue_param()
/linux-4.4.14/drivers/md/bcache/
Dsuper.c806 q->limits.max_hw_sectors = UINT_MAX; in bcache_device_init()
/linux-4.4.14/Documentation/block/
Dbiodoc.txt140 - The request queue's max_hw_sectors, which is a hard limit
144 The default for both max_sectors and max_hw_sectors is