/linux-4.4.14/drivers/gpu/drm/ |
D | drm_rect.c | 70 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 …]
|
D | drm_plane_helper.c | 144 int hscale, vscale; in drm_plane_helper_check_update() local 163 hscale = drm_rect_calc_hscale(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()
|
/linux-4.4.14/drivers/media/i2c/soc_camera/ |
D | tw9910.c | 225 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.4.14/drivers/media/platform/vsp1/ |
D | vsp1_uds.c | 122 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.4.14/drivers/media/i2c/ |
D | bt819.c | 78 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.4.14/drivers/gpu/drm/i915/ |
D | dvo_ns2501.c | 220 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()
|
D | intel_sprite.c | 769 int hscale, vscale; in intel_check_sprite_plane() local 817 hscale = drm_rect_calc_hscale_relaxed(src, dst, min_scale, max_scale); in intel_check_sprite_plane() 818 BUG_ON(hscale < 0); in intel_check_sprite_plane() 823 state->visible = drm_rect_clip_scaled(src, dst, clip, hscale, vscale); in intel_check_sprite_plane() 832 hscale = drm_rect_calc_hscale(src, dst, min_scale, max_scale); in intel_check_sprite_plane() 833 if (hscale < 0) { in intel_check_sprite_plane() 838 return hscale; in intel_check_sprite_plane() 852 drm_rect_width(dst) * hscale - drm_rect_width(src), in intel_check_sprite_plane()
|
/linux-4.4.14/drivers/media/pci/cx25821/ |
D | cx25821-medusa-video.c | 425 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.4.14/drivers/media/pci/tw68/ |
D | tw68-video.c | 274 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.4.14/include/drm/ |
D | drm_rect.h | 152 int hscale, int vscale);
|
/linux-4.4.14/drivers/media/usb/em28xx/ |
D | em28xx-video.c | 357 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); in em28xx_resolution_set() 1215 unsigned int *hscale, unsigned int *vscale) in size_to_scale() argument 1220 *hscale = (((unsigned long)maxw) << 12) / width - 4096L; in size_to_scale() 1221 if (*hscale > EM28XX_HVSCALE_MAX) in size_to_scale() 1222 *hscale = EM28XX_HVSCALE_MAX; in size_to_scale() 1230 unsigned int hscale, unsigned int vscale, in scale_to_size() argument 1236 *width = (((unsigned long)maxw) << 12) / (hscale + 4096L); in scale_to_size() 1286 unsigned int hscale, vscale; in vidioc_try_fmt_vid_cap() local 1314 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap() 1315 scale_to_size(dev, hscale, vscale, &width, &height); in vidioc_try_fmt_vid_cap() [all …]
|
D | em28xx.h | 551 unsigned hscale; /* horizontal scale factor (see datasheet) */ member
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | radeon_legacy_crtc.c | 53 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.4.14/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 356 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()
|
D | bttvp.h | 152 u16 width,hscale,hdelay; member
|
/linux-4.4.14/Documentation/DocBook/ |
D | gpu.xml.db | 441 API-drm-rect-calc-hscale 443 API-drm-rect-calc-hscale-relaxed
|