Home
last modified time | relevance | path

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

/drivers/video/fbdev/riva/
Dfbdev.c875 int nom, int den) in rivafb_do_maximize() argument
895 if (modes[i].xres * nom / den * modes[i].yres < in rivafb_do_maximize()
913 (nom * var->yres_virtual)) & ~15; in rivafb_do_maximize()
919 (nom * var->xres_virtual); in rivafb_do_maximize()
924 if (var->xres_virtual * nom / den * var->yres_virtual > info->fix.smem_len) { in rivafb_do_maximize()
933 if (var->xres_virtual * nom / den >= 8192) { in rivafb_do_maximize()
936 var->xres_virtual, 8192 * den / nom - 16); in rivafb_do_maximize()
937 var->xres_virtual = 8192 * den / nom - 16; in rivafb_do_maximize()
951 if (var->yres_virtual > 0x7fff/nom) in rivafb_do_maximize()
952 var->yres_virtual = 0x7fff/nom; in rivafb_do_maximize()
[all …]
/drivers/gpu/drm/radeon/
Dradeon_display.c857 static void avivo_reduce_ratio(unsigned *nom, unsigned *den, in avivo_reduce_ratio() argument
863 tmp = gcd(*nom, *den); in avivo_reduce_ratio()
864 *nom /= tmp; in avivo_reduce_ratio()
868 if (*nom < nom_min) { in avivo_reduce_ratio()
869 tmp = DIV_ROUND_UP(nom_min, *nom); in avivo_reduce_ratio()
870 *nom *= tmp; in avivo_reduce_ratio()
877 *nom *= tmp; in avivo_reduce_ratio()
896 static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in avivo_get_fb_ref_div() argument
905 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in avivo_get_fb_ref_div()
942 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/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.c721 int nom, den; in radeonfb_check_var() local
749 nom = den = 1; in radeonfb_check_var()
755 nom = 2; in radeonfb_check_var()
764 nom = 2; in radeonfb_check_var()
775 nom = 4; in radeonfb_check_var()
784 nom = 4; in radeonfb_check_var()
816 if (((v.xres_virtual * v.yres_virtual * nom) / den) > rinfo->mapped_vram) in radeonfb_check_var()
/drivers/media/dvb-frontends/
Ddib7000p.c2422 u32 nom = (insertExtSynchro * P_Kin + syncSize); in dib7090_calcSyncFreq() local
2424 u32 syncFreq = ((nom << quantif) / denom); in dib7090_calcSyncFreq()
Ddib8000.c1378 u32 nom = (insertExtSynchro * P_Kin+syncSize); in dib8096p_calcSyncFreq() local
1380 u32 syncFreq = ((nom << quantif) / denom); in dib8096p_calcSyncFreq()