Home
last modified time | relevance | path

Searched refs:src_rate (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/drivers/mfd/
Ddb8500-prcmu.c1396 static unsigned long pll_rate(void __iomem *reg, unsigned long src_rate, in pll_rate() argument
1406 rate = src_rate; in pll_rate()
1582 static u32 clock_divider(unsigned long src_rate, unsigned long rate) in clock_divider() argument
1586 div = (src_rate / rate); in clock_divider()
1589 if (rate < (src_rate / div)) in clock_divider()
1598 unsigned long src_rate; in round_clock_rate() local
1602 src_rate = clock_source_rate((val | clk_mgt[clock].pllsw), in round_clock_rate()
1604 div = clock_divider(src_rate, rate); in round_clock_rate()
1613 u64 r = (src_rate * 10); in round_clock_rate()
1619 rounded_rate = (src_rate / min(div, (u32)31)); in round_clock_rate()
[all …]
/kernel/linux/linux-5.10/drivers/clk/qcom/
Dclk-rcg.c598 unsigned long request, src_rate; in clk_rcg_pixel_determine_rate() local
603 src_rate = clk_hw_round_rate(req->best_parent_hw, request); in clk_rcg_pixel_determine_rate()
605 if ((src_rate < (request - delta)) || in clk_rcg_pixel_determine_rate()
606 (src_rate > (request + delta))) in clk_rcg_pixel_determine_rate()
609 req->best_parent_rate = src_rate; in clk_rcg_pixel_determine_rate()
610 req->rate = (src_rate * frac->num) / frac->den; in clk_rcg_pixel_determine_rate()
673 unsigned long src_rate; in clk_rcg_esc_determine_rate() local
678 src_rate = clk_hw_get_rate(req->best_parent_hw); in clk_rcg_esc_determine_rate()
680 div = src_rate / req->rate; in clk_rcg_esc_determine_rate()
683 req->best_parent_rate = src_rate; in clk_rcg_esc_determine_rate()
[all …]
Dclk-rcg2.c425 s64 src_rate = parent_rate; in clk_edp_pixel_set_rate() local
430 if (src_rate == 810000000) in clk_edp_pixel_set_rate()
439 if ((src_rate < (request - delta)) || in clk_edp_pixel_set_rate()
440 (src_rate > (request + delta))) in clk_edp_pixel_set_rate()
658 unsigned long request, src_rate; in clk_pixel_determine_rate() local
665 src_rate = clk_hw_round_rate(req->best_parent_hw, request); in clk_pixel_determine_rate()
666 if ((src_rate < (request - delta)) || in clk_pixel_determine_rate()
667 (src_rate > (request + delta))) in clk_pixel_determine_rate()
670 req->best_parent_rate = src_rate; in clk_pixel_determine_rate()
671 req->rate = (src_rate * frac->num) / frac->den; in clk_pixel_determine_rate()
/kernel/linux/linux-5.10/drivers/spi/
Datmel-quadspi.c482 unsigned long src_rate; in atmel_qspi_setup() local
491 src_rate = clk_get_rate(aq->pclk); in atmel_qspi_setup()
492 if (!src_rate) in atmel_qspi_setup()
496 scbr = DIV_ROUND_UP(src_rate, spi->max_speed_hz); in atmel_qspi_setup()
/kernel/linux/linux-5.10/sound/core/oss/
Dpcm_plugin.c42 static int rate_match(unsigned int src_rate, unsigned int dst_rate) in rate_match() argument
44 unsigned int low = (src_rate * 95) / 100; in rate_match()
45 unsigned int high = (src_rate * 105) / 100; in rate_match()