Lines Matching refs:regs
74 u32 *regs = (u32 *)dev_priv->dri1.gfx_hws_cpu_addr.handle;
75 return regs[reg];
1046 /* Userspace can use first N regs */
1395 dev_priv->regs = drm_alloc(sizeof (drm_local_map_t), DRM_MEM_MAPS);
1396 dev_priv->regs->offset = base;
1397 dev_priv->regs->size = size;
1398 dev_priv->regs->type = _DRM_REGISTERS;
1399 dev_priv->regs->flags = _DRM_REMOVABLE;
1400 if (drm_ioremap(dev, dev_priv->regs)) {
1405 DRM_DEBUG("mmio paddr=%lx, kvaddr=%p", dev_priv->regs->offset, dev_priv->regs->handle);
1511 drm_ioremapfree(dev_priv->regs);
1586 if (dev_priv->regs != NULL)
1587 (void) drm_rmmap(dev, dev_priv->regs);