Lines Matching refs:intel_plane
190 struct intel_plane *intel_plane = to_intel_plane(drm_plane); in skl_update_plane() local
192 const int pipe = intel_plane->pipe; in skl_update_plane()
193 const int plane = intel_plane->plane + 1; in skl_update_plane()
241 surf_addr = intel_plane_obj_offset(intel_plane, obj, 0); in skl_update_plane()
292 struct intel_plane *intel_plane = to_intel_plane(dplane); in skl_disable_plane() local
293 const int pipe = intel_plane->pipe; in skl_disable_plane()
294 const int plane = intel_plane->plane + 1; in skl_disable_plane()
305 chv_update_csc(struct intel_plane *intel_plane, uint32_t format) in chv_update_csc() argument
307 struct drm_i915_private *dev_priv = intel_plane->base.dev->dev_private; in chv_update_csc()
308 int plane = intel_plane->plane; in chv_update_csc()
353 struct intel_plane *intel_plane = to_intel_plane(dplane); in vlv_update_plane() local
355 int pipe = intel_plane->pipe; in vlv_update_plane()
356 int plane = intel_plane->plane; in vlv_update_plane()
449 chv_update_csc(intel_plane, fb->pixel_format); in vlv_update_plane()
473 struct intel_plane *intel_plane = to_intel_plane(dplane); in vlv_disable_plane() local
474 int pipe = intel_plane->pipe; in vlv_disable_plane()
475 int plane = intel_plane->plane; in vlv_disable_plane()
493 struct intel_plane *intel_plane = to_intel_plane(plane); in ivb_update_plane() local
495 enum pipe pipe = intel_plane->pipe; in ivb_update_plane()
600 if (intel_plane->can_scale) in ivb_update_plane()
613 struct intel_plane *intel_plane = to_intel_plane(plane); in ivb_disable_plane() local
614 int pipe = intel_plane->pipe; in ivb_disable_plane()
618 if (intel_plane->can_scale) in ivb_disable_plane()
635 struct intel_plane *intel_plane = to_intel_plane(plane); in ilk_update_plane() local
637 int pipe = intel_plane->pipe; in ilk_update_plane()
742 struct intel_plane *intel_plane = to_intel_plane(plane); in ilk_disable_plane() local
743 int pipe = intel_plane->pipe; in ilk_disable_plane()
761 struct intel_plane *intel_plane = to_intel_plane(plane); in intel_check_sprite_plane() local
780 if (intel_plane->pipe != intel_crtc->pipe) { in intel_check_sprite_plane()
804 can_scale = intel_plane->can_scale; in intel_check_sprite_plane()
805 max_scale = intel_plane->max_downscale << 16; in intel_check_sprite_plane()
806 min_scale = intel_plane->can_scale ? 1 : (1 << 16); in intel_check_sprite_plane()
936 struct intel_plane *intel_plane = to_intel_plane(plane); in intel_commit_sprite_plane() local
945 intel_plane->update_plane(plane, crtc, fb, in intel_commit_sprite_plane()
954 intel_plane->disable_plane(plane, crtc); in intel_commit_sprite_plane()
1059 struct intel_plane *intel_plane; in intel_plane_init() local
1069 intel_plane = kzalloc(sizeof(*intel_plane), GFP_KERNEL); in intel_plane_init()
1070 if (!intel_plane) in intel_plane_init()
1073 state = intel_create_plane_state(&intel_plane->base); in intel_plane_init()
1075 kfree(intel_plane); in intel_plane_init()
1078 intel_plane->base.state = &state->base; in intel_plane_init()
1083 intel_plane->can_scale = true; in intel_plane_init()
1084 intel_plane->max_downscale = 16; in intel_plane_init()
1085 intel_plane->update_plane = ilk_update_plane; in intel_plane_init()
1086 intel_plane->disable_plane = ilk_disable_plane; in intel_plane_init()
1100 intel_plane->can_scale = true; in intel_plane_init()
1101 intel_plane->max_downscale = 2; in intel_plane_init()
1103 intel_plane->can_scale = false; in intel_plane_init()
1104 intel_plane->max_downscale = 1; in intel_plane_init()
1108 intel_plane->update_plane = vlv_update_plane; in intel_plane_init()
1109 intel_plane->disable_plane = vlv_disable_plane; in intel_plane_init()
1114 intel_plane->update_plane = ivb_update_plane; in intel_plane_init()
1115 intel_plane->disable_plane = ivb_disable_plane; in intel_plane_init()
1122 intel_plane->can_scale = true; in intel_plane_init()
1123 intel_plane->update_plane = skl_update_plane; in intel_plane_init()
1124 intel_plane->disable_plane = skl_disable_plane; in intel_plane_init()
1131 kfree(intel_plane); in intel_plane_init()
1135 intel_plane->pipe = pipe; in intel_plane_init()
1136 intel_plane->plane = plane; in intel_plane_init()
1137 intel_plane->frontbuffer_bit = INTEL_FRONTBUFFER_SPRITE(pipe, plane); in intel_plane_init()
1138 intel_plane->check_plane = intel_check_sprite_plane; in intel_plane_init()
1139 intel_plane->commit_plane = intel_commit_sprite_plane; in intel_plane_init()
1141 ret = drm_universal_plane_init(dev, &intel_plane->base, possible_crtcs, in intel_plane_init()
1146 kfree(intel_plane); in intel_plane_init()
1150 intel_create_rotation_property(dev, intel_plane); in intel_plane_init()
1152 drm_plane_helper_add(&intel_plane->base, &intel_plane_helper_funcs); in intel_plane_init()