Home
last modified time | relevance | path

Searched refs:hscale (Results 1 – 14 of 14) sorted by relevance

/drivers/gpu/drm/
Ddrm_rect.c70 int hscale, int vscale) in drm_rect_clip_scaled() argument
76 int64_t tmp = src->x1 + (int64_t) diff * hscale; in drm_rect_clip_scaled()
86 int64_t tmp = src->x2 - (int64_t) diff * hscale; in drm_rect_clip_scaled()
133 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() local
135 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale()
136 return hscale; in drm_rect_calc_hscale()
138 if (hscale < min_hscale || hscale > max_hscale) in drm_rect_calc_hscale()
141 return hscale; in drm_rect_calc_hscale()
201 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale_relaxed() local
203 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale_relaxed()
[all …]
Ddrm_plane_helper.c131 int hscale, vscale; in drm_plane_helper_check_state() local
162 hscale = drm_rect_calc_hscale(src, dst, min_scale, max_scale); in drm_plane_helper_check_state()
164 if (hscale < 0 || vscale < 0) { in drm_plane_helper_check_state()
171 state->visible = drm_rect_clip_scaled(src, dst, clip, hscale, vscale); in drm_plane_helper_check_state()
/drivers/media/platform/vsp1/
Dvsp1_uds.c270 unsigned int hscale; in uds_configure() local
291 hscale = uds_compute_ratio(input->width, output->width); in uds_configure()
294 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); in uds_configure()
300 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) in uds_configure()
310 (uds_passband_width(hscale) in uds_configure()
317 (hscale << VI6_UDS_SCALE_HFRAC_SHIFT) | in uds_configure()
327 unsigned int hscale; in uds_max_width() local
333 hscale = output->width / input->width; in uds_max_width()
335 if (hscale <= 2) in uds_max_width()
337 else if (hscale <= 4) in uds_max_width()
[all …]
/drivers/media/i2c/soc_camera/
Dtw9910.c225 u16 hscale; member
243 .hscale = 0x0100,
250 .hscale = 0x0100,
257 .hscale = 0x0200,
264 .hscale = 0x0200,
271 .hscale = 0x0400,
278 .hscale = 0x0400,
288 .hscale = 0x0100,
295 .hscale = 0x0100,
302 .hscale = 0x0200,
[all …]
/drivers/media/i2c/
Dbt819.c78 int hscale; member
199 init[0x08 * 2 - 1] = timing->hscale >> 8; in bt819_init()
200 init[0x09 * 2 - 1] = timing->hscale & 0xff; in bt819_init()
290 bt819_write(decoder, 0x08, (timing->hscale >> 8) & 0xff); in bt819_s_std()
291 bt819_write(decoder, 0x09, timing->hscale & 0xff); in bt819_s_std()
/drivers/gpu/drm/i915/
Ddvo_ns2501.c220 uint16_t hscale; /* horizontal scaling factor, b8/b9 */ member
247 .hscale = 40960,
267 .hscale = 51248,
286 .hscale = 65535,
634 ns2501_writeb(dvo, NS2501_REGB8, conf->hscale & 0xff); in ns2501_mode_set()
635 ns2501_writeb(dvo, NS2501_REGB9, conf->hscale >> 8); in ns2501_mode_set()
Dintel_sprite.c788 int hscale, vscale; in intel_check_sprite_plane() local
846 hscale = drm_rect_calc_hscale_relaxed(src, dst, min_scale, max_scale); in intel_check_sprite_plane()
847 BUG_ON(hscale < 0); in intel_check_sprite_plane()
852 state->base.visible = drm_rect_clip_scaled(src, dst, clip, hscale, vscale); in intel_check_sprite_plane()
861 hscale = drm_rect_calc_hscale(src, dst, min_scale, max_scale); in intel_check_sprite_plane()
862 if (hscale < 0) { in intel_check_sprite_plane()
867 return hscale; in intel_check_sprite_plane()
881 drm_rect_width(dst) * hscale - drm_rect_width(src), in intel_check_sprite_plane()
/drivers/media/pci/cx25821/
Dcx25821-medusa-video.c425 u32 hscale = 0x0; in medusa_set_resolution() local
446 hscale = 0x13E34B; in medusa_set_resolution()
451 hscale = 0x10A273; in medusa_set_resolution()
456 hscale = 0x3115B2; in medusa_set_resolution()
461 hscale = 0x378D84; in medusa_set_resolution()
466 hscale = 0x0; in medusa_set_resolution()
474 HSCALE_CTRL + (0x200 * decoder), hscale); in medusa_set_resolution()
/drivers/media/pci/tw68/
Dtw68-video.c274 int hactive, hdelay, hscale; in tw68_set_scale() local
301 hscale = (hactive * 256) / (width); 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()
334 tw_writeb(TW68_HSCALE_LO, hscale); in tw68_set_scale()
/drivers/media/usb/em28xx/
Dem28xx-video.c356 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set()
1356 unsigned int *hscale, unsigned int *vscale) in size_to_scale() argument
1361 *hscale = (((unsigned long)maxw) << 12) / width - 4096L; in size_to_scale()
1362 if (*hscale > EM28XX_HVSCALE_MAX) in size_to_scale()
1363 *hscale = EM28XX_HVSCALE_MAX; in size_to_scale()
1371 unsigned int hscale, unsigned int vscale, in scale_to_size() argument
1377 *width = (((unsigned long)maxw) << 12) / (hscale + 4096L); in scale_to_size()
1433 unsigned int hscale, vscale; in vidioc_try_fmt_vid_cap() local
1466 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap()
1467 scale_to_size(dev, hscale, vscale, &width, &height); in vidioc_try_fmt_vid_cap()
[all …]
Dem28xx.h548 unsigned hscale; /* horizontal scale factor (see datasheet) */ member
/drivers/gpu/drm/radeon/
Dradeon_legacy_crtc.c54 bool hscale = true, vscale = true; in radeon_legacy_rmx_mode_set() local
112 hscale = false; in radeon_legacy_rmx_mode_set()
121 hscale = false; in radeon_legacy_rmx_mode_set()
129 if (!hscale) in radeon_legacy_rmx_mode_set()
/drivers/media/pci/bt8xx/
Dbttv-risc.c356 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old()
409 geo->hscale = (c_width * 4096U + (width >> 1)) / width - 4096; in bttv_calc_geo()
446 btwrite(geo->hscale >> 8, BT848_E_HSCALE_HI+off); in bttv_apply_geo()
447 btwrite(geo->hscale & 0xff, BT848_E_HSCALE_LO+off); in bttv_apply_geo()
Dbttvp.h152 u16 width,hscale,hdelay; member