| /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/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/ |
| 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()
|
| 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()
|
| /linux/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_plane.c | 257 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 272 plane->state->src_w != old_state->src_w || in virtio_gpu_primary_plane_update() 282 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 291 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 298 plane->state->src_w >> 16, in virtio_gpu_primary_plane_update() 563 plane->state->src_w >> 16, in virtio_panic_flush()
|
| /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()
|
| H A D | drm_framebuffer_test.c | 482 const uint32_t src_w = (params->fb_size << 16) + params->dsrc_w; in drm_test_framebuffer_check_src_coords() local 490 ret = drm_framebuffer_check_src_coords(src_x, src_y, src_w, src_h, &fb); in drm_test_framebuffer_check_src_coords()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_cursor.c | 124 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface() local 127 offset += (src_h * src_w - 1) * fb->format->cpp[0]; in intel_cursor_check_surface() 809 u32 src_w, u32 src_h, in intel_legacy_cursor_update() argument 854 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update() 875 new_plane_state->uapi.src_w = src_w; in intel_legacy_cursor_update() 970 src_x, src_y, src_w, src_h, ctx); in intel_legacy_cursor_update()
|
| H A D | skl_universal_plane.c | 1416 u32 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_plane_update_noarm() local 1430 PLANE_HEIGHT(src_h - 1) | PLANE_WIDTH(src_w - 1)); in skl_plane_update_noarm() 1564 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in icl_plane_update_noarm() local 1584 PLANE_HEIGHT(src_h - 1) | PLANE_WIDTH(src_w - 1)); in icl_plane_update_noarm() 1883 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_plane_check_nv12_rotation() local 1887 src_w & 3 && in skl_plane_check_nv12_rotation()
|
| /linux/include/drm/ |
| H A D | drm_plane_helper.h | 39 uint32_t src_w, uint32_t src_h,
|
| /linux/drivers/gpu/drm/arm/display/komeda/ |
| H A D | komeda_framebuffer.h | 43 u32 src_x, u32 src_y, u32 src_w, u32 src_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/media/platform/st/sti/bdisp/ |
| H A D | bdisp-hw.c | 630 u32 src_w, src_h, dst_w, dst_h; in bdisp_hw_get_hv_inc() local 632 src_w = ctx->src.crop.width; in bdisp_hw_get_hv_inc() 637 if (bdisp_hw_get_inc(src_w, dst_w, h_inc) || in bdisp_hw_get_hv_inc() 641 src_w, src_h, dst_w, dst_h); in bdisp_hw_get_hv_inc()
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_plane.c | 206 plane->state->src_w != new_state->src_w || in lsdc_cursor_plane_atomic_async_check() 242 plane->state->src_w = new_state->src_w; in lsdc_cursor_plane_atomic_async_update()
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_fimc.c | 744 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local 748 src_w = src->h; in fimc_set_prescaler() 751 src_w = src->w; in fimc_set_prescaler() 764 hfactor = fls(src_w / dst_w / 2); in fimc_set_prescaler() 776 pre_dst_width = src_w >> hfactor; in fimc_set_prescaler() 783 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler() 785 sc->up_h = (dst_w >= src_w); in fimc_set_prescaler()
|
| H A D | exynos_drm_gsc.c | 747 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 750 src_w = src->w; in gsc_set_prescaler() 761 ret = gsc_get_ratio_shift(ctx, src_w, dst_w, &sc->pre_hratio); in gsc_set_prescaler() 776 sc->main_hratio = (src_w << 16) / dst_w; in gsc_set_prescaler()
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | plane.c | 228 unsigned int i, bpp, dst_w, dst_h, src_w, src_h, mul; in tegra_plane_calculate_memory_bandwidth() local 241 src_w = drm_rect_width(&state->src) >> 16; in tegra_plane_calculate_memory_bandwidth() 270 avg_bandwidth = min(src_w, dst_w) * min(src_h, dst_h); in tegra_plane_calculate_memory_bandwidth()
|
| H A D | hub.c | 586 min_width = min(new_state->src_w >> 16, new_state->crtc_w); in tegra_shared_plane_atomic_update() 604 if (new_state->src_w != new_state->crtc_w << 16) { in tegra_shared_plane_atomic_update() 605 fixed20_12 width = dfixed_init(new_state->src_w >> 16); in tegra_shared_plane_atomic_update() 657 value = V_SIZE(new_state->src_h >> 16) | H_SIZE(new_state->src_w >> 16); in tegra_shared_plane_atomic_update()
|
| H A D | dc.c | 986 if ((new_plane_state->src_w >> 16 != new_plane_state->crtc_w) || in tegra_cursor_atomic_check() 991 if (new_plane_state->src_w != new_plane_state->src_h) in tegra_cursor_atomic_check() 1146 plane->state->src_w != new_state->src_w || in tegra_cursor_atomic_async_check() 2439 unsigned int src_w = drm_rect_width(&state->src) >> 16; in tegra_plane_is_cursor() local 2448 if (src_w != dst_w || fmt->num_planes != 1 || src_w * fmt->cpp[0] > 256) in tegra_plane_is_cursor()
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_fb.c | 152 info->width = state->src_w >> 16; in omap_framebuffer_update_scanout() 163 u32 w = state->src_w >> 16; in omap_framebuffer_update_scanout()
|
| /linux/drivers/media/platform/mediatek/mdp/ |
| H A D | mtk_mdp_m2m.c | 813 static int mtk_mdp_check_scaler_ratio(struct mtk_mdp_variant *var, int src_w, in mtk_mdp_check_scaler_ratio() argument 826 if ((src_w / tmp_w) > var->h_scale_down_max || in mtk_mdp_check_scaler_ratio() 828 (tmp_w / src_w) > var->h_scale_up_max || in mtk_mdp_check_scaler_ratio()
|