Searched refs:src_rate (Results 1 – 4 of 4) sorted by relevance
/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 …]
|
/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 | 549 s64 src_rate = parent_rate; in clk_edp_pixel_set_rate() local 554 if (src_rate == 810000000) in clk_edp_pixel_set_rate() 563 if ((src_rate < (request - delta)) || in clk_edp_pixel_set_rate() 564 (src_rate > (request + delta))) in clk_edp_pixel_set_rate() 782 unsigned long request, src_rate; in clk_pixel_determine_rate() local 789 src_rate = clk_hw_round_rate(req->best_parent_hw, request); in clk_pixel_determine_rate() 790 if ((src_rate < (request - delta)) || in clk_pixel_determine_rate() 791 (src_rate > (request + delta))) in clk_pixel_determine_rate() 794 req->best_parent_rate = src_rate; in clk_pixel_determine_rate() 795 req->rate = (src_rate * frac->num) / frac->den; in clk_pixel_determine_rate()
|
/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()
|