Home
last modified time | relevance | path

Searched refs:hblank (Results 1 – 25 of 63) sorted by relevance

123

/drivers/video/fbdev/core/
Dfbcvt.c42 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 …]
Dfbmon.c1022 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/
Dov5647.c108 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 …]
Dimx219.c469 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 …]
Dov5693.c185 struct v4l2_ctrl *hblank; member
951 unsigned int hblank; in ov5693_set_fmt() local
1002 hblank = OV5693_FIXED_PPL - fmt->width; in ov5693_set_fmt()
1003 __v4l2_ctrl_modify_range(ov5693->ctrls.hblank, hblank, hblank, 1, in ov5693_set_fmt()
1004 hblank); in ov5693_set_fmt()
1215 int hblank; in ov5693_init_controls() local
1264 hblank = OV5693_FIXED_PPL - ov5693->mode.format.width; in ov5693_init_controls()
1265 ctrls->hblank = v4l2_ctrl_new_std(&ctrls->handler, ops, in ov5693_init_controls()
1266 V4L2_CID_HBLANK, hblank, in ov5693_init_controls()
1267 hblank, 1, hblank); in ov5693_init_controls()
[all …]
Dov13858.c1039 struct v4l2_ctrl *hblank; member
1397 __v4l2_ctrl_modify_range(ov13858->hblank, h_blank, in ov13858_set_pad_format()
1602 s64 hblank; in ov13858_init_controls() local
1640 hblank = link_freq_configs[mode->link_freq_index].pixels_per_line - in ov13858_init_controls()
1642 ov13858->hblank = v4l2_ctrl_new_std( in ov13858_init_controls()
1644 hblank, hblank, 1, hblank); in ov13858_init_controls()
1645 if (ov13858->hblank) in ov13858_init_controls()
1646 ov13858->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov13858_init_controls()
Dov13b10.c581 struct v4l2_ctrl *hblank; member
1020 __v4l2_ctrl_modify_range(ov13b->hblank, h_blank, in ov13b10_set_pad_format()
1213 s64 hblank; in ov13b10_init_controls() local
1254 hblank = link_freq_configs[mode->link_freq_index].pixels_per_line - in ov13b10_init_controls()
1256 ov13b->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &ov13b10_ctrl_ops, in ov13b10_init_controls()
1258 hblank, hblank, 1, hblank); in ov13b10_init_controls()
1259 if (ov13b->hblank) in ov13b10_init_controls()
1260 ov13b->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov13b10_init_controls()
Dimx319.c123 struct v4l2_ctrl *hblank; member
2080 __v4l2_ctrl_modify_range(imx319->hblank, h_blank, in imx319_set_pad_format()
2278 s64 hblank; in imx319_init_controls() local
2314 hblank = mode->llp - mode->width; in imx319_init_controls()
2315 imx319->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &imx319_ctrl_ops, in imx319_init_controls()
2316 V4L2_CID_HBLANK, hblank, hblank, in imx319_init_controls()
2317 1, hblank); in imx319_init_controls()
2318 if (imx319->hblank) in imx319_init_controls()
2319 imx319->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx319_init_controls()
Dimx355.c109 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()
Dmt9v011.c204 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()
Dimx335.c95 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()
Dov8865.c679 struct v4l2_ctrl *hblank; member
2525 unsigned int hblank; in ov8865_ctrls_init() local
2563 hblank = mode->hts - mode->output_size_x; in ov8865_ctrls_init()
2564 ctrls->hblank = v4l2_ctrl_new_std(handler, ops, V4L2_CID_HBLANK, hblank, in ov8865_ctrls_init()
2565 hblank, 1, hblank); in ov8865_ctrls_init()
2567 if (ctrls->hblank) in ov8865_ctrls_init()
2568 ctrls->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov8865_ctrls_init()
2732 unsigned int hblank; in ov8865_set_fmt() local
2778 hblank = mode->hts - mode->output_size_x; in ov8865_set_fmt()
2779 __v4l2_ctrl_modify_range(sensor->ctrls.hblank, hblank, hblank, 1, in ov8865_set_fmt()
[all …]
Dov7251.c149 struct v4l2_ctrl *hblank; member
1542 int hblank; in ov7251_init_ctrls() local
1577 hblank = OV7251_FIXED_PPL - ov7251->current_mode->width; in ov7251_init_ctrls()
1578 ov7251->hblank = v4l2_ctrl_new_std(&ov7251->ctrls, &ov7251_ctrl_ops, in ov7251_init_ctrls()
1579 V4L2_CID_HBLANK, hblank, hblank, 1, in ov7251_init_ctrls()
1580 hblank); in ov7251_init_ctrls()
1581 if (ov7251->hblank) in ov7251_init_ctrls()
1582 ov7251->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov7251_init_ctrls()
Dog01a1b.c429 struct v4l2_ctrl *hblank; member
641 og01a1b->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &og01a1b_ctrl_ops, in og01a1b_init_controls()
644 if (og01a1b->hblank) in og01a1b_init_controls()
645 og01a1b->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in og01a1b_init_controls()
835 __v4l2_ctrl_modify_range(og01a1b->hblank, h_blank, h_blank, 1, in og01a1b_set_format()
Dmt9v032.c213 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()
Dimx258.c612 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()
Dhi556.c487 struct v4l2_ctrl *hblank; member
724 hi556->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &hi556_ctrl_ops, in hi556_init_controls()
727 if (hi556->hblank) in hi556_init_controls()
728 hi556->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in hi556_init_controls()
942 __v4l2_ctrl_modify_range(hi556->hblank, h_blank, h_blank, 1, in hi556_set_format()
Dov9734.c332 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()
Dov5695.c107 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()
Dov5670.c1825 struct v4l2_ctrl *hblank; member
2103 ov5670->hblank = v4l2_ctrl_new_std( in ov5670_init_controls()
2108 if (ov5670->hblank) in ov5670_init_controls()
2109 ov5670->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5670_init_controls()
2262 __v4l2_ctrl_modify_range(ov5670->hblank, h_blank, h_blank, 1, in ov5670_set_pad_format()
/drivers/gpu/drm/
Ddrm_modes.c239 int vsyncandback_porch, __maybe_unused vback_porch, hblank; in drm_cvt_mode() local
276 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode()
278 hblank -= hblank % (2 * CVT_H_GRANULARITY); in drm_cvt_mode()
280 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode()
281 drm_mode->hsync_end = drm_mode->hdisplay + hblank / 2; in drm_cvt_mode()
398 unsigned int hblank, total_pixels, pixel_freq; in drm_gtf_mode_complex() local
491 hblank = total_active_pixels * ideal_duty_cycle / in drm_gtf_mode_complex()
493 hblank = (hblank + GTF_CELL_GRAN) / (2 * GTF_CELL_GRAN); in drm_gtf_mode_complex()
494 hblank = hblank * 2 * GTF_CELL_GRAN; in drm_gtf_mode_complex()
496 total_pixels = total_active_pixels + hblank; in drm_gtf_mode_complex()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_encoders.c169 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/gma500/
Doaktrail_device.c146 p->hblank = PSB_RVDC32(HBLANK_A); in oaktrail_save_display_registers()
266 PSB_WVDC32(p->hblank, HBLANK_A); in oaktrail_restore_display_registers()
404 .hblank = HBLANK_A,
428 .hblank = HBLANK_B,
/drivers/gpu/drm/radeon/
Dradeon_encoders.c324 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/media/pci/cx18/
Dcx18-av-core.c285 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()

123