/linux/drivers/clk/ |
H A D | clk-fractional-divider_test.c | 19 unsigned long rate, parent_rate, parent_rate_before, m, n, max_n; in clk_fd_test_approximation_max_denominator() local 26 max_n = 7; in clk_fd_test_approximation_max_denominator() 29 parent_rate = (max_n + 1) * rate; /* so that it exceeds the maximum divisor */ in clk_fd_test_approximation_max_denominator() 36 KUNIT_EXPECT_EQ(test, n, max_n); in clk_fd_test_approximation_max_denominator() 77 unsigned long rate, parent_rate, parent_rate_before, m, n, max_n; in clk_fd_test_approximation_max_denominator_zero_based() local 85 max_n = 8; in clk_fd_test_approximation_max_denominator_zero_based() 88 parent_rate = (max_n + 1) * rate; /* so that it exceeds the maximum divisor */ in clk_fd_test_approximation_max_denominator_zero_based() 95 KUNIT_EXPECT_EQ(test, n, max_n); in clk_fd_test_approximation_max_denominator_zero_based()
|
H A D | clk-fractional-divider.c | 126 unsigned long max_m, max_n; in clk_fractional_divider_general_approximation() local 144 max_n = BIT(fd->nwidth); in clk_fractional_divider_general_approximation() 147 max_n = GENMASK(fd->nwidth - 1, 0); in clk_fractional_divider_general_approximation() 150 rational_best_approximation(rate, *parent_rate, max_m, max_n, m, n); in clk_fractional_divider_general_approximation() 180 unsigned long m, n, max_m, max_n; in clk_fd_set_rate() local 186 max_n = BIT(fd->nwidth); in clk_fd_set_rate() 189 max_n = GENMASK(fd->nwidth - 1, 0); in clk_fd_set_rate() 191 rational_best_approximation(rate, parent_rate, max_m, max_n, &m, &n); in clk_fd_set_rate()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | pll.c | 278 info->vco1.max_n = 0xff; in nvbios_pll_parse() 292 info->vco2.max_n = 0x1f; in nvbios_pll_parse() 295 info->vco2.max_n = 0x28; in nvbios_pll_parse() 312 info->vco1.max_n = nvbios_rd08(bios, data + 21); in nvbios_pll_parse() 316 info->vco2.max_n = nvbios_rd08(bios, data + 25); in nvbios_pll_parse() 341 info->vco1.max_n = nvbios_rd08(bios, data + 17); in nvbios_pll_parse() 345 info->vco2.max_n = nvbios_rd08(bios, data + 21); in nvbios_pll_parse() 363 info->vco1.max_n = nvbios_rd08(bios, data + 11); in nvbios_pll_parse() 377 info->vco1.max_n = nvbios_rd08(bios, data + 16); in nvbios_pll_parse() 416 info->vco1.max_n = 0xff; in nvbios_pll_parse()
|
/linux/drivers/clk/sunxi-ng/ |
H A D | ccu_nk.c | 14 unsigned long n, min_n, max_n; member 26 for (_n = nk->min_n; _n <= nk->max_n; _n++) { in ccu_nk_find_best() 105 _nk.max_n = nk->n.max ?: 1 << nk->n.width; in ccu_nk_round_rate() 129 _nk.max_n = nk->n.max ?: 1 << nk->n.width; in ccu_nk_set_rate()
|
H A D | ccu_nkm.c | 14 unsigned long n, min_n, max_n; member 43 for (_n = nkm->min_n; _n <= nkm->max_n; _n++) { in ccu_nkm_find_best_with_parent_adj() 83 for (_n = nkm->min_n; _n <= nkm->max_n; _n++) { in ccu_nkm_find_best() 175 _nkm.max_n = nkm->n.max ?: 1 << nkm->n.width; in ccu_nkm_round_rate() 217 _nkm.max_n = nkm->n.max ?: 1 << nkm->n.width; in ccu_nkm_set_rate()
|
H A D | ccu_nm.c | 15 unsigned long n, min_n, max_n; member 37 for (_n = nm->min_n; _n <= nm->max_n; _n++) { in ccu_nm_find_best() 155 _nm.max_n = nm->n.max ?: 1 << nm->n.width; in ccu_nm_round_rate() 198 _nm.max_n = nm->n.max ?: 1 << nm->n.width; in ccu_nm_set_rate()
|
H A D | ccu_nkmp.c | 14 unsigned long n, min_n, max_n; member 40 for (_n = nkmp->min_n; _n <= nkmp->max_n; _n++) { in ccu_nkmp_find_best() 147 _nkmp.max_n = nkmp->n.max ?: 1 << nkmp->n.width; in ccu_nkmp_round_rate() 176 _nkmp.max_n = nkmp->n.max ?: 1 << nkmp->n.width; in ccu_nkmp_set_rate()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | pllnv04.c | 43 int minN = info->vco1.min_n, maxN = info->vco1.max_n; in getMNP_single() 145 int minN1 = info->vco1.min_n, maxN1 = info->vco1.max_n; in getMNP_double() 147 int minN2 = info->vco2.min_n, maxN2 = info->vco2.max_n; in getMNP_double()
|
H A D | pllgt215.c | 64 if (N > info->vco1.max_n) in gt215_pll_calc()
|
H A D | gk20a.c | 60 .min_n = 8, .max_n = 255, 155 if (n > clk->params->max_n) in gk20a_pllg_calc_mnp() 163 if (n > clk->params->max_n) in gk20a_pllg_calc_mnp()
|
H A D | gk20a.h | 106 u32 min_n, max_n; member
|
H A D | gm20b.c | 155 .min_n = 8, .max_n = 255, 247 if (n >> DFS_DET_RANGE > p->max_n) { in gm20b_dvfs_calc_ndiv() 249 n = p->max_n << DFS_DET_RANGE; in gm20b_dvfs_calc_ndiv()
|
/linux/drivers/gpu/drm/bridge/imx/ |
H A D | imx93-mipi-dsi.c | 229 unsigned int min_n, max_n, n, best_n = UINT_MAX; in dphy_pll_get_configure_from_opts() local 251 max_n = DIV_ROUND_DOWN_ULL((u64)fin, MHZ(2)); in dphy_pll_get_configure_from_opts() 255 max_n = clamp(max_n, N_MIN, N_MAX); in dphy_pll_get_configure_from_opts() 258 fout, fvco_div, min_n, max_n); in dphy_pll_get_configure_from_opts() 260 for (n = min_n; n <= max_n; n++) { in dphy_pll_get_configure_from_opts()
|
/linux/sound/soc/codecs/ |
H A D | rl6231.c | 143 int max_n = RL6231_PLL_N_MAX, max_m = RL6231_PLL_M_MAX; in rl6231_pll_calc() local 182 for (n_t = 0; n_t <= max_n; n_t++) { in rl6231_pll_calc()
|
H A D | rt1318.c | 794 int max_n = RT1318_PLL_N_MAX, max_m = RT1318_PLL_M_MAX; in rt1318_pll_calc() local 822 for (n_t = 0; n_t <= max_n; n_t++) { in rt1318_pll_calc()
|
H A D | madera.c | 4425 unsigned int fll_n, min_n, max_n, ratio, theta, lambda; in madera_fllhj_apply() local 4470 max_n = MADERA_FLLHJ_FRAC_MAX_N; in madera_fllhj_apply() 4474 max_n = MADERA_FLLHJ_INT_MAX_N; in madera_fllhj_apply() 4489 while (frac && (ratio / fbdiv > max_n)) { in madera_fllhj_apply() 4511 if (fll_n < min_n || fll_n > max_n) { in madera_fllhj_apply() 4513 frac ? "fractional" : "integer", min_n, max_n, in madera_fllhj_apply()
|
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | pll.h | 71 u8 max_n; member
|
/linux/drivers/phy/freescale/ |
H A D | phy-fsl-imx8-mipi-dphy.c | 159 static void get_best_ratio(u32 *pnum, u32 *pdenom, u32 max_n, u32 max_d) in get_best_ratio() argument 174 if ((n[i] > max_n) || (d[i] > max_d)) { in get_best_ratio()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_dpll.c | 774 int max_n; in g4x_find_best_dpll() local 783 max_n = limit->n.max; in g4x_find_best_dpll() 785 for (clock.n = limit->n.min; clock.n <= max_n; clock.n++) { in g4x_find_best_dpll() 805 max_n = clock.n; in g4x_find_best_dpll() 871 int max_n = min(limit->n.max, refclk / 19200); in vlv_find_best_dpll() local 877 for (clock.n = limit->n.min; clock.n <= max_n; clock.n++) { in vlv_find_best_dpll()
|
/linux/net/mac80211/ |
H A D | scan.c | 1190 int max_n; in ieee80211_request_ibss_scan() local 1197 max_n = local->hw.wiphy->bands[band]->n_channels; in ieee80211_request_ibss_scan() 1198 for (i = 0; i < max_n; i++) { in ieee80211_request_ibss_scan()
|
/linux/drivers/gpu/drm/tegra/ |
H A D | hdmi.c | 392 const unsigned int max_n = afreq / 300; in tegra_hdmi_get_audio_config() local 401 for (n = min_n; n <= max_n; n++) { in tegra_hdmi_get_audio_config()
|
/linux/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | hw.c | 272 pv.N1 >= pll_lim.vco1.min_n && pv.N1 <= pll_lim.vco1.max_n && in nouveau_hw_fix_bad_vpll()
|