Home
last modified time | relevance | path

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

/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pll.c43 static void amdgpu_pll_reduce_ratio(unsigned *nom, unsigned *den, in amdgpu_pll_reduce_ratio() argument
49 tmp = gcd(*nom, *den); in amdgpu_pll_reduce_ratio()
50 *nom /= tmp; in amdgpu_pll_reduce_ratio()
54 if (*nom < nom_min) { in amdgpu_pll_reduce_ratio()
55 tmp = DIV_ROUND_UP(nom_min, *nom); in amdgpu_pll_reduce_ratio()
56 *nom *= tmp; in amdgpu_pll_reduce_ratio()
63 *nom *= tmp; in amdgpu_pll_reduce_ratio()
82 static void amdgpu_pll_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in amdgpu_pll_get_fb_ref_div() argument
91 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in amdgpu_pll_get_fb_ref_div()
128 unsigned nom, den; in amdgpu_pll_compute() local
[all …]
/drivers/video/fbdev/riva/
Dfbdev.c866 int nom, int den) in rivafb_do_maximize() argument
886 if (modes[i].xres * nom / den * modes[i].yres < in rivafb_do_maximize()
904 (nom * var->yres_virtual)) & ~15; in rivafb_do_maximize()
910 (nom * var->xres_virtual); in rivafb_do_maximize()
915 if (var->xres_virtual * nom / den * var->yres_virtual > info->fix.smem_len) { in rivafb_do_maximize()
924 if (var->xres_virtual * nom / den >= 8192) { in rivafb_do_maximize()
927 var->xres_virtual, 8192 * den / nom - 16); in rivafb_do_maximize()
928 var->xres_virtual = 8192 * den / nom - 16; in rivafb_do_maximize()
942 if (var->yres_virtual > 0x7fff/nom) in rivafb_do_maximize()
943 var->yres_virtual = 0x7fff/nom; in rivafb_do_maximize()
[all …]
/drivers/gpu/drm/radeon/
Dradeon_display.c915 static void avivo_reduce_ratio(unsigned *nom, unsigned *den, in avivo_reduce_ratio() argument
921 tmp = gcd(*nom, *den); in avivo_reduce_ratio()
922 *nom /= tmp; in avivo_reduce_ratio()
926 if (*nom < nom_min) { in avivo_reduce_ratio()
927 tmp = DIV_ROUND_UP(nom_min, *nom); in avivo_reduce_ratio()
928 *nom *= tmp; in avivo_reduce_ratio()
935 *nom *= tmp; in avivo_reduce_ratio()
954 static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in avivo_get_fb_ref_div() argument
963 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in avivo_get_fb_ref_div()
1000 unsigned nom, den; in radeon_compute_pll_avivo() local
[all …]
/drivers/isdn/hisax/
Disar.c193 u_char len, nom, noc; in isar_load_firmware() local
277 nom = 2 * noc; in isar_load_firmware()
283 if ((ret = copy_from_user(tmpmsg, p, nom))) { in isar_load_firmware()
287 p += nom; in isar_load_firmware()
288 cnt += nom; in isar_load_firmware()
289 nom += 3; in isar_load_firmware()
308 if (!sendmsg(cs, ISAR_HIS_FIRM, 0, nom, msg)) { in isar_load_firmware()
1461 u_char ctrl = 0, nom = 0, p1 = 0; in isar_pump_cmd() local
1469 nom = 1; in isar_pump_cmd()
1483 nom = 0; in isar_pump_cmd()
[all …]
/drivers/isdn/hardware/mISDN/
DmISDNisar.c190 u8 nom, noc; in load_firmware() local
254 nom = (2 * noc) + 3; in load_firmware()
272 if (!send_mbox(isar, ISAR_HIS_FIRM, 0, nom, NULL)) { in load_firmware()
1355 u8 ctrl = 0, nom = 0, p1 = 0; in isar_pump_cmd() local
1364 nom = 1; in isar_pump_cmd()
1377 nom = 0; in isar_pump_cmd()
1386 nom = 1; in isar_pump_cmd()
1399 nom = 0; in isar_pump_cmd()
1408 nom = 1; in isar_pump_cmd()
1421 nom = 0; in isar_pump_cmd()
[all …]
/drivers/acpi/
Dcppc_acpi.c594 u64 high, low, ref, nom; in cppc_get_perf_caps() local
630 cpc_read(&nom_perf->cpc_entry.reg, &nom); in cppc_get_perf_caps()
631 perf_caps->nominal_perf = nom; in cppc_get_perf_caps()
636 if (!high || !low || !nom) in cppc_get_perf_caps()
/drivers/video/fbdev/
Dcirrusfb.c408 static void bestclock(long freq, int *nom, int *den, int *div);
669 int nom, den, div; in cirrusfb_set_par_foo() local
845 bestclock(freq, &nom, &den, &div); in cirrusfb_set_par_foo()
848 freq, nom, den, div); in cirrusfb_set_par_foo()
862 nom = 0; in cirrusfb_set_par_foo()
884 if (nom) { in cirrusfb_set_par_foo()
897 vga_wseq(regbase, CL_SEQR1E, nom); in cirrusfb_set_par_foo()
899 vga_wseq(regbase, CL_SEQRE, nom); in cirrusfb_set_par_foo()
2739 static void bestclock(long freq, int *nom, int *den, int *div) in bestclock() argument
2744 assert(nom != NULL); in bestclock()
[all …]
/drivers/video/fbdev/aty/
Dradeon_base.c844 int nom, den; in radeonfb_check_var() local
872 nom = den = 1; in radeonfb_check_var()
878 nom = 2; in radeonfb_check_var()
887 nom = 2; in radeonfb_check_var()
898 nom = 4; in radeonfb_check_var()
907 nom = 4; in radeonfb_check_var()
939 if (((v.xres_virtual * v.yres_virtual * nom) / den) > rinfo->mapped_vram) in radeonfb_check_var()
/drivers/media/dvb-frontends/
Ddib7000p.c2421 u32 nom = (insertExtSynchro * P_Kin + syncSize); in dib7090_calcSyncFreq() local
2423 u32 syncFreq = ((nom << quantif) / denom); in dib7090_calcSyncFreq()
Ddib8000.c1379 u32 nom = (insertExtSynchro * P_Kin+syncSize); in dib8096p_calcSyncFreq() local
1381 u32 syncFreq = ((nom << quantif) / denom); in dib8096p_calcSyncFreq()