Lines Matching refs:sysfs
50 struct nouveau_sysfs *sysfs = nouveau_sysfs(drm_device(d)); in nouveau_sysfs_pstate_get() local
56 ret = nvif_mthd(&sysfs->ctrl, NVIF_CONTROL_PSTATE_INFO, in nouveau_sysfs_pstate_get()
69 ret = nvif_mthd(&sysfs->ctrl, NVIF_CONTROL_PSTATE_ATTR, in nouveau_sysfs_pstate_get()
84 ret = nvif_mthd(&sysfs->ctrl, in nouveau_sysfs_pstate_get()
120 struct nouveau_sysfs *sysfs = nouveau_sysfs(drm_device(d)); in nouveau_sysfs_pstate_set() local
149 ret = nvif_mthd(&sysfs->ctrl, NVIF_CONTROL_PSTATE_USER, in nouveau_sysfs_pstate_set()
163 struct nouveau_sysfs *sysfs = nouveau_sysfs(dev); in nouveau_sysfs_fini() local
167 if (sysfs && sysfs->ctrl.priv) { in nouveau_sysfs_fini()
169 nvif_object_fini(&sysfs->ctrl); in nouveau_sysfs_fini()
172 drm->sysfs = NULL; in nouveau_sysfs_fini()
173 kfree(sysfs); in nouveau_sysfs_fini()
181 struct nouveau_sysfs *sysfs; in nouveau_sysfs_init() local
187 sysfs = drm->sysfs = kzalloc(sizeof(*sysfs), GFP_KERNEL); in nouveau_sysfs_init()
188 if (!sysfs) in nouveau_sysfs_init()
192 NULL, 0, &sysfs->ctrl); in nouveau_sysfs_init()