Searched refs:max_hw_sectors (Results 1 – 14 of 14) sorted by relevance
/Linux-v4.19/block/ |
D | blk-settings.c | 97 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits() 132 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_SIZE) { in blk_queue_max_hw_sectors() 243 max_hw_sectors = 1 << (PAGE_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() 554 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
|
/Linux-v4.19/drivers/nvme/host/ |
D | multipath.c | 529 if (ctrl->ana_log_size > ctrl->max_hw_sectors << SECTOR_SHIFT) { in nvme_mpath_init() 533 ctrl->max_hw_sectors << SECTOR_SHIFT); in nvme_mpath_init()
|
D | core.c | 1840 if (ctrl->max_hw_sectors) { in nvme_set_queue_limits() 1842 (ctrl->max_hw_sectors / (ctrl->page_size >> 9)) + 1; in nvme_set_queue_limits() 1845 blk_queue_max_hw_sectors(q, ctrl->max_hw_sectors); in nvme_set_queue_limits() 1849 is_power_of_2(ctrl->max_hw_sectors)) in nvme_set_queue_limits() 1850 blk_queue_chunk_sectors(q, ctrl->max_hw_sectors); in nvme_set_queue_limits() 2338 u32 max_hw_sectors; in nvme_init_identify() local 2402 max_hw_sectors = 1 << (id->mdts + page_shift - 9); in nvme_init_identify() 2404 max_hw_sectors = UINT_MAX; in nvme_init_identify() 2405 ctrl->max_hw_sectors = in nvme_init_identify() 2406 min_not_zero(ctrl->max_hw_sectors, max_hw_sectors); in nvme_init_identify()
|
D | nvme.h | 180 u32 max_hw_sectors; member
|
D | lightnvm.c | 586 max_len = min_t(unsigned int, ctrl->max_hw_sectors << 9, 256 * 1024); in nvme_nvm_get_chk_meta()
|
D | rdma.c | 799 ctrl->ctrl.max_hw_sectors = in nvme_rdma_configure_admin_queue()
|
D | fc.c | 2628 ctrl->ctrl.max_hw_sectors = in nvme_fc_create_association()
|
D | pci.c | 2285 dev->ctrl.max_hw_sectors = NVME_MAX_KB_SZ << 1; in nvme_reset_work()
|
/Linux-v4.19/include/linux/ |
D | blkdev.h | 369 unsigned int max_hw_sectors; member 1129 return q->limits.max_hw_sectors; in blk_rq_get_max_sectors() 1454 return q->limits.max_hw_sectors; in queue_max_hw_sectors()
|
/Linux-v4.19/drivers/nvme/target/ |
D | loop.c | 410 ctrl->ctrl.max_hw_sectors = in nvme_loop_configure_admin_queue()
|
/Linux-v4.19/drivers/block/drbd/ |
D | drbd_nl.c | 1306 unsigned int max_hw_sectors = max_bio_size >> 9; in drbd_setup_queue_param() local 1316 max_hw_sectors = min(queue_max_hw_sectors(b), max_bio_size >> 9); in drbd_setup_queue_param() 1327 blk_queue_max_hw_sectors(q, max_hw_sectors); in drbd_setup_queue_param()
|
/Linux-v4.19/Documentation/block/ |
D | biodoc.txt | 140 - The request queue's max_hw_sectors, which is a hard limit 144 The default for both max_sectors and max_hw_sectors is
|
/Linux-v4.19/drivers/md/bcache/ |
D | super.c | 831 q->limits.max_hw_sectors = UINT_MAX; in bcache_device_init()
|
/Linux-v4.19/drivers/scsi/ |
D | sd.c | 3155 q->limits.max_sectors > q->limits.max_hw_sectors) in sd_revalidate_disk()
|