Lines Matching refs:batch
246 struct vmw_otable_batch *batch) in vmw_otable_batch_setup() argument
250 struct vmw_otable *otables = batch->otables; in vmw_otable_batch_setup()
255 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
263 ret = vmw_bo_create_and_populate(dev_priv, bo_size, &batch->otable_bo); in vmw_otable_batch_setup()
268 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
269 if (!batch->otables[i].enabled) in vmw_otable_batch_setup()
272 ret = vmw_setup_otable_base(dev_priv, i, batch->otable_bo, in vmw_otable_batch_setup()
283 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
284 if (batch->otables[i].enabled) in vmw_otable_batch_setup()
286 &batch->otables[i]); in vmw_otable_batch_setup()
289 vmw_bo_unpin_unlocked(batch->otable_bo); in vmw_otable_batch_setup()
290 ttm_bo_put(batch->otable_bo); in vmw_otable_batch_setup()
291 batch->otable_bo = NULL; in vmw_otable_batch_setup()
338 struct vmw_otable_batch *batch) in vmw_otable_batch_takedown() argument
341 struct ttm_buffer_object *bo = batch->otable_bo; in vmw_otable_batch_takedown()
344 for (i = 0; i < batch->num_otables; ++i) in vmw_otable_batch_takedown()
345 if (batch->otables[i].enabled) in vmw_otable_batch_takedown()
347 &batch->otables[i]); in vmw_otable_batch_takedown()
356 ttm_bo_put(batch->otable_bo); in vmw_otable_batch_takedown()
357 batch->otable_bo = NULL; in vmw_otable_batch_takedown()