Lines Matching refs:vmw
467 static void vmw_device_fini(struct vmw_private *vmw) in vmw_device_fini() argument
472 vmw_write(vmw, SVGA_REG_SYNC, SVGA_SYNC_GENERIC); in vmw_device_fini()
473 while (vmw_read(vmw, SVGA_REG_BUSY) != 0) in vmw_device_fini()
476 vmw->last_read_seqno = vmw_fence_read(vmw); in vmw_device_fini()
478 vmw_write(vmw, SVGA_REG_CONFIG_DONE, in vmw_device_fini()
479 vmw->config_done_state); in vmw_device_fini()
480 vmw_write(vmw, SVGA_REG_ENABLE, in vmw_device_fini()
481 vmw->enable_state); in vmw_device_fini()
482 vmw_write(vmw, SVGA_REG_TRACES, in vmw_device_fini()
483 vmw->traces_state); in vmw_device_fini()
485 vmw_fifo_destroy(vmw); in vmw_device_fini()
1336 bool vmwgfx_supported(struct vmw_private *vmw) in vmwgfx_supported() argument
1344 return vmw->pci_id == VMWGFX_PCI_ID_SVGA3; in vmwgfx_supported()
1346 drm_warn_once(&vmw->drm, in vmwgfx_supported()
1438 static void vmw_debugfs_resource_managers_init(struct vmw_private *vmw) in vmw_debugfs_resource_managers_init() argument
1440 struct drm_minor *minor = vmw->drm.primary; in vmw_debugfs_resource_managers_init()
1443 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, TTM_PL_SYSTEM), in vmw_debugfs_resource_managers_init()
1445 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, TTM_PL_VRAM), in vmw_debugfs_resource_managers_init()
1447 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, VMW_PL_GMR), in vmw_debugfs_resource_managers_init()
1449 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, VMW_PL_MOB), in vmw_debugfs_resource_managers_init()
1451 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, VMW_PL_SYSTEM), in vmw_debugfs_resource_managers_init()
1649 struct vmw_private *vmw; in vmw_probe() local
1660 vmw = devm_drm_dev_alloc(&pdev->dev, &driver, in vmw_probe()
1662 if (IS_ERR(vmw)) { in vmw_probe()
1663 ret = PTR_ERR(vmw); in vmw_probe()
1667 pci_set_drvdata(pdev, &vmw->drm); in vmw_probe()
1669 ret = vmw_driver_load(vmw, ent->device); in vmw_probe()
1673 ret = drm_dev_register(&vmw->drm, 0); in vmw_probe()
1677 vmw_fifo_resource_inc(vmw); in vmw_probe()
1678 vmw_svga_enable(vmw); in vmw_probe()
1679 drm_fbdev_generic_setup(&vmw->drm, 0); in vmw_probe()
1681 vmw_debugfs_gem_init(vmw); in vmw_probe()
1682 vmw_debugfs_resource_managers_init(vmw); in vmw_probe()
1686 vmw_driver_unload(&vmw->drm); in vmw_probe()