Home
last modified time | relevance | path

Searched refs:src_w (Results 1 – 45 of 45) sorted by relevance

/linux-4.4.14/drivers/media/platform/ti-vpe/
Dsc.c60 void sc_set_hs_coeffs(struct sc_data *sc, void *addr, unsigned int src_w, in sc_set_hs_coeffs() argument
69 if (dst_w > src_w) { in sc_set_hs_coeffs()
72 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs()
74 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs()
77 if (dst_w == src_w) { in sc_set_hs_coeffs()
80 sixteenths = (dst_w << 4) / src_w; in sc_set_hs_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()
196 dcm_x = src_w / dst_w; in sc_config_scaler()
208 lin_acc_inc = div64_u64(((u64)(src_w >> dcm_shift) - 1) << 24, lltmp); in sc_config_scaler()
[all …]
Dsc.h199 void sc_set_hs_coeffs(struct sc_data *sc, void *addr, unsigned int src_w,
204 u32 *sc_reg17, unsigned int src_w, unsigned int src_h,
Dvpe.c758 unsigned int src_w = s_q_data->c_rect.width; in set_dei_regs() local
778 (src_w << VPE_DEI_WIDTH_SHIFT) | in set_dei_regs()
811 unsigned int src_w = s_q_data->c_rect.width; in set_srcdst_params() local
857 sc_set_hs_coeffs(ctx->dev->sc, ctx->sc_coeff_h.addr, src_w, dst_w); in set_srcdst_params()
862 src_w, src_h, dst_w, dst_h); in set_srcdst_params()
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_sprite.c186 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()
225 src_w--; in skl_update_plane()
248 plane_size = (src_w << 16) | src_h; 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
418 src_w--; in vlv_update_plane()
434 x += src_w; in vlv_update_plane()
436 linear_offset += src_h * fb->pitches[0] + src_w * pixel_size; in vlv_update_plane()
[all …]
Dintel_overlay.c476 short src_w; member
791 tmp_width = packed_width_bytes(params->format, params->src_w); in intel_overlay_do_put_image()
793 tmp_width = params->src_w; in intel_overlay_do_put_image()
795 swidth = params->src_w; in intel_overlay_do_put_image()
805 swidth |= (params->src_w/uv_hscale) << 16; in intel_overlay_do_put_image()
807 params->src_w/uv_hscale); in intel_overlay_do_put_image()
809 params->src_w/uv_hscale); in intel_overlay_do_put_image()
1186 params->src_w = put_image_rec->src_width; in intel_overlay_put_image()
1191 params->src_scan_w > params->src_w) { in intel_overlay_put_image()
Dintel_atomic_plane.c142 intel_state->src.x2 = state->src_x + state->src_w; in intel_plane_atomic_check()
Dintel_display.c2666 plane_state->src_w = fb->width << 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
3139 src_w = drm_rect_width(&plane_state->src) >> 16; 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()
4414 src_w > SKL_MAX_SRC_W || src_h > SKL_MAX_SRC_H || in skl_update_scaler()
[all …]
Dintel_drv.h640 uint32_t src_w, uint32_t src_h);
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-yuv.c242 f->tru_w, f->src_w, f->dst_w, f->src_x, f->dst_x); in ivtv_yuv_handle_horizontal()
245 x_cutoff = f->src_w + f->src_x; in ivtv_yuv_handle_horizontal()
269 if (f->dst_w >= f->src_w) in ivtv_yuv_handle_horizontal()
275 if (f->dst_w < f->src_w) in ivtv_yuv_handle_horizontal()
281 reg_2870_offset = (f->src_x * ((f->dst_w << 21) / f->src_w)) >> 19; in ivtv_yuv_handle_horizontal()
283 if (f->dst_w >= f->src_w) { in ivtv_yuv_handle_horizontal()
285 master_width = (f->src_w * 0x00200000) / (f->dst_w); in ivtv_yuv_handle_horizontal()
286 if (master_width * f->dst_w != f->src_w * 0x00200000) in ivtv_yuv_handle_horizontal()
298 if (f->dst_w > f->src_w) in ivtv_yuv_handle_horizontal()
299 reg_2870_base = ((f->dst_w - f->src_w)<<16) / (f->src_w <<14); in ivtv_yuv_handle_horizontal()
[all …]
Divtv-driver.h398 u32 src_w; member
Divtv-irq.c915 if (f->src_w) { in ivtv_irq_vsync()
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_plane.c59 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
242 src_w = src_w >> 16; in mdp4_plane_mode_set()
246 fb->base.id, src_x, src_y, src_w, src_h, in mdp4_plane_mode_set()
251 if (src_w > (crtc_w * DOWN_SCALE_MAX)) { in mdp4_plane_mode_set()
261 if (crtc_w > (src_w * UP_SCALE_MAX)) { in mdp4_plane_mode_set()
271 if (src_w != crtc_w) { in mdp4_plane_mode_set()
276 if (crtc_w > src_w) in mdp4_plane_mode_set()
278 else if (crtc_w <= (src_w / 4)) in mdp4_plane_mode_set()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c97 uint32_t src_w, uint32_t src_h) in nv10_update_plane() argument
114 src_w >>= 16; in nv10_update_plane()
117 format = ALIGN(src_w * 4, 0x100); 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()
143 nvif_wr32(dev, NV_PVIDEO_DS_DX(flip), (src_w << 20) / crtc_w); in nv10_update_plane()
348 uint32_t src_w, uint32_t src_h) in nv04_update_plane() argument
362 src_w >>= 16; in nv04_update_plane()
365 pitch = ALIGN(src_w * 4, 0x100); in nv04_update_plane()
[all …]
/linux-4.4.14/drivers/gpu/drm/imx/
Dipuv3-plane.c111 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()
125 src_w -= -crtc_x; in ipu_plane_mode_set()
141 src_w = crtc_w; 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()
235 ipu_plane->w = src_w; 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()
Dipuv3-plane.h44 uint32_t src_x, uint32_t src_y, uint32_t src_w,
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c49 uint32_t src_w; member
276 (state->src_w - 1) | 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()
290 if (state->crtc_w != state->src_w) { in atmel_hlcdc_plane_update_pos_and_size()
296 if (state->crtc_w < state->src_w) in atmel_hlcdc_plane_update_pos_and_size()
303 factor = ((8 * 256 * state->src_w) - (256 * 4)) / in atmel_hlcdc_plane_update_pos_and_size()
308 if (max_memsize > state->src_w) in atmel_hlcdc_plane_update_pos_and_size()
319 if (state->crtc_w < state->src_w) in atmel_hlcdc_plane_update_pos_and_size()
326 factor = ((8 * 256 * state->src_w) - (256 * 4)) / in atmel_hlcdc_plane_update_pos_and_size()
331 if (max_memsize > state->src_w) in atmel_hlcdc_plane_update_pos_and_size()
[all …]
/linux-4.4.14/drivers/gpu/drm/sti/
Dsti_cursor.c128 int src_w = state->src_w >> 16; in sti_cursor_atomic_update() local
143 if (src_w < STI_CURS_MIN_SIZE || in sti_cursor_atomic_update()
145 src_w > STI_CURS_MAX_SIZE || in sti_cursor_atomic_update()
148 src_w, src_h); in sti_cursor_atomic_update()
154 (cursor->width != src_w) || in sti_cursor_atomic_update()
156 cursor->width = src_w; in sti_cursor_atomic_update()
Dsti_hqvdp.c499 int src_w, int src_h, in sti_hqvdp_check_hw_scaling() argument
506 lfw /= max(src_w, dst_w) * mode->clock / 1000; in sti_hqvdp_check_hw_scaling()
795 int src_w = state->src_w >> 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()
863 if ((src_w > MAX_WIDTH) || (src_w < MIN_WIDTH) || 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 …]
Dsti_gdp.c396 int src_x, src_y, src_w, src_h; in sti_gdp_atomic_update() local
421 src_w = state->src_w >> 16; in sti_gdp_atomic_update()
430 src_w, src_h, src_x, src_y); in sti_gdp_atomic_update()
471 clamp_val(src_w, 0, GAM_GDP_SIZE_MAX); in sti_gdp_atomic_update()
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_plane.c43 uint32_t src_w, uint32_t src_h);
302 (((state->src_w >> 16) != state->crtc_w) || in mdp5_plane_atomic_check()
306 state->src_w >> 16, state->src_h >> 16, in mdp5_plane_atomic_check()
330 if (state->src_w != old_state->src_w) { in mdp5_plane_atomic_check()
369 state->src_w, state->src_h); in mdp5_plane_atomic_update()
606 uint32_t src_w, int pe_left[COMP_MAX], int pe_right[COMP_MAX], in mdp5_write_pixel_ext() argument
614 uint32_t roi_w = src_w; in mdp5_write_pixel_ext()
670 uint32_t src_w, uint32_t src_h) in mdp5_plane_mode_set() argument
700 src_w = src_w >> 16; in mdp5_plane_mode_set()
704 fb->base.id, src_x, src_y, src_w, src_h, in mdp5_plane_mode_set()
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_rect.c131 int src_w = drm_rect_width(src); in drm_rect_calc_hscale() local
133 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale()
199 int src_w = drm_rect_width(src); in drm_rect_calc_hscale_relaxed() local
201 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale_relaxed()
207 int max_dst_w = src_w / min_hscale; in drm_rect_calc_hscale_relaxed()
217 drm_rect_adjust_size(src, max_src_w - src_w, 0); in drm_rect_calc_hscale_relaxed()
Ddrm_plane_helper.c229 uint32_t src_w, uint32_t src_h) in drm_primary_helper_update() argument
241 .x2 = src_x + src_w, in drm_primary_helper_update()
523 uint32_t src_w, uint32_t src_h) in drm_plane_helper_update() argument
548 plane_state->src_w = src_w; in drm_plane_helper_update()
Ddrm_atomic.c606 state->src_w = val; in drm_atomic_plane_set_property()
653 *val = state->src_w; in drm_atomic_plane_get_property()
744 if (state->src_w > fb_width || in drm_atomic_plane_check()
745 state->src_x > fb_width - state->src_w || in drm_atomic_plane_check()
750 state->src_w >> 16, ((state->src_w & 0xffff) * 15625) >> 10, in drm_atomic_plane_check()
Ddrm_crtc.c2318 uint32_t src_w, uint32_t src_h, in check_src_coords() argument
2327 if (src_w > fb_width || in check_src_coords()
2328 src_x > fb_width - src_w || in check_src_coords()
2333 src_w >> 16, ((src_w & 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 …]
Ddrm_atomic_helper.c1464 uint32_t src_w, uint32_t src_h) in drm_atomic_helper_update_plane() argument
1493 plane_state->src_w = src_w; in drm_atomic_helper_update_plane()
1617 plane_state->src_w = 0; in __drm_atomic_helper_disable_plane()
1806 primary_state->src_w = vdisplay << 16; in __drm_atomic_helper_set_config()
1809 primary_state->src_w = hdisplay << 16; in __drm_atomic_helper_set_config()
Ddrm_crtc_helper.c1013 plane_state->src_w = crtc->mode.hdisplay << 16; in drm_helper_crtc_mode_set_base()
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_plane.c65 uint32_t src_w, uint32_t src_h) in exynos_plane_mode_set() argument
88 exynos_plane->h_ratio = (src_w << 16) / crtc_w; in exynos_plane_mode_set()
94 exynos_plane->src_w = (actual_w * exynos_plane->h_ratio) >> 16; in exynos_plane_mode_set()
162 state->src_w >> 16, state->src_h >> 16); in exynos_plane_atomic_update()
Dexynos_drm_fimc.c950 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local
954 src_w = src->h; in fimc_set_prescaler()
957 src_w = src->w; in fimc_set_prescaler()
970 hfactor = fls(src_w / dst_w / 2); in fimc_set_prescaler()
982 pre_dst_width = src_w >> hfactor; in fimc_set_prescaler()
988 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler()
990 sc->up_h = (dst_w >= src_w) ? true : false; in fimc_set_prescaler()
Dexynos_drm_drv.h69 unsigned int src_w; member
Dexynos_mixer.c462 vp_reg_write(res, VP_SRC_WIDTH, plane->src_w); in vp_video_buffer()
511 if (plane->crtc_w != plane->src_w) { in mixer_setup_scale()
512 if (plane->crtc_w == 2 * plane->src_w) in mixer_setup_scale()
608 val = MXR_GRP_WH_WIDTH(plane->src_w); in mixer_graph_buffer()
Dexynos_drm_gsc.c920 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local
923 src_w = src->w; in gsc_set_prescaler()
934 ret = gsc_get_ratio_shift(src_w, dst_w, &sc->pre_hratio); in gsc_set_prescaler()
949 sc->main_hratio = (src_w << 16) / dst_w; in gsc_set_prescaler()
/linux-4.4.14/include/drm/
Ddrm_plane_helper.h96 uint32_t src_w, uint32_t src_h);
106 uint32_t src_w, uint32_t src_h);
Ddrm_atomic_helper.h76 uint32_t src_w, uint32_t src_h);
Ddrm_crtc.h770 uint32_t src_h, src_w; member
799 uint32_t src_w, uint32_t src_h);
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_plane.c114 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()
118 win.src_w = state->src_w >> 16; in omap_plane_atomic_update()
Domap_fb.c164 info->width = win->src_w; in omap_framebuffer_update_scanout()
171 uint32_t w = win->src_w; in omap_framebuffer_update_scanout()
Domap_drv.h51 uint32_t src_w, src_h; member
/linux-4.4.14/drivers/gpu/drm/shmobile/
Dshmob_drm_plane.c180 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/rockchip/
Drockchip_drm_vop.c519 uint32_t src_w, uint32_t src_h, uint32_t dst_w, in scl_vop_cal_scl_fac() argument
528 uint16_t cbcr_src_w = src_w / hsub; in scl_vop_cal_scl_fac()
540 yrgb_hor_scl_mode = scl_get_scl_mode(src_w, dst_w); in scl_vop_cal_scl_fac()
554 lb_mode = scl_vop_cal_lb_mode(src_w, false); in scl_vop_cal_scl_fac()
574 val = scl_vop_cal_scale(yrgb_hor_scl_mode, src_w, dst_w, in scl_vop_cal_scl_fac()
793 uint32_t src_y, uint32_t src_w, in vop_update_plane_event() argument
830 .x2 = src_x + src_w, in vop_update_plane_event()
992 uint32_t src_x, uint32_t src_y, uint32_t src_w, 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/media/platform/sti/bdisp/
Dbdisp-hw.c335 u32 src_w, src_h, dst_w, dst_h; in bdisp_hw_get_hv_inc() local
337 src_w = ctx->src.crop.width; in bdisp_hw_get_hv_inc()
342 if (bdisp_hw_get_inc(src_w, dst_w, h_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/
Darmada_overlay.c98 uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h) in armada_ovl_plane_update() argument
105 .x2 = src_x + src_w, in armada_ovl_plane_update()
/linux-4.4.14/drivers/gpu/drm/vc4/
Dvc4_plane.c160 if (state->crtc_w << 16 != state->src_w || in vc4_plane_mode_set()
/linux-4.4.14/include/uapi/drm/
Ddrm_mode.h176 __u32 src_w; member
/linux-4.4.14/drivers/gpu/drm/rcar-du/
Drcar_du_plane.c246 if (state->src_w >> 16 != state->crtc_w || in rcar_du_plane_atomic_check()
/linux-4.4.14/drivers/gpu/drm/tegra/
Ddc.c575 window.src.w = plane->state->src_w >> 16; in tegra_plane_atomic_update()
689 if ((state->src_w >> 16 != state->crtc_w) || in tegra_cursor_atomic_check()
694 if (state->src_w != state->src_h) in tegra_cursor_atomic_check()