Lines Matching refs:drm
14 struct nouveau_drm *drm = pci_get_drvdata(pdev); in nouveau_vga_set_decode() local
15 struct nvif_object *device = &drm->client.device.object; in nouveau_vga_set_decode()
17 if (drm->client.device.info.family == NV_DEVICE_INFO_V0_CURIE && in nouveau_vga_set_decode()
18 drm->client.device.info.chipset >= 0x4c) in nouveau_vga_set_decode()
21 if (drm->client.device.info.chipset >= 0x40) in nouveau_vga_set_decode()
37 struct nouveau_drm *drm = pci_get_drvdata(pdev); in nouveau_switcheroo_set_state() local
38 struct drm_device *dev = drm->dev; in nouveau_switcheroo_set_state()
60 struct nouveau_drm *drm = pci_get_drvdata(pdev); in nouveau_switcheroo_reprobe() local
61 struct drm_device *dev = drm->dev; in nouveau_switcheroo_reprobe()
69 struct nouveau_drm *drm = pci_get_drvdata(pdev); in nouveau_switcheroo_can_switch() local
76 return atomic_read(&drm->dev->open_count) == 0; in nouveau_switcheroo_can_switch()
87 nouveau_vga_init(struct nouveau_drm *drm) in nouveau_vga_init() argument
89 struct drm_device *dev = drm->dev; in nouveau_vga_init()
107 vga_switcheroo_init_domain_pm_ops(drm->dev->dev, &drm->vga_pm_domain); in nouveau_vga_init()
111 nouveau_vga_fini(struct nouveau_drm *drm) in nouveau_vga_fini() argument
113 struct drm_device *dev = drm->dev; in nouveau_vga_fini()
129 vga_switcheroo_fini_domain_pm_ops(drm->dev->dev); in nouveau_vga_fini()