Lines Matching refs:plane_state
234 intel_plane_fb_min_alignment(const struct intel_plane_state *plane_state) in intel_plane_fb_min_alignment() argument
236 const struct intel_framebuffer *fb = to_intel_framebuffer(plane_state->hw.fb); in intel_plane_fb_min_alignment()
242 intel_plane_fb_min_phys_alignment(const struct intel_plane_state *plane_state) in intel_plane_fb_min_phys_alignment() argument
244 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_fb_min_phys_alignment()
245 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_fb_min_phys_alignment()
253 int intel_plane_pin_fb(struct intel_plane_state *plane_state) in intel_plane_pin_fb() argument
255 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_pin_fb()
257 to_intel_framebuffer(plane_state->hw.fb); in intel_plane_pin_fb()
261 vma = intel_fb_pin_to_ggtt(&fb->base, &plane_state->view.gtt, in intel_plane_pin_fb()
262 intel_plane_fb_min_alignment(plane_state), in intel_plane_pin_fb()
263 intel_plane_fb_min_phys_alignment(plane_state), in intel_plane_pin_fb()
264 intel_plane_uses_fence(plane_state), in intel_plane_pin_fb()
265 &plane_state->flags); in intel_plane_pin_fb()
269 plane_state->ggtt_vma = vma; in intel_plane_pin_fb()
278 plane_state->phys_dma_addr = in intel_plane_pin_fb()
281 unsigned int alignment = intel_plane_fb_min_alignment(plane_state); in intel_plane_pin_fb()
287 plane_state->ggtt_vma = vma; in intel_plane_pin_fb()
289 vma = intel_fb_pin_to_dpt(&fb->base, &plane_state->view.gtt, in intel_plane_pin_fb()
290 alignment, &plane_state->flags, in intel_plane_pin_fb()
294 plane_state->ggtt_vma = NULL; in intel_plane_pin_fb()
298 plane_state->dpt_vma = vma; in intel_plane_pin_fb()
300 WARN_ON(plane_state->ggtt_vma == plane_state->dpt_vma); in intel_plane_pin_fb()