| /Linux-v4.19/drivers/gpu/drm/ |
| D | drm_rect.c | 198 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale() local 200 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale() 201 return vscale; in drm_rect_calc_vscale() 203 if (vscale < min_vscale || vscale > max_vscale) in drm_rect_calc_vscale() 206 return vscale; in drm_rect_calc_vscale() 293 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale_relaxed() local 295 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale_relaxed() 296 return vscale; in drm_rect_calc_vscale_relaxed() 298 if (vscale < min_vscale) { in drm_rect_calc_vscale_relaxed() 306 if (vscale > max_vscale) { in drm_rect_calc_vscale_relaxed() [all …]
|
| D | drm_atomic_helper.c | 732 int hscale, vscale; in drm_atomic_helper_check_plane_state() local 759 vscale = drm_rect_calc_vscale(src, dst, min_scale, max_scale); in drm_atomic_helper_check_plane_state() 760 if (hscale < 0 || vscale < 0) { in drm_atomic_helper_check_plane_state()
|
| /Linux-v4.19/drivers/media/i2c/soc_camera/ |
| D | tw9910.c | 226 u16 vscale; member 244 .vscale = 0x0100, 251 .vscale = 0x0100, 258 .vscale = 0x0200, 265 .vscale = 0x0200, 272 .vscale = 0x0400, 279 .vscale = 0x0400, 289 .vscale = 0x0100, 296 .vscale = 0x0100, 303 .vscale = 0x0200, [all …]
|
| /Linux-v4.19/drivers/media/i2c/ |
| D | tw9910.c | 225 u16 vscale; member 245 .vscale = 0x0100, 252 .vscale = 0x0100, 259 .vscale = 0x0200, 266 .vscale = 0x0200, 273 .vscale = 0x0400, 280 .vscale = 0x0400, 290 .vscale = 0x0100, 297 .vscale = 0x0100, 304 .vscale = 0x0200, [all …]
|
| D | bt819.c | 75 int vscale; member
|
| /Linux-v4.19/drivers/gpu/drm/sun4i/ |
| D | sun8i_vi_scaler.c | 915 u32 hscale, u32 vscale, u32 hphase, u32 vphase, in sun8i_vi_scaler_setup() argument 924 vscale <<= SUN8I_VI_SCALER_SCALE_FRAC - 16; in sun8i_vi_scaler_setup() 950 SUN8I_SCALER_VSU_YVSTEP(layer), vscale); in sun8i_vi_scaler_setup() 964 vscale / format->vsub); in sun8i_vi_scaler_setup() 970 hscale, vscale, format); in sun8i_vi_scaler_setup()
|
| D | sun8i_ui_scaler.c | 135 u32 hscale, u32 vscale, u32 hphase, u32 vphase) in sun8i_ui_scaler_setup() argument 147 vscale <<= SUN8I_UI_SCALER_SCALE_FRAC - 16; in sun8i_ui_scaler_setup() 161 SUN8I_SCALER_GSU_VSTEP(vi_cnt, layer), vscale); in sun8i_ui_scaler_setup()
|
| D | sun8i_ui_layer.c | 139 u32 hscale, vscale; in sun8i_ui_layer_update_coord() local 144 vscale = state->src_h / state->crtc_h; in sun8i_ui_layer_update_coord() 147 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord()
|
| D | sun8i_ui_scaler.h | 47 u32 hscale, u32 vscale, u32 hphase, u32 vphase);
|
| D | sun8i_vi_layer.c | 131 u32 hscale, vscale; in sun8i_vi_layer_update_coord() local 136 vscale = state->src_h / state->crtc_h; in sun8i_vi_layer_update_coord() 139 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord()
|
| D | sun8i_vi_scaler.h | 55 u32 hscale, u32 vscale, u32 hphase, u32 vphase,
|
| /Linux-v4.19/drivers/media/platform/vsp1/ |
| D | vsp1_uds.c | 266 unsigned int vscale; in uds_configure_stream() local 275 vscale = uds_compute_ratio(input->height, output->height); in uds_configure_stream() 277 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_configure_stream() 284 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) in uds_configure_stream() 296 (uds_passband_width(vscale) in uds_configure_stream() 302 (vscale << VI6_UDS_SCALE_VFRAC_SHIFT)); in uds_configure_stream()
|
| /Linux-v4.19/drivers/gpu/drm/i915/ |
| D | dvo_ns2501.c | 221 u16 vscale; /* vertical scaling factor, 10/11 */ member 248 .vscale = 40960 268 .vscale = 51232 287 .vscale = 65535 636 ns2501_writeb(dvo, NS2501_REG10, conf->vscale & 0xff); in ns2501_mode_set() 637 ns2501_writeb(dvo, NS2501_REG11, conf->vscale >> 8); in ns2501_mode_set()
|
| /Linux-v4.19/drivers/media/pci/cx25821/ |
| D | cx25821-medusa-video.c | 422 u32 vscale = 0x0; in medusa_set_resolution() local 443 vscale = 0x0; in medusa_set_resolution() 448 vscale = 0x0; in medusa_set_resolution() 453 vscale = 0x1E00; in medusa_set_resolution() 458 vscale = 0x1E00; in medusa_set_resolution() 463 vscale = 0x0; in medusa_set_resolution() 472 VSCALE_CTRL + (0x200 * decoder), vscale); in medusa_set_resolution()
|
| /Linux-v4.19/Documentation/media/uapi/v4l/ |
| D | selection-api-examples.rst | 73 double hscale, vscale; 84 vscale = (double)compose.r.height / crop.r.height;
|
| D | crop.rst | 270 double hscale, vscale; 306 vscale = format.fmt.pix.height / (double) crop.c.height; 310 aspect = aspect * hscale / vscale;
|
| /Linux-v4.19/drivers/media/pci/tw68/ |
| D | tw68-video.c | 275 int vactive, vdelay, vscale; in tw68_set_scale() local 304 vscale = (vactive * 256) / height; in tw68_set_scale() 313 hactive, hdelay, hscale, vactive, vdelay, vscale); in tw68_set_scale() 327 comb = ((vscale & 0xf00) >> 4) | ((hscale & 0xf00) >> 8); in tw68_set_scale() 329 __func__, comb, vscale, hscale); in tw68_set_scale() 331 tw_writeb(TW68_VSCALE_LO, vscale); in tw68_set_scale()
|
| /Linux-v4.19/drivers/media/pci/bt8xx/ |
| D | bttv-risc.c | 363 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old() 366 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old() 419 geo->vscale = (0x10000UL - sr) & 0x1fff; in bttv_calc_geo() 420 geo->vscale |= both_fields ? (BT848_VSCALE_INT << 8) : 0; in bttv_calc_geo() 450 btaor((geo->vscale>>8), 0xe0, BT848_E_VSCALE_HI+off); in bttv_apply_geo() 451 btwrite(geo->vscale & 0xff, BT848_E_VSCALE_LO+off); in bttv_apply_geo()
|
| D | bttvp.h | 154 u16 sheight,vscale,vdelay,vtotal; member
|
| /Linux-v4.19/drivers/media/usb/em28xx/ |
| D | em28xx-video.c | 361 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set() 1392 unsigned int *hscale, unsigned int *vscale) in size_to_scale() argument 1401 *vscale = (((unsigned long)maxh) << 12) / height - 4096L; in size_to_scale() 1402 if (*vscale > EM28XX_HVSCALE_MAX) in size_to_scale() 1403 *vscale = EM28XX_HVSCALE_MAX; in size_to_scale() 1407 unsigned int hscale, unsigned int vscale, in scale_to_size() argument 1414 *height = (((unsigned long)maxh) << 12) / (vscale + 4096L); in scale_to_size() 1469 unsigned int hscale, vscale; in vidioc_try_fmt_vid_cap() local 1504 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap() 1505 scale_to_size(dev, hscale, vscale, &width, &height); in vidioc_try_fmt_vid_cap() [all …]
|
| D | em28xx.h | 587 unsigned int vscale; /* vertical scale factor (see datasheet) */ member
|
| /Linux-v4.19/drivers/gpu/drm/radeon/ |
| D | radeon_legacy_crtc.c | 54 bool hscale = true, vscale = true; in radeon_legacy_rmx_mode_set() local 113 vscale = false; in radeon_legacy_rmx_mode_set() 123 vscale = false; in radeon_legacy_rmx_mode_set() 141 if (!vscale) in radeon_legacy_rmx_mode_set()
|
| /Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/ |
| D | dpu_plane.c | 1089 int hscale = 1, vscale = 1; in dpu_plane_sspp_atomic_check() local 1128 vscale = drm_rect_calc_vscale(&src, &dst, 1, max_upscale); in dpu_plane_sspp_atomic_check() 1130 vscale = drm_rect_calc_vscale(&dst, &src, 1, max_downscale); in dpu_plane_sspp_atomic_check() 1178 } else if (hscale < 0 || vscale < 0) { in dpu_plane_sspp_atomic_check()
|