Lines Matching refs:reg

782  *   - reset the chip using the reset reg
1180 #define NEEDS_FORCE_WAKE(dev_priv, reg) \
1182 ((reg) < 0x40000) && \
1183 ((reg) != FORCEWAKE))
1195 hsw_unclaimed_reg_clear(struct drm_i915_private *dev_priv, u32 reg)
1200 reg);
1206 hsw_unclaimed_reg_check(struct drm_i915_private *dev_priv, u32 reg)
1210 DRM_INFO("Unclaimed write to %x\n", reg);
1215 u8 i915_read8(struct drm_i915_private *dev_priv, u32 reg)
1222 if (NEEDS_FORCE_WAKE(dev_priv, reg)) {
1227 val = DRM_READ8(dev_priv->regs, reg);
1232 val = DRM_READ8(dev_priv->regs, (reg));
1236 u16 i915_read16(struct drm_i915_private *dev_priv, u32 reg)
1243 if (NEEDS_FORCE_WAKE(dev_priv, reg)) {
1248 val = DRM_READ16(dev_priv->regs, reg);
1253 val = DRM_READ16(dev_priv->regs, (reg));
1257 u32 i915_read32(struct drm_i915_private *dev_priv, u32 reg)
1264 if (NEEDS_FORCE_WAKE(dev_priv, reg)) {
1269 val = DRM_READ32(dev_priv->regs, reg);
1274 val = DRM_READ32(dev_priv->regs, (reg));
1278 u64 i915_read64(struct drm_i915_private *dev_priv, u32 reg)
1285 if (NEEDS_FORCE_WAKE(dev_priv, reg)) {
1290 val = DRM_READ64(dev_priv->regs, reg);
1295 val = DRM_READ64(dev_priv->regs, (reg));
1299 void i915_write8(struct drm_i915_private *dev_priv, u32 reg,
1306 if (NEEDS_FORCE_WAKE(dev_priv, reg))
1312 hsw_unclaimed_reg_clear(dev_priv, reg);
1314 DRM_WRITE8(dev_priv->regs, (reg), (val));
1317 hsw_unclaimed_reg_check(dev_priv, reg);
1321 void i915_write16(struct drm_i915_private *dev_priv, u32 reg,
1328 if (NEEDS_FORCE_WAKE(dev_priv, reg))
1334 hsw_unclaimed_reg_clear(dev_priv, reg);
1336 DRM_WRITE16(dev_priv->regs, (reg), (val));
1339 hsw_unclaimed_reg_check(dev_priv, reg);
1343 void i915_write32(struct drm_i915_private *dev_priv, u32 reg,
1350 if (NEEDS_FORCE_WAKE(dev_priv, reg))
1356 hsw_unclaimed_reg_clear(dev_priv, reg);
1358 DRM_WRITE32(dev_priv->regs, (reg), (val));
1361 hsw_unclaimed_reg_check(dev_priv, reg);
1365 void i915_write64(struct drm_i915_private *dev_priv, u32 reg,
1372 if (NEEDS_FORCE_WAKE(dev_priv, reg))
1378 hsw_unclaimed_reg_clear(dev_priv, reg);
1380 DRM_WRITE64(dev_priv->regs, (reg), (val));
1383 hsw_unclaimed_reg_check(dev_priv, reg);
1388 u ## x i915_read ## x(struct drm_i915_private *dev_priv, u32 reg);
1397 void i915_write ## x(struct drm_i915_private *dev_priv, u32 reg, \
1417 struct drm_i915_reg_read *reg = data;
1422 if (entry->offset == reg->offset &&
1432 reg->val = I915_READ64(reg->offset);
1435 reg->val = I915_READ(reg->offset);
1438 reg->val = I915_READ16(reg->offset);
1441 reg->val = I915_READ8(reg->offset);