Lines Matching refs:src_rate
1395 static unsigned long pll_rate(void __iomem *reg, unsigned long src_rate, in pll_rate() argument
1405 rate = src_rate; in pll_rate()
1581 static u32 clock_divider(unsigned long src_rate, unsigned long rate) in clock_divider() argument
1585 div = (src_rate / rate); in clock_divider()
1588 if (rate < (src_rate / div)) in clock_divider()
1597 unsigned long src_rate; in round_clock_rate() local
1601 src_rate = clock_source_rate((val | clk_mgt[clock].pllsw), in round_clock_rate()
1603 div = clock_divider(src_rate, rate); in round_clock_rate()
1612 u64 r = (src_rate * 10); in round_clock_rate()
1618 rounded_rate = (src_rate / min(div, (u32)31)); in round_clock_rate()
1670 unsigned long src_rate; in round_plldsi_rate() local
1674 src_rate = clock_rate(PRCMU_HDMICLK); in round_plldsi_rate()
1681 (void)do_div(d, src_rate); in round_plldsi_rate()
1686 d *= src_rate; in round_plldsi_rate()
1707 unsigned long src_rate; in round_dsiclk_rate() local
1710 src_rate = pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK), in round_dsiclk_rate()
1712 div = clock_divider(src_rate, rate); in round_dsiclk_rate()
1713 rounded_rate = (src_rate / ((div > 2) ? 4 : div)); in round_dsiclk_rate()
1721 unsigned long src_rate; in round_dsiescclk_rate() local
1724 src_rate = clock_rate(PRCMU_TVCLK); in round_dsiescclk_rate()
1725 div = clock_divider(src_rate, rate); in round_dsiescclk_rate()
1726 rounded_rate = (src_rate / min(div, (u32)255)); in round_dsiescclk_rate()
1751 unsigned long src_rate; in set_clock_rate() local
1761 src_rate = clock_source_rate((val | clk_mgt[clock].pllsw), in set_clock_rate()
1763 div = clock_divider(src_rate, rate); in set_clock_rate()
1775 u64 r = (src_rate * 10); in set_clock_rate()
1829 unsigned long src_rate; in set_plldsi_rate() local
1834 src_rate = clock_rate(PRCMU_HDMICLK); in set_plldsi_rate()
1842 (void)do_div(d, src_rate); in set_plldsi_rate()
1847 hwrate = (d * src_rate); in set_plldsi_rate()