Lines Matching refs:max_hw_sectors
2284 if (dev->max_hw_sectors) { in nvme_alloc_ns()
2285 blk_queue_max_hw_sectors(ns->queue, dev->max_hw_sectors); in nvme_alloc_ns()
2287 (dev->max_hw_sectors / (dev->page_size >> 9)) + 1); in nvme_alloc_ns()
2649 dev->max_hw_sectors = 1 << (ctrl->mdts + shift - 9); in nvme_dev_add()
2651 dev->max_hw_sectors = UINT_MAX; in nvme_dev_add()
2654 unsigned int max_hw_sectors; in nvme_dev_add() local
2657 max_hw_sectors = dev->stripe_size >> (shift - 9); in nvme_dev_add()
2658 if (dev->max_hw_sectors) { in nvme_dev_add()
2659 dev->max_hw_sectors = min(max_hw_sectors, in nvme_dev_add()
2660 dev->max_hw_sectors); in nvme_dev_add()
2662 dev->max_hw_sectors = max_hw_sectors; in nvme_dev_add()