/drivers/clk/sunxi-ng/ |
D | ccu_mp.c | 17 unsigned int max_m, unsigned int max_p, in ccu_mp_find_best() argument 25 for (_m = 1; _m <= max_m; _m++) { in ccu_mp_find_best() 49 unsigned int max_m, max_p; in ccu_mp_round_rate() local 52 max_m = cmp->m.max ?: 1 << cmp->m.width; in ccu_mp_round_rate() 55 ccu_mp_find_best(parent_rate, rate, max_m, max_p, &m, &p); in ccu_mp_round_rate() 117 unsigned int max_m, max_p; in ccu_mp_set_rate() local 125 max_m = cmp->m.max ?: 1 << cmp->m.width; in ccu_mp_set_rate() 128 ccu_mp_find_best(parent_rate, rate, max_m, max_p, &m, &p); in ccu_mp_set_rate()
|
D | ccu_nm.c | 64 unsigned long max_n, max_m; in ccu_nm_round_rate() local 68 max_m = nm->m.max ?: 1 << nm->m.width; in ccu_nm_round_rate() 70 rational_best_approximation(rate, *parent_rate, max_n, max_m, &n, &m); in ccu_nm_round_rate() 80 unsigned long max_n, max_m; in ccu_nm_set_rate() local 90 max_m = nm->m.max ?: 1 << nm->m.width; in ccu_nm_set_rate() 92 rational_best_approximation(rate, parent_rate, max_n, max_m, &n, &m); in ccu_nm_set_rate()
|
D | ccu_nkm.c | 20 unsigned long m, max_m; member 34 nkm->max_n, nkm->max_m, &_n, &_m); in ccu_nkm_find_best() 106 _nkm.max_m = nkm->m.max ?: 1 << nkm->m.width; in ccu_nkm_round_rate() 132 _nkm.max_m = nkm->m.max ?: 1 << nkm->m.width; in ccu_nkm_set_rate()
|
D | ccu_nkmp.c | 20 unsigned long m, max_m; member 36 nkmp->max_n, nkmp->max_m, in ccu_nkmp_find_best() 113 _nkmp.max_m = nkmp->m.max ?: 1 << nkmp->m.width; in ccu_nkmp_round_rate() 131 _nkmp.max_m = nkmp->m.max ?: 1 << nkmp->m.width; in ccu_nkmp_set_rate()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | pll.c | 277 info->vco1.max_m = 0xd; in nvbios_pll_parse() 296 info->vco2.max_m = 0x4; in nvbios_pll_parse() 311 info->vco1.max_m = nvbios_rd08(bios, data + 23); in nvbios_pll_parse() 315 info->vco2.max_m = nvbios_rd08(bios, data + 27); in nvbios_pll_parse() 340 info->vco1.max_m = nvbios_rd08(bios, data + 19); in nvbios_pll_parse() 344 info->vco2.max_m = nvbios_rd08(bios, data + 23); in nvbios_pll_parse() 358 info->vco1.max_m = nvbios_rd08(bios, data + 9); in nvbios_pll_parse() 406 info->vco1.max_m = 0xd; in nvbios_pll_parse() 410 info->vco1.max_m = 0xe; in nvbios_pll_parse()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | pllnv04.c | 42 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()
|
D | gk20a.c | 59 .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()
|
D | pllgt215.c | 45 hM = min(hM, (int)info->vco1.max_m); in gt215_pll_calc()
|
D | gk20a.h | 105 u32 min_m, max_m; member
|
D | gm20b.c | 154 .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/ |
D | pll.h | 68 u8 max_m; member
|
/drivers/media/i2c/smiapp/ |
D | smiapp-core.c | 1933 u32 min, max, a, b, max_m; in smiapp_set_compose_scaler() local 1950 max_m = crops[SMIAPP_PAD_SINK]->width in smiapp_set_compose_scaler() 1958 max_m = clamp(max_m, sensor->limits[SMIAPP_LIMIT_SCALER_M_MIN], in smiapp_set_compose_scaler() 1961 dev_dbg(&client->dev, "scaling: a %d b %d max_m %d\n", a, b, max_m); in smiapp_set_compose_scaler() 1963 min = min(max_m, min(a, b)); in smiapp_set_compose_scaler() 1964 max = min(max_m, max(a, b)); in smiapp_set_compose_scaler() 1972 if (max != max_m) { in smiapp_set_compose_scaler()
|
/drivers/gpu/drm/nouveau/dispnv04/ |
D | hw.c | 267 if (pv.M1 >= pll_lim.vco1.min_m && pv.M1 <= pll_lim.vco1.max_m && in nouveau_hw_fix_bad_vpll() 275 pv.M1 = pll_lim.vco1.max_m; in nouveau_hw_fix_bad_vpll()
|
/drivers/video/fbdev/intelfb/ |
D | intelfbhw.c | 42 int min_m, max_m, min_m1, max_m1; member 977 if (m > pll->max_m) in calc_pll_params() 978 m = pll->max_m - 1; in calc_pll_params()
|