/Linux-v5.10/block/ |
D | blk-settings.c | 46 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits() 81 lim->max_hw_sectors = UINT_MAX; in blk_set_stacking_limits() 149 void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_sectors) in blk_queue_max_hw_sectors() argument 154 if ((max_hw_sectors << 9) < PAGE_SIZE) { in blk_queue_max_hw_sectors() 155 max_hw_sectors = 1 << (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors() 157 __func__, max_hw_sectors); in blk_queue_max_hw_sectors() 160 limits->max_hw_sectors = max_hw_sectors; in blk_queue_max_hw_sectors() 161 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors() 237 max_sectors = min(q->limits.max_hw_sectors, max_zone_append_sectors); in blk_queue_max_zone_append_sectors() 498 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
|
/Linux-v5.10/drivers/nvme/target/ |
D | passthru.c | 29 int max_hw_sectors; in nvmet_passthru_override_id_ctrl() local 48 max_hw_sectors = min_not_zero(pctrl->max_segments << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl() 49 pctrl->max_hw_sectors); in nvmet_passthru_override_id_ctrl() 55 max_hw_sectors = min_not_zero(BIO_MAX_PAGES << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl() 56 max_hw_sectors); in nvmet_passthru_override_id_ctrl() 60 id->mdts = ilog2(max_hw_sectors) + 9 - page_shift; in nvmet_passthru_override_id_ctrl()
|
D | loop.c | 384 ctrl->ctrl.max_hw_sectors = in nvme_loop_configure_admin_queue()
|
/Linux-v5.10/drivers/block/rnbd/ |
D | rnbd-clt.h | 115 u32 max_hw_sectors; member
|
D | rnbd-proto.h | 132 __le32 max_hw_sectors; member
|
D | README | 73 information: side, max_hw_sectors, etc.
|
D | rnbd-clt.c | 91 dev->max_hw_sectors = sess->max_io_size / SECTOR_SIZE; in rnbd_clt_set_dev_attr() 1279 blk_queue_max_hw_sectors(dev->queue, dev->max_hw_sectors); in setup_request_queue() 1522 dev->max_hw_sectors, dev->rotational); in rnbd_clt_map_device()
|
D | rnbd-srv.c | 549 rsp->max_hw_sectors = in rnbd_srv_fill_msg_open_rsp()
|
/Linux-v5.10/drivers/nvme/host/ |
D | core.c | 1881 if (ns->ctrl->max_hw_sectors == UINT_MAX) in nvme_config_write_zeroes() 1884 max_blocks = ns->ctrl->max_hw_sectors + 1; in nvme_config_write_zeroes() 1979 if (ctrl->max_hw_sectors) { in nvme_set_queue_limits() 1981 (ctrl->max_hw_sectors / (NVME_CTRL_PAGE_SIZE >> 9)) + 1; in nvme_set_queue_limits() 1984 blk_queue_max_hw_sectors(q, ctrl->max_hw_sectors); in nvme_set_queue_limits() 2077 is_power_of_2(ctrl->max_hw_sectors)) in nvme_set_chunk_sectors() 2078 iob = ctrl->max_hw_sectors; in nvme_set_chunk_sectors() 2964 u32 max_hw_sectors; in nvme_init_identify() local 3033 max_hw_sectors = 1 << (id->mdts + page_shift - 9); in nvme_init_identify() 3035 max_hw_sectors = UINT_MAX; in nvme_init_identify() [all …]
|
D | multipath.c | 723 if (ctrl->ana_log_size > ctrl->max_hw_sectors << SECTOR_SHIFT) { in nvme_mpath_init() 727 ctrl->max_hw_sectors << SECTOR_SHIFT); in nvme_mpath_init()
|
D | zns.c | 44 ctrl->max_zone_append = ctrl->max_hw_sectors; in nvme_set_max_append()
|
D | nvme.h | 266 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() 968 geo->mdts = ns->ctrl->max_hw_sectors; in nvme_nvm_register()
|
D | rdma.c | 905 ctrl->ctrl.max_hw_sectors = ctrl->max_fr_pages << (ilog2(SZ_4K) - 9); in nvme_rdma_configure_admin_queue()
|
D | pci.c | 2585 dev->ctrl.max_hw_sectors = min_t(u32, in nvme_reset_work()
|
D | fc.c | 3073 ctrl->ctrl.max_hw_sectors = ctrl->ctrl.max_segments << in nvme_fc_create_association()
|
/Linux-v5.10/include/linux/ |
D | blkdev.h | 326 unsigned int max_hw_sectors; member 1100 return q->limits.max_hw_sectors; in blk_rq_get_max_sectors() 1398 return q->limits.max_hw_sectors; in queue_max_hw_sectors()
|
/Linux-v5.10/drivers/block/drbd/ |
D | drbd_nl.c | 1335 unsigned int max_hw_sectors = max_bio_size >> 9; in drbd_setup_queue_param() local 1345 max_hw_sectors = min(queue_max_hw_sectors(b), max_bio_size >> 9); in drbd_setup_queue_param() 1356 blk_queue_max_hw_sectors(q, max_hw_sectors); in drbd_setup_queue_param()
|
/Linux-v5.10/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.10/drivers/md/bcache/ |
D | super.c | 934 q->limits.max_hw_sectors = UINT_MAX; in bcache_device_init()
|
/Linux-v5.10/drivers/scsi/ |
D | sd.c | 3263 q->limits.max_sectors > q->limits.max_hw_sectors) in sd_revalidate_disk()
|