Home
last modified time | relevance | path

Searched refs:nom (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pll.c44 static void amdgpu_pll_reduce_ratio(unsigned *nom, unsigned *den, in amdgpu_pll_reduce_ratio() argument
50 tmp = gcd(*nom, *den); in amdgpu_pll_reduce_ratio()
51 *nom /= tmp; in amdgpu_pll_reduce_ratio()
55 if (*nom < nom_min) { in amdgpu_pll_reduce_ratio()
56 tmp = DIV_ROUND_UP(nom_min, *nom); in amdgpu_pll_reduce_ratio()
57 *nom *= tmp; in amdgpu_pll_reduce_ratio()
64 *nom *= tmp; in amdgpu_pll_reduce_ratio()
83 static void amdgpu_pll_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in amdgpu_pll_get_fb_ref_div() argument
92 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in amdgpu_pll_get_fb_ref_div()
129 unsigned nom, den; in amdgpu_pll_compute() local
[all …]
/Linux-v5.10/sound/soc/img/
Dimg-spdif-in.c152 unsigned int ori, nom, hld; in img_spdif_in_do_clkgen_calc() local
167 nom = (4096 / ori) + 1; in img_spdif_in_do_clkgen_calc()
169 hld = 4096 - (--nom * (ori - 1)); in img_spdif_in_do_clkgen_calc()
172 *pnom = nom; in img_spdif_in_do_clkgen_calc()
181 unsigned int nom, hld; in img_spdif_in_do_clkgen_single() local
190 ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate); in img_spdif_in_do_clkgen_single()
194 reg = (nom << IMG_SPDIF_IN_CLKGEN_NOM_SHIFT) & in img_spdif_in_do_clkgen_single()
218 unsigned int nom, hld, rate, max_rate = 0; in img_spdif_in_do_clkgen_multi() local
234 ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate); in img_spdif_in_do_clkgen_multi()
238 reg = (nom << IMG_SPDIF_IN_ACLKGEN_NOM_SHIFT) & in img_spdif_in_do_clkgen_multi()
/Linux-v5.10/drivers/gpu/drm/i915/gt/
Dintel_gt_clock_utils.c64 static u64 div_u64_roundup(u64 nom, u32 den) in div_u64_roundup() argument
66 return div_u64(nom + den - 1, den); in div_u64_roundup()
/Linux-v5.10/drivers/video/fbdev/riva/
Dfbdev.c862 int nom, int den) in rivafb_do_maximize() argument
882 if (modes[i].xres * nom / den * modes[i].yres < in rivafb_do_maximize()
900 (nom * var->yres_virtual)) & ~15; in rivafb_do_maximize()
906 (nom * var->xres_virtual); in rivafb_do_maximize()
911 if (var->xres_virtual * nom / den * var->yres_virtual > info->fix.smem_len) { in rivafb_do_maximize()
920 if (var->xres_virtual * nom / den >= 8192) { in rivafb_do_maximize()
923 var->xres_virtual, 8192 * den / nom - 16); in rivafb_do_maximize()
924 var->xres_virtual = 8192 * den / nom - 16; in rivafb_do_maximize()
938 if (var->yres_virtual > 0x7fff/nom) in rivafb_do_maximize()
939 var->yres_virtual = 0x7fff/nom; in rivafb_do_maximize()
[all …]
/Linux-v5.10/drivers/gpu/drm/radeon/
Dradeon_display.c888 static void avivo_reduce_ratio(unsigned *nom, unsigned *den, in avivo_reduce_ratio() argument
894 tmp = gcd(*nom, *den); in avivo_reduce_ratio()
895 *nom /= tmp; in avivo_reduce_ratio()
899 if (*nom < nom_min) { in avivo_reduce_ratio()
900 tmp = DIV_ROUND_UP(nom_min, *nom); in avivo_reduce_ratio()
901 *nom *= tmp; in avivo_reduce_ratio()
908 *nom *= tmp; in avivo_reduce_ratio()
927 static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in avivo_get_fb_ref_div() argument
936 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in avivo_get_fb_ref_div()
973 unsigned nom, den; in radeon_compute_pll_avivo() local
[all …]
/Linux-v5.10/drivers/isdn/hardware/mISDN/
DmISDNisar.c176 u8 nom, noc; in load_firmware() local
240 nom = (2 * noc) + 3; in load_firmware()
258 if (!send_mbox(isar, ISAR_HIS_FIRM, 0, nom, NULL)) { in load_firmware()
1343 u8 ctrl = 0, nom = 0, p1 = 0; in isar_pump_cmd() local
1352 nom = 1; in isar_pump_cmd()
1365 nom = 0; in isar_pump_cmd()
1374 nom = 1; in isar_pump_cmd()
1387 nom = 0; in isar_pump_cmd()
1396 nom = 1; in isar_pump_cmd()
1409 nom = 0; in isar_pump_cmd()
[all …]
/Linux-v5.10/drivers/video/fbdev/
Dcirrusfb.c407 static void bestclock(long freq, int *nom, int *den, int *div);
668 int nom, den, div; in cirrusfb_set_par_foo() local
844 bestclock(freq, &nom, &den, &div); in cirrusfb_set_par_foo()
847 freq, nom, den, div); in cirrusfb_set_par_foo()
861 nom = 0; in cirrusfb_set_par_foo()
883 if (nom) { in cirrusfb_set_par_foo()
896 vga_wseq(regbase, CL_SEQR1E, nom); in cirrusfb_set_par_foo()
898 vga_wseq(regbase, CL_SEQRE, nom); in cirrusfb_set_par_foo()
2737 static void bestclock(long freq, int *nom, int *den, int *div) in bestclock() argument
2742 assert(nom != NULL); in bestclock()
[all …]
/Linux-v5.10/drivers/acpi/
Dcppc_acpi.c1088 u64 high, low, guaranteed, nom, min_nonlinear, low_f = 0, nom_f = 0; in cppc_get_perf_caps() local
1130 cpc_read(cpunum, nominal_reg, &nom); in cppc_get_perf_caps()
1131 perf_caps->nominal_perf = nom; in cppc_get_perf_caps()
1144 if (!high || !low || !nom || !min_nonlinear) in cppc_get_perf_caps()
/Linux-v5.10/drivers/video/fbdev/aty/
Dradeon_base.c835 int nom, den; in radeonfb_check_var() local
857 nom = den = 1; in radeonfb_check_var()
863 nom = 2; in radeonfb_check_var()
872 nom = 2; in radeonfb_check_var()
883 nom = 4; in radeonfb_check_var()
892 nom = 4; in radeonfb_check_var()
924 if (((v.xres_virtual * v.yres_virtual * nom) / den) > rinfo->mapped_vram) in radeonfb_check_var()
/Linux-v5.10/drivers/media/dvb-frontends/
Ddib7000p.c2440 u32 nom = (insertExtSynchro * P_Kin + syncSize); in dib7090_calcSyncFreq() local
2442 u32 syncFreq = ((nom << quantif) / denom); in dib7090_calcSyncFreq()
Ddib8000.c1383 u32 nom = (insertExtSynchro * P_Kin+syncSize); in dib8096p_calcSyncFreq() local
1385 u32 syncFreq = ((nom << quantif) / denom); in dib8096p_calcSyncFreq()