Lines Matching refs:gpu_context
55 struct amdgpu_context *gpu_context;
63 gpu_context = calloc(1, sizeof(struct amdgpu_context));
64 if (!gpu_context)
67 gpu_context->dev = dev;
69 r = pthread_mutex_init(&gpu_context->sequence_mutex, NULL);
82 gpu_context->id = args.out.alloc.ctx_id;
86 list_inithead(&gpu_context->sem_list[i][j][k]);
87 *context = (amdgpu_context_handle)gpu_context;
92 pthread_mutex_destroy(&gpu_context->sequence_mutex);
93 free(gpu_context);