Lines Matching refs:plane

387 	struct exynos_drm_plane *plane;  in vp_video_buffer()  local
393 plane = &ctx->planes[win]; in vp_video_buffer()
395 switch (plane->pixel_format) { in vp_video_buffer()
404 plane->pixel_format); in vp_video_buffer()
408 luma_addr[0] = plane->dma_addr[0]; in vp_video_buffer()
409 chroma_addr[0] = plane->dma_addr[1]; in vp_video_buffer()
411 if (plane->scan_flag & DRM_MODE_FLAG_INTERLACE) { in vp_video_buffer()
417 luma_addr[1] = luma_addr[0] + plane->pitch; in vp_video_buffer()
418 chroma_addr[1] = chroma_addr[0] + plane->pitch; in vp_video_buffer()
439 vp_reg_write(res, VP_IMG_SIZE_Y, VP_IMG_HSIZE(plane->pitch) | in vp_video_buffer()
440 VP_IMG_VSIZE(plane->fb_height)); in vp_video_buffer()
442 vp_reg_write(res, VP_IMG_SIZE_C, VP_IMG_HSIZE(plane->pitch) | in vp_video_buffer()
443 VP_IMG_VSIZE(plane->fb_height / 2)); in vp_video_buffer()
445 vp_reg_write(res, VP_SRC_WIDTH, plane->src_width); in vp_video_buffer()
446 vp_reg_write(res, VP_SRC_HEIGHT, plane->src_height); in vp_video_buffer()
448 VP_SRC_H_POSITION_VAL(plane->src_x)); in vp_video_buffer()
449 vp_reg_write(res, VP_SRC_V_POSITION, plane->src_y); in vp_video_buffer()
451 vp_reg_write(res, VP_DST_WIDTH, plane->crtc_width); in vp_video_buffer()
452 vp_reg_write(res, VP_DST_H_POSITION, plane->crtc_x); in vp_video_buffer()
454 vp_reg_write(res, VP_DST_HEIGHT, plane->crtc_height / 2); in vp_video_buffer()
455 vp_reg_write(res, VP_DST_V_POSITION, plane->crtc_y / 2); in vp_video_buffer()
457 vp_reg_write(res, VP_DST_HEIGHT, plane->crtc_height); in vp_video_buffer()
458 vp_reg_write(res, VP_DST_V_POSITION, plane->crtc_y); in vp_video_buffer()
461 vp_reg_write(res, VP_H_RATIO, plane->h_ratio); in vp_video_buffer()
462 vp_reg_write(res, VP_V_RATIO, plane->v_ratio); in vp_video_buffer()
472 mixer_cfg_scan(ctx, plane->mode_height); in vp_video_buffer()
473 mixer_cfg_rgb_fmt(ctx, plane->mode_height); in vp_video_buffer()
491 static int mixer_setup_scale(const struct exynos_drm_plane *plane, in mixer_setup_scale() argument
494 if (plane->crtc_width != plane->src_width) { in mixer_setup_scale()
495 if (plane->crtc_width == 2 * plane->src_width) in mixer_setup_scale()
501 if (plane->crtc_height != plane->src_height) { in mixer_setup_scale()
502 if (plane->crtc_height == 2 * plane->src_height) in mixer_setup_scale()
519 struct exynos_drm_plane *plane; in mixer_graph_buffer() local
526 plane = &ctx->planes[win]; in mixer_graph_buffer()
528 switch (plane->pixel_format) { in mixer_graph_buffer()
552 if (mixer_setup_scale(plane, &x_ratio, &y_ratio)) in mixer_graph_buffer()
555 dst_x_offset = plane->crtc_x; in mixer_graph_buffer()
556 dst_y_offset = plane->crtc_y; in mixer_graph_buffer()
559 dma_addr = plane->dma_addr[0] in mixer_graph_buffer()
560 + (plane->src_x * plane->bpp >> 3) in mixer_graph_buffer()
561 + (plane->src_y * plane->pitch); in mixer_graph_buffer()
565 if (plane->scan_flag & DRM_MODE_FLAG_INTERLACE) in mixer_graph_buffer()
579 plane->pitch / (plane->bpp >> 3)); in mixer_graph_buffer()
584 val = MXR_MXR_RES_HEIGHT(plane->mode_height); in mixer_graph_buffer()
585 val |= MXR_MXR_RES_WIDTH(plane->mode_width); in mixer_graph_buffer()
589 val = MXR_GRP_WH_WIDTH(plane->src_width); in mixer_graph_buffer()
590 val |= MXR_GRP_WH_HEIGHT(plane->src_height); in mixer_graph_buffer()
608 mixer_cfg_scan(ctx, plane->mode_height); in mixer_graph_buffer()
609 mixer_cfg_rgb_fmt(ctx, plane->mode_height); in mixer_graph_buffer()
1005 struct exynos_drm_plane *plane; in mixer_window_suspend() local
1009 plane = &ctx->planes[i]; in mixer_window_suspend()
1010 plane->resume = plane->enabled; in mixer_window_suspend()
1018 struct exynos_drm_plane *plane; in mixer_window_resume() local
1022 plane = &ctx->planes[i]; in mixer_window_resume()
1023 plane->enabled = plane->resume; in mixer_window_resume()
1024 plane->resume = false; in mixer_window_resume()
1025 if (plane->enabled) in mixer_window_resume()