Lines Matching refs:bos
58 * Note that bos and cmds are tracked by the parent ringbuffer, since
64 DECLARE_ARRAY(struct drm_msm_gem_submit_bo, bos);
70 /* should have matching entries in submit.bos: */
72 DECLARE_ARRAY(struct fd_bo *, bos);
206 idx = APPEND(&msm_ring->submit, bos);
207 idx = APPEND(msm_ring, bos);
209 msm_ring->submit.bos[idx].flags = 0;
210 msm_ring->submit.bos[idx].handle = bo->handle;
211 msm_ring->submit.bos[idx].presumed = to_msm_bo(bo)->presumed;
213 msm_ring->bos[idx] = fd_bo_ref(bo);
246 msm_ring->submit.bos[idx].flags |= MSM_SUBMIT_BO_READ;
248 msm_ring->submit.bos[idx].flags |= MSM_SUBMIT_BO_WRITE;
285 assert(msm_ring->submit.bos[cmd->submit_idx].handle ==
336 struct msm_bo *msm_bo = to_msm_bo(msm_ring->bos[i]);
400 struct drm_msm_gem_submit_bo *bo = &msm_ring->submit.bos[i];
401 ERROR_MSG(" bos[%d]: handle=%u, flags=%x", i, bo->handle, bo->flags);
427 struct fd_bo *bo = msm_ring->bos[idx];
430 if (msm_ring->submit.bos[idx].flags & MSM_SUBMIT_BO_READ)
432 if (msm_ring->submit.bos[idx].flags & MSM_SUBMIT_BO_WRITE)
493 * points into it's own private bos table, rather than the global
494 * bos table used for the submit, so we need to add the stateobj's
495 * bos to the global table and construct new relocs table with
508 /* needs to be after get_cmd() as that could create bos/cmds table: */
509 req.bos = VOID2U64(msm_ring->submit.bos),
675 free(msm_ring->submit.bos);
676 free(msm_ring->bos);