/linux/drivers/gpu/drm/sun4i/ |
A D | sun8i_hdmi_phy_clk.c | 27 int best_div = 1; in sun8i_phy_clk_determine_rate() local 43 best_div = i; in sun8i_phy_clk_determine_rate() 50 abs(rate - best_rate / best_div)) { in sun8i_phy_clk_determine_rate() 52 best_div = i; in sun8i_phy_clk_determine_rate() 57 if (best_rate / best_div == rate) in sun8i_phy_clk_determine_rate() 61 req->rate = best_rate / best_div; in sun8i_phy_clk_determine_rate()
|
A D | sun4i_dotclock.c | 76 u8 best_div = 1; in sun4i_dclk_round_rate() local 98 best_div = i; in sun4i_dclk_round_rate() 103 abs(rate - best_parent / best_div)) { in sun4i_dclk_round_rate() 105 best_div = i; in sun4i_dclk_round_rate() 112 return best_parent / best_div; in sun4i_dclk_round_rate()
|
A D | sun4i_hdmi_tmds_clk.c | 73 int best_div = 1, best_half = 1; in sun4i_tmds_determine_rate() local 98 best_div = j; in sun4i_tmds_determine_rate() 105 best_div)) { in sun4i_tmds_determine_rate() 108 best_div = j; in sun4i_tmds_determine_rate() 118 req->rate = best_parent / best_half / best_div; in sun4i_tmds_determine_rate()
|
/linux/drivers/clk/qcom/ |
A D | clk-regmap-mux-div.c | 129 u32 div, max_div, best_src = 0, best_div = 0; in __mux_div_set_rate_and_parent() local 146 best_div = div - 1; in __mux_div_set_rate_and_parent() 154 ret = mux_div_set_src_div(md, best_src, best_div); in __mux_div_set_rate_and_parent() 156 md->div = best_div; in __mux_div_set_rate_and_parent()
|
/linux/drivers/gpu/drm/mcde/ |
A D | mcde_clk_div.c | 46 int best_div = 1, div; in mcde_clk_div_choose_div() local 63 best_div = div; in mcde_clk_div_choose_div() 70 return best_div; in mcde_clk_div_choose_div()
|
/linux/sound/soc/codecs/ |
A D | tlv320aic23.c | 246 int best_div = 0; in find_rate() local 277 best_div = 0; in find_rate() 286 best_div = 1; in find_rate() 290 return (best_j << 2) | best_i | (best_div << TLV320AIC23_CLKIN_SHIFT); in find_rate()
|
/linux/sound/soc/samsung/ |
A D | s3c-i2s-v2.c | 570 unsigned int best_div = 0; in s3c_i2sv2_iis_calc_rate() local 601 best_div = div; in s3c_i2sv2_iis_calc_rate() 611 best_fs, best_div, best_rate); in s3c_i2sv2_iis_calc_rate() 614 info->clk_div = best_div; in s3c_i2sv2_iis_calc_rate()
|
/linux/drivers/gpu/drm/pl111/ |
A D | pl111_display.c | 447 int best_div = 1, div; in pl111_clk_div_choose_div() local 464 best_div = div; in pl111_clk_div_choose_div() 471 return best_div; in pl111_clk_div_choose_div()
|
/linux/drivers/gpu/drm/bridge/ |
A D | tc358767.c | 468 int div, best_div = 1; in tc_pxl_pll_en() local 515 best_div = div; in tc_pxl_pll_en() 532 ext_div[best_pre], best_div, best_mul, ext_div[best_post]); in tc_pxl_pll_en() 535 if (refclk / ext_div[best_pre] / best_div * best_mul >= 300000000) in tc_pxl_pll_en() 538 if (best_div == 16) in tc_pxl_pll_en() 539 best_div = 0; in tc_pxl_pll_en() 552 pxl_pllparam |= best_div << 8; /* Divider for PLL RefClk */ in tc_pxl_pll_en()
|
/linux/drivers/clk/microchip/ |
A D | clk-core.c | 603 u32 mul, div, best_mul = 1, best_div = 1; in spll_calc_mult_div() local 621 best_div = div; in spll_calc_mult_div() 633 rate, parent_rate, best_mul, best_div, best_rate); in spll_calc_mult_div() 639 *odiv_p = best_div; in spll_calc_mult_div()
|
/linux/drivers/clk/ |
A D | clk-cdce706.c | 309 unsigned long best_div = 0; in cdce706_divider_round_rate() local 335 best_div = div; in cdce706_divider_round_rate() 342 div = best_div; in cdce706_divider_round_rate()
|
/linux/drivers/media/i2c/ |
A D | ccs-pll.c | 299 u16 best_pix_div = SHRT_MAX >> 1, best_div; in __ccs_pll_calculate_vt_tree() local 356 best_div = pix_div * sys_div; in __ccs_pll_calculate_vt_tree() 362 pll_bk->sys_clk_div = best_div / best_pix_div; in __ccs_pll_calculate_vt_tree()
|
/linux/drivers/pinctrl/sunxi/ |
A D | pinctrl-sunxi.c | 1311 unsigned int best_diff, best_div; in sunxi_pinctrl_get_debounce_div() local 1315 best_div = 0; in sunxi_pinctrl_get_debounce_div() 1322 best_div = i; in sunxi_pinctrl_get_debounce_div() 1327 return best_div; in sunxi_pinctrl_get_debounce_div()
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_dpll_mgr.c | 2604 int d, best_div = 0, pdiv = 0, qdiv = 0, kdiv = 0; in icl_calc_wrpll() local 2614 best_div = dividers[d]; in icl_calc_wrpll() 2620 if (best_div == 0) in icl_calc_wrpll() 2623 icl_wrpll_get_multipliers(best_div, &pdiv, &qdiv, &kdiv); in icl_calc_wrpll()
|
/linux/drivers/comedi/drivers/ |
A D | ni_mio_common.c | 4888 unsigned int best_div = 1; in ni_mseries_get_pll_parameters() local 4908 best_div = div; in ni_mseries_get_pll_parameters() 4916 *freq_divider = best_div; in ni_mseries_get_pll_parameters()
|