/drivers/video/fbdev/geode/ |
D | video_cs5530.c | 137 int blank, hsync, vsync; in cs5530_blank_display() local 141 blank = 0; hsync = 1; vsync = 1; in cs5530_blank_display() 144 blank = 1; hsync = 1; vsync = 1; in cs5530_blank_display() 147 blank = 1; hsync = 1; vsync = 0; in cs5530_blank_display() 150 blank = 1; hsync = 0; vsync = 1; in cs5530_blank_display() 153 blank = 1; hsync = 0; vsync = 0; in cs5530_blank_display() 168 if (hsync) in cs5530_blank_display() 176 if (hsync && vsync) in cs5530_blank_display()
|
D | video_gx.c | 298 int blank, hsync, vsync, crt; in gx_blank_display() local 303 blank = 0; hsync = 1; vsync = 1; crt = 1; in gx_blank_display() 306 blank = 1; hsync = 1; vsync = 1; crt = 1; in gx_blank_display() 309 blank = 1; hsync = 1; vsync = 0; crt = 1; in gx_blank_display() 312 blank = 1; hsync = 0; vsync = 1; crt = 1; in gx_blank_display() 315 blank = 1; hsync = 0; vsync = 0; crt = 0; in gx_blank_display() 325 if (hsync) in gx_blank_display()
|
D | lxfb_ops.c | 525 int blank, hsync, vsync; in lx_blank_display() local 530 blank = 0; hsync = 1; vsync = 1; in lx_blank_display() 533 blank = 1; hsync = 1; vsync = 1; in lx_blank_display() 536 blank = 1; hsync = 1; vsync = 0; in lx_blank_display() 539 blank = 1; hsync = 0; vsync = 1; in lx_blank_display() 542 blank = 1; hsync = 0; vsync = 0; in lx_blank_display() 553 if (hsync) in lx_blank_display() 562 if (vsync && hsync) in lx_blank_display()
|
/drivers/media/v4l2-core/ |
D | v4l2-dv-timings.c | 178 bt->hsync > max_hor || bt->hbackporch > max_hor) in v4l2_valid_dv_timings() 280 t1->bt.hsync == t2->bt.hsync && in v4l2_match_dv_timings() 328 bt->hsync, bt->hbackporch); in v4l2_print_dv_timings() 498 int v_fp, v_bp, h_fp, h_bp, hsync; in v4l2_detect_cvt() local 601 hsync = CVT_RB_H_SYNC; in v4l2_detect_cvt() 602 h_fp = h_blank - h_bp - hsync; in v4l2_detect_cvt() 623 hsync = frame_width * CVT_HSYNC_PERCENT / 100; in v4l2_detect_cvt() 624 hsync = (hsync / CVT_CELL_GRAN) * CVT_CELL_GRAN; in v4l2_detect_cvt() 625 h_fp = h_blank - hsync - h_bp; in v4l2_detect_cvt() 634 fmt->bt.hsync = hsync; in v4l2_detect_cvt() [all …]
|
/drivers/video/fbdev/core/ |
D | fbcvt.c | 47 u32 hsync; member 127 u32 hsync; in fb_cvt_hsync() local 130 hsync = 32; in fb_cvt_hsync() 132 hsync = (FB_CVT_CELLSIZE * cvt->htotal)/100; in fb_cvt_hsync() 134 hsync &= ~(FB_CVT_CELLSIZE - 1); in fb_cvt_hsync() 135 return hsync; in fb_cvt_hsync() 266 mode->hsync_len = cvt->hsync; in fb_cvt_convert_to_mode() 355 cvt.hsync = fb_cvt_hsync(&cvt); in fb_find_mode_cvt() 359 cvt.h_front_porch = cvt.hblank - cvt.hsync - cvt.h_back_porch + in fb_find_mode_cvt()
|
/drivers/gpu/drm/gma500/ |
D | psb_intel_display.c | 268 REG_WRITE(map->hsync, (adjusted_mode->crtc_hsync_start - 1) | in psb_intel_crtc_mode_set() 383 int hsync; in psb_intel_crtc_mode_get() local 392 hsync = REG_READ(map->hsync); in psb_intel_crtc_mode_get() 398 hsync = p->hsync; in psb_intel_crtc_mode_get() 410 mode->hsync_start = (hsync & 0xffff) + 1; in psb_intel_crtc_mode_get() 411 mode->hsync_end = ((hsync & 0xffff0000) >> 16) + 1; in psb_intel_crtc_mode_get()
|
D | cdv_intel_display.c | 786 REG_WRITE(map->hsync, (adjusted_mode->crtc_hsync_start - 1) | in cdv_intel_crtc_mode_set() 923 int hsync; in cdv_intel_crtc_mode_get() local 929 hsync = REG_READ(map->hsync); in cdv_intel_crtc_mode_get() 935 hsync = p->hsync; in cdv_intel_crtc_mode_get() 947 mode->hsync_start = (hsync & 0xffff) + 1; in cdv_intel_crtc_mode_get() 948 mode->hsync_end = ((hsync & 0xffff0000) >> 16) + 1; in cdv_intel_crtc_mode_get()
|
D | oaktrail_device.c | 147 p->hsync = PSB_RVDC32(HSYNC_A); in oaktrail_save_display_registers() 267 PSB_WVDC32(p->hsync, HSYNC_A); in oaktrail_restore_display_registers() 405 .hsync = HSYNC_A, 429 .hsync = HSYNC_B,
|
D | psb_device.c | 207 .hsync = HSYNC_A, 231 .hsync = HSYNC_B,
|
D | psb_drv.h | 240 u32 hsync; member 274 u32 hsync; member
|
D | cdv_device.c | 506 .hsync = HSYNC_A, 531 .hsync = HSYNC_B,
|
D | oaktrail_crtc.c | 452 REG_WRITE_WITH_AUX(map->hsync, in oaktrail_crtc_mode_set() 470 REG_WRITE_WITH_AUX(map->hsync, (adjusted_mode->crtc_hsync_start - 1) | in oaktrail_crtc_mode_set()
|
/drivers/media/i2c/ |
D | ths8200.c | 225 ths8200_write(sd, THS8200_DTG1_SPEC_A, bt->hsync); in ths8200_setup() 236 (bt->hbackporch + bt->hsync) & 0xff); in ths8200_setup() 244 ((bt->hbackporch + bt->hsync) & 0x100) >> 1); in ths8200_setup() 302 ths8200_write(sd, THS8200_DTG2_HLENGTH_LSB, bt->hsync & 0xff); in ths8200_setup() 304 (bt->hsync >> 2) & 0xc0); in ths8200_setup() 358 bt->hsync, bt->vsync); in ths8200_setup()
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_rgb.c | 67 u32 hsync = mode->hsync_end - mode->hsync_start; in sun4i_rgb_mode_valid() local 75 if (hsync < 1) in sun4i_rgb_mode_valid() 78 if (hsync > 0x3ff) in sun4i_rgb_mode_valid()
|
D | sun4i_tcon.c | 510 unsigned int bp, hsync, vsync; in sun4i_tcon0_mode_set_rgb() local 556 hsync = mode->crtc_hsync_end - mode->crtc_hsync_start; in sun4i_tcon0_mode_set_rgb() 558 DRM_DEBUG_DRIVER("Setting HSYNC %d, VSYNC %d\n", hsync, vsync); in sun4i_tcon0_mode_set_rgb() 561 SUN4I_TCON0_BASIC3_H_SYNC(hsync)); in sun4i_tcon0_mode_set_rgb() 595 unsigned int bp, hsync, vsync, vtotal; in sun4i_tcon1_mode_set() local 669 hsync = mode->crtc_hsync_end - mode->crtc_hsync_start; in sun4i_tcon1_mode_set() 671 DRM_DEBUG_DRIVER("Setting HSYNC %d, VSYNC %d\n", hsync, vsync); in sun4i_tcon1_mode_set() 674 SUN4I_TCON1_BASIC5_H_SYNC(hsync)); in sun4i_tcon1_mode_set()
|
/drivers/gpu/drm/i915/display/ |
D | vlv_dsi.c | 1099 u16 hactive, hfp, hsync, hbp, vfp, vsync, vbp; in bxt_dsi_get_pipe_config() local 1144 hsync = intel_de_read(dev_priv, MIPI_HSYNC_PADDING_COUNT(port)); in bxt_dsi_get_pipe_config() 1150 hsync = pixels_from_txbyteclkhs(hsync, bpp, lane_count, in bxt_dsi_get_pipe_config() 1157 hsync *= 2; in bxt_dsi_get_pipe_config() 1166 adjusted_mode->crtc_htotal = hactive + hfp + hsync + hbp; in bxt_dsi_get_pipe_config() 1168 adjusted_mode->crtc_hsync_end = hsync + adjusted_mode->crtc_hsync_start; in bxt_dsi_get_pipe_config() 1300 u16 hactive, hfp, hsync, hbp, vfp, vsync, vbp; in set_dsi_timings() local 1304 hsync = adjusted_mode->crtc_hsync_end - adjusted_mode->crtc_hsync_start; in set_dsi_timings() 1312 hsync /= 2; in set_dsi_timings() 1324 hsync = txbyteclkhs(hsync, bpp, lane_count, in set_dsi_timings() [all …]
|
/drivers/gpu/drm/sti/ |
D | sti_vtg.c | 117 u32 hsync; member 212 sync->hsync = (stop << 16) | start; in vtg_set_hsync_vsync_pos() 268 writel(sync[i].hsync, in vtg_set_mode()
|
/drivers/gpu/drm/stm/ |
D | dw_mipi_dsi-stm.c | 367 int dsi_short_packet_size_px, hfp, hsync, hbp, delay_to_lp; in dw_mipi_dsi_stm_mode_valid() local 387 hsync = mode->hsync_end - mode->hsync_start; in dw_mipi_dsi_stm_mode_valid() 391 if (hsync < dsi_short_packet_size_px) in dw_mipi_dsi_stm_mode_valid() 401 hbp += hsync - dsi_short_packet_size_px; in dw_mipi_dsi_stm_mode_valid()
|
/drivers/gpu/drm/mediatek/ |
D | mtk_dpi.c | 501 struct mtk_dpi_sync_param hsync; in mtk_dpi_set_display_mode() local 553 hsync.sync_width = vm.hsync_len / dpi->conf->pixels_per_iter; in mtk_dpi_set_display_mode() 554 hsync.back_porch = vm.hback_porch / dpi->conf->pixels_per_iter; in mtk_dpi_set_display_mode() 555 hsync.front_porch = vm.hfront_porch / dpi->conf->pixels_per_iter; in mtk_dpi_set_display_mode() 557 hsync.shift_half_line = false; in mtk_dpi_set_display_mode() 581 mtk_dpi_config_hsync(dpi, &hsync); in mtk_dpi_set_display_mode()
|
/drivers/media/platform/aspeed/ |
D | aspeed-video.c | 903 u32 mds, sync, htotal, vtotal, vsync, hsync; in aspeed_video_get_timings() local 910 hsync = FIELD_GET(VE_SYNC_STATUS_HSYNC, sync); in aspeed_video_get_timings() 921 if (hsync > det->width) in aspeed_video_get_timings() 937 det->hbackporch = v->frame_left - hsync; in aspeed_video_get_timings() 939 det->hsync = hsync; in aspeed_video_get_timings() 942 det->hfrontporch = hsync - v->frame_right; in aspeed_video_get_timings() 943 det->hsync = htotal - hsync; in aspeed_video_get_timings()
|
/drivers/gpu/drm/ |
D | drm_modes.c | 399 int hsync, hfront_porch, vodd_front_porch_lines; in drm_gtf_mode_complex() local 504 hsync = H_SYNC_PERCENT * total_pixels / 100; in drm_gtf_mode_complex() 505 hsync = (hsync + GTF_CELL_GRAN / 2) / GTF_CELL_GRAN; in drm_gtf_mode_complex() 506 hsync = hsync * GTF_CELL_GRAN; in drm_gtf_mode_complex() 508 hfront_porch = hblank / 2 - hsync; in drm_gtf_mode_complex() 515 drm_mode->hsync_end = drm_mode->hsync_start + hsync; in drm_gtf_mode_complex()
|
/drivers/gpu/drm/bridge/ |
D | chipone-icn6211.c | 350 u16 hfp, hbp, hsync; in chipone_atomic_enable() local 390 hsync = mode->hsync_end - mode->hsync_start; in chipone_atomic_enable() 394 chipone_writeb(icn, HSYNC_LI, hsync & 0xff); in chipone_atomic_enable() 399 HFP_HSW_HBP_HI_HS(hsync) | in chipone_atomic_enable()
|
/drivers/video/fbdev/ |
D | pxa168fb.h | 380 #define CFG_INV_HSYNC(hsync) ((hsync) << 2) argument
|
D | atafb.c | 825 int right, hsync, left; /* standard timing in clock cycles, not pixel */ member 1043 hsync_len = pclock->hsync / plen; in falcon_decode_var() 1071 if ((plen * xres + f25.right + f25.hsync + f25.left) * in falcon_decode_var() 1074 else if ((plen * xres + f32.right + f32.hsync + in falcon_decode_var() 1077 else if ((plen * xres + fext.right + fext.hsync + in falcon_decode_var() 1086 hsync_len = pclock->hsync / plen; in falcon_decode_var() 1750 f25.hsync = h_syncs[mon_type] / f25.t; in falcon_detect() 1751 f32.hsync = h_syncs[mon_type] / f32.t; in falcon_detect() 1753 fext.hsync = h_syncs[mon_type] / fext.t; in falcon_detect()
|
D | w100fb.c | 1518 unsigned long hsync; in calc_hsync() local 1523 hsync=par->mach->xtal_freq; in calc_hsync() 1525 hsync=((par->fastpll_mode && mode->fast_pll_freq) ? mode->fast_pll_freq : mode->pll_freq)*100000; in calc_hsync() 1527 hsync /= (w100_pwr_state.pclk_cntl.f.pclk_post_div + 1); in calc_hsync() 1531 par->hsync_len = hsync / (crtc_ss.f.ss_end-crtc_ss.f.ss_start); in calc_hsync()
|