Home
last modified time | relevance | path

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

1234

/openbmc/linux/arch/openrisc/lib/
H A Dmemcpy.c36 *dest_w++ = *src_w++; in memcpy()
37 *dest_w++ = *src_w++; in memcpy()
38 *dest_w++ = *src_w++; in memcpy()
39 *dest_w++ = *src_w++; in memcpy()
40 *dest_w++ = *src_w++; in memcpy()
41 *dest_w++ = *src_w++; in memcpy()
42 *dest_w++ = *src_w++; in memcpy()
43 *dest_w++ = *src_w++; in memcpy()
47 *dest_w++ = *src_w++; in memcpy()
48 *dest_w++ = *src_w++; in memcpy()
[all …]
/openbmc/linux/drivers/media/platform/ti/vpe/
H A Dsc.c61 void sc_set_hs_coeffs(struct sc_data *sc, void *addr, unsigned int src_w, in sc_set_hs_coeffs() argument
70 if (dst_w > src_w) { in sc_set_hs_coeffs()
73 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs()
75 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs()
78 if (dst_w == src_w) { in sc_set_hs_coeffs()
81 sixteenths = (dst_w << 4) / src_w; in sc_set_hs_coeffs()
148 u32 *sc_reg17, unsigned int src_w, unsigned int src_h, in sc_config_scaler() argument
178 if (src_w == dst_w && src_h == dst_h) { in sc_config_scaler()
190 dcm_x = src_w / dst_w; in sc_config_scaler()
207 src_w, dst_w, dcm_shift == 2 ? "4x" : in sc_config_scaler()
[all …]
/openbmc/linux/drivers/media/pci/ivtv/
H A Divtv-yuv.c257 if (f->dst_w >= f->src_w) in ivtv_yuv_handle_horizontal()
263 if (f->dst_w < f->src_w) in ivtv_yuv_handle_horizontal()
286 if (f->dst_w > f->src_w) in ivtv_yuv_handle_horizontal()
287 reg_2870_base = ((f->dst_w - f->src_w)<<16) / (f->src_w <<14); in ivtv_yuv_handle_horizontal()
305 reg_2870 += (5 - (((f->src_w + f->src_w / 2) - 1) / f->dst_w)) << 16; in ivtv_yuv_handle_horizontal()
674 f->src_w = (f->src_w - osd_crop) & ~3; in ivtv_yuv_window_setup()
675 f->dst_w = f->src_w / 4; in ivtv_yuv_window_setup()
748 f->src_w += f->src_x & 1; in ivtv_yuv_window_setup()
751 f->src_w &= ~1; in ivtv_yuv_window_setup()
767 f->src_w &= ~3; in ivtv_yuv_window_setup()
[all …]
/openbmc/linux/drivers/gpu/drm/armada/
H A Darmada_trace.h34 uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h),
35 TP_ARGS(plane, crtc, fb, crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h),
46 __field(u32, src_w)
59 __entry->src_w = src_w;
67 __entry->src_w >> 16, __entry->src_h >> 16)
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp4/
H A Dmdp4_plane.c54 uint32_t src_w, uint32_t src_h);
143 new_state->src_w, new_state->src_h); in mdp4_plane_atomic_update()
215 uint32_t src_w, uint32_t src_h) in mdp4_plane_mode_set() argument
237 src_w = src_w >> 16; in mdp4_plane_mode_set()
246 if (src_w > (crtc_w * DOWN_SCALE_MAX)) { in mdp4_plane_mode_set()
256 if (crtc_w > (src_w * UP_SCALE_MAX)) { in mdp4_plane_mode_set()
266 if (src_w != crtc_w) { in mdp4_plane_mode_set()
271 if (crtc_w > src_w) in mdp4_plane_mode_set()
273 else if (crtc_w <= (src_w / 4)) in mdp4_plane_mode_set()
278 src_w, crtc_w); in mdp4_plane_mode_set()
[all …]
/openbmc/linux/drivers/gpu/drm/imx/dcss/
H A Ddcss-plane.c128 static bool dcss_plane_is_source_size_allowed(u16 src_w, u16 src_h, u32 pix_fmt) in dcss_plane_is_source_size_allowed() argument
130 if (src_w < 64 && in dcss_plane_is_source_size_allowed()
133 else if (src_w < 32 && in dcss_plane_is_source_size_allowed()
138 return src_w >= 16 && src_h >= 8; in dcss_plane_is_source_size_allowed()
168 if (!dcss_plane_is_source_size_allowed(new_plane_state->src_w >> 16, in dcss_plane_atomic_check()
260 state->src_w != old_state->src_w || in dcss_plane_needs_setup()
280 u32 src_w, src_h, dst_w, dst_h; in dcss_plane_atomic_update() local
303 src_w = drm_rect_width(&src) >> 16; in dcss_plane_atomic_update()
316 dcss_dpr_set_res(dcss->dpr, dcss_plane->ch_num, src_w, src_h); in dcss_plane_atomic_update()
330 is_rotation_90_or_270 ? src_h : src_w, in dcss_plane_atomic_update()
[all …]
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_plane.c203 if (state->src_w > max_width) { in mdp5_plane_atomic_check_with_state()
278 state->src_w >> 16, false); in mdp5_plane_atomic_check_with_state()
407 plane->state->src_w != new_plane_state->src_w || in mdp5_plane_atomic_async_check()
699 uint32_t roi_w = src_w; in mdp5_write_pixel_ext()
772 u32 src_w, u32 src_h) in mdp5_hwpipe_mode_set() argument
828 src_w, pe->left, pe->right, in mdp5_hwpipe_mode_set()
878 uint32_t src_w, src_h; in mdp5_plane_mode_set() local
893 src_w = drm_rect_width(src); in mdp5_plane_mode_set()
904 src_w = src_w >> 16; in mdp5_plane_mode_set()
922 src_w /= 2; in mdp5_plane_mode_set()
[all …]
/openbmc/linux/drivers/gpu/drm/sti/
H A Dsti_hqvdp.c482 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local
536 if (dst_w > src_w) in hqvdp_dbg_dump_cmd()
736 int src_w, int src_h, in sti_hqvdp_check_hw_scaling() argument
1033 int src_x, src_y, src_w, src_h; in sti_hqvdp_atomic_check() local
1048 src_w = new_plane_state->src_w >> 16; in sti_hqvdp_atomic_check()
1052 src_w, src_h, in sti_hqvdp_atomic_check()
1070 if ((src_w > MAX_WIDTH) || (src_w < MIN_WIDTH) || in sti_hqvdp_atomic_check()
1075 src_w, src_h, in sti_hqvdp_atomic_check()
1126 int src_x, src_y, src_w, src_h; in sti_hqvdp_atomic_update() local
1142 (oldstate->src_w == newstate->src_w) && in sti_hqvdp_atomic_update()
[all …]
H A Dsti_cursor.c196 int src_w, src_h; in sti_cursor_atomic_check() local
211 src_w = new_plane_state->src_w >> 16; in sti_cursor_atomic_check()
214 if (src_w < STI_CURS_MIN_SIZE || in sti_cursor_atomic_check()
216 src_w > STI_CURS_MAX_SIZE || in sti_cursor_atomic_check()
219 src_w, src_h); in sti_cursor_atomic_check()
225 (cursor->width != src_w) || in sti_cursor_atomic_check()
227 cursor->width = src_w; in sti_cursor_atomic_check()
H A Dsti_gdp.c632 int src_x, src_y, src_w, src_h; in sti_gdp_atomic_check() local
649 src_w = clamp_val(new_plane_state->src_w >> 16, 0, in sti_gdp_atomic_check()
698 src_w, src_h, src_x, src_y); in sti_gdp_atomic_check()
716 int src_x, src_y, src_w, src_h; in sti_gdp_atomic_update() local
737 (oldstate->src_w == newstate->src_w) && in sti_gdp_atomic_update()
763 src_w = clamp_val(newstate->src_w >> 16, 0, GAM_GDP_SIZE_MAX_WIDTH); in sti_gdp_atomic_update()
794 dst_w = sti_gdp_get_dst(gdp->dev, dst_w, src_w); in sti_gdp_atomic_update()
804 src_w = dst_w; in sti_gdp_atomic_update()
806 top_field->gam_gdp_size = src_h << 16 | src_w; in sti_gdp_atomic_update()
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Doverlay.c94 uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h, in verify_scaling() argument
97 if (crtc_w < (src_w >> shift) || crtc_h < (src_h >> shift)) { in verify_scaling()
99 src_w, src_h, crtc_w, crtc_h); in verify_scaling()
117 uint32_t src_w, uint32_t src_h, in nv10_update_plane() argument
137 src_w >>= 16; in nv10_update_plane()
140 ret = verify_scaling(fb, shift, 0, 0, src_w, src_h, crtc_w, crtc_h); in nv10_update_plane()
156 nvif_wr32(dev, NV_PVIDEO_SIZE_IN(flip), src_h << 16 | src_w); in nv10_update_plane()
158 nvif_wr32(dev, NV_PVIDEO_DS_DX(flip), (src_w << 20) / crtc_w); in nv10_update_plane()
368 uint32_t src_w, uint32_t src_h, in nv04_update_plane() argument
383 src_w >>= 16; in nv04_update_plane()
[all …]
/openbmc/linux/drivers/media/platform/rockchip/rga/
H A Drga-hw.c166 unsigned int src_h, src_w, src_x, src_y, dst_h, dst_w, dst_x, dst_y; in rga_cmd_set_trans_info() local
181 src_w = ctx->in.crop.width; in rga_cmd_set_trans_info()
264 if (abs(src_w - dst_h) < 16) in rga_cmd_set_trans_info()
265 src_w -= 16; in rga_cmd_set_trans_info()
275 if (src_w == scale_dst_w) { in rga_cmd_set_trans_info()
278 } else if (src_w > scale_dst_w) { in rga_cmd_set_trans_info()
281 rga_get_scaling(src_w, scale_dst_w) + 1; in rga_cmd_set_trans_info()
285 rga_get_scaling(src_w - 1, scale_dst_w - 1); in rga_cmd_set_trans_info()
309 src_act_info.data.act_width = src_w - 1; in rga_cmd_set_trans_info()
319 src_w, src_h); in rga_cmd_set_trans_info()
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun8i_vi_layer.c106 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local
120 src_w = drm_rect_width(&state->src) >> 16; in sun8i_vi_layer_update_coord()
134 src_w = (src_w + remainder) & ~mask; in sun8i_vi_layer_update_coord()
147 insize = SUN8I_MIXER_SIZE(src_w, src_h); in sun8i_vi_layer_update_coord()
154 DRM_DEBUG_DRIVER("Layer source size W: %d H: %d\n", src_w, src_h); in sun8i_vi_layer_update_coord()
181 do_div(ability, mode->vdisplay * fps * max(src_w, dst_w)); in sun8i_vi_layer_update_coord()
195 if (src_w > scanline) { in sun8i_vi_layer_update_coord()
197 hm = src_w; in sun8i_vi_layer_update_coord()
199 src_w = hn; in sun8i_vi_layer_update_coord()
202 hscale = (src_w << 16) / dst_w; in sun8i_vi_layer_update_coord()
[all …]
H A Dsun8i_ui_layer.c102 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local
113 src_w = drm_rect_width(&state->src) >> 16; in sun8i_ui_layer_update_coord()
121 insize = SUN8I_MIXER_SIZE(src_w, src_h); in sun8i_ui_layer_update_coord()
127 DRM_DEBUG_DRIVER("Layer source size W: %d H: %d\n", src_w, src_h); in sun8i_ui_layer_update_coord()
140 hscale = state->src_w / state->crtc_w; in sun8i_ui_layer_update_coord()
143 sun8i_ui_scaler_setup(mixer, channel, src_w, src_h, dst_w, in sun8i_ui_layer_update_coord()
H A Dsun8i_vi_scaler.c927 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_vi_scaler_setup() argument
942 insize = SUN8I_VI_SCALER_SIZE(src_w, src_h); in sun8i_vi_scaler_setup()
985 SUN8I_VI_SCALER_SIZE(src_w / format->hsub, in sun8i_vi_scaler_setup()
/openbmc/linux/drivers/gpu/drm/arm/
H A Dmalidp_planes.c268 u32 src_w, src_h; in malidp_se_check_scaling() local
282 src_w = state->src_h >> 16; in malidp_se_check_scaling()
283 src_h = state->src_w >> 16; in malidp_se_check_scaling()
285 src_w = state->src_w >> 16; in malidp_se_check_scaling()
289 if ((state->crtc_w == src_w) && (state->crtc_h == src_h)) { in malidp_se_check_scaling()
742 u32 src_w, src_h, val = 0, src_x, src_y; in malidp_de_set_plane_afbc() local
757 src_w = plane->state->src_w >> 16; in malidp_de_set_plane_afbc()
792 u32 src_w, src_h, dest_w, dest_h, val; in malidp_de_plane_update() local
803 src_w = fb->width; in malidp_de_plane_update()
807 src_w = new_state->src_w >> 16; in malidp_de_plane_update()
[all …]
/openbmc/linux/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_plane.c54 uint32_t src_w; member
310 state->crtc_w < state->src_w ? in atmel_hlcdc_plane_setup_scaler()
323 xfactor = (1024 * state->src_w) / state->crtc_w; in atmel_hlcdc_plane_setup_scaler()
347 ATMEL_HLCDC_LAYER_SIZE(state->src_w, in atmel_hlcdc_plane_update_pos_and_size()
501 pixels = (plane_state->src_w * plane_state->src_h) - in atmel_hlcdc_plane_prepare_ahb_routing()
624 hstate->src_w = drm_rect_width(&s->src); in atmel_hlcdc_plane_atomic_check()
637 hstate->src_w >>= 16; in atmel_hlcdc_plane_atomic_check()
657 offset += ((hstate->src_x + hstate->src_w - 1) / in atmel_hlcdc_plane_atomic_check()
667 offset += ((hstate->src_x + hstate->src_w - 1) / in atmel_hlcdc_plane_atomic_check()
686 ((hstate->src_w / xdiv) * in atmel_hlcdc_plane_atomic_check()
[all …]
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_framebuffer.c209 u32 src_x, u32 src_y, u32 src_w, u32 src_h) in komeda_fb_check_src_coords() argument
216 if ((src_x + src_w > fb->width) || (src_y + src_h > fb->height)) { in komeda_fb_check_src_coords()
221 if ((src_x % info->hsub) || (src_w % info->hsub) || in komeda_fb_check_src_coords()
224 src_x, src_y, src_w, src_h, info->format); in komeda_fb_check_src_coords()
228 if ((src_x % block_w) || (src_w % block_w) || in komeda_fb_check_src_coords()
231 src_x, src_y, src_w, src_h, info->format); in komeda_fb_check_src_coords()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_plane.c796 uint32_t src_w, uint32_t src_h) in __setplane_check() argument
892 src_x, src_y, src_w, src_h); in __setplane_internal()
899 src_x, src_y, src_w, src_h, ctx); in __setplane_internal()
922 uint32_t src_w, uint32_t src_h, in __setplane_atomic() argument
942 src_x, src_y, src_w, src_h); in __setplane_atomic()
958 uint32_t src_w, uint32_t src_h) in setplane_internal() argument
1049 uint32_t src_w = 0, src_h = 0; in drm_mode_cursor_universal() local
1094 src_w = fb->width << 16; in drm_mode_cursor_universal()
1101 0, 0, src_w, src_h, ctx); in drm_mode_cursor_universal()
1105 0, 0, src_w, src_h, ctx); in drm_mode_cursor_universal()
[all …]
H A Ddrm_plane_helper.c112 .src_w = drm_rect_width(src), in drm_plane_helper_check_update()
169 uint32_t src_w, uint32_t src_h, in drm_plane_helper_update_primary() argument
182 .x2 = src_x + src_w, in drm_plane_helper_update_primary()
/openbmc/linux/drivers/gpu/drm/meson/
H A Dmeson_plane.c148 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local
264 src_w = fixed16_to_int(new_state->src_w); in meson_plane_atomic_update()
282 hf_phase_step = ((src_w << 18) / dst_w) << 6; in meson_plane_atomic_update()
293 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update()
294 priv->viu.osd_sc_i_wh_m1 = SCI_WH_M1_W(src_w - 1) | in meson_plane_atomic_update()
332 if (src_w != dst_w) { in meson_plane_atomic_update()
/openbmc/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_plane.c189 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update()
204 plane->state->src_w != old_state->src_w || in virtio_gpu_primary_plane_update()
214 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update()
223 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update()
230 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_sprite.c552 unsigned int src_w, dst_w, pixel_rate; in ivb_sprite_min_cdclk() local
567 if (src_w != dst_w) in ivb_sprite_min_cdclk()
573 dst_w = min(src_w, dst_w); in ivb_sprite_min_cdclk()
789 if (crtc_w != src_w || crtc_h != src_h) in ivb_sprite_update_noarm()
791 SPRITE_SRC_WIDTH(src_w - 1) | in ivb_sprite_update_noarm()
1116 if (crtc_w != src_w || crtc_h != src_h) in g4x_sprite_update_noarm()
1118 DVS_SRC_WIDTH(src_w - 1) | in g4x_sprite_update_noarm()
1234 int src_x, src_w, src_h, crtc_w, crtc_h; in g4x_sprite_check_scaling() local
1246 src_w = drm_rect_width(src) >> 16; in g4x_sprite_check_scaling()
1249 if (src_w == crtc_w && src_h == crtc_h) in g4x_sprite_check_scaling()
[all …]
/openbmc/linux/drivers/gpu/drm/vc4/
H A Dvc4_plane.c495 vc4_state->src_w[1] = vc4_state->src_w[0] / h_subsample; in vc4_plane_setup_clipping_and_scaling()
499 vc4_get_scaling_mode(vc4_state->src_w[1], in vc4_plane_setup_clipping_and_scaling()
572 pix_per_line = vc4_state->src_w[0]; in vc4_lbm_size()
606 vc4_state->src_w[channel], vc4_state->crtc_w); in vc4_write_scaling_parameters()
619 vc4_state->src_w[channel], vc4_state->crtc_w); in vc4_write_scaling_parameters()
674 vc4_state->membus_load += vc4_state->src_w[i] * in vc4_plane_calc_load()
1095 VC4_SET_FIELD(vc4_state->src_w[0], in vc4_plane_mode_set()
1151 VC4_SET_FIELD(vc4_state->src_w[0], in vc4_plane_mode_set()
1394 plane->state->src_w = new_plane_state->src_w; in vc4_plane_atomic_async_update()
1416 memcpy(vc4_state->src_w, new_vc4_state->src_w, in vc4_plane_atomic_async_update()
[all …]
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_plane.c66 unsigned int src_w, src_h; in exynos_plane_mode_set() local
83 src_w = state->src_w >> 16; in exynos_plane_mode_set()
87 exynos_state->h_ratio = (src_w << 16) / crtc_w; in exynos_plane_mode_set()

1234