Lines Matching refs:vmw

450 static void vmw_device_fini(struct vmw_private *vmw)  in vmw_device_fini()  argument
455 vmw_write(vmw, SVGA_REG_SYNC, SVGA_SYNC_GENERIC); in vmw_device_fini()
456 while (vmw_read(vmw, SVGA_REG_BUSY) != 0) in vmw_device_fini()
459 atomic_set(&vmw->last_read_seqno, vmw_fence_read(vmw)); in vmw_device_fini()
461 vmw_write(vmw, SVGA_REG_CONFIG_DONE, in vmw_device_fini()
462 vmw->config_done_state); in vmw_device_fini()
463 vmw_write(vmw, SVGA_REG_ENABLE, in vmw_device_fini()
464 vmw->enable_state); in vmw_device_fini()
465 vmw_write(vmw, SVGA_REG_TRACES, in vmw_device_fini()
466 vmw->traces_state); in vmw_device_fini()
468 vmw_fifo_destroy(vmw); in vmw_device_fini()
1303 bool vmwgfx_supported(struct vmw_private *vmw) in vmwgfx_supported() argument
1311 return vmw->pci_id == VMWGFX_PCI_ID_SVGA3; in vmwgfx_supported()
1313 drm_warn_once(&vmw->drm, in vmwgfx_supported()
1405 static void vmw_debugfs_resource_managers_init(struct vmw_private *vmw) in vmw_debugfs_resource_managers_init() argument
1407 struct drm_minor *minor = vmw->drm.primary; in vmw_debugfs_resource_managers_init()
1410 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, TTM_PL_SYSTEM), in vmw_debugfs_resource_managers_init()
1412 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, TTM_PL_VRAM), in vmw_debugfs_resource_managers_init()
1414 if (vmw->has_gmr) in vmw_debugfs_resource_managers_init()
1415 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, VMW_PL_GMR), in vmw_debugfs_resource_managers_init()
1417 if (vmw->has_mob) { in vmw_debugfs_resource_managers_init()
1418 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, VMW_PL_MOB), in vmw_debugfs_resource_managers_init()
1420 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, VMW_PL_SYSTEM), in vmw_debugfs_resource_managers_init()
1622 struct vmw_private *vmw; in vmw_probe() local
1633 vmw = devm_drm_dev_alloc(&pdev->dev, &driver, in vmw_probe()
1635 if (IS_ERR(vmw)) { in vmw_probe()
1636 ret = PTR_ERR(vmw); in vmw_probe()
1640 pci_set_drvdata(pdev, &vmw->drm); in vmw_probe()
1642 ret = vmw_driver_load(vmw, ent->device); in vmw_probe()
1646 ret = drm_dev_register(&vmw->drm, 0); in vmw_probe()
1650 vmw_fifo_resource_inc(vmw); in vmw_probe()
1651 vmw_svga_enable(vmw); in vmw_probe()
1652 drm_client_setup(&vmw->drm, NULL); in vmw_probe()
1654 vmw_debugfs_gem_init(vmw); in vmw_probe()
1655 vmw_debugfs_resource_managers_init(vmw); in vmw_probe()
1659 vmw_driver_unload(&vmw->drm); in vmw_probe()