Lines Matching refs:batch
236 struct vmw_otable_batch *batch) in vmw_otable_batch_setup() argument
240 struct vmw_otable *otables = batch->otables; in vmw_otable_batch_setup()
249 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
261 0, false, &batch->otable_bo); in vmw_otable_batch_setup()
266 ret = ttm_bo_reserve(batch->otable_bo, false, true, NULL); in vmw_otable_batch_setup()
268 ret = vmw_bo_driver.ttm_tt_populate(batch->otable_bo->ttm, &ctx); in vmw_otable_batch_setup()
271 ret = vmw_bo_map_dma(batch->otable_bo); in vmw_otable_batch_setup()
275 ttm_bo_unreserve(batch->otable_bo); in vmw_otable_batch_setup()
278 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
279 if (!batch->otables[i].enabled) in vmw_otable_batch_setup()
282 ret = vmw_setup_otable_base(dev_priv, i, batch->otable_bo, in vmw_otable_batch_setup()
293 ttm_bo_unreserve(batch->otable_bo); in vmw_otable_batch_setup()
295 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
296 if (batch->otables[i].enabled) in vmw_otable_batch_setup()
298 &batch->otables[i]); in vmw_otable_batch_setup()
301 ttm_bo_put(batch->otable_bo); in vmw_otable_batch_setup()
302 batch->otable_bo = NULL; in vmw_otable_batch_setup()
350 struct vmw_otable_batch *batch) in vmw_otable_batch_takedown() argument
353 struct ttm_buffer_object *bo = batch->otable_bo; in vmw_otable_batch_takedown()
356 for (i = 0; i < batch->num_otables; ++i) in vmw_otable_batch_takedown()
357 if (batch->otables[i].enabled) in vmw_otable_batch_takedown()
359 &batch->otables[i]); in vmw_otable_batch_takedown()
367 ttm_bo_put(batch->otable_bo); in vmw_otable_batch_takedown()
368 batch->otable_bo = NULL; in vmw_otable_batch_takedown()