Lines Matching refs:batch
237 struct vmw_otable_batch *batch) in vmw_otable_batch_setup() argument
241 struct vmw_otable *otables = batch->otables; in vmw_otable_batch_setup()
246 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
254 ret = vmw_bo_create_and_populate(dev_priv, bo_size, &batch->otable_bo); in vmw_otable_batch_setup()
259 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
260 if (!batch->otables[i].enabled) in vmw_otable_batch_setup()
263 ret = vmw_setup_otable_base(dev_priv, i, batch->otable_bo, in vmw_otable_batch_setup()
274 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
275 if (batch->otables[i].enabled) in vmw_otable_batch_setup()
277 &batch->otables[i]); in vmw_otable_batch_setup()
280 vmw_bo_unpin_unlocked(batch->otable_bo); in vmw_otable_batch_setup()
281 ttm_bo_put(batch->otable_bo); in vmw_otable_batch_setup()
282 batch->otable_bo = NULL; in vmw_otable_batch_setup()
329 struct vmw_otable_batch *batch) in vmw_otable_batch_takedown() argument
332 struct ttm_buffer_object *bo = batch->otable_bo; in vmw_otable_batch_takedown()
335 for (i = 0; i < batch->num_otables; ++i) in vmw_otable_batch_takedown()
336 if (batch->otables[i].enabled) in vmw_otable_batch_takedown()
338 &batch->otables[i]); in vmw_otable_batch_takedown()
347 ttm_bo_put(batch->otable_bo); in vmw_otable_batch_takedown()
348 batch->otable_bo = NULL; in vmw_otable_batch_takedown()