Searched refs:src_rate (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/mfd/ |
D | db8500-prcmu.c | 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() [all …]
|
/linux-6.1.9/drivers/clk/qcom/ |
D | clk-rcg.c | 611 unsigned long request, src_rate; in clk_rcg_pixel_determine_rate() local 616 src_rate = clk_hw_round_rate(req->best_parent_hw, request); in clk_rcg_pixel_determine_rate() 618 if ((src_rate < (request - delta)) || in clk_rcg_pixel_determine_rate() 619 (src_rate > (request + delta))) in clk_rcg_pixel_determine_rate() 622 req->best_parent_rate = src_rate; in clk_rcg_pixel_determine_rate() 623 req->rate = (src_rate * frac->num) / frac->den; in clk_rcg_pixel_determine_rate() 686 unsigned long src_rate; in clk_rcg_esc_determine_rate() local 691 src_rate = clk_hw_get_rate(req->best_parent_hw); in clk_rcg_esc_determine_rate() 693 div = src_rate / req->rate; in clk_rcg_esc_determine_rate() 696 req->best_parent_rate = src_rate; in clk_rcg_esc_determine_rate() [all …]
|
D | clk-rcg2.c | 553 s64 src_rate = parent_rate; in clk_edp_pixel_set_rate() local 558 if (src_rate == 810000000) in clk_edp_pixel_set_rate() 567 if ((src_rate < (request - delta)) || in clk_edp_pixel_set_rate() 568 (src_rate > (request + delta))) in clk_edp_pixel_set_rate() 786 unsigned long request, src_rate; in clk_pixel_determine_rate() local 793 src_rate = clk_hw_round_rate(req->best_parent_hw, request); in clk_pixel_determine_rate() 794 if ((src_rate < (request - delta)) || in clk_pixel_determine_rate() 795 (src_rate > (request + delta))) in clk_pixel_determine_rate() 798 req->best_parent_rate = src_rate; in clk_pixel_determine_rate() 799 req->rate = (src_rate * frac->num) / frac->den; in clk_pixel_determine_rate()
|
/linux-6.1.9/drivers/spi/ |
D | atmel-quadspi.c | 481 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()
|
/linux-6.1.9/sound/core/oss/ |
D | pcm_plugin.c | 42 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()
|