Lines Matching defs:hdev

196 static inline int hyperv_sendpacket(struct hv_device *hdev, struct synthvid_msg *msg)
199 struct hyperv_drm_device *hv = hv_get_drvdata(hdev);
205 ret = vmbus_sendpacket(hdev->channel, msg,
216 static int hyperv_negotiate_version(struct hv_device *hdev, u32 ver)
218 struct hyperv_drm_device *hv = hv_get_drvdata(hdev);
228 hyperv_sendpacket(hdev, msg);
248 int hyperv_update_vram_location(struct hv_device *hdev, phys_addr_t vram_pp)
250 struct hyperv_drm_device *hv = hv_get_drvdata(hdev);
262 hyperv_sendpacket(hdev, msg);
277 int hyperv_update_situation(struct hv_device *hdev, u8 active, u32 bpp,
297 hyperv_sendpacket(hdev, &msg);
318 int hyperv_hide_hw_ptr(struct hv_device *hdev)
330 hyperv_sendpacket(hdev, &msg);
346 hyperv_sendpacket(hdev, &msg);
351 int hyperv_update_dirt(struct hv_device *hdev, struct drm_rect *rect)
353 struct hyperv_drm_device *hv = hv_get_drvdata(hdev);
371 hyperv_sendpacket(hdev, &msg);
376 static int hyperv_get_supported_resolution(struct hv_device *hdev)
378 struct hyperv_drm_device *hv = hv_get_drvdata(hdev);
391 hyperv_sendpacket(hdev, msg);
425 static void hyperv_receive_sub(struct hv_device *hdev)
427 struct hyperv_drm_device *hv = hv_get_drvdata(hdev);
447 hyperv_hide_hw_ptr(hv->hdev);
453 struct hv_device *hdev = ctx;
454 struct hyperv_drm_device *hv = hv_get_drvdata(hdev);
466 ret = vmbus_recvpacket(hdev->channel, recv_buf,
471 hyperv_receive_sub(hdev);
475 int hyperv_connect_vsp(struct hv_device *hdev)
477 struct hyperv_drm_device *hv = hv_get_drvdata(hdev);
481 ret = vmbus_open(hdev->channel, VMBUS_RING_BUFSIZE, VMBUS_RING_BUFSIZE,
482 NULL, 0, hyperv_receive, hdev);
492 ret = hyperv_negotiate_version(hdev, SYNTHVID_VERSION_WIN10);
498 ret = hyperv_negotiate_version(hdev, SYNTHVID_VERSION_WIN8);
501 ret = hyperv_negotiate_version(hdev, SYNTHVID_VERSION_WIN10);
513 ret = hyperv_get_supported_resolution(hdev);
521 hv->mmio_megabytes = hdev->channel->offermsg.offer.mmio_megabytes;
526 vmbus_close(hdev->channel);