Lines Matching refs:afe_priv

154 	struct mt8192_afe_private *afe_priv = afe->platform_priv;
177 regmap_update_bits(afe_priv->topckgen,
181 afe_priv->mtkaif_calibration_num_phase = 42; /* mt6359: 0 ~ 42 */
182 afe_priv->mtkaif_chosen_phase[0] = -1;
183 afe_priv->mtkaif_chosen_phase[1] = -1;
184 afe_priv->mtkaif_chosen_phase[2] = -1;
187 phase <= afe_priv->mtkaif_calibration_num_phase &&
193 regmap_update_bits(afe_priv->topckgen,
206 regmap_read(afe_priv->topckgen,
238 afe_priv->mtkaif_chosen_phase[0] < 0) {
239 afe_priv->mtkaif_chosen_phase[0] = phase - 1;
240 afe_priv->mtkaif_phase_cycle[0] = prev_cycle_1;
244 afe_priv->mtkaif_chosen_phase[1] < 0) {
245 afe_priv->mtkaif_chosen_phase[1] = phase - 1;
246 afe_priv->mtkaif_phase_cycle[1] = prev_cycle_2;
250 afe_priv->mtkaif_chosen_phase[2] < 0) {
251 afe_priv->mtkaif_chosen_phase[2] = phase - 1;
252 afe_priv->mtkaif_phase_cycle[2] = prev_cycle_3;
255 regmap_update_bits(afe_priv->topckgen,
258 if (afe_priv->mtkaif_chosen_phase[0] >= 0 &&
259 afe_priv->mtkaif_chosen_phase[1] >= 0 &&
260 afe_priv->mtkaif_chosen_phase[2] >= 0)
264 if (afe_priv->mtkaif_chosen_phase[0] < 0)
267 chosen_phase_1 = afe_priv->mtkaif_chosen_phase[0];
269 if (afe_priv->mtkaif_chosen_phase[1] < 0)
272 chosen_phase_2 = afe_priv->mtkaif_chosen_phase[1];
274 if (afe_priv->mtkaif_chosen_phase[2] < 0)
277 chosen_phase_3 = afe_priv->mtkaif_chosen_phase[2];
297 afe_priv->mtkaif_chosen_phase[0],
298 afe_priv->mtkaif_chosen_phase[1],
299 afe_priv->mtkaif_chosen_phase[2]);
311 struct mt8192_afe_private *afe_priv = afe->platform_priv;
316 afe_priv->mtkaif_protocol = MTKAIF_PROTOCOL_2_CLK_P2;