Lines Matching refs:batch
238 struct vmw_otable_batch *batch) in vmw_otable_batch_setup() argument
242 struct vmw_otable *otables = batch->otables; in vmw_otable_batch_setup()
247 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
260 &batch->otable_bo); in vmw_otable_batch_setup()
265 ret = ttm_bo_reserve(batch->otable_bo, false, true, NULL); in vmw_otable_batch_setup()
267 ret = vmw_bo_driver.ttm_tt_populate(batch->otable_bo->ttm); in vmw_otable_batch_setup()
270 ret = vmw_bo_map_dma(batch->otable_bo); in vmw_otable_batch_setup()
274 ttm_bo_unreserve(batch->otable_bo); in vmw_otable_batch_setup()
277 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
278 if (!batch->otables[i].enabled) in vmw_otable_batch_setup()
281 ret = vmw_setup_otable_base(dev_priv, i, batch->otable_bo, in vmw_otable_batch_setup()
292 ttm_bo_unreserve(batch->otable_bo); in vmw_otable_batch_setup()
294 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
295 if (batch->otables[i].enabled) in vmw_otable_batch_setup()
297 &batch->otables[i]); in vmw_otable_batch_setup()
300 ttm_bo_unref(&batch->otable_bo); in vmw_otable_batch_setup()
349 struct vmw_otable_batch *batch) in vmw_otable_batch_takedown() argument
352 struct ttm_buffer_object *bo = batch->otable_bo; in vmw_otable_batch_takedown()
355 for (i = 0; i < batch->num_otables; ++i) in vmw_otable_batch_takedown()
356 if (batch->otables[i].enabled) in vmw_otable_batch_takedown()
358 &batch->otables[i]); in vmw_otable_batch_takedown()
366 ttm_bo_unref(&batch->otable_bo); in vmw_otable_batch_takedown()