Home
last modified time | relevance | path

Searched refs:max_m (Results 1 – 15 of 15) sorted by relevance

/linux-6.6.21/drivers/clk/sunxi-ng/
Dccu_mp.c14 unsigned int max_m, unsigned int max_p, in ccu_mp_find_best() argument
22 for (_m = 1; _m <= max_m; _m++) { in ccu_mp_find_best()
45 unsigned int max_m, in ccu_mp_find_best_with_parent_adj() argument
60 maxdiv = max_m * max_p; in ccu_mp_find_best_with_parent_adj()
64 for (_m = 1; _m <= max_m; _m++) { in ccu_mp_find_best_with_parent_adj()
104 unsigned int max_m, max_p; in ccu_mp_round_rate() local
110 max_m = cmp->m.max ?: 1 << cmp->m.width; in ccu_mp_round_rate()
114 rate = ccu_mp_find_best(*parent_rate, rate, max_m, max_p, &m, &p); in ccu_mp_round_rate()
117 max_m, max_p); in ccu_mp_round_rate()
191 unsigned int max_m, max_p; in ccu_mp_set_rate() local
[all …]
Dccu_nkm.c16 unsigned long m, min_m, max_m; member
30 for (_m = nkm->min_m; _m <= nkm->max_m; _m++) { in ccu_nkm_find_best_with_parent_adj()
67 for (_m = nkm->min_m; _m <= nkm->max_m; _m++) { in ccu_nkm_find_best()
159 _nkm.max_m = nkm->m.max ?: 1 << nkm->m.width; in ccu_nkm_round_rate()
201 _nkm.max_m = nkm->m.max ?: 1 << nkm->m.width; in ccu_nkm_set_rate()
Dccu_nkmp.c16 unsigned long m, min_m, max_m; member
41 for (_m = nkmp->min_m; _m <= nkmp->max_m; _m++) { in ccu_nkmp_find_best()
151 _nkmp.max_m = nkmp->m.max ?: 1 << nkmp->m.width; in ccu_nkmp_round_rate()
180 _nkmp.max_m = nkmp->m.max ?: 1 << nkmp->m.width; in ccu_nkmp_set_rate()
Dccu_nm.c16 unsigned long m, min_m, max_m; member
38 for (_m = nm->min_m; _m <= nm->max_m; _m++) { in ccu_nm_find_best()
157 _nm.max_m = nm->m.max ?: 1 << nm->m.width; in ccu_nm_round_rate()
200 _nm.max_m = nm->m.max ?: 1 << nm->m.width; in ccu_nm_set_rate()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dpll.c280 info->vco1.max_m = 0xd; in nvbios_pll_parse()
299 info->vco2.max_m = 0x4; in nvbios_pll_parse()
314 info->vco1.max_m = nvbios_rd08(bios, data + 23); in nvbios_pll_parse()
318 info->vco2.max_m = nvbios_rd08(bios, data + 27); in nvbios_pll_parse()
343 info->vco1.max_m = nvbios_rd08(bios, data + 19); in nvbios_pll_parse()
347 info->vco2.max_m = nvbios_rd08(bios, data + 23); in nvbios_pll_parse()
361 info->vco1.max_m = nvbios_rd08(bios, data + 9); in nvbios_pll_parse()
375 info->vco1.max_m = nvbios_rd08(bios, data + 14); in nvbios_pll_parse()
423 info->vco1.max_m = 0xd; in nvbios_pll_parse()
427 info->vco1.max_m = 0xe; in nvbios_pll_parse()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dpllnv04.c42 int minM = info->vco1.min_m, maxM = info->vco1.max_m; in getMNP_single()
144 int minM1 = info->vco1.min_m, maxM1 = info->vco1.max_m; in getMNP_double()
146 int minM2 = info->vco2.min_m, maxM2 = info->vco2.max_m; in getMNP_double()
Dpllgt215.c45 hM = min(hM, (int)info->vco1.max_m); in gt215_pll_calc()
Dgk20a.c59 .min_m = 1, .max_m = 255,
119 best_m = clk->params->max_m; in gk20a_pllg_calc_mnp()
144 for (m = clk->params->min_m; m <= clk->params->max_m; m++) { in gk20a_pllg_calc_mnp()
Dgk20a.h105 u32 min_m, max_m; member
Dgm20b.c154 .min_m = 1, .max_m = 255,
1045 clk_params->max_m = clk_params->min_m = DIV_ROUND_UP(clk_params->max_u, in gm20b_clk_new()
1047 if (clk_params->max_m == 0) { in gm20b_clk_new()
/linux-6.6.21/sound/soc/codecs/
Drl6231.c143 int max_n = RL6231_PLL_N_MAX, max_m = RL6231_PLL_M_MAX; in rl6231_pll_calc() local
202 for (m_t = 0; m_t <= max_m; m_t++) { in rl6231_pll_calc()
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Dpll.h69 u8 max_m; member
/linux-6.6.21/drivers/media/i2c/ccs/
Dccs-core.c2370 u32 min, max, a, b, max_m; in ccs_set_compose_scaler() local
2387 max_m = crops[CCS_PAD_SINK]->width in ccs_set_compose_scaler()
2395 max_m = clamp(max_m, CCS_LIM(sensor, SCALER_M_MIN), in ccs_set_compose_scaler()
2398 dev_dbg(&client->dev, "scaling: a %u b %u max_m %u\n", a, b, max_m); in ccs_set_compose_scaler()
2400 min = min(max_m, min(a, b)); in ccs_set_compose_scaler()
2401 max = min(max_m, max(a, b)); in ccs_set_compose_scaler()
2409 if (max != max_m) { in ccs_set_compose_scaler()
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv04/
Dhw.c272 if (pv.M1 >= pll_lim.vco1.min_m && pv.M1 <= pll_lim.vco1.max_m && in nouveau_hw_fix_bad_vpll()
280 pv.M1 = pll_lim.vco1.max_m; in nouveau_hw_fix_bad_vpll()
/linux-6.6.21/drivers/video/fbdev/intelfb/
Dintelfbhw.c42 int min_m, max_m, min_m1, max_m1; member
973 if (m > pll->max_m) in calc_pll_params()
974 m = pll->max_m - 1; in calc_pll_params()