Home
last modified time | relevance | path

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

/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()
43 unsigned int max_m, in ccu_mp_find_best_with_parent_adj() argument
58 maxdiv = max_m * max_p; in ccu_mp_find_best_with_parent_adj()
62 for (_m = 1; _m <= max_m; _m++) { in ccu_mp_find_best_with_parent_adj()
102 unsigned int max_m, max_p; in ccu_mp_round_rate() local
108 max_m = cmp->m.max ?: 1 << cmp->m.width; in ccu_mp_round_rate()
112 ccu_mp_find_best(*parent_rate, rate, max_m, max_p, &m, &p); in ccu_mp_round_rate()
116 max_m, max_p); in ccu_mp_round_rate()
190 unsigned int max_m, max_p; in ccu_mp_set_rate() local
[all …]
Dccu_nkm.c16 unsigned long m, min_m, max_m; member
28 for (_m = nkm->min_m; _m <= nkm->max_m; _m++) { in ccu_nkm_find_best()
120 _nkm.max_m = nkm->m.max ?: 1 << nkm->m.width; in ccu_nkm_round_rate()
160 _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()
149 _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()
158 _nm.max_m = nm->m.max ?: 1 << nm->m.width; in ccu_nm_round_rate()
202 _nm.max_m = nm->m.max ?: 1 << nm->m.width; in ccu_nm_set_rate()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dpll.c281 info->vco1.max_m = 0xd; in nvbios_pll_parse()
300 info->vco2.max_m = 0x4; in nvbios_pll_parse()
315 info->vco1.max_m = nvbios_rd08(bios, data + 23); in nvbios_pll_parse()
319 info->vco2.max_m = nvbios_rd08(bios, data + 27); in nvbios_pll_parse()
344 info->vco1.max_m = nvbios_rd08(bios, data + 19); in nvbios_pll_parse()
348 info->vco2.max_m = nvbios_rd08(bios, data + 23); in nvbios_pll_parse()
362 info->vco1.max_m = nvbios_rd08(bios, data + 9); in nvbios_pll_parse()
376 info->vco1.max_m = nvbios_rd08(bios, data + 14); in nvbios_pll_parse()
424 info->vco1.max_m = 0xd; in nvbios_pll_parse()
428 info->vco1.max_m = 0xe; in nvbios_pll_parse()
/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()
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()
Dpllgt215.c45 hM = min(hM, (int)info->vco1.max_m); in gt215_pll_calc()
Dgk20a.h105 u32 min_m, max_m; member
Dgm20b.c154 .min_m = 1, .max_m = 255,
1048 clk_params->max_m = clk_params->min_m = DIV_ROUND_UP(clk_params->max_u, in gm20b_clk_new()
1050 if (clk_params->max_m == 0) { in gm20b_clk_new()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Dpll.h69 u8 max_m; member
/drivers/media/i2c/smiapp/
Dsmiapp-core.c1951 u32 min, max, a, b, max_m; in smiapp_set_compose_scaler() local
1968 max_m = crops[SMIAPP_PAD_SINK]->width in smiapp_set_compose_scaler()
1976 max_m = clamp(max_m, SMIA_LIM(sensor, SCALER_M_MIN), in smiapp_set_compose_scaler()
1979 dev_dbg(&client->dev, "scaling: a %d b %d max_m %d\n", a, b, max_m); in smiapp_set_compose_scaler()
1981 min = min(max_m, min(a, b)); in smiapp_set_compose_scaler()
1982 max = min(max_m, max(a, b)); in smiapp_set_compose_scaler()
1990 if (max != max_m) { in smiapp_set_compose_scaler()
/drivers/gpu/drm/nouveau/dispnv04/
Dhw.c271 if (pv.M1 >= pll_lim.vco1.min_m && pv.M1 <= pll_lim.vco1.max_m && in nouveau_hw_fix_bad_vpll()
279 pv.M1 = pll_lim.vco1.max_m; in nouveau_hw_fix_bad_vpll()
/drivers/video/fbdev/intelfb/
Dintelfbhw.c42 int min_m, max_m, min_m1, max_m1; member
975 if (m > pll->max_m) in calc_pll_params()
976 m = pll->max_m - 1; in calc_pll_params()