Lines Matching defs:drm
41 struct nouveau_drm *drm = nouveau_drm(node->minor->dev);
44 for (i = 0; i < drm->vbios.length; i++)
45 seq_printf(m, "%c", drm->vbios.data[i]);
53 struct nouveau_drm *drm = nouveau_drm(node->minor->dev);
56 ret = pm_runtime_get_sync(drm->dev->dev);
58 pm_runtime_put_autosuspend(drm->dev->dev);
63 nvif_rd32(&drm->client.device.object, 0x101000));
65 pm_runtime_mark_last_busy(drm->dev->dev);
66 pm_runtime_put_autosuspend(drm->dev->dev);
74 struct drm_device *drm = m->private;
75 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm);
145 struct drm_device *drm = m->private;
146 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm);
185 ret = pm_runtime_get_sync(drm->dev);
187 pm_runtime_put_autosuspend(drm->dev);
192 pm_runtime_put_autosuspend(drm->dev);
229 struct nouveau_drm *drm = nouveau_drm(minor->dev);
251 d_inode(dentry)->i_size = drm->vbios.length;
256 nouveau_debugfs_init(struct nouveau_drm *drm)
260 drm->debugfs = kzalloc(sizeof(*drm->debugfs), GFP_KERNEL);
261 if (!drm->debugfs)
264 ret = nvif_object_ctor(&drm->client.device.object, "debugfsCtrl", 0,
266 &drm->debugfs->ctrl);
274 nouveau_debugfs_fini(struct nouveau_drm *drm)
276 if (drm->debugfs && drm->debugfs->ctrl.priv)
277 nvif_object_dtor(&drm->debugfs->ctrl);
279 kfree(drm->debugfs);
280 drm->debugfs = NULL;