/drivers/gpu/drm/ |
D | drm_rect.c | 70 int hscale, int vscale) in drm_rect_clip_scaled() argument 81 int64_t tmp = src->y1 + (int64_t) diff * vscale; in drm_rect_clip_scaled() 91 int64_t tmp = src->y2 - (int64_t) diff * vscale; in drm_rect_clip_scaled() 164 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale() local 166 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale() 167 return vscale; in drm_rect_calc_vscale() 169 if (vscale < min_vscale || vscale > max_vscale) in drm_rect_calc_vscale() 172 return vscale; in drm_rect_calc_vscale() 251 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale_relaxed() local 253 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale_relaxed() [all …]
|
D | drm_plane_helper.c | 144 int hscale, vscale; in drm_plane_helper_check_update() local 164 vscale = drm_rect_calc_vscale(src, dest, min_scale, max_scale); in drm_plane_helper_check_update() 165 if (hscale < 0 || vscale < 0) { in drm_plane_helper_check_update() 170 *visible = drm_rect_clip_scaled(src, dest, clip, hscale, vscale); in drm_plane_helper_check_update()
|
/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 …]
|
/drivers/media/platform/vsp1/ |
D | vsp1_uds.c | 123 unsigned int vscale; in uds_s_stream() local 133 vscale = uds_compute_ratio(input->height, output->height); in uds_s_stream() 135 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_s_stream() 141 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) in uds_s_stream() 153 (uds_passband_width(vscale) in uds_s_stream() 159 (vscale << VI6_UDS_SCALE_VFRAC_SHIFT)); in uds_s_stream()
|
/drivers/gpu/drm/i915/ |
D | dvo_ns2501.c | 221 uint16_t 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()
|
D | intel_sprite.c | 769 int hscale, vscale; in intel_check_sprite_plane() local 820 vscale = drm_rect_calc_vscale_relaxed(src, dst, min_scale, max_scale); in intel_check_sprite_plane() 821 BUG_ON(vscale < 0); in intel_check_sprite_plane() 823 state->visible = drm_rect_clip_scaled(src, dst, clip, hscale, vscale); in intel_check_sprite_plane() 841 vscale = drm_rect_calc_vscale(src, dst, min_scale, max_scale); in intel_check_sprite_plane() 842 if (vscale < 0) { in intel_check_sprite_plane() 847 return vscale; in intel_check_sprite_plane() 853 drm_rect_height(dst) * vscale - drm_rect_height(src)); in intel_check_sprite_plane()
|
/drivers/media/pci/cx25821/ |
D | cx25821-medusa-video.c | 426 u32 vscale = 0x0; in medusa_set_resolution() local 447 vscale = 0x0; in medusa_set_resolution() 452 vscale = 0x0; in medusa_set_resolution() 457 vscale = 0x1E00; in medusa_set_resolution() 462 vscale = 0x1E00; in medusa_set_resolution() 467 vscale = 0x0; in medusa_set_resolution() 476 VSCALE_CTRL + (0x200 * decoder), vscale); in medusa_set_resolution()
|
/drivers/media/pci/tw68/ |
D | tw68-video.c | 275 int vactive, vdelay, vscale; in tw68_set_scale() local 305 vscale = (vactive * 256) / height; in tw68_set_scale() 314 hactive, hdelay, hscale, vactive, vdelay, vscale); in tw68_set_scale() 329 comb = ((vscale & 0xf00) >> 4) | ((hscale & 0xf00) >> 8); in tw68_set_scale() 331 "HSCALE_LO=%02x\n", __func__, comb, vscale, hscale); in tw68_set_scale() 333 tw_writeb(TW68_VSCALE_LO, vscale); in tw68_set_scale()
|
/drivers/media/usb/em28xx/ |
D | em28xx-video.c | 357 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set() 1217 unsigned int *hscale, unsigned int *vscale) in size_to_scale() argument 1226 *vscale = (((unsigned long)maxh) << 12) / height - 4096L; in size_to_scale() 1227 if (*vscale > EM28XX_HVSCALE_MAX) in size_to_scale() 1228 *vscale = EM28XX_HVSCALE_MAX; in size_to_scale() 1232 unsigned int hscale, unsigned int vscale, in scale_to_size() argument 1239 *height = (((unsigned long)maxh) << 12) / (vscale + 4096L); in scale_to_size() 1288 unsigned int hscale, vscale; in vidioc_try_fmt_vid_cap() local 1316 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap() 1317 scale_to_size(dev, hscale, vscale, &width, &height); in vidioc_try_fmt_vid_cap() [all …]
|
D | em28xx.h | 552 unsigned vscale; /* vertical scale factor (see datasheet) */ member
|
/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 361 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old() 364 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old() 417 geo->vscale = (0x10000UL - sr) & 0x1fff; in bttv_calc_geo() 418 geo->vscale |= both_fields ? (BT848_VSCALE_INT << 8) : 0; in bttv_calc_geo() 448 btaor((geo->vscale>>8), 0xe0, BT848_E_VSCALE_HI+off); in bttv_apply_geo() 449 btwrite(geo->vscale & 0xff, BT848_E_VSCALE_LO+off); in bttv_apply_geo()
|
D | bttvp.h | 153 u16 sheight,vscale,vdelay,vtotal; member
|
/drivers/gpu/drm/radeon/ |
D | radeon_legacy_crtc.c | 53 bool hscale = true, vscale = true; in radeon_legacy_rmx_mode_set() local 112 vscale = false; in radeon_legacy_rmx_mode_set() 122 vscale = false; in radeon_legacy_rmx_mode_set() 140 if (!vscale) in radeon_legacy_rmx_mode_set()
|
/drivers/media/i2c/ |
D | bt819.c | 79 int vscale; member
|