| /linux/arch/openrisc/lib/ |
| H A D | memcpy.c | 30 uint32_t *dest_w = (uint32_t *)dest, *src_w = (uint32_t *)src; in memcpy() local 33 if (!((unsigned int)dest_w & 3) && !((unsigned int)src_w & 3)) { in memcpy() 36 *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() [all …]
|
| /linux/drivers/media/platform/ti/vpe/ |
| H A D | sc.c | 61 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() 202 lin_acc_inc = div64_u64(((u64)(src_w >> dcm_shift) - 1) << 24, lltmp); in sc_config_scaler() [all …]
|
| H A D | sc.h | 199 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,
|
| /linux/drivers/gpu/drm/armada/ |
| H A D | armada_trace.h | 34 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)
|
| /linux/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_plane.c | 186 if (state->src_w > max_width) { in mdp5_plane_atomic_check_with_state() 193 (state->src_w <= 2 * max_width)) in mdp5_plane_atomic_check_with_state() 225 if (((state->src_w >> 16) != state->crtc_w) || in mdp5_plane_atomic_check_with_state() 261 state->src_w >> 16, false); in mdp5_plane_atomic_check_with_state() 389 plane->state->src_w != new_plane_state->src_w || in mdp5_plane_atomic_async_check() 671 uint32_t src_w, int pe_left[COMP_MAX], int pe_right[COMP_MAX], in mdp5_write_pixel_ext() argument 679 uint32_t roi_w = src_w; in mdp5_write_pixel_ext() 752 u32 src_w, u32 src_h) in mdp5_hwpipe_mode_set() argument 764 MDP5_PIPE_SRC_SIZE_WIDTH(src_w) | in mdp5_hwpipe_mode_set() 809 src_w, pe->left, pe->right, in mdp5_hwpipe_mode_set() [all …]
|
| /linux/drivers/gpu/drm/imx/dcss/ |
| H A D | dcss-plane.c | 129 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 131 if (src_w < 64 && in dcss_plane_is_source_size_allowed() 134 else if (src_w < 32 && in dcss_plane_is_source_size_allowed() 139 return src_w >= 16 && src_h >= 8; in dcss_plane_is_source_size_allowed() 169 if (!dcss_plane_is_source_size_allowed(new_plane_state->src_w >> 16, in dcss_plane_atomic_check() 261 state->src_w != old_state->src_w || in dcss_plane_needs_setup() 281 u32 src_w, src_h, dst_w, dst_h; in dcss_plane_atomic_update() local 304 src_w = drm_rect_width(&src) >> 16; in dcss_plane_atomic_update() 317 dcss_dpr_set_res(dcss->dpr, dcss_plane->ch_num, src_w, src_h); in dcss_plane_atomic_update() 331 is_rotation_90_or_270 ? src_h : src_w, in dcss_plane_atomic_update() [all …]
|
| /linux/drivers/gpu/drm/nouveau/dispnv04/ |
| H A D | overlay.c | 94 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() 369 uint32_t src_w, uint32_t src_h, in nv04_update_plane() argument 384 src_w >>= 16; in nv04_update_plane() [all …]
|
| /linux/drivers/gpu/drm/arm/ |
| H A D | malidp_planes.c | 268 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() 762 val = ((fb->width - (src_x + src_w)) << MALIDP_AD_CROP_RIGHT_OFFSET) | 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() [all …]
|
| /linux/drivers/gpu/drm/arm/display/komeda/ |
| H A D | komeda_framebuffer.c | 211 u32 src_x, u32 src_y, u32 src_w, u32 src_h) in komeda_fb_check_src_coords() argument 218 if ((src_x + src_w > fb->width) || (src_y + src_h > fb->height)) { in komeda_fb_check_src_coords() 223 if ((src_x % info->hsub) || (src_w % info->hsub) || in komeda_fb_check_src_coords() 226 src_x, src_y, src_w, src_h, info->format); in komeda_fb_check_src_coords() 230 if ((src_x % block_w) || (src_w % block_w) || in komeda_fb_check_src_coords() 233 src_x, src_y, src_w, src_h, info->format); in komeda_fb_check_src_coords()
|
| H A D | komeda_framebuffer.h | 43 u32 src_x, u32 src_y, u32 src_w, u32 src_h);
|
| /linux/drivers/gpu/drm/atmel-hlcdc/ |
| H A D | atmel_hlcdc_plane.c | 55 uint32_t src_w; member 294 if (state->crtc_w == state->src_w && state->crtc_h == state->src_h) { in atmel_hlcdc_plane_setup_scaler() 301 xfactor = atmel_hlcdc_plane_phiscaler_get_factor(state->src_w, in atmel_hlcdc_plane_setup_scaler() 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() 343 if (state->crtc_w == state->src_w && state->crtc_h == state->src_h) { in atmel_xlcdc_plane_setup_scaler() 350 xfactor = (u32)(((1 << 20) * state->src_w) / state->crtc_w); in atmel_xlcdc_plane_setup_scaler() 418 ATMEL_HLCDC_LAYER_SIZE(state->src_w, in atmel_hlcdc_plane_update_pos_and_size() 625 pixels = (plane_state->src_w * plane_state->src_h) - in atmel_hlcdc_plane_prepare_ahb_routing() 748 hstate->src_w = drm_rect_width(&s->src) >> 16; in atmel_hlcdc_plane_atomic_check() [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_plane.c | 953 uint32_t src_w, uint32_t src_h) in __setplane_check() argument 980 ret = drm_framebuffer_check_src_coords(src_x, src_y, src_w, src_h, fb); in __setplane_check() 1025 uint32_t src_w, uint32_t src_h, in __setplane_internal() argument 1047 src_x, src_y, src_w, src_h); in __setplane_internal() 1054 src_x, src_y, src_w, src_h, ctx); in __setplane_internal() 1077 uint32_t src_w, uint32_t src_h, in __setplane_atomic() argument 1097 src_x, src_y, src_w, src_h); in __setplane_atomic() 1103 src_x, src_y, src_w, src_h, ctx); in __setplane_atomic() 1113 uint32_t src_w, uint32_t src_h) in setplane_internal() argument 1124 src_x, src_y, src_w, src_h, &ctx); in setplane_internal() [all …]
|
| H A D | drm_plane_helper.c | 113 .src_w = drm_rect_width(src), in drm_plane_helper_check_update() 170 uint32_t src_w, uint32_t src_h, in drm_plane_helper_update_primary() argument 183 .x2 = src_x + src_w, in drm_plane_helper_update_primary()
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_plane.c | 514 vc4_state->src_w[0] = state->src.x2 - vc4_state->src_x; in vc4_plane_setup_clipping_and_scaling() 526 vc4_state->x_scaling[0] = vc4_get_scaling_mode(vc4_state->src_w[0], in vc4_plane_setup_clipping_and_scaling() 537 vc4_state->src_w[1] = vc4_state->src_w[0] / h_subsample; in vc4_plane_setup_clipping_and_scaling() 541 vc4_get_scaling_mode(vc4_state->src_w[1], in vc4_plane_setup_clipping_and_scaling() 683 pix_per_line = vc4_state->src_w[0] >> 16; in __vc4_lbm_size() 759 width = state->src_w >> 16; in vc4_lbm_channel_size() 761 width = min(state->src_w >> 16, state->crtc_w); in vc4_lbm_channel_size() 844 vc4_write_ppf(vc4_state, vc4_state->src_w[channel], in vc4_write_scaling_parameters() 857 vc4_write_tpz(vc4_state, vc4_state->src_w[channel], in vc4_write_scaling_parameters() 913 vc4_state->membus_load += (vc4_state->src_w[i] >> 16) * in vc4_plane_calc_load() [all …]
|
| /linux/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_plane.c | 253 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 268 plane->state->src_w != old_state->src_w || in virtio_gpu_primary_plane_update() 278 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 287 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 294 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 556 plane->state->src_w >> 16, in virtio_panic_flush()
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_plane.c | 67 unsigned int src_w, src_h; in exynos_plane_mode_set() local 84 src_w = state->src_w >> 16; in exynos_plane_mode_set() 88 exynos_state->h_ratio = (src_w << 16) / crtc_w; in exynos_plane_mode_set()
|
| /linux/drivers/gpu/drm/ingenic/ |
| H A D | ingenic-ipu.c | 315 state->src_w != oldstate->src_w || in osd_changed() 391 stride = ((newstate->src_w >> 16) * finfo->cpp[2] / finfo->hsub) in ingenic_ipu_plane_atomic_update() 395 stride |= ((newstate->src_w >> 16) * finfo->cpp[1] / finfo->hsub) in ingenic_ipu_plane_atomic_update() 400 stride = ((newstate->src_w >> 16) * finfo->cpp[0]) << JZ_IPU_Y_STRIDE_Y_LSB; in ingenic_ipu_plane_atomic_update() 561 newstate->src_w >> 16, newstate->src_h >> 16, in ingenic_ipu_plane_atomic_update() 606 if ((new_plane_state->src_w >> 16) < 4 || (new_plane_state->src_h >> 16) < 4) in ingenic_ipu_plane_atomic_check() 610 if (((new_plane_state->src_w >> 16) & 1) || (new_plane_state->crtc_w & 1)) in ingenic_ipu_plane_atomic_check() 618 xres = new_plane_state->src_w >> 16; in ingenic_ipu_plane_atomic_check()
|
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_drm_vop2.c | 550 u32 src_w, u32 src_h, u32 dst_w, in vop2_setup_scale() argument 556 uint16_t cbcr_src_w = src_w; in vop2_setup_scale() 572 hor_scl_mode = scl_get_scl_mode(src_w, dst_w); in vop2_setup_scale() 597 val = vop2_scale_factor(src_w, dst_w); in vop2_setup_scale() 996 int src_x, src_w, src_h; in vop2_plane_atomic_check() local 1028 src_w = drm_rect_width(src) >> 16; in vop2_plane_atomic_check() 1033 if (src_w < 4 || src_h < 4 || dest_w < 4 || dest_h < 4) { in vop2_plane_atomic_check() 1035 src_w, src_h, dest_w, dest_h); in vop2_plane_atomic_check() 1039 if (src_w > vop2_data->max_input.width || in vop2_plane_atomic_check() 1042 src_w, src_h, in vop2_plane_atomic_check() [all …]
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_plane_helper_test.c | 70 mock->src_w = params->src.w; in drm_plane_helper_init() 84 unsigned int src_w, unsigned int src_h) in check_src_eq() argument 86 struct drm_rect expected = DRM_RECT_INIT(src_x, src_y, src_w, src_h); in check_src_eq()
|
| /linux/include/drm/ |
| H A D | drm_plane.h | 119 uint32_t src_h, src_w; member 279 .x2 = state->src_x + state->src_w, in drm_plane_state_src() 332 uint32_t src_w, uint32_t src_h,
|
| H A D | drm_plane_helper.h | 39 uint32_t src_w, uint32_t src_h,
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_plane.c | 275 if (new_plane_state->src_w > max_width || new_plane_state->crtc_w > width) { in omap_plane_atomic_check() 278 if (is_fourcc_yuv && (((new_plane_state->src_w >> 16) / 2 & 1) || in omap_plane_atomic_check() 285 if (new_plane_state->src_w <= ((2 * width - 1) << 16) && in omap_plane_atomic_check() 291 if (new_plane_state->src_w <= (2 * max_width) && in omap_plane_atomic_check() 303 if ((new_plane_state->src_w >> 16) != new_plane_state->crtc_w || in omap_plane_atomic_check()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_plane.c | 210 unsigned int src_w, src_h, dst_w, dst_h; in intel_adjusted_rate() local 212 src_w = drm_rect_width(src) >> 16; in intel_adjusted_rate() 218 dst_w = min(src_w, dst_w); in intel_adjusted_rate() 221 return DIV_ROUND_UP_ULL(mul_u32_u32(rate, src_w * src_h), in intel_adjusted_rate() 460 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_plane_is_scaled() local 465 return src_w != dst_w || src_h != dst_h; in intel_plane_is_scaled() 1069 u32 src_x, src_y, src_w, src_h, hsub, vsub; in intel_plane_check_src_coordinates() local 1089 src_w = drm_rect_width(src) >> 16; in intel_plane_check_src_coordinates() 1094 src_w << 16, src_h << 16); in intel_plane_check_src_coordinates() 1125 if (src_x % hsub || src_w % hsub) { in intel_plane_check_src_coordinates() [all …]
|
| /linux/drivers/gpu/drm/tidss/ |
| H A D | tidss_plane.c | 94 if ((new_plane_state->src_w >> 16) % finfo->hsub != 0) { in tidss_plane_atomic_check() 97 __func__, (new_plane_state->src_w >> 16), in tidss_plane_atomic_check()
|
| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_plane.c | 427 uint32_t src_w, uint32_t src_h, uint32_t dst_w, uint32_t dst_h, in _dpu_plane_setup_scaler3() argument 442 swap(src_w, src_h); in _dpu_plane_setup_scaler3() 445 mult_frac((1 << PHASE_STEP_SHIFT), src_w, dst_w); in _dpu_plane_setup_scaler3() 466 scale_cfg->src_width[i] = src_w; in _dpu_plane_setup_scaler3() 482 && (src_w == dst_w)) in _dpu_plane_setup_scaler3() 497 uint32_t src_w, uint32_t src_h, in _dpu_plane_setup_pixel_ext() argument 503 uint32_t w = src_w, h = src_h; in _dpu_plane_setup_pixel_ext() 1189 old_plane_state->src_w != plane_state->src_w || in dpu_plane_virtual_atomic_check() 1272 reqs.scale = (plane_state->src_w >> 16 != plane_state->crtc_w) || in dpu_plane_virtual_assign_resources()
|