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()
245 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 ttm_bo_put(batch->otable_bo); in vmw_otable_batch_setup()
281 batch->otable_bo = NULL; in vmw_otable_batch_setup()
328 struct vmw_otable_batch *batch) in vmw_otable_batch_takedown() argument
331 struct ttm_buffer_object *bo = batch->otable_bo; in vmw_otable_batch_takedown()
334 for (i = 0; i < batch->num_otables; ++i) in vmw_otable_batch_takedown()
335 if (batch->otables[i].enabled) in vmw_otable_batch_takedown()
337 &batch->otables[i]); in vmw_otable_batch_takedown()
345 ttm_bo_put(batch->otable_bo); in vmw_otable_batch_takedown()
346 batch->otable_bo = NULL; in vmw_otable_batch_takedown()