mob               510 drivers/gpu/drm/vmwgfx/device_include/svga_reg.h       } mob;
mob               564 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c 			cb_hdr->ptr.mob.mobOffset += new_start_offset;
mob               890 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c 		cb_hdr->ptr.mob.mobid = man->cmd_space->mem.start;
mob               891 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c 		cb_hdr->ptr.mob.mobOffset = offset;
mob               877 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 			      struct vmw_buffer_object *mob)
mob               882 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (mob == NULL) {
mob               893 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	if (uctx->dx_query_mob && uctx->dx_query_mob != mob)
mob               896 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 	mob->dx_query_ctx  = ctx_res;
mob               899 drivers/gpu/drm/vmwgfx/vmwgfx_context.c 		uctx->dx_query_mob = vmw_bo_reference(mob);
mob              1158 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_mob_bind(struct vmw_private *dev_priv, struct vmw_mob *mob,
mob              1162 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 			   struct vmw_mob *mob);
mob              1163 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_mob_destroy(struct vmw_mob *mob);
mob              1196 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h 				     struct vmw_buffer_object *mob);
mob                92 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 			       struct vmw_mob *mob);
mob                93 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c static void vmw_mob_pt_setup(struct vmw_mob *mob,
mob               119 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	struct vmw_mob *mob;
mob               130 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	mob = vmw_mob_create(otable->size >> PAGE_SHIFT);
mob               131 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	if (unlikely(mob == NULL)) {
mob               137 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_level = VMW_MOBFMT_PTDEPTH_0;
mob               138 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_root_page = vmw_piter_dma_addr(&iter);
mob               140 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_level = SVGA3D_MOBFMT_RANGE;
mob               141 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_root_page = vmw_piter_dma_addr(&iter);
mob               143 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		ret = vmw_mob_pt_populate(dev_priv, mob);
mob               147 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		vmw_mob_pt_setup(mob, iter, otable->size >> PAGE_SHIFT);
mob               148 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_level += VMW_MOBFMT_PTDEPTH_1 - SVGA3D_MOBFMT_PTDEPTH_1;
mob               161 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	cmd->body.baseAddress = mob->pt_root_page >> PAGE_SHIFT;
mob               164 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	cmd->body.ptDepth = mob->pt_level;
mob               171 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	BUG_ON(mob->pt_level == VMW_MOBFMT_PTDEPTH_2);
mob               174 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	otable->page_table = mob;
mob               180 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	vmw_mob_destroy(mob);
mob               411 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	struct vmw_mob *mob = kzalloc(sizeof(*mob), GFP_KERNEL);
mob               413 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	if (unlikely(!mob))
mob               416 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	mob->num_pages = vmw_mob_calculate_pt_pages(data_pages);
mob               418 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	return mob;
mob               433 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 			       struct vmw_mob *mob)
mob               441 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	BUG_ON(mob->pt_bo != NULL);
mob               443 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	ret = ttm_bo_create(&dev_priv->bdev, mob->num_pages * PAGE_SIZE,
mob               446 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 			    0, false, &mob->pt_bo);
mob               450 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	ret = ttm_bo_reserve(mob->pt_bo, false, true, NULL);
mob               453 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	ret = vmw_bo_driver.ttm_tt_populate(mob->pt_bo->ttm, &ctx);
mob               456 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	ret = vmw_bo_map_dma(mob->pt_bo);
mob               460 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	ttm_bo_unreserve(mob->pt_bo);
mob               465 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	ttm_bo_unreserve(mob->pt_bo);
mob               466 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	ttm_bo_put(mob->pt_bo);
mob               467 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	mob->pt_bo = NULL;
mob               545 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c static void vmw_mob_pt_setup(struct vmw_mob *mob,
mob               550 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	struct ttm_buffer_object *bo = mob->pt_bo;
mob               562 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	mob->pt_level = 0;
mob               564 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		++mob->pt_level;
mob               565 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		BUG_ON(mob->pt_level > 2);
mob               573 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	mob->pt_root_page = vmw_piter_dma_addr(&save_pt_iter);
mob               582 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c void vmw_mob_destroy(struct vmw_mob *mob)
mob               584 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	if (mob->pt_bo) {
mob               585 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		ttm_bo_put(mob->pt_bo);
mob               586 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_bo = NULL;
mob               588 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	kfree(mob);
mob               598 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		    struct vmw_mob *mob)
mob               605 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	struct ttm_buffer_object *bo = mob->pt_bo;
mob               619 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		cmd->body.mobid = mob->id;
mob               646 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		 struct vmw_mob *mob,
mob               659 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	mob->id = mob_id;
mob               665 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_level = VMW_MOBFMT_PTDEPTH_0;
mob               666 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_root_page = vmw_piter_dma_addr(&data_iter);
mob               668 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_level = SVGA3D_MOBFMT_RANGE;
mob               669 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_root_page = vmw_piter_dma_addr(&data_iter);
mob               670 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	} else if (unlikely(mob->pt_bo == NULL)) {
mob               671 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		ret = vmw_mob_pt_populate(dev_priv, mob);
mob               675 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		vmw_mob_pt_setup(mob, data_iter, num_data_pages);
mob               677 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_level += VMW_MOBFMT_PTDEPTH_1 - SVGA3D_MOBFMT_PTDEPTH_1;
mob               689 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	cmd->body.ptDepth = mob->pt_level;
mob               690 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 	cmd->body.base = mob->pt_root_page >> PAGE_SHIFT;
mob               700 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		ttm_bo_put(mob->pt_bo);
mob               701 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c 		mob->pt_bo = NULL;
mob               243 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 	struct vmw_mob *mob;
mob               597 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 		if (unlikely(vmw_be->mob == NULL)) {
mob               598 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 			vmw_be->mob =
mob               600 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 			if (unlikely(vmw_be->mob == NULL))
mob               604 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 		return vmw_mob_bind(vmw_be->dev_priv, vmw_be->mob,
mob               623 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 		vmw_mob_unbind(vmw_be->dev_priv, vmw_be->mob);
mob               647 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 	if (vmw_be->mob)
mob               648 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 		vmw_mob_destroy(vmw_be->mob);
mob               690 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 	if (vmw_tt->mob) {
mob               691 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 		vmw_mob_destroy(vmw_tt->mob);
mob               692 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 		vmw_tt->mob = NULL;
mob               724 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 	vmw_be->mob = NULL;