Lines Matching refs:rdiv
1017 unsigned char rdiv; in si5351_clkout_recalc_rate() local
1024 rdiv = si5351_reg_read(hwdata->drvdata, reg); in si5351_clkout_recalc_rate()
1026 rdiv &= SI5351_OUTPUT_CLK6_DIV_MASK; in si5351_clkout_recalc_rate()
1028 rdiv &= SI5351_OUTPUT_CLK_DIV_MASK; in si5351_clkout_recalc_rate()
1029 rdiv >>= SI5351_OUTPUT_CLK_DIV_SHIFT; in si5351_clkout_recalc_rate()
1032 return parent_rate >> rdiv; in si5351_clkout_recalc_rate()
1040 unsigned char rdiv; in si5351_clkout_round_rate() local
1055 rdiv = SI5351_OUTPUT_CLK_DIV_1; in si5351_clkout_round_rate()
1057 rdiv < SI5351_OUTPUT_CLK_DIV_128) { in si5351_clkout_round_rate()
1058 rdiv += 1; in si5351_clkout_round_rate()
1066 rdiv = SI5351_OUTPUT_CLK_DIV_1; in si5351_clkout_round_rate()
1072 if (new_err > err || rdiv == SI5351_OUTPUT_CLK_DIV_128) in si5351_clkout_round_rate()
1074 rdiv++; in si5351_clkout_round_rate()
1078 rate = *parent_rate >> rdiv; in si5351_clkout_round_rate()
1082 __func__, clk_hw_get_name(hw), (1 << rdiv), in si5351_clkout_round_rate()
1094 unsigned char rdiv; in si5351_clkout_set_rate() local
1097 rdiv = SI5351_OUTPUT_CLK_DIV_1; in si5351_clkout_set_rate()
1103 if (new_err > err || rdiv == SI5351_OUTPUT_CLK_DIV_128) in si5351_clkout_set_rate()
1105 rdiv++; in si5351_clkout_set_rate()
1113 SI5351_OUTPUT_CLK6_DIV_MASK, rdiv); in si5351_clkout_set_rate()
1118 rdiv << SI5351_OUTPUT_CLK_DIV_SHIFT); in si5351_clkout_set_rate()
1124 rdiv << SI5351_OUTPUT_CLK_DIV_SHIFT); in si5351_clkout_set_rate()
1133 __func__, clk_hw_get_name(hw), (1 << rdiv), in si5351_clkout_set_rate()