Lines Matching refs:msm_pipe
34 struct msm_pipe *msm_pipe = to_msm_pipe(pipe); in query_param() local
36 .pipe = msm_pipe->pipe, in query_param()
54 struct msm_pipe *msm_pipe = to_msm_pipe(pipe); in msm_pipe_get_param() local
58 *value = msm_pipe->gpu_id; in msm_pipe_get_param()
61 *value = msm_pipe->gmem; in msm_pipe_get_param()
64 *value = msm_pipe->chip_id; in msm_pipe_get_param()
139 struct msm_pipe *msm_pipe = to_msm_pipe(pipe); in msm_pipe_destroy() local
140 close_submitqueue(pipe, msm_pipe->queue_id); in msm_pipe_destroy()
142 if (msm_pipe->suballoc_ring) { in msm_pipe_destroy()
143 fd_ringbuffer_del(msm_pipe->suballoc_ring); in msm_pipe_destroy()
144 msm_pipe->suballoc_ring = NULL; in msm_pipe_destroy()
147 free(msm_pipe); in msm_pipe_destroy()
175 struct msm_pipe *msm_pipe = NULL; in msm_pipe_new() local
178 msm_pipe = calloc(1, sizeof(*msm_pipe)); in msm_pipe_new()
179 if (!msm_pipe) { in msm_pipe_new()
184 pipe = &msm_pipe->base; in msm_pipe_new()
189 msm_pipe->pipe = pipe_id[id]; in msm_pipe_new()
192 msm_pipe->gpu_id = get_param(pipe, MSM_PARAM_GPU_ID); in msm_pipe_new()
193 msm_pipe->gmem = get_param(pipe, MSM_PARAM_GMEM_SIZE); in msm_pipe_new()
194 msm_pipe->chip_id = get_param(pipe, MSM_PARAM_CHIP_ID); in msm_pipe_new()
196 if (! msm_pipe->gpu_id) in msm_pipe_new()
200 INFO_MSG(" GPU-id: %d", msm_pipe->gpu_id); in msm_pipe_new()
201 INFO_MSG(" Chip-id: 0x%08x", msm_pipe->chip_id); in msm_pipe_new()
202 INFO_MSG(" GMEM size: 0x%08x", msm_pipe->gmem); in msm_pipe_new()