Lines Matching refs:drm

41 	struct nouveau_drm *drm = nouveau_drm(node->minor->dev);  in nouveau_debugfs_vbios_image()  local
44 for (i = 0; i < drm->vbios.length; i++) in nouveau_debugfs_vbios_image()
45 seq_printf(m, "%c", drm->vbios.data[i]); in nouveau_debugfs_vbios_image()
53 struct nouveau_drm *drm = nouveau_drm(node->minor->dev); in nouveau_debugfs_strap_peek() local
56 ret = pm_runtime_get_sync(drm->dev->dev); in nouveau_debugfs_strap_peek()
58 pm_runtime_put_autosuspend(drm->dev->dev); in nouveau_debugfs_strap_peek()
63 nvif_rd32(&drm->client.device.object, 0x101000)); in nouveau_debugfs_strap_peek()
65 pm_runtime_mark_last_busy(drm->dev->dev); in nouveau_debugfs_strap_peek()
66 pm_runtime_put_autosuspend(drm->dev->dev); in nouveau_debugfs_strap_peek()
74 struct drm_device *drm = m->private; in nouveau_debugfs_pstate_get() local
75 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm); in nouveau_debugfs_pstate_get()
145 struct drm_device *drm = m->private; in nouveau_debugfs_pstate_set() local
146 struct nouveau_debugfs *debugfs = nouveau_debugfs(drm); in nouveau_debugfs_pstate_set()
185 ret = pm_runtime_get_sync(drm->dev); in nouveau_debugfs_pstate_set()
187 pm_runtime_put_autosuspend(drm->dev); in nouveau_debugfs_pstate_set()
192 pm_runtime_put_autosuspend(drm->dev); in nouveau_debugfs_pstate_set()
229 struct nouveau_drm *drm = nouveau_drm(minor->dev); in nouveau_drm_debugfs_init() local
251 d_inode(dentry)->i_size = drm->vbios.length; in nouveau_drm_debugfs_init()
256 nouveau_debugfs_init(struct nouveau_drm *drm) in nouveau_debugfs_init() argument
258 drm->debugfs = kzalloc(sizeof(*drm->debugfs), GFP_KERNEL); in nouveau_debugfs_init()
259 if (!drm->debugfs) in nouveau_debugfs_init()
262 return nvif_object_ctor(&drm->client.device.object, "debugfsCtrl", 0, in nouveau_debugfs_init()
264 &drm->debugfs->ctrl); in nouveau_debugfs_init()
268 nouveau_debugfs_fini(struct nouveau_drm *drm) in nouveau_debugfs_fini() argument
270 if (drm->debugfs && drm->debugfs->ctrl.priv) in nouveau_debugfs_fini()
271 nvif_object_dtor(&drm->debugfs->ctrl); in nouveau_debugfs_fini()
273 kfree(drm->debugfs); in nouveau_debugfs_fini()
274 drm->debugfs = NULL; in nouveau_debugfs_fini()