Lines Matching refs:i915

29 static void __vlv_punit_get(struct drm_i915_private *i915)  in __vlv_punit_get()  argument
43 if (IS_VALLEYVIEW(i915)) { in __vlv_punit_get()
44 cpu_latency_qos_update_request(&i915->sb_qos, 0); in __vlv_punit_get()
49 static void __vlv_punit_put(struct drm_i915_private *i915) in __vlv_punit_put() argument
51 if (IS_VALLEYVIEW(i915)) in __vlv_punit_put()
52 cpu_latency_qos_update_request(&i915->sb_qos, in __vlv_punit_put()
58 void vlv_iosf_sb_get(struct drm_i915_private *i915, unsigned long ports) in vlv_iosf_sb_get() argument
61 __vlv_punit_get(i915); in vlv_iosf_sb_get()
63 mutex_lock(&i915->sb_lock); in vlv_iosf_sb_get()
66 void vlv_iosf_sb_put(struct drm_i915_private *i915, unsigned long ports) in vlv_iosf_sb_put() argument
68 mutex_unlock(&i915->sb_lock); in vlv_iosf_sb_put()
71 __vlv_punit_put(i915); in vlv_iosf_sb_put()
74 static int vlv_sideband_rw(struct drm_i915_private *i915, in vlv_sideband_rw() argument
78 struct intel_uncore *uncore = &i915->uncore; in vlv_sideband_rw()
82 lockdep_assert_held(&i915->sb_lock); in vlv_sideband_rw()
90 drm_dbg(&i915->drm, "IOSF sideband idle wait (%s) timed out\n", in vlv_sideband_rw()
114 drm_dbg(&i915->drm, "IOSF sideband finish wait (%s) timed out\n", in vlv_sideband_rw()
124 u32 vlv_punit_read(struct drm_i915_private *i915, u32 addr) in vlv_punit_read() argument
128 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_PUNIT, in vlv_punit_read()
134 int vlv_punit_write(struct drm_i915_private *i915, u32 addr, u32 val) in vlv_punit_write() argument
136 return vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_PUNIT, in vlv_punit_write()
140 u32 vlv_bunit_read(struct drm_i915_private *i915, u32 reg) in vlv_bunit_read() argument
144 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_BUNIT, in vlv_bunit_read()
150 void vlv_bunit_write(struct drm_i915_private *i915, u32 reg, u32 val) in vlv_bunit_write() argument
152 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_BUNIT, in vlv_bunit_write()
156 u32 vlv_nc_read(struct drm_i915_private *i915, u8 addr) in vlv_nc_read() argument
160 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_NC, in vlv_nc_read()
166 u32 vlv_iosf_sb_read(struct drm_i915_private *i915, u8 port, u32 reg) in vlv_iosf_sb_read() argument
170 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), port, in vlv_iosf_sb_read()
176 void vlv_iosf_sb_write(struct drm_i915_private *i915, in vlv_iosf_sb_write() argument
179 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), port, in vlv_iosf_sb_write()
183 u32 vlv_cck_read(struct drm_i915_private *i915, u32 reg) in vlv_cck_read() argument
187 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_CCK, in vlv_cck_read()
193 void vlv_cck_write(struct drm_i915_private *i915, u32 reg, u32 val) in vlv_cck_write() argument
195 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_CCK, in vlv_cck_write()
199 u32 vlv_ccu_read(struct drm_i915_private *i915, u32 reg) in vlv_ccu_read() argument
203 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_CCU, in vlv_ccu_read()
209 void vlv_ccu_write(struct drm_i915_private *i915, u32 reg, u32 val) in vlv_ccu_write() argument
211 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_CCU, in vlv_ccu_write()
215 static u32 vlv_dpio_phy_iosf_port(struct drm_i915_private *i915, enum dpio_phy phy) in vlv_dpio_phy_iosf_port() argument
221 if (IS_CHERRYVIEW(i915)) in vlv_dpio_phy_iosf_port()
227 u32 vlv_dpio_read(struct drm_i915_private *i915, enum pipe pipe, int reg) in vlv_dpio_read() argument
229 u32 port = vlv_dpio_phy_iosf_port(i915, DPIO_PHY(pipe)); in vlv_dpio_read()
232 vlv_sideband_rw(i915, DPIO_DEVFN, port, SB_MRD_NP, reg, &val); in vlv_dpio_read()
238 drm_WARN(&i915->drm, val == 0xffffffff, in vlv_dpio_read()
245 void vlv_dpio_write(struct drm_i915_private *i915, in vlv_dpio_write() argument
248 u32 port = vlv_dpio_phy_iosf_port(i915, DPIO_PHY(pipe)); in vlv_dpio_write()
250 vlv_sideband_rw(i915, DPIO_DEVFN, port, SB_MWR_NP, reg, &val); in vlv_dpio_write()
253 u32 vlv_flisdsi_read(struct drm_i915_private *i915, u32 reg) in vlv_flisdsi_read() argument
257 vlv_sideband_rw(i915, DPIO_DEVFN, IOSF_PORT_FLISDSI, SB_CRRDDA_NP, in vlv_flisdsi_read()
262 void vlv_flisdsi_write(struct drm_i915_private *i915, u32 reg, u32 val) in vlv_flisdsi_write() argument
264 vlv_sideband_rw(i915, DPIO_DEVFN, IOSF_PORT_FLISDSI, SB_CRWRDA_NP, in vlv_flisdsi_write()