Lines Matching refs:CLK_PHASE_POINT_NUM
61 #define CLK_PHASE_POINT_NUM (360 / CLK_PHASE_STEP) macro
651 DECLARE_BITMAP(left, CLK_PHASE_POINT_NUM); in meson_mmc_shift_map()
652 DECLARE_BITMAP(right, CLK_PHASE_POINT_NUM); in meson_mmc_shift_map()
658 bitmap_shift_right(right, map, shift, CLK_PHASE_POINT_NUM); in meson_mmc_shift_map()
659 bitmap_shift_left(left, map, CLK_PHASE_POINT_NUM - shift, in meson_mmc_shift_map()
660 CLK_PHASE_POINT_NUM); in meson_mmc_shift_map()
661 bitmap_or(map, left, right, CLK_PHASE_POINT_NUM); in meson_mmc_shift_map()
668 *start = find_next_bit(map, CLK_PHASE_POINT_NUM, *start); in meson_mmc_find_next_region()
669 *stop = find_next_zero_bit(map, CLK_PHASE_POINT_NUM, *start); in meson_mmc_find_next_region()
677 if (bitmap_full(test, CLK_PHASE_POINT_NUM)) in meson_mmc_find_tuning_point()
679 else if (bitmap_empty(test, CLK_PHASE_POINT_NUM)) in meson_mmc_find_tuning_point()
686 shift = find_first_zero_bit(test, CLK_PHASE_POINT_NUM); in meson_mmc_find_tuning_point()
690 while (start < CLK_PHASE_POINT_NUM) { in meson_mmc_find_tuning_point()
705 offset = (offset + shift) % CLK_PHASE_POINT_NUM; in meson_mmc_find_tuning_point()
714 DECLARE_BITMAP(test, CLK_PHASE_POINT_NUM); in meson_mmc_clk_phase_tuning()
718 bitmap_zero(test, CLK_PHASE_POINT_NUM); in meson_mmc_clk_phase_tuning()
721 for (point = 0; point < CLK_PHASE_POINT_NUM; point++) { in meson_mmc_clk_phase_tuning()