Lines Matching refs:dev_priv
29 static int vlv_sideband_rw(struct drm_i915_private *dev_priv, u32 devfn,
40 WARN_ON(!mutex_is_locked(&dev_priv->dpio_lock));
66 u32 vlv_punit_read(struct drm_i915_private *dev_priv, u8 addr)
70 WARN_ON(!mutex_is_locked(&dev_priv->rps.hw_lock));
72 mutex_lock(&dev_priv->dpio_lock);
73 vlv_sideband_rw(dev_priv, 16, IOSF_PORT_PUNIT,
75 mutex_unlock(&dev_priv->dpio_lock);
80 void vlv_punit_write(struct drm_i915_private *dev_priv, u8 addr, u32 val)
82 WARN_ON(!mutex_is_locked(&dev_priv->rps.hw_lock));
84 mutex_lock(&dev_priv->dpio_lock);
85 vlv_sideband_rw(dev_priv, 16, IOSF_PORT_PUNIT,
87 mutex_unlock(&dev_priv->dpio_lock);
90 u32 vlv_nc_read(struct drm_i915_private *dev_priv, u8 addr)
94 WARN_ON(!mutex_is_locked(&dev_priv->rps.hw_lock));
96 mutex_lock(&dev_priv->dpio_lock);
97 vlv_sideband_rw(dev_priv, 16, IOSF_PORT_NC,
99 mutex_unlock(&dev_priv->dpio_lock);
104 u32 vlv_dpio_read(struct drm_i915_private *dev_priv, int reg)
108 vlv_sideband_rw(dev_priv, DPIO_DEVFN, IOSF_PORT_DPIO,
114 void vlv_dpio_write(struct drm_i915_private *dev_priv, int reg, u32 val)
116 vlv_sideband_rw(dev_priv, DPIO_DEVFN, IOSF_PORT_DPIO,
121 u32 intel_sbi_read(struct drm_i915_private *dev_priv, u16 reg,
125 WARN_ON(!mutex_is_locked(&dev_priv->dpio_lock));
150 void intel_sbi_write(struct drm_i915_private *dev_priv, u16 reg, u32 value,
155 WARN_ON(!mutex_is_locked(&dev_priv->dpio_lock));