Lines Matching refs:sclass
140 struct nvif_ioctl_sclass_v0 sclass; in nouveau_object_sclass_get() member
142 struct nouveau_sclass *sclass; in nouveau_object_sclass_get() local
150 size = sizeof(*args) + cnt * sizeof(args->sclass.oclass[0]); in nouveau_object_sclass_get()
155 args->sclass.version = 0; in nouveau_object_sclass_get()
156 args->sclass.count = cnt; in nouveau_object_sclass_get()
159 if (ret == 0 && args->sclass.count <= cnt) in nouveau_object_sclass_get()
161 cnt = args->sclass.count; in nouveau_object_sclass_get()
167 if ((sclass = calloc(args->sclass.count, sizeof(*sclass)))) { in nouveau_object_sclass_get()
168 for (i = 0; i < args->sclass.count; i++) { in nouveau_object_sclass_get()
169 sclass[i].oclass = args->sclass.oclass[i].oclass; in nouveau_object_sclass_get()
170 sclass[i].minver = args->sclass.oclass[i].minver; in nouveau_object_sclass_get()
171 sclass[i].maxver = args->sclass.oclass[i].maxver; in nouveau_object_sclass_get()
173 *psclass = sclass; in nouveau_object_sclass_get()
174 ret = args->sclass.count; in nouveau_object_sclass_get()
187 struct nouveau_sclass *sclass; in nouveau_object_mclass() local
191 cnt = nouveau_object_sclass_get(obj, &sclass); in nouveau_object_mclass()
197 if (mclass[i].oclass == sclass[j].oclass && in nouveau_object_mclass()
198 mclass[i].version >= sclass[j].minver && in nouveau_object_mclass()
199 mclass[i].version <= sclass[j].maxver) { in nouveau_object_mclass()
206 nouveau_object_sclass_put(&sclass); in nouveau_object_mclass()