Lines Matching full:gear

37 /* De-emphasis for gear-5 */
497 * If the HS-G5 PHY gear is used, update host_params->hs_rate to Rate-A, in ufs_qcom_power_up_sequence()
871 int gear = max_t(u32, p->gear_rx, p->gear_tx); in ufs_qcom_get_bw_table() local
874 if (WARN_ONCE(gear > QCOM_UFS_MAX_GEAR, in ufs_qcom_get_bw_table()
875 "ICC scaling for UFS Gear (%d) not supported. Using Gear (%d) bandwidth\n", in ufs_qcom_get_bw_table()
876 gear, QCOM_UFS_MAX_GEAR)) in ufs_qcom_get_bw_table()
877 gear = QCOM_UFS_MAX_GEAR; in ufs_qcom_get_bw_table()
886 return ufs_qcom_bw_table[MODE_HS_RB][gear][lane]; in ufs_qcom_get_bw_table()
888 return ufs_qcom_bw_table[MODE_HS_RA][gear][lane]; in ufs_qcom_get_bw_table()
890 return ufs_qcom_bw_table[MODE_PWM][gear][lane]; in ufs_qcom_get_bw_table()
903 static void ufs_qcom_set_tx_hs_equalizer(struct ufs_hba *hba, u32 gear, u32 tx_lanes) in ufs_qcom_set_tx_hs_equalizer() argument
908 /* Determine the equalizer value based on the gear */ in ufs_qcom_set_tx_hs_equalizer()
909 equalizer_val = (gear == 5) ? DEEMPHASIS_3_5_dB : NO_DEEMPHASIS; in ufs_qcom_set_tx_hs_equalizer()
944 * During UFS driver probe, always update the PHY gear to match the negotiated in ufs_qcom_pwr_change_notify()
945 * gear, so that, if quirk UFSHCD_QUIRK_REINIT_AFTER_MAX_GEAR_SWITCH is enabled, in ufs_qcom_pwr_change_notify()
947 * the first init with either the minimum or the maximum support gear. in ufs_qcom_pwr_change_notify()
951 * Skip REINIT if the negotiated gear matches with the in ufs_qcom_pwr_change_notify()
953 * program the optimal gear setting during REINIT. in ufs_qcom_pwr_change_notify()
1093 * Default to powering up the PHY to the max gear possible, which is in ufs_qcom_set_phy_gear()
1096 * gear is lower a reinit will be performed to program the PHY in ufs_qcom_set_phy_gear()
1097 * to the ideal gear for this combo of controller and device. in ufs_qcom_set_phy_gear()
1105 * gear, UFS_HS_G2). in ufs_qcom_set_phy_gear()
1114 * REINIT quirk as the negotiated gear won't change during boot. in ufs_qcom_set_phy_gear()
1122 * PHY gear to save power. in ufs_qcom_set_phy_gear()
1148 /* This driver only supports symmetic gear setting i.e., hs_tx_gear == hs_rx_gear */ in ufs_qcom_set_host_params()
2173 u32 gear = UFS_HS_DONT_CHANGE; in ufs_qcom_freq_to_gear_speed() local
2177 return gear; in ufs_qcom_freq_to_gear_speed()
2182 gear = UFS_HS_G5; in ufs_qcom_freq_to_gear_speed()
2185 gear = UFS_HS_G4; in ufs_qcom_freq_to_gear_speed()
2188 gear = UFS_HS_G3; in ufs_qcom_freq_to_gear_speed()
2192 gear = UFS_HS_G2; in ufs_qcom_freq_to_gear_speed()
2196 gear = UFS_HS_G1; in ufs_qcom_freq_to_gear_speed()
2203 return min_t(u32, gear, hba->max_pwr_info.info.gear_rx); in ufs_qcom_freq_to_gear_speed()