Lines Matching refs:pwr_info
589 hba->pwr_info.gear_rx, hba->pwr_info.gear_tx, in ufshcd_print_pwr_info()
590 hba->pwr_info.lane_rx, hba->pwr_info.lane_tx, in ufshcd_print_pwr_info()
591 names[hba->pwr_info.pwr_rx], in ufshcd_print_pwr_info()
592 names[hba->pwr_info.pwr_tx], in ufshcd_print_pwr_info()
593 hba->pwr_info.hs_rate); in ufshcd_print_pwr_info()
1149 memcpy(&new_pwr_info, &hba->pwr_info, in ufshcd_scale_gear()
1152 if (hba->pwr_info.gear_tx > hba->clk_scaling.min_gear || in ufshcd_scale_gear()
1153 hba->pwr_info.gear_rx > hba->clk_scaling.min_gear) { in ufshcd_scale_gear()
1156 &hba->pwr_info, in ufshcd_scale_gear()
1170 hba->pwr_info.gear_tx, hba->pwr_info.gear_rx, in ufshcd_scale_gear()
3901 orig_pwr_info = hba->pwr_info; in ufshcd_dme_get_attr()
4207 hba->pwr_info.gear_rx = UFS_PWM_G1; in ufshcd_init_pwr_info()
4208 hba->pwr_info.gear_tx = UFS_PWM_G1; in ufshcd_init_pwr_info()
4209 hba->pwr_info.lane_rx = 1; in ufshcd_init_pwr_info()
4210 hba->pwr_info.lane_tx = 1; in ufshcd_init_pwr_info()
4211 hba->pwr_info.pwr_rx = SLOWAUTO_MODE; in ufshcd_init_pwr_info()
4212 hba->pwr_info.pwr_tx = SLOWAUTO_MODE; in ufshcd_init_pwr_info()
4213 hba->pwr_info.hs_rate = 0; in ufshcd_init_pwr_info()
4222 struct ufs_pa_layer_attr *pwr_info = &hba->max_pwr_info.info; in ufshcd_get_max_pwr_mode() local
4227 pwr_info->pwr_tx = FAST_MODE; in ufshcd_get_max_pwr_mode()
4228 pwr_info->pwr_rx = FAST_MODE; in ufshcd_get_max_pwr_mode()
4229 pwr_info->hs_rate = PA_HS_MODE_B; in ufshcd_get_max_pwr_mode()
4233 &pwr_info->lane_rx); in ufshcd_get_max_pwr_mode()
4235 &pwr_info->lane_tx); in ufshcd_get_max_pwr_mode()
4237 if (!pwr_info->lane_rx || !pwr_info->lane_tx) { in ufshcd_get_max_pwr_mode()
4240 pwr_info->lane_rx, in ufshcd_get_max_pwr_mode()
4241 pwr_info->lane_tx); in ufshcd_get_max_pwr_mode()
4250 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_MAXRXHSGEAR), &pwr_info->gear_rx); in ufshcd_get_max_pwr_mode()
4251 if (!pwr_info->gear_rx) { in ufshcd_get_max_pwr_mode()
4253 &pwr_info->gear_rx); in ufshcd_get_max_pwr_mode()
4254 if (!pwr_info->gear_rx) { in ufshcd_get_max_pwr_mode()
4256 __func__, pwr_info->gear_rx); in ufshcd_get_max_pwr_mode()
4259 pwr_info->pwr_rx = SLOW_MODE; in ufshcd_get_max_pwr_mode()
4263 &pwr_info->gear_tx); in ufshcd_get_max_pwr_mode()
4264 if (!pwr_info->gear_tx) { in ufshcd_get_max_pwr_mode()
4266 &pwr_info->gear_tx); in ufshcd_get_max_pwr_mode()
4267 if (!pwr_info->gear_tx) { in ufshcd_get_max_pwr_mode()
4269 __func__, pwr_info->gear_tx); in ufshcd_get_max_pwr_mode()
4272 pwr_info->pwr_tx = SLOW_MODE; in ufshcd_get_max_pwr_mode()
4286 pwr_mode->gear_rx == hba->pwr_info.gear_rx && in ufshcd_change_power_mode()
4287 pwr_mode->gear_tx == hba->pwr_info.gear_tx && in ufshcd_change_power_mode()
4288 pwr_mode->lane_rx == hba->pwr_info.lane_rx && in ufshcd_change_power_mode()
4289 pwr_mode->lane_tx == hba->pwr_info.lane_tx && in ufshcd_change_power_mode()
4290 pwr_mode->pwr_rx == hba->pwr_info.pwr_rx && in ufshcd_change_power_mode()
4291 pwr_mode->pwr_tx == hba->pwr_info.pwr_tx && in ufshcd_change_power_mode()
4292 pwr_mode->hs_rate == hba->pwr_info.hs_rate) { in ufshcd_change_power_mode()
4360 memcpy(&hba->pwr_info, pwr_mode, in ufshcd_change_power_mode()
6053 struct ufs_pa_layer_attr *pwr_info = &hba->pwr_info; in ufshcd_is_pwr_mode_restore_needed() local
6058 if (pwr_info->pwr_rx != ((mode >> PWRMODE_RX_OFFSET) & PWRMODE_MASK)) in ufshcd_is_pwr_mode_restore_needed()
6061 if (pwr_info->pwr_tx != (mode & PWRMODE_MASK)) in ufshcd_is_pwr_mode_restore_needed()
6221 pmc_err = ufshcd_config_pwr_mode(hba, &(hba->pwr_info)); in ufshcd_err_handler()
7983 &hba->pwr_info, in ufshcd_add_lus()