Home
last modified time | relevance | path

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

/Linux-v4.19/block/
Dblk-settings.c97 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/
Dmultipath.c529 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()
Dcore.c1840 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()
Dnvme.h180 u32 max_hw_sectors; member
Dlightnvm.c586 max_len = min_t(unsigned int, ctrl->max_hw_sectors << 9, 256 * 1024); in nvme_nvm_get_chk_meta()
Drdma.c799 ctrl->ctrl.max_hw_sectors = in nvme_rdma_configure_admin_queue()
Dfc.c2628 ctrl->ctrl.max_hw_sectors = in nvme_fc_create_association()
Dpci.c2285 dev->ctrl.max_hw_sectors = NVME_MAX_KB_SZ << 1; in nvme_reset_work()
/Linux-v4.19/include/linux/
Dblkdev.h369 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/
Dloop.c410 ctrl->ctrl.max_hw_sectors = in nvme_loop_configure_admin_queue()
/Linux-v4.19/drivers/block/drbd/
Ddrbd_nl.c1306 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/
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
/Linux-v4.19/drivers/md/bcache/
Dsuper.c831 q->limits.max_hw_sectors = UINT_MAX; in bcache_device_init()
/Linux-v4.19/drivers/scsi/
Dsd.c3155 q->limits.max_sectors > q->limits.max_hw_sectors) in sd_revalidate_disk()