Lines Matching defs:pltfrm_param
213 * @pltfrm_param: pointer to platform parameters
219 int ufshcd_get_pwr_dev_param(const struct ufs_dev_params *pltfrm_param,
231 if (pltfrm_param->desired_working_mode == UFS_HS_MODE) {
233 min_pltfrm_gear = min_t(u32, pltfrm_param->hs_rx_gear,
234 pltfrm_param->hs_tx_gear);
236 min_pltfrm_gear = min_t(u32, pltfrm_param->pwm_rx_gear,
237 pltfrm_param->pwm_tx_gear);
242 * pltfrm_param->desired_working_mode is HS,
243 * thus device and pltfrm_param don't agree
252 * since pltfrm_param->desired_working_mode is also HS
256 agreed_pwr->pwr_rx = pltfrm_param->rx_pwr_hs;
260 * here pltfrm_param->desired_working_mode is PWM.
262 * in both cases pltfrm_param->desired_working_mode will
265 agreed_pwr->pwr_rx = pltfrm_param->rx_pwr_pwm;
275 pltfrm_param->tx_lanes);
277 pltfrm_param->rx_lanes);
301 agreed_pwr->hs_rate = pltfrm_param->hs_rate;