/linux-4.4.14/drivers/media/platform/ti-vpe/ |
D | sc.c | 113 void sc_set_vs_coeffs(struct sc_data *sc, void *addr, unsigned int src_h, in sc_set_vs_coeffs() argument 122 if (dst_h > src_h) { in sc_set_vs_coeffs() 124 } else if (dst_h == src_h) { in sc_set_vs_coeffs() 127 sixteenths = (dst_h << 4) / src_h; in sc_set_vs_coeffs() 154 u32 *sc_reg17, unsigned int src_w, unsigned int src_h, in sc_config_scaler() argument 184 if (src_w == dst_w && src_h == dst_h) { in sc_config_scaler() 219 if (dst_h < (src_h >> 2)) { in sc_config_scaler() 228 factor = (u16) ((dst_h << 10) / src_h); in sc_config_scaler() 244 src_h, dst_h, factor, row_acc_init_rav, in sc_config_scaler() 248 row_acc_inc = ((src_h - 1) << 16) / (dst_h - 1); in sc_config_scaler() [all …]
|
D | sc.h | 201 void sc_set_vs_coeffs(struct sc_data *sc, void *addr, unsigned int src_h, 204 u32 *sc_reg17, unsigned int src_w, unsigned int src_h,
|
D | vpe.c | 757 unsigned int src_h = s_q_data->c_rect.height; in set_dei_regs() local 775 src_h = deinterlace ? src_h * 2 : src_h; in set_dei_regs() 777 val |= (src_h << VPE_DEI_HEIGHT_SHIFT) | in set_dei_regs() 812 unsigned int src_h = s_q_data->c_rect.height; in set_srcdst_params() local 839 src_h <<= 1; in set_srcdst_params() 858 sc_set_vs_coeffs(ctx->dev->sc, ctx->sc_coeff_v.addr, src_h, dst_h); in set_srcdst_params() 862 src_w, src_h, dst_w, dst_h); in set_srcdst_params()
|
/linux-4.4.14/drivers/media/pci/ivtv/ |
D | ivtv-yuv.c | 53 y_decode_height = uv_decode_height = f->src_h + f->src_y; in ivtv_yuv_prep_user_dma() 408 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical() 438 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical() 440 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical() 443 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical() 445 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical() 447 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 448 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 450 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical() 451 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical() [all …]
|
D | ivtv-driver.h | 399 u32 src_h; member
|
D | ivtv-irq.c | 356 u32 y_size = 720 * ((f->src_h + 31) & ~31); in ivtv_dma_stream_dec_prepare()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | intel_sprite.c | 186 uint32_t src_w, uint32_t src_h) in skl_update_plane() argument 215 intel_update_sprite_watermarks(drm_plane, crtc, src_w, src_h, in skl_update_plane() 217 src_w != crtc_w || src_h != crtc_h); in skl_update_plane() 226 src_h--; in skl_update_plane() 248 plane_size = (src_w << 16) | src_h; in skl_update_plane() 249 x_offset = stride * tile_height - y - (src_h + 1); in skl_update_plane() 253 plane_size = (src_h << 16) | src_w; in skl_update_plane() 349 uint32_t src_w, uint32_t src_h) in vlv_update_plane() argument 419 src_h--; in vlv_update_plane() 435 y += src_h; in vlv_update_plane() [all …]
|
D | intel_atomic_plane.c | 143 intel_state->src.y2 = state->src_y + state->src_h; in intel_plane_atomic_check()
|
D | intel_overlay.c | 479 short src_h; member 797 sheight = params->src_h; in intel_overlay_do_put_image() 811 sheight |= (params->src_h/uv_vscale) << 16; in intel_overlay_do_put_image() 1187 params->src_h = put_image_rec->src_height; in intel_overlay_put_image() 1190 if (params->src_scan_h > params->src_h || in intel_overlay_put_image()
|
D | intel_display.c | 2667 plane_state->src_h = fb->height << 16; in intel_find_initial_plane_obj() 3105 int src_x = 0, src_y = 0, src_w = 0, src_h = 0; in skylake_update_primary_plane() local 3140 src_h = drm_rect_height(&plane_state->src) >> 16; in skylake_update_primary_plane() 3153 x_offset = stride * tile_height - y - src_h; in skylake_update_primary_plane() 3155 plane_size = (src_w - 1) << 16 | (src_h - 1); in skylake_update_primary_plane() 3160 plane_size = (src_h - 1) << 16 | (src_w - 1); in skylake_update_primary_plane() 4374 int src_w, int src_h, int dst_w, int dst_h) in skl_update_scaler() argument 4383 (src_h != dst_w || src_w != dst_h): in skl_update_scaler() 4384 (src_w != dst_w || src_h != dst_h); in skl_update_scaler() 4411 if (src_w < SKL_MIN_SRC_W || src_h < SKL_MIN_SRC_H || in skl_update_scaler() [all …]
|
D | intel_drv.h | 640 uint32_t src_w, uint32_t src_h);
|
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp4/ |
D | mdp4_plane.c | 59 uint32_t src_w, uint32_t src_h); 147 state->src_w, state->src_h); in mdp4_plane_atomic_update() 220 uint32_t src_w, uint32_t src_h) in mdp4_plane_mode_set() argument 243 src_h = src_h >> 16; in mdp4_plane_mode_set() 246 fb->base.id, src_x, src_y, src_w, src_h, in mdp4_plane_mode_set() 256 if (src_h > (crtc_h * DOWN_SCALE_MAX)) { in mdp4_plane_mode_set() 266 if (crtc_h > (src_h * UP_SCALE_MAX)) { in mdp4_plane_mode_set() 287 if (src_h != crtc_h) { in mdp4_plane_mode_set() 293 if (crtc_h > src_h) in mdp4_plane_mode_set() 295 else if (crtc_h <= (src_h / 4)) in mdp4_plane_mode_set() [all …]
|
/linux-4.4.14/drivers/gpu/drm/imx/ |
D | ipuv3-plane.c | 111 uint32_t src_w, uint32_t src_h, bool interlaced) in ipu_plane_mode_set() argument 117 if (src_w != crtc_w || src_h != crtc_h) in ipu_plane_mode_set() 133 src_h -= -crtc_y; in ipu_plane_mode_set() 147 src_h = crtc_h; in ipu_plane_mode_set() 160 if (src_w != ipu_plane->w || src_h != ipu_plane->h || in ipu_plane_mode_set() 218 ipu_cpmem_set_resolution(ipu_plane->ipu_ch, src_w, src_h); in ipu_plane_mode_set() 236 ipu_plane->h = src_h; in ipu_plane_mode_set() 319 uint32_t src_w, uint32_t src_h) in ipu_update_plane() argument 333 src_x >> 16, src_y >> 16, src_w >> 16, src_h >> 16, in ipu_update_plane()
|
D | ipuv3-plane.h | 45 uint32_t src_h, bool interlaced);
|
/linux-4.4.14/drivers/gpu/drm/sti/ |
D | sti_cursor.c | 129 int src_h = state->src_h >> 16; in sti_cursor_atomic_update() local 144 src_h < STI_CURS_MIN_SIZE || in sti_cursor_atomic_update() 146 src_h > STI_CURS_MAX_SIZE) { in sti_cursor_atomic_update() 148 src_w, src_h); in sti_cursor_atomic_update() 155 (cursor->height != src_h)) { in sti_cursor_atomic_update() 157 cursor->height = src_h; in sti_cursor_atomic_update()
|
D | sti_hqvdp.c | 499 int src_w, int src_h, in sti_hqvdp_check_hw_scaling() argument 508 inv_zy = DIV_ROUND_UP(src_h, dst_h); in sti_hqvdp_check_hw_scaling() 796 int src_h = state->src_h >> 16; in sti_hqvdp_atomic_update() local 809 src_w, src_h, src_x, src_y); in sti_hqvdp_atomic_update() 819 src_w, src_h, in sti_hqvdp_atomic_update() 864 (src_h > MAX_HEIGHT) || (src_h < MIN_HEIGHT) || in sti_hqvdp_atomic_update() 868 src_w, src_h, in sti_hqvdp_atomic_update() 873 cmd->top.input_viewport_size = src_h << 16 | src_w; in sti_hqvdp_atomic_update() 874 cmd->top.input_frame_size = src_h << 16 | src_w; in sti_hqvdp_atomic_update() 884 cmd->top.input_frame_size = (src_h / 2) << 16 | src_w; in sti_hqvdp_atomic_update() [all …]
|
D | sti_gdp.c | 396 int src_x, src_y, src_w, src_h; in sti_gdp_atomic_update() local 422 src_h = state->src_h >> 16; in sti_gdp_atomic_update() 430 src_w, src_h, src_x, src_y); in sti_gdp_atomic_update() 470 top_field->gam_gdp_size = clamp_val(src_h, 0, GAM_GDP_SIZE_MAX) << 16 | in sti_gdp_atomic_update()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/ |
D | overlay.c | 97 uint32_t src_w, uint32_t src_h) in nv10_update_plane() argument 115 src_h >>= 16; in nv10_update_plane() 123 if (crtc_w < (src_w >> 1) || crtc_h < (src_h >> 1)) in nv10_update_plane() 126 if (crtc_w < (src_w >> 3) || crtc_h < (src_h >> 3)) in nv10_update_plane() 141 nvif_wr32(dev, NV_PVIDEO_SIZE_IN(flip), src_h << 16 | src_w); in nv10_update_plane() 144 nvif_wr32(dev, NV_PVIDEO_DT_DY(flip), (src_h << 20) / crtc_h); in nv10_update_plane() 348 uint32_t src_w, uint32_t src_h) in nv04_update_plane() argument 363 src_h >>= 16; in nv04_update_plane() 374 if (crtc_w < src_w || crtc_h < src_h) in nv04_update_plane() 396 …(uint32_t)(((src_h - 1) << 11) / (crtc_h - 1)) << 16 | (uint32_t)(((src_w - 1) << 11) / (crtc_w - … in nv04_update_plane()
|
/linux-4.4.14/drivers/gpu/drm/ |
D | drm_rect.c | 162 int src_h = drm_rect_height(src); in drm_rect_calc_vscale() local 164 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale() 249 int src_h = drm_rect_height(src); in drm_rect_calc_vscale_relaxed() local 251 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale_relaxed() 257 int max_dst_h = src_h / min_vscale; in drm_rect_calc_vscale_relaxed() 267 drm_rect_adjust_size(src, 0, max_src_h - src_h); in drm_rect_calc_vscale_relaxed()
|
D | drm_plane_helper.c | 229 uint32_t src_w, uint32_t src_h) in drm_primary_helper_update() argument 242 .y2 = src_y + src_h, in drm_primary_helper_update() 523 uint32_t src_w, uint32_t src_h) in drm_plane_helper_update() argument 547 plane_state->src_h = src_h; in drm_plane_helper_update()
|
D | drm_atomic.c | 608 state->src_h = val; in drm_atomic_plane_set_property() 655 *val = state->src_h; in drm_atomic_plane_get_property() 746 state->src_h > fb_height || in drm_atomic_plane_check() 747 state->src_y > fb_height - state->src_h) { in drm_atomic_plane_check() 751 state->src_h >> 16, ((state->src_h & 0xffff) * 15625) >> 10, in drm_atomic_plane_check()
|
D | drm_crtc.c | 2318 uint32_t src_w, uint32_t src_h, in check_src_coords() argument 2329 src_h > fb_height || in check_src_coords() 2330 src_y > fb_height - src_h) { in check_src_coords() 2334 src_h >> 16, ((src_h & 0xffff) * 15625) >> 10, in check_src_coords() 2359 uint32_t src_w, uint32_t src_h) in __setplane_internal() argument 2402 ret = check_src_coords(src_x, src_y, src_w, src_h, fb); in __setplane_internal() 2409 src_x, src_y, src_w, src_h); in __setplane_internal() 2435 uint32_t src_w, uint32_t src_h) in setplane_internal() argument 2442 src_x, src_y, src_w, src_h); in setplane_internal() 2507 plane_req->src_w, plane_req->src_h); in drm_mode_setplane() [all …]
|
D | drm_atomic_helper.c | 1464 uint32_t src_w, uint32_t src_h) in drm_atomic_helper_update_plane() argument 1492 plane_state->src_h = src_h; in drm_atomic_helper_update_plane() 1616 plane_state->src_h = 0; in __drm_atomic_helper_disable_plane() 1805 primary_state->src_h = hdisplay << 16; in __drm_atomic_helper_set_config() 1808 primary_state->src_h = vdisplay << 16; in __drm_atomic_helper_set_config()
|
D | drm_crtc_helper.c | 1012 plane_state->src_h = crtc->mode.vdisplay << 16; in drm_helper_crtc_mode_set_base()
|
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_plane.c | 43 uint32_t src_w, uint32_t src_h); 303 ((state->src_h >> 16) != state->crtc_h))) { in mdp5_plane_atomic_check() 306 state->src_w >> 16, state->src_h >> 16, in mdp5_plane_atomic_check() 369 state->src_w, state->src_h); in mdp5_plane_atomic_update() 607 uint32_t src_h, int pe_top[COMP_MAX], int pe_bottom[COMP_MAX]) in mdp5_write_pixel_ext() argument 615 uint32_t roi_h = src_h; in mdp5_write_pixel_ext() 670 uint32_t src_w, uint32_t src_h) in mdp5_plane_mode_set() argument 701 src_h = src_h >> 16; in mdp5_plane_mode_set() 704 fb->base.id, src_x, src_y, src_w, src_h, in mdp5_plane_mode_set() 728 ret = calc_scaley_steps(plane, pix_format, src_h, crtc_h, phasey_step); in mdp5_plane_mode_set() [all …]
|
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_plane.c | 50 uint32_t src_h; member 277 ((state->src_h - 1) << 16)); in atmel_hlcdc_plane_update_pos_and_size() 287 if (state->crtc_w != state->src_w || state->crtc_h != state->src_h) { in atmel_hlcdc_plane_update_pos_and_size() 313 if (state->crtc_h != state->src_h) { in atmel_hlcdc_plane_update_pos_and_size() 566 state->src_h = s->src_h; in atmel_hlcdc_plane_atomic_check() 572 if ((state->src_x | state->src_y | state->src_w | state->src_h) & in atmel_hlcdc_plane_atomic_check() 579 state->src_h >>= 16; in atmel_hlcdc_plane_atomic_check() 593 state->src_w = state->src_h; in atmel_hlcdc_plane_atomic_check() 594 state->src_h = tmp; in atmel_hlcdc_plane_atomic_check() 621 patched_src_h = DIV_ROUND_CLOSEST(patched_crtc_h * state->src_h, in atmel_hlcdc_plane_atomic_check() [all …]
|
/linux-4.4.14/drivers/gpu/drm/exynos/ |
D | exynos_drm_plane.c | 65 uint32_t src_w, uint32_t src_h) in exynos_plane_mode_set() argument 89 exynos_plane->v_ratio = (src_h << 16) / crtc_h; in exynos_plane_mode_set() 95 exynos_plane->src_h = (actual_h * exynos_plane->v_ratio) >> 16; in exynos_plane_mode_set() 162 state->src_w >> 16, state->src_h >> 16); in exynos_plane_atomic_update()
|
D | exynos_drm_fimc.c | 950 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local 955 src_h = src->w; in fimc_set_prescaler() 958 src_h = src->h; in fimc_set_prescaler() 976 vfactor = fls(src_h / dst_h / 2); in fimc_set_prescaler() 983 pre_dst_height = src_h >> vfactor; in fimc_set_prescaler() 989 sc->vratio = (src_h << 14) / (dst_h << vfactor); in fimc_set_prescaler() 991 sc->up_v = (dst_h >= src_h) ? true : false; in fimc_set_prescaler()
|
D | exynos_drm_drv.h | 70 unsigned int src_h; member
|
D | exynos_mixer.c | 463 vp_reg_write(res, VP_SRC_HEIGHT, plane->src_h); in vp_video_buffer() 518 if (plane->crtc_h != plane->src_h) { in mixer_setup_scale() 519 if (plane->crtc_h == 2 * plane->src_h) in mixer_setup_scale() 609 val |= MXR_GRP_WH_HEIGHT(plane->src_h); in mixer_graph_buffer()
|
D | exynos_drm_gsc.c | 920 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 924 src_h = src->h; in gsc_set_prescaler() 940 ret = gsc_get_ratio_shift(src_h, dst_h, &sc->pre_vratio); in gsc_set_prescaler() 950 sc->main_vratio = (src_h << 16) / dst_h; in gsc_set_prescaler()
|
/linux-4.4.14/include/drm/ |
D | drm_plane_helper.h | 96 uint32_t src_w, uint32_t src_h); 106 uint32_t src_w, uint32_t src_h);
|
D | drm_atomic_helper.h | 76 uint32_t src_w, uint32_t src_h);
|
D | drm_crtc.h | 770 uint32_t src_h, src_w; member 799 uint32_t src_w, uint32_t src_h);
|
/linux-4.4.14/drivers/gpu/drm/omapdrm/ |
D | omap_plane.c | 114 win.src_w = state->src_h >> 16; in omap_plane_atomic_update() 115 win.src_h = state->src_w >> 16; in omap_plane_atomic_update() 119 win.src_h = state->src_h >> 16; in omap_plane_atomic_update()
|
D | omap_fb.c | 165 info->height = win->src_h; in omap_framebuffer_update_scanout() 172 uint32_t h = win->src_h; in omap_framebuffer_update_scanout()
|
D | omap_drv.h | 51 uint32_t src_w, src_h; member
|
/linux-4.4.14/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.h | 240 static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h, in scl_get_bili_dn_vskip() argument 245 act_height = (src_h + vskiplines - 1) / vskiplines; in scl_get_bili_dn_vskip()
|
D | rockchip_drm_vop.c | 519 uint32_t src_w, uint32_t src_h, uint32_t dst_w, in scl_vop_cal_scl_fac() argument 529 uint16_t cbcr_src_h = src_h / vsub; in scl_vop_cal_scl_fac() 541 yrgb_ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in scl_vop_cal_scl_fac() 577 val = scl_vop_cal_scale(yrgb_ver_scl_mode, src_h, dst_h, in scl_vop_cal_scl_fac() 794 uint32_t src_h, in vop_update_plane_event() argument 831 .y2 = src_y + src_h, in vop_update_plane_event() 993 uint32_t src_h) in vop_update_plane() argument 996 crtc_h, src_x, src_y, src_w, src_h, in vop_update_plane()
|
/linux-4.4.14/drivers/gpu/drm/shmobile/ |
D | shmob_drm_plane.c | 180 uint32_t src_w, uint32_t src_h) in shmob_drm_plane_update() argument 193 if (src_w >> 16 != crtc_w || src_h >> 16 != crtc_h) { in shmob_drm_plane_update()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_display.c | 692 u32 src_h = 1, dst_h = 1; in amdgpu_crtc_scaling_mode_fixup() local 718 src_h = crtc->mode.hdisplay; in amdgpu_crtc_scaling_mode_fixup() 738 src_h = crtc->mode.hdisplay; in amdgpu_crtc_scaling_mode_fixup() 747 a.full = dfixed_const(src_h); in amdgpu_crtc_scaling_mode_fixup()
|
/linux-4.4.14/drivers/media/platform/sti/bdisp/ |
D | bdisp-hw.c | 335 u32 src_w, src_h, dst_w, dst_h; in bdisp_hw_get_hv_inc() local 338 src_h = ctx->src.crop.height; in bdisp_hw_get_hv_inc() 343 bdisp_hw_get_inc(src_h, dst_h, v_inc)) { in bdisp_hw_get_hv_inc() 346 src_w, src_h, dst_w, dst_h); in bdisp_hw_get_hv_inc()
|
/linux-4.4.14/drivers/gpu/drm/armada/ |
D | armada_overlay.c | 98 uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h) in armada_ovl_plane_update() argument 106 .y2 = src_y + src_h, in armada_ovl_plane_update()
|
/linux-4.4.14/drivers/gpu/drm/vc4/ |
D | vc4_plane.c | 161 state->crtc_h << 16 != state->src_h) { in vc4_plane_mode_set()
|
/linux-4.4.14/include/uapi/drm/ |
D | drm_mode.h | 175 __u32 src_h; member
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | radeon_display.c | 1736 u32 src_h = 1, dst_h = 1; in radeon_crtc_scaling_mode_fixup() local 1763 src_h = crtc->mode.hdisplay; in radeon_crtc_scaling_mode_fixup() 1784 src_h = crtc->mode.hdisplay; in radeon_crtc_scaling_mode_fixup() 1806 a.full = dfixed_const(src_h); in radeon_crtc_scaling_mode_fixup()
|
/linux-4.4.14/drivers/gpu/drm/rcar-du/ |
D | rcar_du_plane.c | 247 state->src_h >> 16 != state->crtc_h) { in rcar_du_plane_atomic_check()
|
/linux-4.4.14/drivers/gpu/drm/tegra/ |
D | dc.c | 576 window.src.h = plane->state->src_h >> 16; in tegra_plane_atomic_update() 690 (state->src_h >> 16 != state->crtc_h)) in tegra_cursor_atomic_check() 694 if (state->src_w != state->src_h) in tegra_cursor_atomic_check()
|