Lines Matching refs:fbc_state
271 const struct intel_fbc_state *fbc_state = &fbc->state; in i8xx_fbc_ctl() local
277 cfb_stride = fbc_state->cfb_stride / fbc->limit; in i8xx_fbc_ctl()
286 FBC_CTL_INTERVAL(fbc_state->interval) | in i8xx_fbc_ctl()
292 if (fbc_state->fence_id >= 0) in i8xx_fbc_ctl()
293 fbc_ctl |= FBC_CTL_FENCENO(fbc_state->fence_id); in i8xx_fbc_ctl()
300 const struct intel_fbc_state *fbc_state = &fbc->state; in i965_fbc_ctl2() local
304 FBC_CTL_PLANE(fbc_state->plane->i9xx_plane); in i965_fbc_ctl2()
306 if (fbc_state->fence_id >= 0) in i965_fbc_ctl2()
335 const struct intel_fbc_state *fbc_state = &fbc->state; in i8xx_fbc_activate() local
347 fbc_state->fence_y_offset); in i8xx_fbc_activate()
367 struct intel_fbc_state *fbc_state = &fbc->state; in i8xx_fbc_nuke() local
368 enum i9xx_plane_id i9xx_plane = fbc_state->plane->i9xx_plane; in i8xx_fbc_nuke()
405 struct intel_fbc_state *fbc_state = &fbc->state; in i965_fbc_nuke() local
406 enum i9xx_plane_id i9xx_plane = fbc_state->plane->i9xx_plane; in i965_fbc_nuke()
439 const struct intel_fbc_state *fbc_state = &fbc->state; in g4x_dpfc_ctl() local
445 DPFC_CTL_PLANE_G4X(fbc_state->plane->i9xx_plane); in g4x_dpfc_ctl()
450 if (fbc_state->fence_id >= 0) { in g4x_dpfc_ctl()
454 dpfc_ctl |= DPFC_CTL_FENCENO(fbc_state->fence_id); in g4x_dpfc_ctl()
462 const struct intel_fbc_state *fbc_state = &fbc->state; in g4x_fbc_activate() local
466 fbc_state->fence_y_offset); in g4x_fbc_activate()
514 struct intel_fbc_state *fbc_state = &fbc->state; in ilk_fbc_activate() local
518 fbc_state->fence_y_offset); in ilk_fbc_activate()
566 const struct intel_fbc_state *fbc_state = &fbc->state; in snb_fbc_program_fence() local
570 if (fbc_state->fence_id >= 0) in snb_fbc_program_fence()
571 ctl = SNB_DPFC_FENCE_EN | SNB_DPFC_FENCENO(fbc_state->fence_id); in snb_fbc_program_fence()
574 intel_de_write(display, SNB_DPFC_CPU_FENCE_OFFSET, fbc_state->fence_y_offset); in snb_fbc_program_fence()
603 const struct intel_fbc_state *fbc_state = &fbc->state; in glk_fbc_program_cfb_stride() local
607 if (fbc_state->override_cfb_stride) in glk_fbc_program_cfb_stride()
609 FBC_STRIDE(fbc_state->override_cfb_stride / fbc->limit); in glk_fbc_program_cfb_stride()
616 const struct intel_fbc_state *fbc_state = &fbc->state; in skl_fbc_program_cfb_stride() local
621 if (fbc_state->override_cfb_stride) in skl_fbc_program_cfb_stride()
623 CHICKEN_FBC_STRIDE(fbc_state->override_cfb_stride / fbc->limit); in skl_fbc_program_cfb_stride()
632 const struct intel_fbc_state *fbc_state = &fbc->state; in ivb_dpfc_ctl() local
640 dpfc_ctl |= DPFC_CTL_PLANE_IVB(fbc_state->plane->i9xx_plane); in ivb_dpfc_ctl()
643 dpfc_ctl |= DPFC_CTL_PLANE_BINDING(fbc_state->plane->id); in ivb_dpfc_ctl()
645 if (fbc_state->fence_id >= 0) in ivb_dpfc_ctl()
1215 struct intel_fbc_state *fbc_state = &fbc->state; in intel_fbc_update_state() local
1218 WARN_ON(fbc_state->plane && fbc_state->plane != plane); in intel_fbc_update_state()
1220 fbc_state->plane = plane; in intel_fbc_update_state()
1223 fbc_state->interval = drm_mode_vrefresh(&crtc_state->hw.adjusted_mode); in intel_fbc_update_state()
1225 fbc_state->fence_y_offset = intel_plane_fence_y_offset(plane_state); in intel_fbc_update_state()
1231 fbc_state->fence_id = i915_vma_fence_id(plane_state->ggtt_vma); in intel_fbc_update_state()
1233 fbc_state->fence_id = -1; in intel_fbc_update_state()
1235 fbc_state->cfb_stride = intel_fbc_cfb_stride(plane_state); in intel_fbc_update_state()
1236 fbc_state->cfb_size = intel_fbc_cfb_size(plane_state); in intel_fbc_update_state()
1237 fbc_state->override_cfb_stride = intel_fbc_override_cfb_stride(plane_state); in intel_fbc_update_state()