Searched refs:max_hw_sectors (Results 1 – 14 of 14) sorted by relevance
/Linux-v5.4/block/ |
D | blk-settings.c | 46 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/ |
D | core.c | 1703 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 …]
|
D | multipath.c | 703 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()
|
D | nvme.h | 218 u32 max_hw_sectors; member
|
D | lightnvm.c | 573 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()
|
D | rdma.c | 831 ctrl->ctrl.max_hw_sectors = ctrl->max_fr_pages << (ilog2(SZ_4K) - 9); in nvme_rdma_configure_admin_queue()
|
D | fc.c | 2674 ctrl->ctrl.max_hw_sectors = in nvme_fc_create_association()
|
D | pci.c | 2571 dev->ctrl.max_hw_sectors = min_t(u32, in nvme_reset_work()
|
/Linux-v5.4/include/linux/ |
D | blkdev.h | 325 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/ |
D | loop.c | 385 ctrl->ctrl.max_hw_sectors = in nvme_loop_configure_admin_queue()
|
/Linux-v5.4/drivers/block/drbd/ |
D | drbd_nl.c | 1336 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/ |
D | biodoc.rst | 151 - 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/ |
D | super.c | 846 q->limits.max_hw_sectors = UINT_MAX; in bcache_device_init()
|
/Linux-v5.4/drivers/scsi/ |
D | sd.c | 3175 q->limits.max_sectors > q->limits.max_hw_sectors) in sd_revalidate_disk()
|