Lines Matching full:queues
174 * pvr_context_destroy_queues() - Destroy all queues attached to a context.
175 * @ctx: Context to destroy queues on.
178 * It releases all resources attached to the queues bound to this context.
184 pvr_queue_destroy(ctx->queues.fragment); in pvr_context_destroy_queues()
185 pvr_queue_destroy(ctx->queues.geometry); in pvr_context_destroy_queues()
188 pvr_queue_destroy(ctx->queues.compute); in pvr_context_destroy_queues()
191 pvr_queue_destroy(ctx->queues.transfer); in pvr_context_destroy_queues()
197 * pvr_context_create_queues() - Create all queues attached to a context.
198 * @ctx: Context to create queues on.
214 ctx->queues.geometry = pvr_queue_create(ctx, DRM_PVR_JOB_TYPE_GEOMETRY, in pvr_context_create_queues()
216 if (IS_ERR(ctx->queues.geometry)) { in pvr_context_create_queues()
217 err = PTR_ERR(ctx->queues.geometry); in pvr_context_create_queues()
218 ctx->queues.geometry = NULL; in pvr_context_create_queues()
222 ctx->queues.fragment = pvr_queue_create(ctx, DRM_PVR_JOB_TYPE_FRAGMENT, in pvr_context_create_queues()
224 if (IS_ERR(ctx->queues.fragment)) { in pvr_context_create_queues()
225 err = PTR_ERR(ctx->queues.fragment); in pvr_context_create_queues()
226 ctx->queues.fragment = NULL; in pvr_context_create_queues()
232 ctx->queues.compute = pvr_queue_create(ctx, DRM_PVR_JOB_TYPE_COMPUTE, in pvr_context_create_queues()
234 if (IS_ERR(ctx->queues.compute)) { in pvr_context_create_queues()
235 err = PTR_ERR(ctx->queues.compute); in pvr_context_create_queues()
236 ctx->queues.compute = NULL; in pvr_context_create_queues()
242 ctx->queues.transfer = pvr_queue_create(ctx, DRM_PVR_JOB_TYPE_TRANSFER_FRAG, in pvr_context_create_queues()
244 if (IS_ERR(ctx->queues.transfer)) { in pvr_context_create_queues()
245 err = PTR_ERR(ctx->queues.transfer); in pvr_context_create_queues()
246 ctx->queues.transfer = NULL; in pvr_context_create_queues()
260 * pvr_context_kill_queues() - Kill queues attached to context.
261 * @ctx: Context to kill queues on.
263 * Killing the queues implies making them unusable for future jobs, while still
271 pvr_queue_kill(ctx->queues.fragment); in pvr_context_kill_queues()
272 pvr_queue_kill(ctx->queues.geometry); in pvr_context_kill_queues()
275 pvr_queue_kill(ctx->queues.compute); in pvr_context_kill_queues()
278 pvr_queue_kill(ctx->queues.transfer); in pvr_context_kill_queues()
435 /* Make sure nothing can be queued to the queues after that point. */ in pvr_context_destroy()