Home
last modified time | relevance | path

Searched refs:htotal (Results 1 – 25 of 60) sorted by relevance

123

/linux-2.6.39/drivers/gpu/drm/
Ddrm_modes.c55 mode->hsync_end, mode->htotal, in drm_mode_debug_printmodeline()
217 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode()
220 (drm_mode->htotal * CVT_HSYNC_PERCENTAGE) / 100; in drm_cvt_mode()
251 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK; in drm_cvt_mode()
260 drm_mode->clock = drm_mode->htotal * HV_FACTOR * 1000 / hperiod; in drm_cvt_mode()
444 drm_mode->htotal = total_pixels; in drm_gtf_mode_complex()
603 if (mode->htotal < 0) in drm_mode_hsync()
606 calc_val = (mode->clock * 1000) / mode->htotal; /* hsync in Hz */ in drm_mode_hsync()
637 else if (mode->htotal > 0 && mode->vtotal > 0) { in drm_mode_vrefresh()
642 calc_val /= mode->htotal; in drm_mode_vrefresh()
[all …]
/linux-2.6.39/drivers/gpu/drm/i915/
Dintel_tv.c357 int hsync_end, hblank_start, hblank_end, htotal; member
426 .hblank_start = 836, .htotal = 857,
468 .hblank_start = 836, .htotal = 857,
511 .hblank_start = 836, .htotal = 857,
554 .hblank_start = 836, .htotal = 857,
597 .hblank_start = 844, .htotal = 863,
642 .hblank_start = 844, .htotal = 863,
684 .hblank_start = 842, .htotal = 857,
708 .hblank_start = 842, .htotal = 856,
732 .hblank_start = 859, .htotal = 863,
[all …]
Dintel_bios.c85 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
110 if (panel_fixed_mode->hsync_end > panel_fixed_mode->htotal) in fill_detail_timing_data()
111 panel_fixed_mode->htotal = panel_fixed_mode->hsync_end + 1; in fill_detail_timing_data()
197 temp_mode->htotal == panel_fixed_mode->htotal && in parse_lfp_panel_data()
Dintel_panel.c42 adjusted_mode->htotal = fixed_mode->htotal; in intel_fixed_panel_mode()
Dintel_display.c3769 int htotal, hdisplay, clock, pixel_size; in g4x_compute_wm0() local
3780 htotal = crtc->mode.htotal; in g4x_compute_wm0()
3796 line_time_us = ((htotal * 1000) / clock); in g4x_compute_wm0()
3853 int hdisplay, htotal, pixel_size, clock; in g4x_compute_srwm() local
3866 htotal = crtc->mode.htotal; in g4x_compute_srwm()
3870 line_time_us = (htotal * 1000) / clock; in g4x_compute_srwm()
3957 int htotal = crtc->mode.htotal; in i965_update_wm() local
3963 line_time_us = ((htotal * 1000) / clock); in i965_update_wm()
4070 int htotal = enabled->mode.htotal; in i9xx_update_wm() local
4076 line_time_us = (htotal * 1000) / clock; in i9xx_update_wm()
[all …]
/linux-2.6.39/drivers/video/
Dfbcvt.c44 u32 htotal; member
132 hsync = (FB_CVT_CELLSIZE * cvt->htotal)/100; in fb_cvt_hsync()
177 pixclock = (cvt->f_refresh * cvt->vtotal * cvt->htotal)/1000; in fb_cvt_pixclock()
179 pixclock = (cvt->htotal * 1000000)/cvt->hperiod; in fb_cvt_pixclock()
365 cvt.htotal = cvt.active_pixels + cvt.hblank; in fb_find_mode_cvt()
368 cvt.hfreq = cvt.pixclock/cvt.htotal; in fb_find_mode_cvt()
Dfbmon.c697 int vtotal, htotal; in fb_get_monitor_limits() local
709 htotal = mode->xres + mode->right_margin + mode->hsync_len in fb_get_monitor_limits()
720 hscan = (pixclock + htotal / 2) / htotal; in fb_get_monitor_limits()
1081 u32 htotal; member
1213 timings->htotal = timings->hactive + timings->hblank; in fb_timings_vfreq()
1214 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_vfreq()
1224 timings->htotal = timings->hactive + timings->hblank; in fb_timings_hfreq()
1225 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_hfreq()
1232 timings->htotal = timings->hactive + timings->hblank; in fb_timings_dclk()
1233 timings->hfreq = timings->dclk/timings->htotal; in fb_timings_dclk()
[all …]
Damifb.c755 u_short htotal; /* vmode */ member
1018 #define htotal2hw(htotal) (div8(htotal)-1) argument
1022 #define hcenter2hw(htotal) (div8(htotal)) argument
2541 u_int htotal, vtotal; in ami_decode_var() local
2630 par->htotal = down8((var->left_margin+par->xres+var->right_margin+var->hsync_len)<<clk_shift); in ami_decode_var()
2638 par->diwstop_h = par->htotal-((var->right_margin-var->hsync_len)<<clk_shift); in ami_decode_var()
2647 if (par->diwstop_h >= par->htotal+8) { in ami_decode_var()
2670 if (par->htotal != PAL_HTOTAL) { in ami_decode_var()
2682 htotal = PAL_HTOTAL>>clk_shift; in ami_decode_var()
2700 if (par->htotal != NTSC_HTOTAL) { in ami_decode_var()
[all …]
Dgbefb.c524 timing->htotal = var->left_margin + var->xres + in compute_gbe_timing()
528 timing->fields_sec = 1000 * timing->cfreq / timing->htotal * in compute_gbe_timing()
532 timing->hblank_end = timing->htotal; in compute_gbe_timing()
559 SET_GBE_FIELD(VT_XYMAX, MAXX, val, timing->htotal); in gbe_set_timing_info()
607 timing->htotal - (20 - timing->hblank_end)); in gbe_set_timing_info()
617 timing->htotal - (GBE_CRS_MAGIC - in gbe_set_timing_info()
629 temp += timing->htotal; /* allow blank to wrap around */ in gbe_set_timing_info()
634 GBE_PIXEN_MAGIC_OFF) % timing->htotal)); in gbe_set_timing_info()
997 var->left_margin = timing.htotal - timing.hsync_end; in gbefb_check_var()
Dsgivwfb.c343 var->left_margin = timing->htotal - timing->hsync_end; in sgivwfb_check_var()
577 currentTiming->htotal - (20 - in sgivwfb_set_par()
590 currentTiming->htotal - (DBE_CRS_MAGIC - in sgivwfb_set_par()
617 SET_DBE_FIELD(VT_XYMAX, VT_MAXX, outputVal, currentTiming->htotal); in sgivwfb_set_par()
651 htmp += currentTiming->htotal; /* allow blank to wrap around */ in sgivwfb_set_par()
655 2) % currentTiming->htotal)); in sgivwfb_set_par()
Dcirrusfb.c667 int hdispend, hsyncstart, hsyncend, htotal; in cirrusfb_set_par_foo() local
702 htotal = (hsyncend + var->left_margin) / 8; in cirrusfb_set_par_foo()
737 htotal /= 2; in cirrusfb_set_par_foo()
743 htotal -= 5; in cirrusfb_set_par_foo()
752 dev_dbg(info->device, "CRT0: %d\n", htotal); in cirrusfb_set_par_foo()
753 vga_wcrt(regbase, VGA_CRTC_H_TOTAL, htotal); in cirrusfb_set_par_foo()
762 dev_dbg(info->device, "CRT3: 128+%d\n", (htotal + 5) % 32); in cirrusfb_set_par_foo()
764 128 + ((htotal + 5) % 32)); in cirrusfb_set_par_foo()
770 if ((htotal + 5) & 32) in cirrusfb_set_par_foo()
825 if ((htotal + 5) & 64) in cirrusfb_set_par_foo()
[all …]
Ds3fb.c491 u32 htotal, hsstart; in s3fb_set_par() local
773 htotal = info->var.xres + info->var.left_margin + info->var.right_margin + info->var.hsync_len; in s3fb_set_par()
774 htotal = ((htotal * hmul) / 8) - 5; in s3fb_set_par()
775 vga_wcrt(par->state.vgabase, 0x3C, (htotal + 1) / 2); in s3fb_set_par()
779 value = clamp((htotal + hsstart + 1) / 2, hsstart + 4, htotal + 1); in s3fb_set_par()
Dsh_mobile_hdmi.c294 u16 htotal, hblank, hdelay, vtotal, vblank, vdelay, voffset; in sh_hdmi_external_video_param() local
297 htotal = var->xres + var->right_margin + var->left_margin + var->hsync_len; in sh_hdmi_external_video_param()
324 htotal, hblank, hdelay, var->hsync_len, in sh_hdmi_external_video_param()
329 hdmi_write(hdmi, htotal, HDMI_EXTERNAL_H_TOTAL_7_0); in sh_hdmi_external_video_param()
330 hdmi_write(hdmi, htotal >> 8, HDMI_EXTERNAL_H_TOTAL_11_8); in sh_hdmi_external_video_param()
/linux-2.6.39/drivers/video/geode/
Ddisplay_gx.c65 int hactive, hblankstart, hsyncstart, hsyncend, hblankend, htotal; in gx_set_mode() local
138 htotal = hblankend; in gx_set_mode()
148 ((htotal - 1) << 16)); in gx_set_mode()
Ddisplay_gx1.c85 int hactive, hblankstart, hsyncstart, hsyncend, hblankend, htotal; in gx1_set_mode() local
156 htotal = hblankend; in gx1_set_mode()
165 val = (hactive - 1) | ((htotal - 1) << 16); in gx1_set_mode()
/linux-2.6.39/drivers/video/matrox/
Dmatroxfb_maven.c211 unsigned int htotal, unsigned int vtotal, in matroxfb_PLL_mavenclock() argument
224 scrlen = htotal * (vtotal - 1); in matroxfb_PLL_mavenclock()
225 fwant = htotal * vtotal; in matroxfb_PLL_mavenclock()
229 fwant, fxtal, htotal, vtotal, fmax); in matroxfb_PLL_mavenclock()
262 if (ln > htotal) in matroxfb_PLL_mavenclock()
284 unsigned int htotal, unsigned int vtotal, in matroxfb_mavenclock() argument
290 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); in matroxfb_mavenclock()
733 m->htotal = h - 2; in maven_find_exact_clocks()
786 m->regs[0xA0] = m->htotal; in maven_compute_timming()
787 m->regs[0xA1] = m->htotal >> 8; in maven_compute_timming()
[all …]
/linux-2.6.39/drivers/video/sis/
Dinitextlfb.c40 int *htotal, int *vtotal, unsigned char rateindex);
177 sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, in sisfb_gettotalfrommode() argument
214 *htotal = (((cr_data & 0xff) | ((unsigned short) (sr_data & 0x03) << 8)) + 5) * 8; in sisfb_gettotalfrommode()
/linux-2.6.39/drivers/staging/gma500/
Dpsb_intel_bios.c64 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
79 if (panel_fixed_mode->hsync_end > panel_fixed_mode->htotal) in fill_detail_timing_data()
80 panel_fixed_mode->htotal = panel_fixed_mode->hsync_end + 1; in fill_detail_timing_data()
Dpsb_intel_lvds.c429 adjusted_mode->htotal = panel_fixed_mode->htotal; in psb_intel_lvds_mode_fixup()
866 mode_dev->panel_fixed_mode->htotal); in psb_intel_lvds_init()
/linux-2.6.39/arch/m68k/include/asm/
Damigahw.h207 unsigned short htotal; member
292 amiga_custom.htotal = 113; /* 31 kHz */ in amifb_video_off()
/linux-2.6.39/drivers/gpu/drm/nouveau/
Dnv17_tv.c209 mode->htotal / 1000 * in nv17_tv_get_ld_modes()
268 mode->htotal = output_mode->htotal; in nv17_tv_get_hd_modes()
269 mode->hsync_start = (mode->hdisplay + (mode->htotal in nv17_tv_get_hd_modes()
530 regs->fp_horiz_regs[FP_TOTAL] = output_mode->htotal - 1; in nv17_tv_mode_set()
/linux-2.6.39/drivers/video/vermilion/
Dvermilion.c784 u32 htotal, hactive, hblank_start, hblank_end, hsync_start, hsync_end; in vmlfb_set_par_locked() local
796 htotal = in vmlfb_set_par_locked()
800 hblank_end = htotal; in vmlfb_set_par_locked()
821 ": Set mode Hfreq : %d kHz, Vfreq : %d Hz.\n", clock / htotal, in vmlfb_set_par_locked()
822 ((clock / htotal) * 1000) / vtotal); in vmlfb_set_par_locked()
846 VML_WRITE32(par, VML_HTOTAL_A, ((htotal - 1) << 16) | (hactive - 1)); in vmlfb_set_par_locked()
/linux-2.6.39/drivers/staging/xgifb/
DXGI_main_26.c998 unsigned int htotal = var->left_margin + var->xres + var->right_margin in XGIfb_do_set_var() local
1026 if (!htotal || !vtotal) { in XGIfb_do_set_var()
1030 var->pixclock, htotal, vtotal); in XGIfb_do_set_var()
1032 if (var->pixclock && htotal && vtotal) { in XGIfb_do_set_var()
1034 hrate = (drate * 1000) / htotal; in XGIfb_do_set_var()
1280 unsigned int htotal = var->left_margin + var->xres + var->right_margin in XGIfb_check_var() local
1304 if (!(htotal) || !(vtotal)) in XGIfb_check_var()
1307 if (var->pixclock && htotal && vtotal) { in XGIfb_check_var()
1309 hrate = (drate * 1000) / htotal; in XGIfb_check_var()
1314 __func__, var->pixclock, htotal, vtotal, in XGIfb_check_var()
/linux-2.6.39/drivers/gpu/drm/i2c/
Dch7006_mode.c115 .htotal = ht, \
188 mode->mode.htotal != drm_mode->htotal || in ch7006_lookup_mode()
/linux-2.6.39/drivers/media/video/cx88/
Dcx88-core.c907 u32 bdelay,agcdelay,htotal; in cx88_set_tvnorm() local
997 htotal = (u32)tmp64 | (HLNotchFilter4xFsc << 11); in cx88_set_tvnorm()
999 htotal, cx_read(MO_HTOTAL), (u32)tmp64); in cx88_set_tvnorm()
1000 cx_write(MO_HTOTAL, htotal); in cx88_set_tvnorm()

123