Lines Matching refs:argv

50 usif_object_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc, bool parent_abi16)  in usif_object_new()  argument
93 ret = nvif_client_ioctl(client, argv, argc); in usif_object_new()
113 } *argv = data; in usif_ioctl() local
119 if (ret = -ENOMEM, !argv) in usif_ioctl()
121 if (ret = -EFAULT, copy_from_user(argv, user, size)) in usif_ioctl()
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()
141 ret = nouveau_abi16_usif(filp, argv, argc); in usif_ioctl()
150 switch (argv->v0.type) { in usif_ioctl()
152 ret = usif_object_new(filp, data, size, argv, argc, abi16); in usif_ioctl()
155 ret = nvif_client_ioctl(client, argv, argc); 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()
173 if (copy_to_user(user, argv, argc)) in usif_ioctl()
176 kfree(argv); in usif_ioctl()