Lines Matching full:v0
55 struct nvif_ioctl_new_v0 v0; in usif_object_new() member
60 if ((ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, true))) in usif_object_new()
63 switch (args->v0.oclass) { in usif_object_new()
70 struct nv_device_v0 v0; in usif_object_new() member
73 if ((ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) in usif_object_new()
76 args->v0.priv = false; in usif_object_new()
89 object->route = args->v0.route; in usif_object_new()
90 object->token = args->v0.token; in usif_object_new()
91 args->v0.route = NVDRM_OBJECT_USIF; in usif_object_new()
92 args->v0.token = (unsigned long)(void *)object; in usif_object_new()
99 args->v0.token = object->token; in usif_object_new()
100 args->v0.route = object->route; in usif_object_new()
112 struct nvif_ioctl_v0 v0; in usif_ioctl() member
124 if (!(ret = nvif_unpack(-ENOSYS, &data, &size, argv->v0, 0, 0, true))) { in usif_ioctl()
126 owner = argv->v0.owner; in usif_ioctl()
127 if (argv->v0.object == 0ULL && in usif_ioctl()
128 argv->v0.type != NVIF_IOCTL_V0_DEL) in usif_ioctl()
129 argv->v0.owner = NVDRM_OBJECT_ANY; /* except client */ in usif_ioctl()
131 argv->v0.owner = NVDRM_OBJECT_USIF; in usif_ioctl()
139 if (argv->v0.route) { in usif_ioctl()
140 if (ret = -EINVAL, argv->v0.route == 0xff) in usif_ioctl()
150 switch (argv->v0.type) { in usif_ioctl()
158 if (argv->v0.route == NVDRM_OBJECT_USIF) { in usif_ioctl()
159 object = (void *)(unsigned long)argv->v0.token; in usif_ioctl()
160 argv->v0.route = object->route; in usif_ioctl()
161 argv->v0.token = object->token; in usif_ioctl()
162 if (ret == 0 && argv->v0.type == NVIF_IOCTL_V0_DEL) { in usif_ioctl()
167 argv->v0.route = NVIF_IOCTL_V0_ROUTE_HIDDEN; in usif_ioctl()
168 argv->v0.token = 0; in usif_ioctl()
170 argv->v0.owner = owner; in usif_ioctl()