Searched refs:max_hw_sectors (Results 1 – 7 of 7) sorted by relevance
94 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() argument242 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()
63 u32 max_hw_sectors; member
2275 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() local2648 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 …]
256 unsigned int max_hw_sectors; member894 return q->limits.max_hw_sectors; in blk_rq_get_max_sectors()1177 return q->limits.max_hw_sectors; in queue_max_hw_sectors()
1129 unsigned int max_hw_sectors = max_bio_size >> 9; in drbd_setup_queue_param() local1136 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()
806 q->limits.max_hw_sectors = UINT_MAX; in bcache_device_init()
140 - The request queue's max_hw_sectors, which is a hard limit144 The default for both max_sectors and max_hw_sectors is