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()
257 &batch->otable_bo); in vmw_otable_batch_setup()
262 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup()
263 if (!batch->otables[i].enabled) in vmw_otable_batch_setup()
267 &batch->otable_bo->tbo, 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()
281 &batch->otables[i]); in vmw_otable_batch_setup()
284 vmw_bo_unpin_unlocked(&batch->otable_bo->tbo); in vmw_otable_batch_setup()
285 ttm_bo_put(&batch->otable_bo->tbo); in vmw_otable_batch_setup()
286 batch->otable_bo = NULL; in vmw_otable_batch_setup()
333 struct vmw_otable_batch *batch) in vmw_otable_batch_takedown() argument
336 struct ttm_buffer_object *bo = &batch->otable_bo->tbo; in vmw_otable_batch_takedown()
339 for (i = 0; i < batch->num_otables; ++i) in vmw_otable_batch_takedown()
340 if (batch->otables[i].enabled) in vmw_otable_batch_takedown()
342 &batch->otables[i]); in vmw_otable_batch_takedown()
351 vmw_bo_unreference(&batch->otable_bo); in vmw_otable_batch_takedown()