Lines Matching refs:post_deps

29 	struct virtio_gpu_submit_post_dep *post_deps;  member
173 virtio_gpu_free_post_deps(struct virtio_gpu_submit_post_dep *post_deps, in virtio_gpu_free_post_deps() argument
179 kfree(post_deps[i].chain); in virtio_gpu_free_post_deps()
180 drm_syncobj_put(post_deps[i].syncobj); in virtio_gpu_free_post_deps()
183 kvfree(post_deps); in virtio_gpu_free_post_deps()
190 struct virtio_gpu_submit_post_dep *post_deps; in virtio_gpu_parse_post_deps() local
198 post_deps = kvcalloc(num_out_syncobjs, sizeof(*post_deps), GFP_KERNEL); in virtio_gpu_parse_post_deps()
199 if (!post_deps) in virtio_gpu_parse_post_deps()
214 post_deps[i].point = syncobj_desc.point; in virtio_gpu_parse_post_deps()
222 post_deps[i].chain = dma_fence_chain_alloc(); in virtio_gpu_parse_post_deps()
223 if (!post_deps[i].chain) { in virtio_gpu_parse_post_deps()
229 post_deps[i].syncobj = drm_syncobj_find(submit->file, in virtio_gpu_parse_post_deps()
231 if (!post_deps[i].syncobj) { in virtio_gpu_parse_post_deps()
232 kfree(post_deps[i].chain); in virtio_gpu_parse_post_deps()
239 virtio_gpu_free_post_deps(post_deps, i); in virtio_gpu_parse_post_deps()
244 submit->post_deps = post_deps; in virtio_gpu_parse_post_deps()
252 struct virtio_gpu_submit_post_dep *post_deps = submit->post_deps; in virtio_gpu_process_post_deps() local
254 if (post_deps) { in virtio_gpu_process_post_deps()
259 if (post_deps[i].chain) { in virtio_gpu_process_post_deps()
260 drm_syncobj_add_point(post_deps[i].syncobj, in virtio_gpu_process_post_deps()
261 post_deps[i].chain, in virtio_gpu_process_post_deps()
262 fence, post_deps[i].point); in virtio_gpu_process_post_deps()
263 post_deps[i].chain = NULL; in virtio_gpu_process_post_deps()
265 drm_syncobj_replace_fence(post_deps[i].syncobj, in virtio_gpu_process_post_deps()
333 virtio_gpu_free_post_deps(submit->post_deps, submit->num_out_syncobjs); in virtio_gpu_cleanup_submit()