/freebsd/sys/dev/clk/allwinner/ |
H A D | aw_clk_frac.c | 190 uint32_t val, m, n, best_m, best_n; in aw_clk_frac_set_freq() local 224 best_n = n; in aw_clk_frac_set_freq() 226 dprintf("This is the one: n=%d m=%d mult=%d\n", best_n, best_m, best_mult); in aw_clk_frac_set_freq() 232 best_n = n; in aw_clk_frac_set_freq() 234 dprintf("This is the best for now: n=%d m=%d mult=%d\n", best_n, best_m, best_mult); in aw_clk_frac_set_freq() 279 n = aw_clk_factor_get_value(&sc->n, best_n); in aw_clk_frac_set_freq()
|
H A D | aw_clk_np.c | 136 uint32_t val, n, p, best_n, best_p; in aw_clk_np_set_freq() local 144 &best_n, &best_p); in aw_clk_np_set_freq() 166 n = aw_clk_factor_get_value(&sc->n, best_n); in aw_clk_np_set_freq()
|
H A D | aw_clk_nm.c | 180 uint32_t val, m, n, best_m, best_n; in aw_clk_nm_set_freq() local 199 best_n = n; in aw_clk_nm_set_freq() 209 &best_n, &best_m); in aw_clk_nm_set_freq() 239 n = aw_clk_factor_get_value(&sc->n, best_n); in aw_clk_nm_set_freq()
|
H A D | aw_clk_nmm.c | 144 uint32_t val, n, m0, m1, best_n, best_m0, best_m1; in aw_clk_nmm_set_freq() local 152 &best_n, &best_m0, &best_m1); in aw_clk_nmm_set_freq() 174 n = aw_clk_factor_get_value(&sc->n, best_n); in aw_clk_nmm_set_freq()
|
H A D | aw_clk_mipi.c | 149 uint32_t best_k, best_m, best_n; in aw_clk_mipi_set_freq() local 156 best = aw_clk_mipi_find_best(sc, fparent, fout, &best_k, &best_m, &best_n); in aw_clk_mipi_set_freq() 178 n = aw_clk_factor_get_value(&sc->n, best_n); in aw_clk_mipi_set_freq()
|
H A D | aw_clk_nkmp.c | 255 uint32_t val, best_n, best_k, best_m, best_p; in aw_clk_nkmp_set_freq() local 261 &best_n, &best_k, &best_m, &best_p); in aw_clk_nkmp_set_freq() 281 best_n, best_k, best_m, best_p); in aw_clk_nkmp_set_freq() 289 val |= aw_clk_factor_get_value(&sc->n, best_n) << sc->n.shift; in aw_clk_nkmp_set_freq()
|
/freebsd/sys/dev/usb/template/ |
H A D | usb_template.c | 648 uint8_t best_n; in usb_hw_ep_find_match() local 653 best_n = 0; in usb_hw_ep_find_match() 713 best_n = n; in usb_hw_ep_find_match() 720 if (best_n != 0) { in usb_hw_ep_find_match() 726 ues->bmInAlloc[best_n / 8] |= in usb_hw_ep_find_match() 727 (1 << (best_n % 8)); in usb_hw_ep_find_match() 728 ep->hw_endpoint_in = best_n | UE_DIR_IN; in usb_hw_ep_find_match() 733 ues->bmOutAlloc[best_n / 8] |= in usb_hw_ep_find_match() 734 (1 << (best_n % 8)); in usb_hw_ep_find_match() 735 ep->hw_endpoint_out = best_n | UE_DIR_OUT; in usb_hw_ep_find_match()
|
/freebsd/sys/arm/ti/clk/ |
H A D | ti_clk_dpll.c | 181 uint32_t val, n, p, best_n, best_p, timeout; in ti_dpll_clk_set_freq() local 188 &best_n, &best_p); in ti_dpll_clk_set_freq() 226 n = ti_clk_factor_get_value(&sc->n, best_n); in ti_dpll_clk_set_freq()
|
/freebsd/sys/dev/cpufreq/ |
H A D | cpufreq_dt.c | 107 ssize_t n, best_n; in cpufreq_dt_find_opp() local 119 best_n = n; in cpufreq_dt_find_opp() 124 DPRINTF(dev, "Will use %ju\n", sc->opp[best_n].freq); in cpufreq_dt_find_opp() 125 return (&sc->opp[best_n]); in cpufreq_dt_find_opp()
|
/freebsd/sys/arm/nvidia/drm2/ |
H A D | tegra_hdmi.c | 446 uint32_t *best_cts, uint32_t *best_n, uint32_t *best_a) in get_hda_cts_n() argument 473 *best_n = 0; in get_hda_cts_n() 490 better_n = abs(n - ideal_n) < abs((int)(*best_n) - ideal_n); in get_hda_cts_n() 494 *best_n = (uint32_t)n; in get_hda_cts_n()
|
/freebsd/sys/dev/sound/pci/ |
H A D | vibes.c | 259 u_int32_t rs, re, r, best_r = 0, r2, t, n, best_n = 0; in sv_set_recspeed() local 294 best_n = n - 2; in sv_set_recspeed() 304 SV_ADC_PLLN(best_n) | SV_ADC_PLLR(best_r)); in sv_set_recspeed()
|
/freebsd/sys/arm/nvidia/tegra124/ |
H A D | tegra124_clk_pll.c | 806 uint32_t best_m, best_n, best_p; in plld2_set_freq() local 850 best_n = n; in plld2_set_freq() 866 rv = pll_set_std(sc, fin, fout, flags, best_m, best_n, best_p); in plld2_set_freq()
|
/freebsd/sys/arm64/nvidia/tegra210/ |
H A D | tegra210_clk_pll.c | 1029 uint32_t best_m, best_n, best_p; in plld2_set_freq() local 1073 best_n = n; in plld2_set_freq() 1089 rv = pll_set_std(sc, fin, fout, flags, best_m, best_n, best_p); in plld2_set_freq()
|