Home
last modified time | relevance | path

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

/linux-4.1.27/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.c143 int hscale, vscale; in drm_plane_helper_check_update() local
162 hscale = drm_rect_calc_hscale(src, dest, min_scale, max_scale); in drm_plane_helper_check_update()
164 if (hscale < 0 || vscale < 0) { in drm_plane_helper_check_update()
169 *visible = drm_rect_clip_scaled(src, dest, clip, hscale, vscale); in drm_plane_helper_check_update()
/linux-4.1.27/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 …]
/linux-4.1.27/drivers/media/platform/vsp1/
Dvsp1_uds.c122 unsigned int hscale; in uds_s_stream() local
132 hscale = uds_compute_ratio(input->width, output->width); 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()
151 (uds_passband_width(hscale) in uds_s_stream()
158 (hscale << VI6_UDS_SCALE_HFRAC_SHIFT) | in uds_s_stream()
/linux-4.1.27/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()
/linux-4.1.27/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()
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_sprite.c875 int hscale, vscale; in intel_check_sprite_plane() local
909 hscale = drm_rect_calc_hscale_relaxed(src, dst, min_scale, max_scale); in intel_check_sprite_plane()
910 BUG_ON(hscale < 0); in intel_check_sprite_plane()
915 state->visible = drm_rect_clip_scaled(src, dst, clip, hscale, vscale); in intel_check_sprite_plane()
924 hscale = drm_rect_calc_hscale(src, dst, min_scale, max_scale); in intel_check_sprite_plane()
925 if (hscale < 0) { in intel_check_sprite_plane()
930 return hscale; in intel_check_sprite_plane()
944 drm_rect_width(dst) * hscale - drm_rect_width(src), in intel_check_sprite_plane()
/linux-4.1.27/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()
/linux-4.1.27/include/drm/
Ddrm_rect.h152 int hscale, int vscale);
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-video.c357 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set()
1209 unsigned int *hscale, unsigned int *vscale) in size_to_scale() argument
1214 *hscale = (((unsigned long)maxw) << 12) / width - 4096L; in size_to_scale()
1215 if (*hscale > EM28XX_HVSCALE_MAX) in size_to_scale()
1216 *hscale = EM28XX_HVSCALE_MAX; in size_to_scale()
1224 unsigned int hscale, unsigned int vscale, in scale_to_size() argument
1230 *width = (((unsigned long)maxw) << 12) / (hscale + 4096L); in scale_to_size()
1280 unsigned int hscale, vscale; in vidioc_try_fmt_vid_cap() local
1308 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap()
1309 scale_to_size(dev, hscale, vscale, &width, &height); in vidioc_try_fmt_vid_cap()
[all …]
Dem28xx.h550 unsigned hscale; /* horizontal scale factor (see datasheet) */ member
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_legacy_crtc.c53 bool hscale = true, vscale = true; in radeon_legacy_rmx_mode_set() local
111 hscale = false; in radeon_legacy_rmx_mode_set()
120 hscale = false; in radeon_legacy_rmx_mode_set()
128 if (!hscale) in radeon_legacy_rmx_mode_set()
/linux-4.1.27/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