Lines Matching refs:tap_num

192 				   priv->tap_num + 1) % priv->tap_num;  in renesas_sdhi_check_scc_error()
194 priv->tap_num - 1) % priv->tap_num; in renesas_sdhi_check_scc_error()
198 priv->tap_num - 1) % priv->tap_num; in renesas_sdhi_check_scc_error()
200 priv->tap_num + 1) % priv->tap_num; in renesas_sdhi_check_scc_error()
225 priv->tap_num + 1) % priv->tap_num; in renesas_sdhi_check_scc_error()
228 priv->tap_num - 1) % priv->tap_num; in renesas_sdhi_check_scc_error()
411 priv->tap_num + 1) % priv->tap_num; in renesas_sdhi_hs400()
415 priv->tap_num - 1) % priv->tap_num; in renesas_sdhi_hs400()
478 for (i = 0; i < priv->tap_num * 2; i++) { in renesas_sdhi_select_tuning()
480 taps &= ~BIT(i % priv->tap_num); in renesas_sdhi_select_tuning()
481 taps &= ~BIT((i % priv->tap_num) + priv->tap_num); in renesas_sdhi_select_tuning()
484 priv->smpcmp &= ~BIT(i % priv->tap_num); in renesas_sdhi_select_tuning()
485 priv->smpcmp &= ~BIT((i % priv->tap_num) + priv->tap_num); in renesas_sdhi_select_tuning()
498 for (i = 0; i < priv->tap_num * 2; i++) { in renesas_sdhi_select_tuning()
521 if (tap_cnt == priv->tap_num * 2) { in renesas_sdhi_select_tuning()
526 for (i = 0; i < priv->tap_num * 2; i++) { in renesas_sdhi_select_tuning()
549 priv->tap_set = ((tap_start + tap_end) / 2) % priv->tap_num; in renesas_sdhi_select_tuning()
569 unsigned int tap_num; in renesas_sdhi_execute_tuning() local
585 tap_num = renesas_sdhi_init_tuning(priv); in renesas_sdhi_execute_tuning()
586 if (!tap_num) in renesas_sdhi_execute_tuning()
590 priv->tap_num = tap_num; in renesas_sdhi_execute_tuning()
592 if (priv->tap_num * 2 >= sizeof(taps) * 8) { in renesas_sdhi_execute_tuning()
601 for (i = 0; i < 2 * priv->tap_num; i++) { in renesas_sdhi_execute_tuning()
602 renesas_sdhi_prepare_tuning(priv, i % priv->tap_num); in renesas_sdhi_execute_tuning()