Lines Matching refs:sclass
62 struct nvif_ioctl_sclass_v0 sclass; in nvif_object_sclass_get() member
68 size = sizeof(*args) + cnt * sizeof(args->sclass.oclass[0]); in nvif_object_sclass_get()
73 args->sclass.version = 0; in nvif_object_sclass_get()
74 args->sclass.count = cnt; in nvif_object_sclass_get()
77 if (ret == 0 && args->sclass.count <= cnt) in nvif_object_sclass_get()
79 cnt = args->sclass.count; in nvif_object_sclass_get()
85 *psclass = kcalloc(args->sclass.count, sizeof(**psclass), GFP_KERNEL); in nvif_object_sclass_get()
87 for (i = 0; i < args->sclass.count; i++) { in nvif_object_sclass_get()
88 (*psclass)[i].oclass = args->sclass.oclass[i].oclass; in nvif_object_sclass_get()
89 (*psclass)[i].minver = args->sclass.oclass[i].minver; in nvif_object_sclass_get()
90 (*psclass)[i].maxver = args->sclass.oclass[i].maxver; in nvif_object_sclass_get()
92 ret = args->sclass.count; in nvif_object_sclass_get()