sw_context        571 arch/mips/alchemy/common/dbdma.c 		dp->sw_context = 0;
sw_context        106 arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h 	u32	sw_context;
sw_context        143 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					struct vmw_sw_context *sw_context,
sw_context        146 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 struct vmw_sw_context *sw_context,
sw_context        169 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static void vmw_execbuf_bindings_commit(struct vmw_sw_context *sw_context,
sw_context        174 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	list_for_each_entry(entry, &sw_context->ctx_list, head) {
sw_context        178 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		if (entry->staged != sw_context->staged_bindings)
sw_context        181 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			sw_context->staged_bindings_inuse = false;
sw_context        185 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	INIT_LIST_HEAD(&sw_context->ctx_list);
sw_context        193 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static void vmw_bind_dx_query_mob(struct vmw_sw_context *sw_context)
sw_context        195 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (sw_context->dx_query_mob)
sw_context        196 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		vmw_context_bind_dx_query(sw_context->dx_query_ctx,
sw_context        197 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					  sw_context->dx_query_mob);
sw_context        209 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   struct vmw_sw_context *sw_context,
sw_context        215 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_resource_context_res_add(dev_priv, sw_context, res);
sw_context        219 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (!sw_context->staged_bindings) {
sw_context        220 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		sw_context->staged_bindings = vmw_binding_state_alloc(dev_priv);
sw_context        221 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		if (IS_ERR(sw_context->staged_bindings)) {
sw_context        222 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			ret = PTR_ERR(sw_context->staged_bindings);
sw_context        223 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			sw_context->staged_bindings = NULL;
sw_context        228 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (sw_context->staged_bindings_inuse) {
sw_context        236 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		node->staged = sw_context->staged_bindings;
sw_context        237 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		sw_context->staged_bindings_inuse = true;
sw_context        242 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	list_add_tail(&node->head, &sw_context->ctx_list);
sw_context        299 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static int vmw_execbuf_res_noref_val_add(struct vmw_sw_context *sw_context,
sw_context        311 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	rcache = &sw_context->res_cache[res_type];
sw_context        314 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			vmw_validation_res_set_dirty(sw_context->ctx,
sw_context        321 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_validation_add_resource(sw_context->ctx, res, priv_size,
sw_context        329 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_ctx_first_setup(dev_priv, sw_context, res,
sw_context        351 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static int vmw_execbuf_res_noctx_val_add(struct vmw_sw_context *sw_context,
sw_context        360 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	rcache = &sw_context->res_cache[res_type];
sw_context        363 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			vmw_validation_res_set_dirty(sw_context->ctx,
sw_context        368 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_validation_add_resource(sw_context->ctx, res, 0, dirty,
sw_context        387 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static int vmw_view_res_val_add(struct vmw_sw_context *sw_context,
sw_context        396 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_execbuf_res_noctx_val_add(sw_context, vmw_view_srf(view),
sw_context        401 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_execbuf_res_noctx_val_add(sw_context, view,
sw_context        421 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c vmw_view_id_val_add(struct vmw_sw_context *sw_context,
sw_context        424 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = sw_context->dx_ctx_node;
sw_context        431 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	view = vmw_view_lookup(sw_context->man, view_type, id);
sw_context        435 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_view_res_val_add(sw_context, view);
sw_context        454 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					struct vmw_sw_context *sw_context,
sw_context        470 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			ret = vmw_execbuf_res_noctx_val_add(sw_context, res,
sw_context        483 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			ret = vmw_view_res_val_add(sw_context, entry->res);
sw_context        486 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				(sw_context, entry->res,
sw_context        497 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			ret = vmw_validation_add_bo(sw_context->ctx,
sw_context        514 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static int vmw_resource_relocation_add(struct vmw_sw_context *sw_context,
sw_context        522 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	rel = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*rel));
sw_context        531 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	list_add_tail(&rel->head, &sw_context->res_relocations);
sw_context        582 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			   struct vmw_sw_context *sw_context,
sw_context        589 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		      struct vmw_sw_context *sw_context,
sw_context        605 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static int vmw_resources_reserve(struct vmw_sw_context *sw_context)
sw_context        609 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_validation_res_reserve(sw_context->ctx, true);
sw_context        613 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (sw_context->dx_query_mob) {
sw_context        617 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			vmw_context_get_dx_query_mob(sw_context->dx_query_ctx);
sw_context        619 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		    expected_dx_query_mob != sw_context->dx_query_mob) {
sw_context        643 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		  struct vmw_sw_context *sw_context,
sw_context        650 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_res_cache_entry *rcache = &sw_context->res_cache[res_type];
sw_context        668 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			vmw_validation_res_set_dirty(sw_context->ctx,
sw_context        673 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_validation_preload_res(sw_context->ctx, size);
sw_context        678 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			(dev_priv, sw_context->fp->tfile, *id_loc, converter);
sw_context        685 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_execbuf_res_noref_val_add(sw_context, res, dirty);
sw_context        695 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_resource_relocation_add(sw_context, res,
sw_context        696 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					  vmw_ptr_diff(sw_context->buf_start,
sw_context        746 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static int vmw_rebind_contexts(struct vmw_sw_context *sw_context)
sw_context        751 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	list_for_each_entry(val, &sw_context->ctx_list, head) {
sw_context        781 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static int vmw_view_bindings_add(struct vmw_sw_context *sw_context,
sw_context        788 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context        799 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			view = vmw_view_id_val_add(sw_context, view_type,
sw_context        829 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			     struct vmw_sw_context *sw_context,
sw_context        835 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context        855 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c vmw_execbuf_info_from_res(struct vmw_sw_context *sw_context,
sw_context        859 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		&sw_context->res_cache[vmw_res_type(res)];
sw_context        869 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					   struct vmw_sw_context *sw_context,
sw_context        885 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context        891 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context        901 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		node = vmw_execbuf_info_from_res(sw_context, ctx);
sw_context        916 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				      struct vmw_sw_context *sw_context,
sw_context        924 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context        930 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context        936 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context,
sw_context        943 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context        949 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context        955 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   struct vmw_sw_context *sw_context,
sw_context        962 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context        968 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context        974 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context,
sw_context        981 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context        987 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context        993 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					 struct vmw_sw_context *sw_context,
sw_context        999 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1005 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 struct vmw_sw_context *sw_context,
sw_context       1011 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1030 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				       struct vmw_sw_context *sw_context)
sw_context       1033 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		&sw_context->res_cache[vmw_res_context];
sw_context       1037 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->last_query_ctx = ctx_entry->res;
sw_context       1039 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (unlikely(new_query_bo != sw_context->cur_query_bo)) {
sw_context       1046 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		if (unlikely(sw_context->cur_query_bo != NULL)) {
sw_context       1047 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			sw_context->needs_post_query_barrier = true;
sw_context       1048 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			ret = vmw_validation_add_bo(sw_context->ctx,
sw_context       1049 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 						    sw_context->cur_query_bo,
sw_context       1054 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		sw_context->cur_query_bo = new_query_bo;
sw_context       1056 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_validation_add_bo(sw_context->ctx,
sw_context       1084 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context)
sw_context       1090 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (sw_context->needs_post_query_barrier) {
sw_context       1092 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			&sw_context->res_cache[vmw_res_context];
sw_context       1105 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (dev_priv->pinned_bo != sw_context->cur_query_bo) {
sw_context       1111 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		if (!sw_context->needs_post_query_barrier) {
sw_context       1112 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			vmw_bo_pin_reserved(sw_context->cur_query_bo, true);
sw_context       1125 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			BUG_ON(sw_context->last_query_ctx == NULL);
sw_context       1126 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			dev_priv->query_cid = sw_context->last_query_ctx->id;
sw_context       1129 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				vmw_bo_reference(sw_context->cur_query_bo);
sw_context       1155 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 struct vmw_sw_context *sw_context,
sw_context       1164 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_validation_preload_bo(sw_context->ctx);
sw_context       1165 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_bo = vmw_user_bo_noref_lookup(sw_context->fp->tfile, handle);
sw_context       1171 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_validation_add_bo(sw_context->ctx, vmw_bo, true, false);
sw_context       1176 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	reloc = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*reloc));
sw_context       1184 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	list_add_tail(&reloc->head, &sw_context->bo_relocations);
sw_context       1210 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   struct vmw_sw_context *sw_context,
sw_context       1219 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_validation_preload_bo(sw_context->ctx);
sw_context       1220 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_bo = vmw_user_bo_noref_lookup(sw_context->fp->tfile, handle);
sw_context       1226 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_validation_add_bo(sw_context->ctx, vmw_bo, false, false);
sw_context       1231 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	reloc = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*reloc));
sw_context       1238 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	list_add_tail(&reloc->head, &sw_context->bo_relocations);
sw_context       1253 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   struct vmw_sw_context *sw_context,
sw_context       1257 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       1288 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 struct vmw_sw_context *sw_context,
sw_context       1301 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid,
sw_context       1307 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->dx_query_mob = vmw_bo;
sw_context       1308 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->dx_query_ctx = sw_context->dx_ctx_node->ctx;
sw_context       1320 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				  struct vmw_sw_context *sw_context,
sw_context       1326 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context       1339 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			       struct vmw_sw_context *sw_context,
sw_context       1356 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		return vmw_cmd_begin_gb_query(dev_priv, sw_context, header);
sw_context       1359 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context       1372 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				struct vmw_sw_context *sw_context,
sw_context       1380 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
sw_context       1384 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid,
sw_context       1389 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_query_bo_switch_prepare(dev_priv, vmw_bo, sw_context);
sw_context       1402 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			     struct vmw_sw_context *sw_context,
sw_context       1423 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		return vmw_cmd_end_gb_query(dev_priv, sw_context, header);
sw_context       1426 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
sw_context       1430 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_translate_guest_ptr(dev_priv, sw_context,
sw_context       1435 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_query_bo_switch_prepare(dev_priv, vmw_bo, sw_context);
sw_context       1448 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 struct vmw_sw_context *sw_context,
sw_context       1456 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
sw_context       1460 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_translate_mob_ptr(dev_priv, sw_context, &cmd->body.mobid,
sw_context       1476 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			      struct vmw_sw_context *sw_context,
sw_context       1497 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		return vmw_cmd_wait_gb_query(dev_priv, sw_context, header);
sw_context       1500 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
sw_context       1504 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_translate_guest_ptr(dev_priv, sw_context,
sw_context       1513 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		       struct vmw_sw_context *sw_context,
sw_context       1534 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_translate_guest_ptr(dev_priv, sw_context,
sw_context       1552 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1561 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	srf = vmw_res_to_srf(sw_context->res_cache[vmw_res_surface].res);
sw_context       1563 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, header);
sw_context       1569 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			struct vmw_sw_context *sw_context,
sw_context       1580 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_cid_check(dev_priv, sw_context, header);
sw_context       1593 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1610 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1621 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			     struct vmw_sw_context *sw_context,
sw_context       1635 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context       1651 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1662 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			node = vmw_execbuf_info_from_res(sw_context, ctx);
sw_context       1679 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				      struct vmw_sw_context *sw_context,
sw_context       1689 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_translate_guest_ptr(dev_priv, sw_context, &cmd->body.ptr,
sw_context       1709 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context,
sw_context       1717 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	info = vmw_execbuf_info_from_res(sw_context, res);
sw_context       1721 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_translate_mob_ptr(dev_priv, sw_context, buf_id, &vbo);
sw_context       1725 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_validation_res_switch_backup(sw_context->ctx, info, vbo,
sw_context       1747 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 struct vmw_sw_context *sw_context,
sw_context       1756 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, res_type,
sw_context       1761 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_switch_backup(dev_priv, sw_context, res, buf_id,
sw_context       1773 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   struct vmw_sw_context *sw_context,
sw_context       1779 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_switch_backup(dev_priv, sw_context, vmw_res_surface,
sw_context       1792 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   struct vmw_sw_context *sw_context,
sw_context       1798 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1811 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context,
sw_context       1817 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1830 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context,
sw_context       1836 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1850 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				       struct vmw_sw_context *sw_context,
sw_context       1856 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1870 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				       struct vmw_sw_context *sw_context,
sw_context       1876 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1890 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					 struct vmw_sw_context *sw_context,
sw_context       1896 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       1909 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 struct vmw_sw_context *sw_context,
sw_context       1919 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context       1931 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				    size, &sw_context->staged_cmd_res);
sw_context       1935 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_resource_relocation_add(sw_context, NULL,
sw_context       1936 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					   vmw_ptr_diff(sw_context->buf_start,
sw_context       1949 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				  struct vmw_sw_context *sw_context,
sw_context       1958 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context       1968 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				cmd->body.type, &sw_context->staged_cmd_res);
sw_context       1972 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_resource_relocation_add(sw_context, NULL,
sw_context       1973 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					   vmw_ptr_diff(sw_context->buf_start,
sw_context       1986 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			      struct vmw_sw_context *sw_context,
sw_context       2003 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context       2021 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			ret = vmw_execbuf_res_noctx_val_add(sw_context, res,
sw_context       2027 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				(sw_context, res,
sw_context       2028 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 vmw_ptr_diff(sw_context->buf_start,
sw_context       2037 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_shader,
sw_context       2045 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ctx_info = vmw_execbuf_info_from_res(sw_context, ctx);
sw_context       2066 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				    struct vmw_sw_context *sw_context,
sw_context       2074 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context       2094 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				  struct vmw_sw_context *sw_context,
sw_context       2100 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_switch_backup(dev_priv, sw_context, vmw_res_shader,
sw_context       2115 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				      struct vmw_sw_context *sw_context,
sw_context       2120 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2128 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       2165 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context,
sw_context       2180 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_view_bindings_add(sw_context, vmw_view_sr,
sw_context       2195 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 struct vmw_sw_context *sw_context,
sw_context       2200 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2217 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		res = vmw_shader_lookup(sw_context->man, cmd->body.shaderId, 0);
sw_context       2223 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_execbuf_res_noctx_val_add(sw_context, res,
sw_context       2248 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					 struct vmw_sw_context *sw_context,
sw_context       2251 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2274 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       2303 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				       struct vmw_sw_context *sw_context,
sw_context       2306 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2316 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       2342 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					struct vmw_sw_context *sw_context,
sw_context       2356 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_view_bindings_add(sw_context, vmw_view_ds, vmw_ctx_binding_ds,
sw_context       2361 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_view_bindings_add(sw_context, vmw_view_rt,
sw_context       2375 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					      struct vmw_sw_context *sw_context,
sw_context       2381 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return PTR_RET(vmw_view_id_val_add(sw_context, vmw_view_rt,
sw_context       2394 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					      struct vmw_sw_context *sw_context,
sw_context       2400 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return PTR_RET(vmw_view_id_val_add(sw_context, vmw_view_ds,
sw_context       2405 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				  struct vmw_sw_context *sw_context,
sw_context       2408 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2435 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       2446 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_view_add(sw_context->man, ctx_node->ctx, srf, view_type,
sw_context       2449 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			    &sw_context->staged_cmd_res);
sw_context       2460 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context,
sw_context       2463 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2485 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       2506 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				struct vmw_sw_context *sw_context,
sw_context       2509 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2542 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					struct vmw_sw_context *sw_context,
sw_context       2564 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       2570 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				struct vmw_sw_context *sw_context,
sw_context       2573 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2593 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				  struct vmw_sw_context *sw_context,
sw_context       2596 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2608 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_view_remove(sw_context->man, cmd->body.view_id, view_type,
sw_context       2609 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			      &sw_context->staged_cmd_res, &view);
sw_context       2619 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_resource_relocation_add(sw_context, view,
sw_context       2620 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					   vmw_ptr_diff(sw_context->buf_start,
sw_context       2633 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				    struct vmw_sw_context *sw_context,
sw_context       2636 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2650 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_dx_shader_add(sw_context->man, ctx_node->ctx,
sw_context       2652 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 &sw_context->staged_cmd_res);
sw_context       2663 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context,
sw_context       2666 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_ctx_validation_info *ctx_node = VMW_GET_CTX_NODE(sw_context);
sw_context       2674 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_shader_remove(sw_context->man, cmd->body.shaderId, 0,
sw_context       2675 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				&sw_context->staged_cmd_res);
sw_context       2688 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				  struct vmw_sw_context *sw_context,
sw_context       2698 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
sw_context       2706 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			VMW_GET_CTX_NODE(sw_context);
sw_context       2720 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_execbuf_res_noctx_val_add(sw_context, res,
sw_context       2727 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_switch_backup(dev_priv, sw_context, res,
sw_context       2740 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			      struct vmw_sw_context *sw_context,
sw_context       2746 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return PTR_RET(vmw_view_id_val_add(sw_context, vmw_view_sr,
sw_context       2759 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					   struct vmw_sw_context *sw_context,
sw_context       2766 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       2772 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       2785 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					   struct vmw_sw_context *sw_context,
sw_context       2794 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
sw_context       2800 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				struct vmw_sw_context *sw_context,
sw_context       2831 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (unlikely(!sw_context->kernel)) {
sw_context       2837 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		return vmw_cmd_check_define_gmrfb(dev_priv, sw_context, buf);
sw_context       3202 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			 struct vmw_sw_context *sw_context, void *buf,
sw_context       3215 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		return vmw_cmd_check_not_3d(dev_priv, sw_context, buf, size);
sw_context       3232 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (unlikely(!entry->user_allow && !sw_context->kernel))
sw_context       3241 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = entry->func(dev_priv, sw_context, header);
sw_context       3268 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			     struct vmw_sw_context *sw_context, void *buf,
sw_context       3274 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->buf_start = buf;
sw_context       3278 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_cmd_check(dev_priv, sw_context, buf, &size);
sw_context       3293 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static void vmw_free_relocations(struct vmw_sw_context *sw_context)
sw_context       3296 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	INIT_LIST_HEAD(&sw_context->bo_relocations);
sw_context       3299 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static void vmw_apply_relocations(struct vmw_sw_context *sw_context)
sw_context       3304 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	list_for_each_entry(reloc, &sw_context->bo_relocations, head) {
sw_context       3321 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_free_relocations(sw_context);
sw_context       3324 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static int vmw_resize_cmd_bounce(struct vmw_sw_context *sw_context,
sw_context       3327 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (likely(sw_context->cmd_bounce_size >= size))
sw_context       3330 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (sw_context->cmd_bounce_size == 0)
sw_context       3331 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		sw_context->cmd_bounce_size = VMWGFX_CMD_BOUNCE_INIT_SIZE;
sw_context       3333 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	while (sw_context->cmd_bounce_size < size) {
sw_context       3334 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		sw_context->cmd_bounce_size =
sw_context       3335 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			PAGE_ALIGN(sw_context->cmd_bounce_size +
sw_context       3336 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   (sw_context->cmd_bounce_size >> 1));
sw_context       3339 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vfree(sw_context->cmd_bounce);
sw_context       3340 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->cmd_bounce = vmalloc(sw_context->cmd_bounce_size);
sw_context       3342 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (sw_context->cmd_bounce == NULL) {
sw_context       3344 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		sw_context->cmd_bounce_size = 0;
sw_context       3483 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   struct vmw_sw_context *sw_context)
sw_context       3487 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (sw_context->dx_ctx_node)
sw_context       3489 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					  sw_context->dx_ctx_node->ctx->id);
sw_context       3496 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_apply_relocations(sw_context);
sw_context       3498 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_resource_relocations_apply(cmd, &sw_context->res_relocations);
sw_context       3499 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_resource_relocations_free(&sw_context->res_relocations);
sw_context       3520 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				     struct vmw_sw_context *sw_context)
sw_context       3522 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	u32 id = ((sw_context->dx_ctx_node) ? sw_context->dx_ctx_node->ctx->id :
sw_context       3527 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_apply_relocations(sw_context);
sw_context       3528 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_resource_relocations_apply(cmd, &sw_context->res_relocations);
sw_context       3529 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_resource_relocations_free(&sw_context->res_relocations);
sw_context       3596 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				   struct vmw_sw_context *sw_context,
sw_context       3607 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_validation_preload_res(sw_context->ctx, size);
sw_context       3612 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		(dev_priv, sw_context->fp->tfile, handle,
sw_context       3620 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_execbuf_res_noref_val_add(sw_context, res, VMW_RES_DIRTY_SET);
sw_context       3624 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->dx_ctx_node = vmw_execbuf_info_from_res(sw_context, res);
sw_context       3625 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->man = vmw_context_res_man(res);
sw_context       3638 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	struct vmw_sw_context *sw_context = &dev_priv->ctx;
sw_context       3645 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	DECLARE_VAL_CONTEXT(val_ctx, &sw_context->res_ht, 1);
sw_context       3679 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->kernel = false;
sw_context       3681 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_resize_cmd_bounce(sw_context, command_size);
sw_context       3685 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = copy_from_user(sw_context->cmd_bounce, user_commands,
sw_context       3693 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		kernel_commands = sw_context->cmd_bounce;
sw_context       3695 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		sw_context->kernel = true;
sw_context       3698 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->fp = vmw_fpriv(file_priv);
sw_context       3699 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	INIT_LIST_HEAD(&sw_context->ctx_list);
sw_context       3700 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->cur_query_bo = dev_priv->pinned_bo;
sw_context       3701 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->last_query_ctx = NULL;
sw_context       3702 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->needs_post_query_barrier = false;
sw_context       3703 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->dx_ctx_node = NULL;
sw_context       3704 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->dx_query_mob = NULL;
sw_context       3705 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->dx_query_ctx = NULL;
sw_context       3706 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	memset(sw_context->res_cache, 0, sizeof(sw_context->res_cache));
sw_context       3707 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	INIT_LIST_HEAD(&sw_context->res_relocations);
sw_context       3708 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	INIT_LIST_HEAD(&sw_context->bo_relocations);
sw_context       3710 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (sw_context->staged_bindings)
sw_context       3711 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		vmw_binding_state_reset(sw_context->staged_bindings);
sw_context       3713 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	if (!sw_context->res_ht_initialized) {
sw_context       3714 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = drm_ht_create(&sw_context->res_ht, VMW_RES_HT_ORDER);
sw_context       3718 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		sw_context->res_ht_initialized = true;
sw_context       3721 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	INIT_LIST_HEAD(&sw_context->staged_cmd_res);
sw_context       3722 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	sw_context->ctx = &val_ctx;
sw_context       3723 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_execbuf_tie_context(dev_priv, sw_context, dx_context_handle);
sw_context       3727 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_cmd_check_all(dev_priv, sw_context, kernel_commands,
sw_context       3732 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	ret = vmw_resources_reserve(sw_context);
sw_context       3757 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		ret = vmw_rebind_contexts(sw_context);
sw_context       3764 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 					      command_size, sw_context);
sw_context       3767 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 						sw_context);
sw_context       3774 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_query_bo_switch_commit(dev_priv, sw_context);
sw_context       3785 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_execbuf_bindings_commit(sw_context, false);
sw_context       3786 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_bind_dx_query_mob(sw_context);
sw_context       3789 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_validation_bo_fence(sw_context->ctx, fence);
sw_context       3827 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_cmdbuf_res_commit(&sw_context->staged_cmd_res);
sw_context       3843 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_execbuf_bindings_commit(sw_context, true);
sw_context       3845 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_resource_relocations_free(&sw_context->res_relocations);
sw_context       3846 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_free_relocations(sw_context);
sw_context       3850 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	vmw_cmdbuf_res_revert(&sw_context->staged_cmd_res);
sw_context       3852 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	WARN_ON(!list_empty(&sw_context->ctx_list));