best_rate 277 drivers/clk/at91/clk-audio-pll.c long best_rate = -EINVAL; best_rate 313 drivers/clk/at91/clk-audio-pll.c best_rate = tmp_rate; best_rate 319 drivers/clk/at91/clk-audio-pll.c __func__, best_rate, best_parent_rate); best_rate 321 drivers/clk/at91/clk-audio-pll.c return best_rate; best_rate 328 drivers/clk/at91/clk-audio-pll.c long best_rate = -EINVAL; best_rate 350 drivers/clk/at91/clk-audio-pll.c best_rate = tmp_rate; best_rate 359 drivers/clk/at91/clk-audio-pll.c __func__, best_rate, *parent_rate, tmp_qd - 1); best_rate 361 drivers/clk/at91/clk-audio-pll.c return best_rate; best_rate 101 drivers/clk/at91/clk-generated.c int *best_diff, long *best_rate) best_rate 113 drivers/clk/at91/clk-generated.c *best_rate = tmp_rate; best_rate 126 drivers/clk/at91/clk-generated.c long best_rate = -EINVAL; best_rate 148 drivers/clk/at91/clk-generated.c &best_diff, &best_rate); best_rate 175 drivers/clk/at91/clk-generated.c &best_diff, &best_rate); best_rate 183 drivers/clk/at91/clk-generated.c __func__, best_rate, best_rate 187 drivers/clk/at91/clk-generated.c if (best_rate < 0) best_rate 188 drivers/clk/at91/clk-generated.c return best_rate; best_rate 190 drivers/clk/at91/clk-generated.c req->rate = best_rate; best_rate 246 drivers/clk/at91/clk-peripheral.c unsigned long best_rate; best_rate 267 drivers/clk/at91/clk-peripheral.c best_rate = cur_rate; best_rate 277 drivers/clk/at91/clk-peripheral.c best_rate = cur_rate; best_rate 284 drivers/clk/at91/clk-peripheral.c return best_rate; best_rate 54 drivers/clk/at91/clk-programmable.c long best_rate = -EINVAL; best_rate 83 drivers/clk/at91/clk-programmable.c if (best_rate < 0 || best_rate 84 drivers/clk/at91/clk-programmable.c (req->rate - tmp_rate) < (req->rate - best_rate)) { best_rate 85 drivers/clk/at91/clk-programmable.c best_rate = tmp_rate; best_rate 90 drivers/clk/at91/clk-programmable.c if (!best_rate) best_rate 94 drivers/clk/at91/clk-programmable.c if (best_rate < 0) best_rate 95 drivers/clk/at91/clk-programmable.c return best_rate; best_rate 97 drivers/clk/at91/clk-programmable.c req->rate = best_rate; best_rate 59 drivers/clk/at91/clk-usb.c long best_rate = -EINVAL; best_rate 88 drivers/clk/at91/clk-usb.c best_rate = tmp_rate; best_rate 102 drivers/clk/at91/clk-usb.c if (best_rate < 0) best_rate 103 drivers/clk/at91/clk-usb.c return best_rate; best_rate 105 drivers/clk/at91/clk-usb.c req->rate = best_rate; best_rate 160 drivers/clk/axs10x/pll_clock.c long best_rate; best_rate 167 drivers/clk/axs10x/pll_clock.c best_rate = pll_cfg[0].rate; best_rate 170 drivers/clk/axs10x/pll_clock.c if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate)) best_rate 171 drivers/clk/axs10x/pll_clock.c best_rate = pll_cfg[i].rate; best_rate 174 drivers/clk/axs10x/pll_clock.c return best_rate; best_rate 1109 drivers/clk/bcm/clk-bcm2835.c unsigned long best_rate = 0; best_rate 1155 drivers/clk/bcm/clk-bcm2835.c (tmp_rate > best_rate && tmp_rate <= rate)) best_rate 1156 drivers/clk/bcm/clk-bcm2835.c best_rate = tmp_rate; best_rate 1158 drivers/clk/bcm/clk-bcm2835.c if (best_rate == rate) best_rate 1163 drivers/clk/bcm/clk-bcm2835.c *prate = curdiv * best_rate; best_rate 1164 drivers/clk/bcm/clk-bcm2835.c *avgrate = best_rate; best_rate 1166 drivers/clk/bcm/clk-bcm2835.c return best_rate; best_rate 1174 drivers/clk/bcm/clk-bcm2835.c unsigned long rate, best_rate = 0; best_rate 1203 drivers/clk/bcm/clk-bcm2835.c if (rate > best_rate && rate <= req->rate) { best_rate 1206 drivers/clk/bcm/clk-bcm2835.c best_rate = rate; best_rate 1029 drivers/clk/bcm/clk-kona.c unsigned long best_rate; best_rate 1053 drivers/clk/bcm/clk-kona.c best_rate = kona_peri_clk_round_rate(hw, req->rate, &parent_rate); best_rate 1054 drivers/clk/bcm/clk-kona.c best_delta = abs(best_rate - req->rate); best_rate 1073 drivers/clk/bcm/clk-kona.c best_rate = other_rate; best_rate 1079 drivers/clk/bcm/clk-kona.c req->rate = best_rate; best_rate 54 drivers/clk/clk-composite.c long tmp_rate, best_rate = 0; best_rate 100 drivers/clk/clk-composite.c best_rate = tmp_rate; best_rate 107 drivers/clk/clk-composite.c req->rate = best_rate; best_rate 200 drivers/clk/clk-hsdk-pll.c unsigned long best_rate; best_rate 207 drivers/clk/clk-hsdk-pll.c best_rate = pll_cfg[0].rate; best_rate 210 drivers/clk/clk-hsdk-pll.c if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate)) best_rate 211 drivers/clk/clk-hsdk-pll.c best_rate = pll_cfg[i].rate; best_rate 214 drivers/clk/clk-hsdk-pll.c dev_dbg(clk->dev, "chosen best rate: %lu\n", best_rate); best_rate 216 drivers/clk/clk-hsdk-pll.c return best_rate; best_rate 71 drivers/clk/clk-multiplier.c unsigned long parent_rate, current_rate, best_rate = ~0; best_rate 105 drivers/clk/clk-multiplier.c if (__is_best_rate(rate, current_rate, best_rate, flags)) { best_rate 107 drivers/clk/clk-multiplier.c best_rate = current_rate; best_rate 135 drivers/clk/davinci/pll.c unsigned long best_rate, r; best_rate 144 drivers/clk/davinci/pll.c best_rate = parent_rate * mult; best_rate 148 drivers/clk/davinci/pll.c if (best_rate < req->min_rate) best_rate 154 drivers/clk/davinci/pll.c req->rate = best_rate; best_rate 160 drivers/clk/davinci/pll.c best_rate = 0; best_rate 169 drivers/clk/davinci/pll.c if (r > best_rate) { best_rate 170 drivers/clk/davinci/pll.c best_rate = r; best_rate 171 drivers/clk/davinci/pll.c req->rate = best_rate; best_rate 173 drivers/clk/davinci/pll.c if (best_rate == rate) best_rate 124 drivers/clk/microchip/clk-core.c unsigned long divided_rate, divided_rate_down, best_rate; best_rate 138 drivers/clk/microchip/clk-core.c best_rate = divided_rate_down; best_rate 140 drivers/clk/microchip/clk-core.c best_rate = divided_rate; best_rate 142 drivers/clk/microchip/clk-core.c return best_rate; best_rate 602 drivers/clk/microchip/clk-core.c unsigned long new_rate, best_rate = rate; best_rate 617 drivers/clk/microchip/clk-core.c best_rate = new_rate; best_rate 631 drivers/clk/microchip/clk-core.c rate, parent_rate, best_mul, best_div, best_rate); best_rate 639 drivers/clk/microchip/clk-core.c return best_rate; best_rate 93 drivers/clk/qcom/clk-regmap-mux-div.c unsigned long actual_rate, best_rate = 0; best_rate 106 drivers/clk/qcom/clk-regmap-mux-div.c if (is_better_rate(req_rate, best_rate, actual_rate)) { best_rate 107 drivers/clk/qcom/clk-regmap-mux-div.c best_rate = actual_rate; best_rate 108 drivers/clk/qcom/clk-regmap-mux-div.c req->rate = best_rate; best_rate 113 drivers/clk/qcom/clk-regmap-mux-div.c if (actual_rate < req_rate || best_rate <= req_rate) best_rate 118 drivers/clk/qcom/clk-regmap-mux-div.c if (!best_rate) best_rate 131 drivers/clk/qcom/clk-regmap-mux-div.c unsigned long actual_rate, best_rate = 0; best_rate 143 drivers/clk/qcom/clk-regmap-mux-div.c if (is_better_rate(rate, best_rate, actual_rate)) { best_rate 144 drivers/clk/qcom/clk-regmap-mux-div.c best_rate = actual_rate; best_rate 149 drivers/clk/qcom/clk-regmap-mux-div.c if (actual_rate < rate || best_rate <= rate) best_rate 17 drivers/clk/sunxi-ng/ccu_mp.c unsigned long best_rate = 0; best_rate 28 drivers/clk/sunxi-ng/ccu_mp.c if ((rate - tmp_rate) < (rate - best_rate)) { best_rate 29 drivers/clk/sunxi-ng/ccu_mp.c best_rate = tmp_rate; best_rate 48 drivers/clk/sunxi-ng/ccu_mp.c unsigned long best_rate = 0; best_rate 82 drivers/clk/sunxi-ng/ccu_mp.c if (now <= rate && now > best_rate) { best_rate 83 drivers/clk/sunxi-ng/ccu_mp.c best_rate = now; best_rate 92 drivers/clk/sunxi-ng/ccu_mp.c return best_rate; best_rate 86 drivers/clk/sunxi-ng/ccu_mux.c unsigned long best_parent_rate = 0, best_rate = 0; best_rate 98 drivers/clk/sunxi-ng/ccu_mux.c best_rate = round(cm, best_parent, &adj_parent_rate, best_rate 135 drivers/clk/sunxi-ng/ccu_mux.c best_rate = tmp_rate; best_rate 139 drivers/clk/sunxi-ng/ccu_mux.c if ((req->rate - tmp_rate) < (req->rate - best_rate)) { best_rate 140 drivers/clk/sunxi-ng/ccu_mux.c best_rate = tmp_rate; best_rate 146 drivers/clk/sunxi-ng/ccu_mux.c if (best_rate == 0) best_rate 152 drivers/clk/sunxi-ng/ccu_mux.c req->rate = best_rate; best_rate 21 drivers/clk/sunxi-ng/ccu_nk.c unsigned long best_rate = 0; best_rate 32 drivers/clk/sunxi-ng/ccu_nk.c if ((rate - tmp_rate) < (rate - best_rate)) { best_rate 33 drivers/clk/sunxi-ng/ccu_nk.c best_rate = tmp_rate; best_rate 22 drivers/clk/sunxi-ng/ccu_nkm.c unsigned long best_rate = 0; best_rate 35 drivers/clk/sunxi-ng/ccu_nkm.c if ((rate - tmp_rate) < (rate - best_rate)) { best_rate 36 drivers/clk/sunxi-ng/ccu_nkm.c best_rate = tmp_rate; best_rate 35 drivers/clk/sunxi-ng/ccu_nkmp.c unsigned long best_rate = 0; best_rate 52 drivers/clk/sunxi-ng/ccu_nkmp.c if ((rate - tmp_rate) < (rate - best_rate)) { best_rate 53 drivers/clk/sunxi-ng/ccu_nkmp.c best_rate = tmp_rate; best_rate 33 drivers/clk/sunxi-ng/ccu_nm.c unsigned long best_rate = 0; best_rate 45 drivers/clk/sunxi-ng/ccu_nm.c if ((rate - tmp_rate) < (rate - best_rate)) { best_rate 46 drivers/clk/sunxi-ng/ccu_nm.c best_rate = tmp_rate; best_rate 103 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c unsigned long best_rate = 0; best_rate 118 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c if (!best_rate || best_rate 119 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c (rate - tmp_rate) < (rate - best_rate)) { best_rate 120 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c best_rate = tmp_rate; best_rate 132 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c return best_rate; best_rate 138 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c long best_rate = -EINVAL; best_rate 155 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c if (best_rate < 0 || best_rate 156 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c (req->rate - tmp_rate) < (req->rate - best_rate)) { best_rate 157 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c best_rate = tmp_rate; best_rate 163 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c if (best_rate < 0) best_rate 164 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c return best_rate; best_rate 166 drivers/clk/sunxi/clk-sun4i-tcon-ch1.c req->rate = best_rate; best_rate 33 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c unsigned long best_rate = 0; best_rate 46 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c if (abs(rate - tmp_rate) < abs(rate - best_rate)) { best_rate 47 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c best_rate = tmp_rate; best_rate 59 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c return best_rate; best_rate 33 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c unsigned long best_rate = 0; best_rate 48 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c if (!best_rate || best_rate 49 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c (rate - tmp_rate) < (rate - best_rate)) { best_rate 50 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c best_rate = tmp_rate; best_rate 62 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c return best_rate; best_rate 24 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c unsigned long best_rate = 0; best_rate 42 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c best_rate = rounded; best_rate 48 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c if (!best_rate || best_rate 50 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c abs(rate - best_rate / best_div)) { best_rate 51 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c best_rate = rounded; best_rate 57 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c if (best_rate / best_div == rate) best_rate 61 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c req->rate = best_rate / best_div; best_rate 62 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c req->best_parent_rate = best_rate; best_rate 85 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c unsigned long best_rate = 0; best_rate 94 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c if (!best_rate || best_rate 95 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c (rate - tmp_rate) < (rate - best_rate)) { best_rate 96 drivers/gpu/drm/sun4i/sun8i_hdmi_phy_clk.c best_rate = tmp_rate; best_rate 352 drivers/media/platform/atmel/atmel-isc-base.c long best_rate = -EINVAL; best_rate 376 drivers/media/platform/atmel/atmel-isc-base.c best_rate = rate; best_rate 392 drivers/media/platform/atmel/atmel-isc-base.c __func__, best_rate, best_rate 396 drivers/media/platform/atmel/atmel-isc-base.c if (best_rate < 0) best_rate 397 drivers/media/platform/atmel/atmel-isc-base.c return best_rate; best_rate 399 drivers/media/platform/atmel/atmel-isc-base.c req->rate = best_rate; best_rate 450 drivers/net/ethernet/ti/davinci_cpdma.c u32 new_rate, best_rate = 0, rate_reg; best_rate 482 drivers/net/ethernet/ti/davinci_cpdma.c best_rate = new_rate; best_rate 501 drivers/net/ethernet/ti/davinci_cpdma.c ch->rate = best_rate; best_rate 146 drivers/rtc/rtc-ac100.c unsigned long best_rate = 0, tmp_rate, tmp_prate; best_rate 162 drivers/rtc/rtc-ac100.c if (rate - tmp_rate < best_rate - tmp_rate) best_rate 163 drivers/rtc/rtc-ac100.c best_rate = tmp_rate; best_rate 166 drivers/rtc/rtc-ac100.c return best_rate; best_rate 102 drivers/spi/spi-sh-hspi.c u32 rate, best_rate, min, tmp; best_rate 108 drivers/spi/spi-sh-hspi.c best_rate = 0; best_rate 127 drivers/spi/spi-sh-hspi.c best_rate = rate; best_rate 136 drivers/spi/spi-sh-hspi.c dev_dbg(dev, "speed %d/%d\n", t->speed_hz, best_rate); best_rate 1037 drivers/tty/serial/msm_serial.c unsigned long target, old, best_rate = 0, diff, best_diff = ULONG_MAX; best_rate 1073 drivers/tty/serial/msm_serial.c best_rate = target; best_rate 1096 drivers/tty/serial/msm_serial.c *rate = best_rate; best_rate 772 sound/core/oss/pcm_oss.c struct snd_pcm_hw_params *params, unsigned int best_rate) best_rate 785 sound/core/oss/pcm_oss.c rate = best_rate; best_rate 801 sound/core/oss/pcm_oss.c rate += best_rate; best_rate 808 sound/core/oss/pcm_oss.c return snd_pcm_hw_param_near(substream, params, SNDRV_PCM_HW_PARAM_RATE, best_rate, NULL); best_rate 374 sound/soc/atmel/mchp-i2s-mcc.c unsigned long *best_rate, best_rate 388 sound/soc/atmel/mchp-i2s-mcc.c *best_rate = rate; best_rate 396 sound/soc/atmel/mchp-i2s-mcc.c unsigned long *best_rate) best_rate 426 sound/soc/atmel/mchp-i2s-mcc.c &best_clk, best_rate, best_rate 440 sound/soc/atmel/mchp-i2s-mcc.c &best_clk, best_rate, best_rate 462 sound/soc/atmel/mchp-i2s-mcc.c *best_rate, best_diff_rate); best_rate 466 sound/soc/atmel/mchp-i2s-mcc.c *mra |= MCHP_I2SMCC_MRA_IMCKDIV(*best_rate / (2 * sysclk)); best_rate 467 sound/soc/atmel/mchp-i2s-mcc.c *mra |= MCHP_I2SMCC_MRA_ISCKDIV(*best_rate / (2 * bclk)); best_rate 569 sound/soc/samsung/s3c-i2s-v2.c unsigned int best_rate = 0; best_rate 600 sound/soc/samsung/s3c-i2s-v2.c best_rate = actual; best_rate 609 sound/soc/samsung/s3c-i2s-v2.c best_fs, best_div, best_rate);