Lines Matching refs:submit
93 struct fd_submit *submit; member
109 msm_submit_append_bo(struct msm_submit_sp *submit, struct fd_bo *bo) in msm_submit_append_bo() argument
120 if (unlikely((idx >= submit->nr_submit_bos) || in msm_submit_append_bo()
121 (submit->submit_bos[idx].handle != bo->handle))) { in msm_submit_append_bo()
125 entry = _mesa_hash_table_search_pre_hashed(submit->bo_table, hash, bo); in msm_submit_append_bo()
130 idx = APPEND(submit, submit_bos); in msm_submit_append_bo()
131 idx = APPEND(submit, bos); in msm_submit_append_bo()
133 submit->submit_bos[idx].flags = bo->flags; in msm_submit_append_bo()
134 submit->submit_bos[idx].handle = bo->handle; in msm_submit_append_bo()
135 submit->submit_bos[idx].presumed = 0; in msm_submit_append_bo()
137 submit->bos[idx] = fd_bo_ref(bo); in msm_submit_append_bo()
139 _mesa_hash_table_insert_pre_hashed(submit->bo_table, hash, bo, in msm_submit_append_bo()
149 msm_submit_suballoc_ring_bo(struct fd_submit *submit, in msm_submit_suballoc_ring_bo() argument
152 struct msm_submit_sp *msm_submit = to_msm_submit_sp(submit); in msm_submit_suballoc_ring_bo()
173 msm_ring->ring_bo = fd_bo_new_ring(submit->pipe->dev, 0x8000); in msm_submit_suballoc_ring_bo()
189 msm_submit_sp_new_ringbuffer(struct fd_submit *submit, uint32_t size, in msm_submit_sp_new_ringbuffer() argument
192 struct msm_submit_sp *msm_submit = to_msm_submit_sp(submit); in msm_submit_sp_new_ringbuffer()
197 msm_ring->u.submit = submit; in msm_submit_sp_new_ringbuffer()
205 msm_submit_suballoc_ring_bo(submit, msm_ring, size); in msm_submit_sp_new_ringbuffer()
211 msm_ring->ring_bo = fd_bo_new_ring(submit->pipe->dev, size); in msm_submit_sp_new_ringbuffer()
226 msm_submit_sp_flush(struct fd_submit *submit, int in_fence_fd, in msm_submit_sp_flush() argument
229 struct msm_submit_sp *msm_submit = to_msm_submit_sp(submit); in msm_submit_sp_flush()
230 struct msm_pipe *msm_pipe = to_msm_pipe(submit->pipe); in msm_submit_sp_flush()
270 ret = drmCommandWriteRead(submit->pipe->dev->fd, DRM_MSM_GEM_SUBMIT, in msm_submit_sp_flush()
287 msm_submit_sp_destroy(struct fd_submit *submit) in msm_submit_sp_destroy() argument
289 struct msm_submit_sp *msm_submit = to_msm_submit_sp(submit); in msm_submit_sp_destroy()
321 struct fd_submit *submit; in msm_submit_sp_new() local
328 submit = &msm_submit->base; in msm_submit_sp_new()
329 submit->pipe = pipe; in msm_submit_sp_new()
330 submit->funcs = &submit_funcs; in msm_submit_sp_new()
332 return submit; in msm_submit_sp_new()
365 struct fd_pipe *pipe = msm_ring->u.submit->pipe; in msm_ringbuffer_sp_grow()
409 to_msm_submit_sp(msm_ring->u.submit); in msm_ringbuffer_sp_emit_reloc()
413 pipe = msm_ring->u.submit->pipe; in msm_ringbuffer_sp_emit_reloc()
472 struct msm_submit_sp *msm_submit = to_msm_submit_sp(msm_ring->u.submit); in msm_ringbuffer_sp_emit_reloc_ring()
505 struct fd_submit *submit = msm_ring->u.submit; in msm_ringbuffer_sp_destroy() local
512 slab_free(&to_msm_submit_sp(submit)->ring_pool, msm_ring); in msm_ringbuffer_sp_destroy()