Lines Matching full:gt

13 static void write_pm_imr(struct intel_gt *gt)  in write_pm_imr()  argument
15 struct drm_i915_private *i915 = gt->i915; in write_pm_imr()
16 struct intel_uncore *uncore = gt->uncore; in write_pm_imr()
17 u32 mask = gt->pm_imr; in write_pm_imr()
32 static void gen6_gt_pm_update_irq(struct intel_gt *gt, in gen6_gt_pm_update_irq() argument
40 lockdep_assert_held(gt->irq_lock); in gen6_gt_pm_update_irq()
42 new_val = gt->pm_imr; in gen6_gt_pm_update_irq()
46 if (new_val != gt->pm_imr) { in gen6_gt_pm_update_irq()
47 gt->pm_imr = new_val; in gen6_gt_pm_update_irq()
48 write_pm_imr(gt); in gen6_gt_pm_update_irq()
52 void gen6_gt_pm_unmask_irq(struct intel_gt *gt, u32 mask) in gen6_gt_pm_unmask_irq() argument
54 gen6_gt_pm_update_irq(gt, mask, mask); in gen6_gt_pm_unmask_irq()
57 void gen6_gt_pm_mask_irq(struct intel_gt *gt, u32 mask) in gen6_gt_pm_mask_irq() argument
59 gen6_gt_pm_update_irq(gt, mask, 0); in gen6_gt_pm_mask_irq()
62 void gen6_gt_pm_reset_iir(struct intel_gt *gt, u32 reset_mask) in gen6_gt_pm_reset_iir() argument
64 struct intel_uncore *uncore = gt->uncore; in gen6_gt_pm_reset_iir()
65 i915_reg_t reg = GRAPHICS_VER(gt->i915) >= 8 ? GEN8_GT_IIR(2) : GEN6_PMIIR; in gen6_gt_pm_reset_iir()
67 lockdep_assert_held(gt->irq_lock); in gen6_gt_pm_reset_iir()
74 static void write_pm_ier(struct intel_gt *gt) in write_pm_ier() argument
76 struct drm_i915_private *i915 = gt->i915; in write_pm_ier()
77 struct intel_uncore *uncore = gt->uncore; in write_pm_ier()
78 u32 mask = gt->pm_ier; in write_pm_ier()
93 void gen6_gt_pm_enable_irq(struct intel_gt *gt, u32 enable_mask) in gen6_gt_pm_enable_irq() argument
95 lockdep_assert_held(gt->irq_lock); in gen6_gt_pm_enable_irq()
97 gt->pm_ier |= enable_mask; in gen6_gt_pm_enable_irq()
98 write_pm_ier(gt); in gen6_gt_pm_enable_irq()
99 gen6_gt_pm_unmask_irq(gt, enable_mask); in gen6_gt_pm_enable_irq()
102 void gen6_gt_pm_disable_irq(struct intel_gt *gt, u32 disable_mask) in gen6_gt_pm_disable_irq() argument
104 lockdep_assert_held(gt->irq_lock); in gen6_gt_pm_disable_irq()
106 gt->pm_ier &= ~disable_mask; in gen6_gt_pm_disable_irq()
107 gen6_gt_pm_mask_irq(gt, disable_mask); in gen6_gt_pm_disable_irq()
108 write_pm_ier(gt); in gen6_gt_pm_disable_irq()