Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/mfd/
Ddb8500-prcmu.c1469 static unsigned long pll_rate(void __iomem *reg, unsigned long src_rate, in pll_rate() argument
1479 rate = src_rate; in pll_rate()
1652 static u32 clock_divider(unsigned long src_rate, unsigned long rate) in clock_divider() argument
1656 div = (src_rate / rate); in clock_divider()
1659 if (rate < (src_rate / div)) in clock_divider()
1668 unsigned long src_rate; in round_clock_rate() local
1672 src_rate = clock_source_rate((val | clk_mgt[clock].pllsw), in round_clock_rate()
1674 div = clock_divider(src_rate, rate); in round_clock_rate()
1683 u64 r = (src_rate * 10); in round_clock_rate()
1689 rounded_rate = (src_rate / min(div, (u32)31)); in round_clock_rate()
[all …]
/Linux-v4.19/drivers/clk/qcom/
Dclk-rcg2.c397 s64 src_rate = parent_rate; in clk_edp_pixel_set_rate() local
402 if (src_rate == 810000000) in clk_edp_pixel_set_rate()
411 if ((src_rate < (request - delta)) || in clk_edp_pixel_set_rate()
412 (src_rate > (request + delta))) in clk_edp_pixel_set_rate()
629 unsigned long request, src_rate; in clk_pixel_determine_rate() local
636 src_rate = clk_hw_round_rate(req->best_parent_hw, request); in clk_pixel_determine_rate()
637 if ((src_rate < (request - delta)) || in clk_pixel_determine_rate()
638 (src_rate > (request + delta))) in clk_pixel_determine_rate()
641 req->best_parent_rate = src_rate; in clk_pixel_determine_rate()
642 req->rate = (src_rate * frac->num) / frac->den; in clk_pixel_determine_rate()
Dclk-rcg.c606 unsigned long request, src_rate; in clk_rcg_pixel_determine_rate() local
611 src_rate = clk_hw_round_rate(req->best_parent_hw, request); in clk_rcg_pixel_determine_rate()
613 if ((src_rate < (request - delta)) || in clk_rcg_pixel_determine_rate()
614 (src_rate > (request + delta))) in clk_rcg_pixel_determine_rate()
617 req->best_parent_rate = src_rate; in clk_rcg_pixel_determine_rate()
618 req->rate = (src_rate * frac->num) / frac->den; in clk_rcg_pixel_determine_rate()
681 unsigned long src_rate; in clk_rcg_esc_determine_rate() local
686 src_rate = clk_hw_get_rate(req->best_parent_hw); in clk_rcg_esc_determine_rate()
688 div = src_rate / req->rate; in clk_rcg_esc_determine_rate()
691 req->best_parent_rate = src_rate; in clk_rcg_esc_determine_rate()
[all …]
/Linux-v4.19/drivers/mtd/spi-nor/
Datmel-quadspi.c559 unsigned long src_rate; in atmel_qspi_init() local
569 src_rate = clk_get_rate(aq->clk); in atmel_qspi_init()
570 if (!src_rate) in atmel_qspi_init()
574 scbr = DIV_ROUND_UP(src_rate, aq->clk_rate); in atmel_qspi_init()
/Linux-v4.19/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()