• Home
  • Raw
  • Download

Lines Matching refs:vcotbl

162 	struct vmw_cotable *vcotbl = vmw_cotable(res);  in vmw_cotable_unscrub()  local
180 WARN_ON(vcotbl->ctx->id == SVGA3D_INVALID_ID); in vmw_cotable_unscrub()
184 cmd->body.cid = vcotbl->ctx->id; in vmw_cotable_unscrub()
185 cmd->body.type = vcotbl->type; in vmw_cotable_unscrub()
187 cmd->body.validSizeInBytes = vcotbl->size_read_back; in vmw_cotable_unscrub()
190 vcotbl->scrubbed = false; in vmw_cotable_unscrub()
240 struct vmw_cotable *vcotbl = vmw_cotable(res); in vmw_cotable_scrub() local
253 if (vcotbl->scrubbed) in vmw_cotable_scrub()
256 if (co_info[vcotbl->type].unbind_func) in vmw_cotable_scrub()
257 co_info[vcotbl->type].unbind_func(dev_priv, in vmw_cotable_scrub()
258 &vcotbl->resource_list, in vmw_cotable_scrub()
271 vcotbl->size_read_back = 0; in vmw_cotable_scrub()
276 cmd0->body.cid = vcotbl->ctx->id; in vmw_cotable_scrub()
277 cmd0->body.type = vcotbl->type; in vmw_cotable_scrub()
279 vcotbl->size_read_back = res->backup_size; in vmw_cotable_scrub()
283 cmd1->body.cid = vcotbl->ctx->id; in vmw_cotable_scrub()
284 cmd1->body.type = vcotbl->type; in vmw_cotable_scrub()
288 vcotbl->scrubbed = true; in vmw_cotable_scrub()
310 struct vmw_cotable *vcotbl = vmw_cotable(res); in vmw_cotable_unbind() local
322 if (!vcotbl->scrubbed) in vmw_cotable_unbind()
323 vmw_dx_context_scrub_cotables(vcotbl->ctx, readback); in vmw_cotable_unbind()
343 struct vmw_cotable *vcotbl = vmw_cotable(res); in vmw_cotable_readback() local
352 if (!vcotbl->scrubbed) { in vmw_cotable_readback()
362 cmd->body.cid = vcotbl->ctx->id; in vmw_cotable_readback()
363 cmd->body.type = vcotbl->type; in vmw_cotable_readback()
364 vcotbl->size_read_back = res->backup_size; in vmw_cotable_readback()
390 struct vmw_cotable *vcotbl = vmw_cotable(res); in vmw_cotable_resize() local
394 size_t old_size_read_back = vcotbl->size_read_back; in vmw_cotable_resize()
404 cur_size_read_back = vcotbl->size_read_back; in vmw_cotable_resize()
405 vcotbl->size_read_back = old_size_read_back; in vmw_cotable_resize()
465 vcotbl->size_read_back = cur_size_read_back; in vmw_cotable_resize()
476 vcotbl->size_read_back = old_size_read_back; in vmw_cotable_resize()
484 res->id = vcotbl->type; in vmw_cotable_resize()
511 struct vmw_cotable *vcotbl = vmw_cotable(res); in vmw_cotable_create() local
517 needed_size = (vcotbl->seen_entries + 1) * co_info[vcotbl->type].size; in vmw_cotable_create()
522 if (vcotbl->scrubbed && !list_empty(&res->mob_head)) { in vmw_cotable_create()
527 res->id = vcotbl->type; in vmw_cotable_create()
573 struct vmw_cotable *vcotbl; in vmw_cotable_alloc() local
585 vcotbl = kzalloc(sizeof(*vcotbl), GFP_KERNEL); in vmw_cotable_alloc()
586 if (unlikely(vcotbl == NULL)) { in vmw_cotable_alloc()
591 ret = vmw_resource_init(dev_priv, &vcotbl->res, true, in vmw_cotable_alloc()
596 INIT_LIST_HEAD(&vcotbl->resource_list); in vmw_cotable_alloc()
597 vcotbl->res.id = type; in vmw_cotable_alloc()
598 vcotbl->res.backup_size = PAGE_SIZE; in vmw_cotable_alloc()
601 vcotbl->res.backup_size = co_info[type].min_initial_entries * in vmw_cotable_alloc()
603 vcotbl->res.backup_size = in vmw_cotable_alloc()
604 (vcotbl->res.backup_size + PAGE_SIZE - 1) & PAGE_MASK; in vmw_cotable_alloc()
607 vcotbl->scrubbed = true; in vmw_cotable_alloc()
608 vcotbl->seen_entries = -1; in vmw_cotable_alloc()
609 vcotbl->type = type; in vmw_cotable_alloc()
610 vcotbl->ctx = ctx; in vmw_cotable_alloc()
612 vmw_resource_activate(&vcotbl->res, vmw_hw_cotable_destroy); in vmw_cotable_alloc()
614 return &vcotbl->res; in vmw_cotable_alloc()
617 kfree(vcotbl); in vmw_cotable_alloc()
631 struct vmw_cotable *vcotbl = vmw_cotable(res); in vmw_cotable_notify() local
635 (unsigned) vcotbl->type, id); in vmw_cotable_notify()
639 if (vcotbl->seen_entries < id) { in vmw_cotable_notify()
642 vcotbl->seen_entries = id; in vmw_cotable_notify()
657 struct vmw_cotable *vcotbl = in vmw_cotable_add_resource() local
660 list_add_tail(head, &vcotbl->resource_list); in vmw_cotable_add_resource()