Home
last modified time | relevance | path

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

/openbmc/linux/block/
H A Dblk-settings.c43 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits()
79 lim->max_hw_sectors = UINT_MAX; in blk_set_stacking_limits()
128 if ((max_hw_sectors << 9) < PAGE_SIZE) { in blk_queue_max_hw_sectors()
129 max_hw_sectors = 1 << (PAGE_SHIFT - 9); in blk_queue_max_hw_sectors()
131 __func__, max_hw_sectors); in blk_queue_max_hw_sectors()
134 max_hw_sectors = round_down(max_hw_sectors, in blk_queue_max_hw_sectors()
136 limits->max_hw_sectors = max_hw_sectors; in blk_queue_max_hw_sectors()
321 limits->max_hw_sectors = in blk_queue_logical_block_size()
322 round_down(limits->max_hw_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size()
559 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
[all …]
H A Dblk-merge.c597 return q->limits.max_hw_sectors; in blk_rq_get_max_sectors()
/openbmc/linux/drivers/nvme/target/
H A Dpassthru.c86 unsigned int max_hw_sectors; in nvmet_passthru_override_id_ctrl() local
105 max_hw_sectors = min_not_zero(pctrl->max_segments << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
106 pctrl->max_hw_sectors); in nvmet_passthru_override_id_ctrl()
112 max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
113 max_hw_sectors); in nvmet_passthru_override_id_ctrl()
117 id->mdts = ilog2(max_hw_sectors) + 9 - page_shift; in nvmet_passthru_override_id_ctrl()
H A Dloop.c375 ctrl->ctrl.max_hw_sectors = in nvme_loop_configure_admin_queue()
/openbmc/linux/drivers/block/rnbd/
H A Drnbd-proto.h147 __le32 max_hw_sectors; member
H A DREADME73 information: side, max_hw_sectors, etc.
H A Drnbd-srv.c545 rsp->max_hw_sectors = in rnbd_srv_fill_msg_open_rsp()
/openbmc/linux/drivers/nvme/host/
H A Dcore.c1859 if (ctrl->max_hw_sectors) { in nvme_set_queue_limits()
1861 (ctrl->max_hw_sectors / (NVME_CTRL_PAGE_SIZE >> 9)) + 1; in nvme_set_queue_limits()
1864 blk_queue_max_hw_sectors(q, ctrl->max_hw_sectors); in nvme_set_queue_limits()
1960 is_power_of_2(ctrl->max_hw_sectors)) in nvme_set_chunk_sectors()
1961 iob = ctrl->max_hw_sectors; in nvme_set_chunk_sectors()
2914 ctrl->max_zeroes_sectors = ctrl->max_hw_sectors; in nvme_init_non_mdts_limits()
3007 u32 max_hw_sectors; in nvme_init_identify() local
3066 max_hw_sectors = nvme_mps_to_sectors(ctrl, id->mdts); in nvme_init_identify()
3068 max_hw_sectors = UINT_MAX; in nvme_init_identify()
3069 ctrl->max_hw_sectors = in nvme_init_identify()
[all …]
H A Dzns.c43 ctrl->max_zone_append = ctrl->max_hw_sectors; in nvme_set_max_append()
H A Dnvme.h308 u32 max_hw_sectors; member
H A Dmultipath.c915 size_t max_transfer_size = ctrl->max_hw_sectors << SECTOR_SHIFT; in nvme_mpath_init_identify()
H A Dapple.c1052 anv->ctrl.max_hw_sectors = min_t(u32, NVME_MAX_KB_SZ << 1, in apple_nvme_reset_work()
H A Drdma.c830 ctrl->ctrl.max_hw_sectors = ctrl->max_fr_pages << (ilog2(SZ_4K) - 9); in nvme_rdma_configure_admin_queue()
H A Dfc.c3115 ctrl->ctrl.max_hw_sectors = ctrl->ctrl.max_segments << in nvme_fc_create_association()
H A Dpci.c3013 dev->ctrl.max_hw_sectors = min_t(u32, in nvme_pci_alloc_dev()
/openbmc/linux/include/linux/
H A Dblkdev.h305 unsigned int max_hw_sectors; member
1120 return q->limits.max_hw_sectors; in queue_max_hw_sectors()
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_nl.c1275 unsigned int max_hw_sectors = max_bio_size >> 9; in drbd_setup_queue_param() local
1283 max_hw_sectors = min(queue_max_hw_sectors(b), max_bio_size >> 9); in drbd_setup_queue_param()
1292 blk_queue_max_hw_sectors(q, max_hw_sectors); in drbd_setup_queue_param()
/openbmc/linux/drivers/md/bcache/
H A Dsuper.c952 q->limits.max_hw_sectors = UINT_MAX; in bcache_device_init()
/openbmc/linux/drivers/scsi/
H A Dsd.c3551 q->limits.max_sectors > q->limits.max_hw_sectors) in sd_revalidate_disk()