Home
last modified time | relevance | path

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

/Linux-v5.4/block/
Dblk-settings.c46 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits()
80 lim->max_hw_sectors = UINT_MAX; in blk_set_stacking_limits()
183 void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_sectors) in blk_queue_max_hw_sectors() argument
188 if ((max_hw_sectors << 9) < PAGE_SIZE) { in blk_queue_max_hw_sectors()
189 max_hw_sectors = 1 << (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors()
191 __func__, max_hw_sectors); in blk_queue_max_hw_sectors()
194 limits->max_hw_sectors = max_hw_sectors; in blk_queue_max_hw_sectors()
195 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
503 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
/Linux-v5.4/drivers/nvme/host/
Dcore.c1703 if (ns->ctrl->max_hw_sectors == UINT_MAX) in nvme_config_write_zeroes()
1706 max_sectors = ((u32)(ns->ctrl->max_hw_sectors + 1) * bs) >> 9; in nvme_config_write_zeroes()
2178 if (ctrl->max_hw_sectors) { in nvme_set_queue_limits()
2180 (ctrl->max_hw_sectors / (ctrl->page_size >> 9)) + 1; in nvme_set_queue_limits()
2183 blk_queue_max_hw_sectors(q, ctrl->max_hw_sectors); in nvme_set_queue_limits()
2187 is_power_of_2(ctrl->max_hw_sectors)) in nvme_set_queue_limits()
2188 blk_queue_chunk_sectors(q, ctrl->max_hw_sectors); in nvme_set_queue_limits()
2736 u32 max_hw_sectors; in nvme_init_identify() local
2802 max_hw_sectors = 1 << (id->mdts + page_shift - 9); in nvme_init_identify()
2804 max_hw_sectors = UINT_MAX; in nvme_init_identify()
[all …]
Dmultipath.c703 if (ctrl->ana_log_size > ctrl->max_hw_sectors << SECTOR_SHIFT) { in nvme_mpath_init()
707 ctrl->max_hw_sectors << SECTOR_SHIFT); in nvme_mpath_init()
Dnvme.h218 u32 max_hw_sectors; member
Dlightnvm.c573 max_len = min_t(unsigned int, ctrl->max_hw_sectors << 9, 256 * 1024); in nvme_nvm_get_chk_meta()
965 geo->mdts = ns->ctrl->max_hw_sectors; in nvme_nvm_register()
Drdma.c831 ctrl->ctrl.max_hw_sectors = ctrl->max_fr_pages << (ilog2(SZ_4K) - 9); in nvme_rdma_configure_admin_queue()
Dfc.c2674 ctrl->ctrl.max_hw_sectors = in nvme_fc_create_association()
Dpci.c2571 dev->ctrl.max_hw_sectors = min_t(u32, in nvme_reset_work()
/Linux-v5.4/include/linux/
Dblkdev.h325 unsigned int max_hw_sectors; member
1029 return q->limits.max_hw_sectors; in blk_rq_get_max_sectors()
1279 return q->limits.max_hw_sectors; in queue_max_hw_sectors()
/Linux-v5.4/drivers/nvme/target/
Dloop.c385 ctrl->ctrl.max_hw_sectors = in nvme_loop_configure_admin_queue()
/Linux-v5.4/drivers/block/drbd/
Ddrbd_nl.c1336 unsigned int max_hw_sectors = max_bio_size >> 9; in drbd_setup_queue_param() local
1346 max_hw_sectors = min(queue_max_hw_sectors(b), max_bio_size >> 9); in drbd_setup_queue_param()
1357 blk_queue_max_hw_sectors(q, max_hw_sectors); in drbd_setup_queue_param()
/Linux-v5.4/Documentation/block/
Dbiodoc.rst151 - The request queue's max_hw_sectors, which is a hard limit
155 The default for both max_sectors and max_hw_sectors is
/Linux-v5.4/drivers/md/bcache/
Dsuper.c846 q->limits.max_hw_sectors = UINT_MAX; in bcache_device_init()
/Linux-v5.4/drivers/scsi/
Dsd.c3175 q->limits.max_sectors > q->limits.max_hw_sectors) in sd_revalidate_disk()