Lines Matching full:hv
69 static int hyperv_setup_vram(struct hyperv_drm_device *hv, in hyperv_setup_vram() argument
72 struct drm_device *dev = &hv->dev; in hyperv_setup_vram()
75 hv->fb_size = (unsigned long)hv->mmio_megabytes * 1024 * 1024; in hyperv_setup_vram()
77 ret = vmbus_allocate_mmio(&hv->mem, hdev, 0, -1, hv->fb_size, 0x100000, in hyperv_setup_vram()
89 hv->vram = ioremap_cache(hv->mem->start, hv->fb_size); in hyperv_setup_vram()
90 if (!hv->vram) { in hyperv_setup_vram()
96 hv->fb_base = hv->mem->start; in hyperv_setup_vram()
100 vmbus_free_mmio(hv->mem->start, hv->fb_size); in hyperv_setup_vram()
107 struct hyperv_drm_device *hv; in hyperv_vmbus_probe() local
111 hv = devm_drm_dev_alloc(&hdev->device, &hyperv_driver, in hyperv_vmbus_probe()
113 if (IS_ERR(hv)) in hyperv_vmbus_probe()
114 return PTR_ERR(hv); in hyperv_vmbus_probe()
116 dev = &hv->dev; in hyperv_vmbus_probe()
117 init_completion(&hv->wait); in hyperv_vmbus_probe()
118 hv_set_drvdata(hdev, hv); in hyperv_vmbus_probe()
119 hv->hdev = hdev; in hyperv_vmbus_probe()
129 ret = hyperv_setup_vram(hv, hdev); in hyperv_vmbus_probe()
138 ret = hyperv_update_vram_location(hdev, hv->fb_base); in hyperv_vmbus_probe()
142 ret = hyperv_mode_config_init(hv); in hyperv_vmbus_probe()
157 vmbus_free_mmio(hv->mem->start, hv->fb_size); in hyperv_vmbus_probe()
168 struct hyperv_drm_device *hv = to_hv(dev); in hyperv_vmbus_remove() local
175 vmbus_free_mmio(hv->mem->start, hv->fb_size); in hyperv_vmbus_remove()
200 struct hyperv_drm_device *hv = to_hv(dev); in hyperv_vmbus_resume() local
207 ret = hyperv_update_vram_location(hdev, hv->fb_base); in hyperv_vmbus_resume()