Lines Matching refs:fbc_state
227 const struct intel_fbc_state *fbc_state = &fbc->state; in i8xx_fbc_ctl() local
232 cfb_stride = fbc_state->cfb_stride / fbc->limit; in i8xx_fbc_ctl()
241 FBC_CTL_INTERVAL(fbc_state->interval) | in i8xx_fbc_ctl()
247 if (fbc_state->fence_id >= 0) in i8xx_fbc_ctl()
248 fbc_ctl |= FBC_CTL_FENCENO(fbc_state->fence_id); in i8xx_fbc_ctl()
255 const struct intel_fbc_state *fbc_state = &fbc->state; in i965_fbc_ctl2() local
259 FBC_CTL_PLANE(fbc_state->plane->i9xx_plane); in i965_fbc_ctl2()
261 if (fbc_state->fence_id >= 0) in i965_fbc_ctl2()
290 const struct intel_fbc_state *fbc_state = &fbc->state; in i8xx_fbc_activate() local
302 fbc_state->fence_y_offset); in i8xx_fbc_activate()
322 struct intel_fbc_state *fbc_state = &fbc->state; in i8xx_fbc_nuke() local
323 enum i9xx_plane_id i9xx_plane = fbc_state->plane->i9xx_plane; in i8xx_fbc_nuke()
358 struct intel_fbc_state *fbc_state = &fbc->state; in i965_fbc_nuke() local
359 enum i9xx_plane_id i9xx_plane = fbc_state->plane->i9xx_plane; in i965_fbc_nuke()
394 const struct intel_fbc_state *fbc_state = &fbc->state; in g4x_dpfc_ctl() local
399 DPFC_CTL_PLANE_G4X(fbc_state->plane->i9xx_plane); in g4x_dpfc_ctl()
404 if (fbc_state->fence_id >= 0) { in g4x_dpfc_ctl()
408 dpfc_ctl |= DPFC_CTL_FENCENO(fbc_state->fence_id); in g4x_dpfc_ctl()
416 const struct intel_fbc_state *fbc_state = &fbc->state; in g4x_fbc_activate() local
420 fbc_state->fence_y_offset); in g4x_fbc_activate()
467 struct intel_fbc_state *fbc_state = &fbc->state; in ilk_fbc_activate() local
471 fbc_state->fence_y_offset); in ilk_fbc_activate()
518 const struct intel_fbc_state *fbc_state = &fbc->state; in snb_fbc_program_fence() local
522 if (fbc_state->fence_id >= 0) in snb_fbc_program_fence()
523 ctl = SNB_DPFC_FENCE_EN | SNB_DPFC_FENCENO(fbc_state->fence_id); in snb_fbc_program_fence()
526 intel_de_write(i915, SNB_DPFC_CPU_FENCE_OFFSET, fbc_state->fence_y_offset); in snb_fbc_program_fence()
555 const struct intel_fbc_state *fbc_state = &fbc->state; in glk_fbc_program_cfb_stride() local
559 if (fbc_state->override_cfb_stride) in glk_fbc_program_cfb_stride()
561 FBC_STRIDE(fbc_state->override_cfb_stride / fbc->limit); in glk_fbc_program_cfb_stride()
568 const struct intel_fbc_state *fbc_state = &fbc->state; in skl_fbc_program_cfb_stride() local
573 if (fbc_state->override_cfb_stride) in skl_fbc_program_cfb_stride()
575 CHICKEN_FBC_STRIDE(fbc_state->override_cfb_stride / fbc->limit); in skl_fbc_program_cfb_stride()
584 const struct intel_fbc_state *fbc_state = &fbc->state; in ivb_dpfc_ctl() local
591 dpfc_ctl |= DPFC_CTL_PLANE_IVB(fbc_state->plane->i9xx_plane); in ivb_dpfc_ctl()
593 if (fbc_state->fence_id >= 0) in ivb_dpfc_ctl()
982 struct intel_fbc_state *fbc_state = &fbc->state; in intel_fbc_update_state() local
985 WARN_ON(fbc_state->plane && fbc_state->plane != plane); in intel_fbc_update_state()
987 fbc_state->plane = plane; in intel_fbc_update_state()
990 fbc_state->interval = drm_mode_vrefresh(&crtc_state->hw.adjusted_mode); in intel_fbc_update_state()
992 fbc_state->fence_y_offset = intel_plane_fence_y_offset(plane_state); in intel_fbc_update_state()
999 fbc_state->fence_id = plane_state->ggtt_vma->fence->id; in intel_fbc_update_state()
1001 fbc_state->fence_id = -1; in intel_fbc_update_state()
1003 fbc_state->cfb_stride = intel_fbc_cfb_stride(plane_state); in intel_fbc_update_state()
1004 fbc_state->cfb_size = intel_fbc_cfb_size(plane_state); in intel_fbc_update_state()
1005 fbc_state->override_cfb_stride = intel_fbc_override_cfb_stride(plane_state); in intel_fbc_update_state()