Lines Matching refs:hv

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