Home
last modified time | relevance | path

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

123

/drivers/media/v4l2-core/
Dv4l2-dv-timings.c272 t1->bt.vsync == t2->bt.vsync && in v4l2_match_dv_timings()
321 bt->vsync, bt->vbackporch); in v4l2_print_dv_timings()
333 bt->vsync == 8) ? " (V2)" : "", in v4l2_print_dv_timings()
442 unsigned vsync, in v4l2_detect_cvt() argument
454 if (vsync < 4 || vsync > 8) in v4l2_detect_cvt()
464 if (reduced_blanking && vsync == 8) in v4l2_detect_cvt()
470 if (!rb_v2 && vsync > 7) in v4l2_detect_cvt()
481 v_fp -= vsync + v_bp; in v4l2_detect_cvt()
488 v_bp -= vsync + v_fp; in v4l2_detect_cvt()
495 v_bp = (CVT_MIN_VSYNC_BP * hfreq) / 1000000 + 1 - vsync; in v4l2_detect_cvt()
[all …]
/drivers/video/fbdev/geode/
Dvideo_cs5530.c141 int blank, hsync, vsync; in cs5530_blank_display() local
145 blank = 0; hsync = 1; vsync = 1; in cs5530_blank_display()
148 blank = 1; hsync = 1; vsync = 1; in cs5530_blank_display()
151 blank = 1; hsync = 1; vsync = 0; in cs5530_blank_display()
154 blank = 1; hsync = 0; vsync = 1; in cs5530_blank_display()
157 blank = 1; hsync = 0; vsync = 0; in cs5530_blank_display()
174 if (vsync) in cs5530_blank_display()
180 if (hsync && vsync) in cs5530_blank_display()
Dvideo_gx.c302 int blank, hsync, vsync, crt; in gx_blank_display() local
307 blank = 0; hsync = 1; vsync = 1; crt = 1; in gx_blank_display()
310 blank = 1; hsync = 1; vsync = 1; crt = 1; in gx_blank_display()
313 blank = 1; hsync = 1; vsync = 0; crt = 1; in gx_blank_display()
316 blank = 1; hsync = 0; vsync = 1; crt = 1; in gx_blank_display()
319 blank = 1; hsync = 0; vsync = 0; crt = 0; in gx_blank_display()
331 if (vsync) in gx_blank_display()
Dlxfb_ops.c529 int blank, hsync, vsync; in lx_blank_display() local
534 blank = 0; hsync = 1; vsync = 1; in lx_blank_display()
537 blank = 1; hsync = 1; vsync = 1; in lx_blank_display()
540 blank = 1; hsync = 1; vsync = 0; in lx_blank_display()
543 blank = 1; hsync = 0; vsync = 1; in lx_blank_display()
546 blank = 1; hsync = 0; vsync = 0; in lx_blank_display()
559 if (vsync) in lx_blank_display()
566 if (vsync && hsync) in lx_blank_display()
/drivers/gpu/drm/gma500/
Dpsb_intel_display.c282 REG_WRITE(map->vsync, (adjusted_mode->crtc_vsync_start - 1) | in psb_intel_crtc_mode_set()
393 int vsync; in psb_intel_crtc_mode_get() local
402 vsync = REG_READ(map->vsync); in psb_intel_crtc_mode_get()
408 vsync = p->vsync; in psb_intel_crtc_mode_get()
422 mode->vsync_start = (vsync & 0xffff) + 1; in psb_intel_crtc_mode_get()
423 mode->vsync_end = ((vsync & 0xffff0000) >> 16) + 1; in psb_intel_crtc_mode_get()
Dmdfld_device.c205 pipe->vsync = PSB_RVDC32(map->vsync); in mdfld_save_display_registers()
331 PSB_WVDC32(pipe->vsync, map->vsync); in mdfld_restore_display_registers()
460 .vsync = VSYNC_A,
482 .vsync = VSYNC_B,
505 .vsync = VSYNC_C,
Dcdv_intel_display.c807 REG_WRITE(map->vsync, (adjusted_mode->crtc_vsync_start - 1) | in cdv_intel_crtc_mode_set()
940 int vsync; in cdv_intel_crtc_mode_get() local
946 vsync = REG_READ(map->vsync); in cdv_intel_crtc_mode_get()
952 vsync = p->vsync; in cdv_intel_crtc_mode_get()
966 mode->vsync_start = (vsync & 0xffff) + 1; in cdv_intel_crtc_mode_get()
967 mode->vsync_end = ((vsync & 0xffff0000) >> 16) + 1; in cdv_intel_crtc_mode_get()
Doaktrail_device.c218 p->vsync = PSB_RVDC32(VSYNC_A); in oaktrail_save_display_registers()
338 PSB_WVDC32(p->vsync, VSYNC_A); in oaktrail_restore_display_registers()
476 .vsync = VSYNC_A,
500 .vsync = VSYNC_B,
Dpsb_device.c275 .vsync = VSYNC_A,
299 .vsync = VSYNC_B,
/drivers/video/fbdev/core/
Dfbcvt.c46 u32 vsync; member
144 min_vbi_lines = FB_CVT_RB_V_FPORCH + cvt->vsync + in fb_cvt_vbi_lines()
150 min_vbi_lines = cvt->vsync + FB_CVT_MIN_BPORCH + in fb_cvt_vbi_lines()
280 mode->vsync_len = cvt->vsync; in fb_cvt_convert_to_mode()
362 cvt.vsync = fb_cvt_vbi_tab[cvt.aspect_ratio]; in fb_find_mode_cvt()
374 cvt.v_front_porch - cvt.vsync; in fb_find_mode_cvt()
/drivers/gpu/drm/sun4i/
Dsun4i_tcon.c156 unsigned int bp, hsync, vsync; in sun4i_tcon0_mode_set() local
202 vsync = mode->crtc_vsync_end - mode->crtc_vsync_start; in sun4i_tcon0_mode_set()
203 DRM_DEBUG_DRIVER("Setting HSYNC %d, VSYNC %d\n", hsync, vsync); in sun4i_tcon0_mode_set()
205 SUN4I_TCON0_BASIC3_V_SYNC(vsync) | in sun4i_tcon0_mode_set()
232 unsigned int bp, hsync, vsync, vtotal; in sun4i_tcon1_mode_set() local
307 vsync = mode->crtc_vsync_end - mode->crtc_vsync_start; in sun4i_tcon1_mode_set()
308 DRM_DEBUG_DRIVER("Setting HSYNC %d, VSYNC %d\n", hsync, vsync); in sun4i_tcon1_mode_set()
310 SUN4I_TCON1_BASIC5_V_SYNC(vsync) | in sun4i_tcon1_mode_set()
Dsun4i_rgb.c61 u32 vsync = mode->vsync_end - mode->vsync_start; in sun4i_rgb_mode_valid() local
81 if (vsync < 1) in sun4i_rgb_mode_valid()
84 if (vsync > 0x3ff) in sun4i_rgb_mode_valid()
/drivers/gpu/drm/
Ddrm_modes.c160 int hdisplay_rnd, hmargin, vdisplay_rnd, vmargin, vsync; in drm_cvt_mode() local
214 vsync = 4; in drm_cvt_mode()
216 vsync = 5; in drm_cvt_mode()
218 vsync = 6; in drm_cvt_mode()
220 vsync = 7; in drm_cvt_mode()
222 vsync = 7; in drm_cvt_mode()
224 vsync = 10; in drm_cvt_mode()
247 if (tmp1 < (vsync + CVT_MIN_V_PORCH)) in drm_cvt_mode()
248 vsyncandback_porch = vsync + CVT_MIN_V_PORCH; in drm_cvt_mode()
252 vback_porch = vsyncandback_porch - vsync; in drm_cvt_mode()
[all …]
/drivers/gpu/drm/i915/
Ddvo_ns2501.c215 uint16_t vsync; /* manual vertical sync start, 80/81 */ member
242 .vsync = 2047, /* actually, ignored with this config */
262 .vsync = 807,
281 .vsync = 2047,
624 ns2501_writeb(dvo, NS2501_REG80, conf->vsync & 0xff); in ns2501_mode_set()
625 ns2501_writeb(dvo, NS2501_REG81, conf->vsync >> 8); in ns2501_mode_set()
/drivers/media/usb/pwc/
Dpwc-if.c248 pdev->vsync = 0; in pwc_frame_complete()
296 pdev->vsync = 0; /* Drop the current frame */ in pwc_isoc_handler()
316 if (flen > 0 && pdev->vsync) { in pwc_isoc_handler()
319 if (pdev->vsync == 1) { in pwc_isoc_handler()
321 pdev->vsync = 2; in pwc_isoc_handler()
328 pdev->vsync = 0; /* Let's wait for an EOF */ in pwc_isoc_handler()
337 if (pdev->vsync == 2) in pwc_isoc_handler()
343 pdev->vsync = 1; in pwc_isoc_handler()
365 pdev->vsync = 0; in pwc_isoc_init()
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Ddacnv50.c67 bool data, bool vsync, bool hsync) in nv50_dac_power() argument
74 0x00000004 * ! vsync | in nv50_dac_power()
Dsornv50.c48 bool data, bool vsync, bool hsync) in nv50_sor_power() argument
Dpiornv50.c59 bool data, bool vsync, bool hsync) in nv50_pior_power() argument
/drivers/video/fbdev/intelfb/
Dintelfbhw.c402 dinfo->vsync.pan_offset = offset; in intelfbhw_pan_display()
405 dinfo->vsync.pan_display = 1; in intelfbhw_pan_display()
407 dinfo->vsync.pan_display = 0; in intelfbhw_pan_display()
2030 if (dinfo->vsync.pan_display) { in intelfbhw_irq()
2031 dinfo->vsync.pan_display = 0; in intelfbhw_irq()
2032 OUTREG(DSPABASE, dinfo->vsync.pan_offset); in intelfbhw_irq()
2035 dinfo->vsync.count++; in intelfbhw_irq()
2036 wake_up_interruptible(&dinfo->vsync.wait); in intelfbhw_irq()
2075 if (dinfo->vsync.pan_display) { in intelfbhw_disable_irq()
2076 dinfo->vsync.pan_display = 0; in intelfbhw_disable_irq()
[all …]
/drivers/media/i2c/
Dths8200.c217 uint16_t line_start_active_video = (bt->vsync + bt->vbackporch); in ths8200_setup()
312 ths8200_write(sd, THS8200_DTG2_VLENGTH1_LSB, (bt->vsync + 1) & 0xff); in ths8200_setup()
314 ((bt->vsync + 1) >> 2) & 0xc0); in ths8200_setup()
358 bt->hsync, bt->vsync); in ths8200_setup()
/drivers/media/platform/soc_camera/
Dsoc_mediabus.c486 bool hsync = true, vsync = true, pclk, data, mode; in soc_mbus_config_compatible() local
495 vsync = common_flags & (V4L2_MBUS_VSYNC_ACTIVE_HIGH | in soc_mbus_config_compatible()
504 return (!hsync || !vsync || !pclk || !data || !mode) ? in soc_mbus_config_compatible()
/drivers/video/fbdev/
Dsh7760fb.c47 struct completion vsync; /* vsync irq event */ member
480 "sh7760-lcdc", &par->vsync); in sh7760fb_probe()
551 free_irq(par->irq, &par->vsync); in sh7760fb_probe()
570 free_irq(par->irq, &par->vsync); in sh7760fb_remove()
Dnuc900fb.c205 int vsync = var->height + var->lower_margin; in nuc900fb_calculate_lcd_regs() local
215 regs->lcd_crtc_vr = LCM_CRTC_VR_EVAL(vsync + var->vsync_len) | in nuc900fb_calculate_lcd_regs()
216 LCM_CRTC_VR_SVAL(vsync); in nuc900fb_calculate_lcd_regs()
/drivers/gpu/drm/stm/
Dltdc.c413 u32 hsync, vsync, accum_hbp, accum_vbp, accum_act_w, accum_act_h; in ltdc_crtc_mode_set_nofb() local
427 vsync = vm.vsync_len - 1; in ltdc_crtc_mode_set_nofb()
429 accum_vbp = vsync + vm.vback_porch; in ltdc_crtc_mode_set_nofb()
463 val = (hsync << 16) | vsync; in ltdc_crtc_mode_set_nofb()
/drivers/video/fbdev/matrox/
Dmatroxfb_base.c211 minfo->crtc1.vsync.cnt++; in matrox_irq()
213 wake_up_interruptible(&minfo->crtc1.vsync.wait); in matrox_irq()
218 minfo->crtc2.vsync.cnt++; in matrox_irq()
219 wake_up_interruptible(&minfo->crtc2.vsync.wait); in matrox_irq()
276 vs = &minfo->crtc1.vsync; in matroxfb_wait_for_sync()
282 vs = &minfo->crtc2.vsync; in matroxfb_wait_for_sync()
864 vblank->count = minfo->crtc1.vsync.cnt; in matroxfb_get_vblank()
2097 init_waitqueue_head(&minfo->crtc1.vsync.wait); in matroxfb_probe()
2098 init_waitqueue_head(&minfo->crtc2.vsync.wait); in matroxfb_probe()

123