Lines Matching full:hv

199 	struct hyperv_drm_device *hv = hv_get_drvdata(hdev);  in hyperv_sendpacket()  local
211 drm_err_ratelimited(&hv->dev, "Unable to send packet via vmbus; error %d\n", ret); in hyperv_sendpacket()
218 struct hyperv_drm_device *hv = hv_get_drvdata(hdev); in hyperv_negotiate_version() local
219 struct synthvid_msg *msg = (struct synthvid_msg *)hv->init_buf; in hyperv_negotiate_version()
220 struct drm_device *dev = &hv->dev; in hyperv_negotiate_version()
230 t = wait_for_completion_timeout(&hv->wait, VMBUS_VSP_TIMEOUT); in hyperv_negotiate_version()
241 hv->synthvid_version = ver; in hyperv_negotiate_version()
250 struct hyperv_drm_device *hv = hv_get_drvdata(hdev); in hyperv_update_vram_location() local
251 struct synthvid_msg *msg = (struct synthvid_msg *)hv->init_buf; in hyperv_update_vram_location()
252 struct drm_device *dev = &hv->dev; in hyperv_update_vram_location()
264 t = wait_for_completion_timeout(&hv->wait, VMBUS_VSP_TIMEOUT); in hyperv_update_vram_location()
353 struct hyperv_drm_device *hv = hv_get_drvdata(hdev); in hyperv_update_dirt() local
356 if (!hv->dirt_needed) in hyperv_update_dirt()
378 struct hyperv_drm_device *hv = hv_get_drvdata(hdev); in hyperv_get_supported_resolution() local
379 struct synthvid_msg *msg = (struct synthvid_msg *)hv->init_buf; in hyperv_get_supported_resolution()
380 struct drm_device *dev = &hv->dev; in hyperv_get_supported_resolution()
393 t = wait_for_completion_timeout(&hv->wait, VMBUS_VSP_TIMEOUT); in hyperv_get_supported_resolution()
411 hv->screen_width_max = max_t(u32, hv->screen_width_max, in hyperv_get_supported_resolution()
413 hv->screen_height_max = max_t(u32, hv->screen_height_max, in hyperv_get_supported_resolution()
417 hv->preferred_width = in hyperv_get_supported_resolution()
419 hv->preferred_height = in hyperv_get_supported_resolution()
427 struct hyperv_drm_device *hv = hv_get_drvdata(hdev); in hyperv_receive_sub() local
430 if (!hv) in hyperv_receive_sub()
433 msg = (struct synthvid_msg *)hv->recv_buf; in hyperv_receive_sub()
439 memcpy(hv->init_buf, msg, VMBUS_MAX_PACKET_SIZE); in hyperv_receive_sub()
440 complete(&hv->wait); in hyperv_receive_sub()
445 hv->dirt_needed = msg->feature_chg.is_dirt_needed; in hyperv_receive_sub()
446 if (hv->dirt_needed) in hyperv_receive_sub()
447 hyperv_hide_hw_ptr(hv->hdev); in hyperv_receive_sub()
454 struct hyperv_drm_device *hv = hv_get_drvdata(hdev); in hyperv_receive() local
460 if (!hv) in hyperv_receive()
463 recv_buf = (struct synthvid_msg *)hv->recv_buf; in hyperv_receive()
477 struct hyperv_drm_device *hv = hv_get_drvdata(hdev); in hyperv_connect_vsp() local
478 struct drm_device *dev = &hv->dev; in hyperv_connect_vsp()
510 hv->screen_depth = SYNTHVID_DEPTH_WIN8; in hyperv_connect_vsp()
512 if (hyperv_version_ge(hv->synthvid_version, SYNTHVID_VERSION_WIN10)) { in hyperv_connect_vsp()
517 hv->screen_width_max = SYNTHVID_WIDTH_WIN8; in hyperv_connect_vsp()
518 hv->screen_height_max = SYNTHVID_HEIGHT_WIN8; in hyperv_connect_vsp()
521 hv->mmio_megabytes = hdev->channel->offermsg.offer.mmio_megabytes; in hyperv_connect_vsp()