/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/media/pci/ivtv/ |
H A D | ivtv-yuv.c | 230 f->tru_w, f->src_w, f->dst_w, f->src_x, f->dst_x); in ivtv_yuv_handle_horizontal() 233 x_cutoff = f->src_w + f->src_x; in ivtv_yuv_handle_horizontal() 257 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() 269 reg_2870_offset = (f->src_x * ((f->dst_w << 21) / f->src_w)) >> 19; in ivtv_yuv_handle_horizontal() 271 if (f->dst_w >= f->src_w) { in ivtv_yuv_handle_horizontal() 273 master_width = (f->src_w * 0x00200000) / (f->dst_w); in ivtv_yuv_handle_horizontal() 274 if (master_width * f->dst_w != f->src_w * 0x00200000) 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() [all …]
|
/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)
|
H A D | armada_overlay.c | 261 uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h, in armada_overlay_plane_update() argument 270 src_x, src_y, src_w, src_h); in armada_overlay_plane_update() 295 plane_state->src_w = src_w; in armada_overlay_plane_update()
|
/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-plane.c | 128 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 …]
|
/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() 368 uint32_t src_w, uint32_t src_h, in nv04_update_plane() argument 383 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 …]
|
H A D | malidp_crtc.c | 286 pstate->src_w); in malidp_crtc_atomic_check_scaling() 295 s->input_h = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling() 297 s->input_w = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling()
|
/linux/drivers/gpu/drm/atmel-hlcdc/ |
H A D | atmel_hlcdc_plane.c | 54 uint32_t src_w; member 295 if (state->crtc_w == state->src_w && state->crtc_h == state->src_h) { in atmel_hlcdc_plane_setup_scaler() 302 xfactor = atmel_hlcdc_plane_phiscaler_get_factor(state->src_w, in atmel_hlcdc_plane_setup_scaler() 311 state->crtc_w < state->src_w ? in atmel_hlcdc_plane_setup_scaler() 324 xfactor = (1024 * state->src_w) / state->crtc_w; in atmel_hlcdc_plane_setup_scaler() 344 if (state->crtc_w == state->src_w && state->crtc_h == state->src_h) { in atmel_xlcdc_plane_setup_scaler() 351 xfactor = (u32)(((1 << 20) * state->src_w) / state->crtc_w); in atmel_xlcdc_plane_setup_scaler() 398 ATMEL_HLCDC_LAYER_SIZE(state->src_w, in atmel_hlcdc_plane_update_pos_and_size() 605 pixels = (plane_state->src_w * plane_state->src_h) - in atmel_hlcdc_plane_prepare_ahb_routing() 728 hstate->src_w = drm_rect_width(&s->src); in atmel_hlcdc_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_framebuffer.c | 210 u32 src_x, u32 src_y, u32 src_w, u32 src_h) in komeda_fb_check_src_coords() argument 217 if ((src_x + src_w > fb->width) || (src_y + src_h > fb->height)) { in komeda_fb_check_src_coords() 222 if ((src_x % info->hsub) || (src_w % info->hsub) || in komeda_fb_check_src_coords() 225 src_x, src_y, src_w, src_h, info->format); in komeda_fb_check_src_coords() 229 if ((src_x % block_w) || (src_w % block_w) || in komeda_fb_check_src_coords() 232 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/meson/ |
H A D | meson_plane.c | 148 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()
|
/linux/drivers/gpu/drm/virtio/ |
H A D | virtgpu_plane.c | 252 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 267 plane->state->src_w != old_state->src_w || in virtio_gpu_primary_plane_update() 277 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 286 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 293 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 555 plane->state->src_w >> 16, in virtio_panic_flush()
|
/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_plane.c | 66 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()
|
/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/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/drivers/gpu/drm/omapdrm/ |
H A D | omap_plane.c | 274 if (new_plane_state->src_w > max_width || new_plane_state->crtc_w > width) { in omap_plane_atomic_check() 277 if (is_fourcc_yuv && (((new_plane_state->src_w >> 16) / 2 & 1) || in omap_plane_atomic_check() 284 if (new_plane_state->src_w <= ((2 * width - 1) << 16) && in omap_plane_atomic_check() 290 if (new_plane_state->src_w <= (2 * max_width) && in omap_plane_atomic_check() 302 if ((new_plane_state->src_w >> 16) != new_plane_state->crtc_w || in omap_plane_atomic_check()
|
/linux/drivers/gpu/drm/kmb/ |
H A D | kmb_plane.c | 356 unsigned int src_w, src_h, crtc_x, crtc_y; in kmb_plane_atomic_update() local 384 src_w = new_plane_state->src_w >> 16; in kmb_plane_atomic_update() 391 src_w, src_h, fb->format->format, fb->flags); in kmb_plane_atomic_update() 453 kmb_write_lcd(kmb, LCD_LAYERn_WIDTH(plane_id), src_w - 1); in kmb_plane_atomic_update()
|
/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 504 src_w /= chroma_subsmpl_h; in _dpu_plane_setup_pixel_ext() 509 pixel_ext->num_ext_pxls_left[i] = src_w; in _dpu_plane_setup_pixel_ext() 1163 old_plane_state->src_w != plane_state->src_w || in dpu_plane_virtual_atomic_check() 1211 reqs.scale = (plane_state->src_w >> 16 != plane_state->crtc_w) || in dpu_plane_virtual_assign_resources()
|
/linux/include/drm/ |
H A D | drm_plane_helper.h | 39 uint32_t src_w, uint32_t src_h,
|
/linux/drivers/gpu/drm/sun4i/ |
H A D | sun8i_ui_scaler.h | 40 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
/linux/drivers/gpu/drm/imx/ipuv3/ |
H A D | ipuv3-plane.h | 41 uint32_t src_x, uint32_t src_y, uint32_t src_w,
|
/linux/drivers/gpu/drm/ |
H A D | drm_rect.c | 172 int src_w = drm_rect_width(src); in drm_rect_calc_hscale() local 174 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale()
|