Searched refs:src_rate (Results 1 – 4 of 4) sorted by relevance
/drivers/mfd/ |
D | db8500-prcmu.c | 1396 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 …]
|
/drivers/clk/qcom/ |
D | clk-rcg.c | 598 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 …]
|
D | clk-rcg2.c | 419 s64 src_rate = parent_rate; in clk_edp_pixel_set_rate() local 424 if (src_rate == 810000000) in clk_edp_pixel_set_rate() 433 if ((src_rate < (request - delta)) || in clk_edp_pixel_set_rate() 434 (src_rate > (request + delta))) in clk_edp_pixel_set_rate() 652 unsigned long request, src_rate; in clk_pixel_determine_rate() local 659 src_rate = clk_hw_round_rate(req->best_parent_hw, request); in clk_pixel_determine_rate() 660 if ((src_rate < (request - delta)) || in clk_pixel_determine_rate() 661 (src_rate > (request + delta))) in clk_pixel_determine_rate() 664 req->best_parent_rate = src_rate; in clk_pixel_determine_rate() 665 req->rate = (src_rate * frac->num) / frac->den; in clk_pixel_determine_rate()
|
/drivers/spi/ |
D | atmel-quadspi.c | 482 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()
|