/drivers/video/fbdev/core/ |
D | fbcvt.c | 42 u32 hblank; member 103 u32 hblank = 0; in fb_cvt_hblank() local 106 hblank = FB_CVT_RB_HBLANK; in fb_cvt_hblank() 112 hblank = (active_pixels * 20000)/ in fb_cvt_hblank() 115 hblank = (active_pixels * ideal_duty_cycle)/ in fb_cvt_hblank() 120 hblank &= ~((2 * FB_CVT_CELLSIZE) - 1); in fb_cvt_hblank() 122 return hblank; in fb_cvt_hblank() 353 cvt.hblank = fb_cvt_hblank(&cvt); in fb_find_mode_cvt() 354 cvt.htotal = cvt.active_pixels + cvt.hblank; in fb_find_mode_cvt() 358 cvt.h_back_porch = cvt.hblank/2 + cvt.h_margin; in fb_find_mode_cvt() [all …]
|
D | fbmon.c | 1022 u32 hblank; member 1074 u32 c_val, m_val, duty_cycle, hblank; in fb_get_hblank_by_hfreq() local 1081 hblank = (xres * duty_cycle)/(100000 - duty_cycle); in fb_get_hblank_by_hfreq() 1082 return (hblank); in fb_get_hblank_by_hfreq() 1107 u32 duty_cycle, h_period, hblank; in fb_get_hblank_by_dclk() local 1121 hblank = (xres * duty_cycle)/(100000 - duty_cycle) + 8; in fb_get_hblank_by_dclk() 1122 hblank &= ~15; in fb_get_hblank_by_dclk() 1123 return (hblank); in fb_get_hblank_by_dclk() 1153 timings->hblank = fb_get_hblank_by_hfreq(timings->hfreq, in fb_timings_vfreq() 1155 timings->htotal = timings->hactive + timings->hblank; in fb_timings_vfreq() [all …]
|
/drivers/media/i2c/ |
D | ov5647.c | 108 struct v4l2_ctrl *hblank; member 995 int hblank, vblank; in ov5647_set_pad_fmt() local 1001 hblank = mode->hts - mode->format.width; in ov5647_set_pad_fmt() 1002 __v4l2_ctrl_modify_range(sensor->hblank, hblank, hblank, 1, in ov5647_set_pad_fmt() 1003 hblank); in ov5647_set_pad_fmt() 1271 int hblank, exposure_max, exposure_def; in ov5647_init_controls() local 1305 hblank = sensor->mode->hts - sensor->mode->format.width; in ov5647_init_controls() 1306 sensor->hblank = v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops, in ov5647_init_controls() 1307 V4L2_CID_HBLANK, hblank, hblank, 1, in ov5647_init_controls() 1308 hblank); in ov5647_init_controls() [all …]
|
D | imx219.c | 469 struct v4l2_ctrl *hblank; member 816 int exposure_max, exposure_def, hblank; in imx219_set_pad_format() local 861 hblank = IMX219_PPL_DEFAULT - mode->width; in imx219_set_pad_format() 862 __v4l2_ctrl_modify_range(imx219->hblank, hblank, hblank, 1, in imx219_set_pad_format() 863 hblank); in imx219_set_pad_format() 1235 int exposure_max, exposure_def, hblank; in imx219_init_controls() local 1266 hblank = IMX219_PPL_DEFAULT - imx219->mode->width; in imx219_init_controls() 1267 imx219->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &imx219_ctrl_ops, in imx219_init_controls() 1268 V4L2_CID_HBLANK, hblank, hblank, in imx219_init_controls() 1269 1, hblank); in imx219_init_controls() [all …]
|
D | imx319.c | 123 struct v4l2_ctrl *hblank; member 2078 __v4l2_ctrl_modify_range(imx319->hblank, h_blank, in imx319_set_pad_format() 2267 s64 hblank; in imx319_init_controls() local 2303 hblank = mode->llp - mode->width; in imx319_init_controls() 2304 imx319->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &imx319_ctrl_ops, in imx319_init_controls() 2305 V4L2_CID_HBLANK, hblank, hblank, in imx319_init_controls() 2306 1, hblank); in imx319_init_controls() 2307 if (imx319->hblank) in imx319_init_controls() 2308 imx319->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx319_init_controls()
|
D | ov13858.c | 1038 struct v4l2_ctrl *hblank; member 1396 __v4l2_ctrl_modify_range(ov13858->hblank, h_blank, in ov13858_set_pad_format() 1594 s64 hblank; in ov13858_init_controls() local 1632 hblank = link_freq_configs[mode->link_freq_index].pixels_per_line - in ov13858_init_controls() 1634 ov13858->hblank = v4l2_ctrl_new_std( in ov13858_init_controls() 1636 hblank, hblank, 1, hblank); in ov13858_init_controls() 1637 if (ov13858->hblank) in ov13858_init_controls() 1638 ov13858->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov13858_init_controls()
|
D | imx355.c | 109 struct v4l2_ctrl *hblank; member 1379 __v4l2_ctrl_modify_range(imx355->hblank, h_blank, in imx355_set_pad_format() 1567 s64 hblank; in imx355_init_controls() local 1603 hblank = mode->llp - mode->width; in imx355_init_controls() 1604 imx355->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &imx355_ctrl_ops, in imx355_init_controls() 1605 V4L2_CID_HBLANK, hblank, hblank, in imx355_init_controls() 1606 1, hblank); in imx355_init_controls() 1607 if (imx355->hblank) in imx355_init_controls() 1608 imx355->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx355_init_controls()
|
D | mt9v011.c | 204 unsigned height, width, hblank, vblank, speed; in calc_fps() local 211 hblank = mt9v011_read(sd, R05_MT9V011_HBLANK); in calc_fps() 215 row_time = (width + 113 + hblank) * (speed + 2); in calc_fps() 234 unsigned height, width, hblank, vblank; in calc_speed() local 244 hblank = mt9v011_read(sd, R05_MT9V011_HBLANK); in calc_speed() 247 row_time = width + 113 + hblank; in calc_speed()
|
D | imx335.c | 95 u32 hblank; member 242 .hblank = 342, 377 ret = __v4l2_ctrl_s_ctrl(imx335->hblank_ctrl, mode->hblank); in imx335_update_controls() 974 mode->hblank, in imx335_init_controls() 975 mode->hblank, in imx335_init_controls() 976 1, mode->hblank); in imx335_init_controls()
|
D | mt9v032.c | 213 u16 hblank; member 250 unsigned int hblank; in mt9v032_update_hblank() local 256 hblank = max_t(unsigned int, mt9v032->hblank, min_hblank); in mt9v032_update_hblank() 259 hblank); in mt9v032_update_hblank() 674 mt9v032->hblank = ctrl->val; in mt9v032_s_ctrl() 1169 mt9v032->hblank = MT9V032_HORIZONTAL_BLANKING_DEF; in mt9v032_probe()
|
D | ov5670.c | 1824 struct v4l2_ctrl *hblank; member 2100 ov5670->hblank = v4l2_ctrl_new_std( in ov5670_init_controls() 2105 if (ov5670->hblank) in ov5670_init_controls() 2106 ov5670->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5670_init_controls() 2259 __v4l2_ctrl_modify_range(ov5670->hblank, h_blank, h_blank, 1, in ov5670_set_pad_format()
|
D | hi556.c | 487 struct v4l2_ctrl *hblank; member 721 hi556->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &hi556_ctrl_ops, in hi556_init_controls() 724 if (hi556->hblank) in hi556_init_controls() 725 hi556->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in hi556_init_controls() 910 __v4l2_ctrl_modify_range(hi556->hblank, h_blank, h_blank, 1, in hi556_set_format()
|
D | ov5695.c | 107 struct v4l2_ctrl *hblank; member 830 __v4l2_ctrl_modify_range(ov5695->hblank, h_blank, in ov5695_set_fmt() 1189 ov5695->hblank = v4l2_ctrl_new_std(handler, NULL, V4L2_CID_HBLANK, in ov5695_initialize_controls() 1191 if (ov5695->hblank) in ov5695_initialize_controls() 1192 ov5695->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5695_initialize_controls()
|
D | ov5675.c | 485 struct v4l2_ctrl *hblank; member 767 ov5675->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls() 770 if (ov5675->hblank) in ov5675_init_controls() 771 ov5675->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5675_init_controls() 959 __v4l2_ctrl_modify_range(ov5675->hblank, h_blank, h_blank, 1, in ov5675_set_format()
|
D | imx258.c | 612 struct v4l2_ctrl *hblank; member 935 __v4l2_ctrl_modify_range(imx258->hblank, h_blank, in imx258_set_pad_format() 1195 imx258->hblank = v4l2_ctrl_new_std( in imx258_init_controls() 1202 if (imx258->hblank) in imx258_init_controls() 1203 imx258->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx258_init_controls()
|
D | ov9734.c | 332 struct v4l2_ctrl *hblank; member 575 ov9734->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &ov9734_ctrl_ops, in ov9734_init_controls() 578 if (ov9734->hblank) in ov9734_init_controls() 579 ov9734->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov9734_init_controls() 761 __v4l2_ctrl_modify_range(ov9734->hblank, h_blank, h_blank, 1, in ov9734_set_format()
|
D | ov2685.c | 95 struct v4l2_ctrl *hblank; member 636 ov2685->hblank = v4l2_ctrl_new_std(handler, NULL, V4L2_CID_HBLANK, in ov2685_initialize_controls() 638 if (ov2685->hblank) in ov2685_initialize_controls() 639 ov2685->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov2685_initialize_controls()
|
D | imx208.c | 279 struct v4l2_ctrl *hblank; member 613 __v4l2_ctrl_modify_range(imx208->hblank, h_blank, in imx208_set_pad_format() 906 imx208->hblank = in imx208_init_controls() 913 if (imx208->hblank) in imx208_init_controls() 914 imx208->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx208_init_controls()
|
D | imx412.c | 95 u32 hblank; member 389 .hblank = 456, 520 ret = __v4l2_ctrl_s_ctrl(imx412->hblank_ctrl, mode->hblank); in imx412_update_controls() 1119 1, mode->hblank); in imx412_init_controls()
|
D | imx334.c | 95 u32 hblank; member 250 .hblank = 560, 385 ret = __v4l2_ctrl_s_ctrl(imx334->hblank_ctrl, mode->hblank); in imx334_update_controls() 982 1, mode->hblank); in imx334_init_controls()
|
/drivers/gpu/drm/ |
D | drm_modes.c | 236 int vsyncandback_porch, __maybe_unused vback_porch, hblank; in drm_cvt_mode() local 273 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode() 275 hblank -= hblank % (2 * CVT_H_GRANULARITY); in drm_cvt_mode() 277 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode() 278 drm_mode->hsync_end = drm_mode->hdisplay + hblank / 2; in drm_cvt_mode() 395 unsigned int hblank, total_pixels, pixel_freq; in drm_gtf_mode_complex() local 488 hblank = total_active_pixels * ideal_duty_cycle / in drm_gtf_mode_complex() 490 hblank = (hblank + GTF_CELL_GRAN) / (2 * GTF_CELL_GRAN); in drm_gtf_mode_complex() 491 hblank = hblank * 2 * GTF_CELL_GRAN; in drm_gtf_mode_complex() 493 total_pixels = total_active_pixels + hblank; in drm_gtf_mode_complex() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_encoders.c | 169 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in amdgpu_panel_mode_fixup() local 182 adjusted_mode->htotal = native_mode->hdisplay + hblank; in amdgpu_panel_mode_fixup() 195 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in amdgpu_panel_mode_fixup()
|
/drivers/gpu/drm/radeon/ |
D | radeon_encoders.c | 324 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup() local 339 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup() 354 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in radeon_panel_mode_fixup()
|
/drivers/gpu/drm/gma500/ |
D | oaktrail_device.c | 201 p->hblank = PSB_RVDC32(HBLANK_A); in oaktrail_save_display_registers() 321 PSB_WVDC32(p->hblank, HBLANK_A); in oaktrail_restore_display_registers() 459 .hblank = HBLANK_A, 483 .hblank = HBLANK_B,
|
/drivers/media/pci/cx18/ |
D | cx18-av-core.c | 285 int hblank, hactive, burst, vblank, vactive, sc; in cx18_av_std_setup() local 347 hblank = 132; in cx18_av_std_setup() 408 hblank = 122; in cx18_av_std_setup() 470 hblank, hactive, vblank, vactive, vblank656, in cx18_av_std_setup() 476 cx18_av_write(cx, 0x470, hblank); in cx18_av_std_setup() 478 (((hblank >> 8) & 0x3) | (hactive << 4)) & 0xff); in cx18_av_std_setup()
|