Lines Matching refs:virgl
40 const struct render_virgl *virgl = render_virgl_lock_struct(); in render_virgl_lookup_context() local
44 list_for_each_entry (struct render_context, iter, &virgl->contexts, head) { in render_virgl_lookup_context()
51 assert(list_is_singular(&virgl->contexts)); in render_virgl_lookup_context()
52 ctx = list_first_entry(&virgl->contexts, struct render_context, head); in render_virgl_lookup_context()
91 struct render_virgl *virgl = render_virgl_lock_struct(); in render_virgl_add_context() local
92 list_addtail(&ctx->head, &virgl->contexts); in render_virgl_add_context()
107 struct render_virgl *virgl = render_virgl_lock_struct(); in render_virgl_fini() local
109 if (virgl->init_count) { in render_virgl_fini()
110 virgl->init_count--; in render_virgl_fini()
111 if (!virgl->init_count) { in render_virgl_fini()
113 virgl_renderer_cleanup(virgl); in render_virgl_fini()
131 struct render_virgl *virgl = render_virgl_lock_struct(); in render_virgl_init() local
133 if (virgl->init_count) { in render_virgl_init()
134 if (virgl->init_flags != init_flags) { in render_virgl_init()
141 int ret = virgl_renderer_init(virgl, init_flags, in render_virgl_init()
149 list_inithead(&virgl->contexts); in render_virgl_init()
150 virgl->init_flags = init_flags; in render_virgl_init()
153 virgl->init_count++; in render_virgl_init()