Home
last modified time | relevance | path

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

12

/linux/block/
H A Dblk-settings.c50 lim->max_hw_sectors = UINT_MAX; in blk_set_stacking_limits()
122 min(lim->chunk_sectors, lim->max_hw_sectors)); in blk_validate_zoned_limits()
246 unsigned int unit_limit = min(lim->max_hw_sectors << SECTOR_SHIFT, in blk_atomic_writes_update_limits()
253 lim->max_hw_sectors); in blk_atomic_writes_update_limits()
355 unsigned int max_hw_sectors; in blk_validate_limits() local
400 if (!lim->max_hw_sectors) in blk_validate_limits()
401 lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_validate_limits()
402 if (WARN_ON_ONCE(lim->max_hw_sectors < PAGE_SECTORS)) in blk_validate_limits()
405 if (WARN_ON_ONCE(logical_block_sectors > lim->max_hw_sectors)) in blk_validate_limits()
407 lim->max_hw_sectors = round_down(lim->max_hw_sectors, in blk_validate_limits()
[all …]
H A Dblk-map.c429 unsigned int max_bytes = lim->max_hw_sectors << SECTOR_SHIFT; in blk_rq_append_bio()
465 unsigned int max_bytes = rq->q->limits.max_hw_sectors << SECTOR_SHIFT; in blk_rq_map_user_bvec()
H A Dblk-sysfs.c262 QUEUE_SYSFS_LIMIT_SHOW_SECTORS_TO_KB(max_hw_sectors)
/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.c398 ctrl->ctrl.max_hw_sectors = in nvme_loop_configure_admin_queue()
/linux/drivers/nvme/host/
H A Dcore.c2065 return ctrl->max_hw_sectors / (NVME_CTRL_PAGE_SIZE >> SECTOR_SHIFT) + 1; in nvme_max_drv_segments()
2071 lim->max_hw_sectors = ctrl->max_hw_sectors; in nvme_set_ctrl_limits()
2144 is_power_of_2(ctrl->max_hw_sectors)) in nvme_set_chunk_sectors()
2145 iob = ctrl->max_hw_sectors; in nvme_set_chunk_sectors()
3368 ctrl->max_zeroes_sectors = ctrl->max_hw_sectors; in nvme_init_non_mdts_limits()
3521 u32 max_hw_sectors; in nvme_init_identify() local
3580 max_hw_sectors = nvme_mps_to_sectors(ctrl, id->mdts); in nvme_init_identify()
3582 max_hw_sectors = UINT_MAX; in nvme_init_identify()
3583 ctrl->max_hw_sectors = in nvme_init_identify()
3584 min_not_zero(ctrl->max_hw_sectors, max_hw_sectors); in nvme_init_identify()
H A Dzns.c33 ctrl->max_zone_append = ctrl->max_hw_sectors; in nvme_set_max_append()
H A Dnvme.h375 u32 max_hw_sectors; member
H A Dmultipath.c1350 size_t max_transfer_size = ctrl->max_hw_sectors << SECTOR_SHIFT; in nvme_mpath_init_identify()
H A Dapple.c1105 anv->ctrl.max_hw_sectors = min_t(u32, NVME_MAX_KB_SZ << 1, in apple_nvme_reset_work()
/linux/drivers/block/rnbd/
H A DREADME73 information: side, max_hw_sectors, etc.
H A Drnbd-srv.c562 rsp->max_hw_sectors = in rnbd_srv_fill_msg_open_rsp()
/linux/drivers/md/
H A Dmd-linear.c74 lim.max_hw_sectors = mddev->chunk_sectors; in linear_set_limits()
H A Draid0.c387 lim.max_hw_sectors = mddev->chunk_sectors; in raid0_set_limits()
/linux/drivers/mmc/core/
H A Dqueue.c358 lim.max_hw_sectors = min(host->max_blk_count, host->max_req_size / 512); in mmc_alloc_disk()
/linux/drivers/usb/storage/
H A Duas.c851 lim->max_hw_sectors = 64; in uas_sdev_configure()
853 lim->max_hw_sectors = 240; in uas_sdev_configure()
/linux/drivers/block/
H A Dps3disk.c391 .max_hw_sectors = BOUNCE_SIZE >> 9, in ps3disk_probe()
H A Dzloop.c993 .max_hw_sectors = SZ_1M >> SECTOR_SHIFT, in zloop_ctl_add()
1090 lim.max_hw_zone_append_sectors = lim.max_hw_sectors; in zloop_ctl_add()
H A Dsunvdc.c788 .max_hw_sectors = port->max_xfer_size, in probe_disk()
H A Dvirtio_blk.c1272 lim->max_hw_sectors = UINT_MAX; in virtblk_read_limits()
/linux/drivers/s390/block/
H A Dscm_blk.c444 lim.max_hw_sectors = lim.max_segments << 3; /* 8 * 512 = blk_size */ in scm_blk_dev_setup()
/linux/drivers/scsi/
H A Dscsi_scan.c1081 lim.max_hw_sectors = 512; in scsi_add_lun()
1083 lim.max_hw_sectors = 1024; in scsi_add_lun()
/linux/arch/um/drivers/
H A Dubd_kern.c844 lim.max_hw_sectors = 8 * sizeof(long); in ubd_add()
/linux/drivers/memstick/core/
H A Dmspro_block.c1104 .max_hw_sectors = MSPRO_BLOCK_MAX_PAGES, in mspro_block_init_disk()
/linux/drivers/firewire/
H A Dsbp2.c1537 lim->max_hw_sectors = 128 * 1024 / 512; in sbp2_scsi_sdev_configure()

12