Home
last modified time | relevance | path

Searched refs:dev_max (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/scsi/ufs/
Dufshcd-pltfrm.c295 struct ufs_pa_layer_attr *dev_max, in ufshcd_get_pwr_dev_param() argument
303 if (dev_max->pwr_rx == FAST_MODE) in ufshcd_get_pwr_dev_param()
349 agreed_pwr->lane_tx = min_t(u32, dev_max->lane_tx, in ufshcd_get_pwr_dev_param()
351 agreed_pwr->lane_rx = min_t(u32, dev_max->lane_rx, in ufshcd_get_pwr_dev_param()
355 min_dev_gear = min_t(u32, dev_max->gear_rx, dev_max->gear_tx); in ufshcd_get_pwr_dev_param()
Dufshcd-pltfrm.h29 struct ufs_pa_layer_attr *dev_max,
/Linux-v5.4/drivers/scsi/
Dsd.c3035 unsigned int dev_max) in sd_validate_opt_xfer_size() argument
3044 if (sdkp->opt_xfer_blocks > dev_max) { in sd_validate_opt_xfer_size()
3048 sdkp->opt_xfer_blocks, dev_max); in sd_validate_opt_xfer_size()
3093 unsigned int dev_max, rw_max; in sd_revalidate_disk() local
3153 dev_max = sdp->use_16_for_rw ? SD_MAX_XFER_BLOCKS : SD_DEF_XFER_BLOCKS; in sd_revalidate_disk()
3156 dev_max = min_not_zero(dev_max, sdkp->max_xfer_blocks); in sd_revalidate_disk()
3157 q->limits.max_dev_sectors = logical_to_sectors(sdp, dev_max); in sd_revalidate_disk()
3159 if (sd_validate_opt_xfer_size(sdkp, dev_max)) { in sd_revalidate_disk()
3163 rw_max = min_not_zero(logical_to_sectors(sdp, dev_max), in sd_revalidate_disk()