Lines Matching defs:gdev
98 int vbg_req_perform(struct vbg_dev *gdev, void *req)
102 outl(phys_req, gdev->io_port + VMMDEV_PORT_OFF_REQUEST);
112 static bool hgcm_req_done(struct vbg_dev *gdev,
118 spin_lock_irqsave(&gdev->event_spinlock, flags);
120 spin_unlock_irqrestore(&gdev->event_spinlock, flags);
125 int vbg_hgcm_connect(struct vbg_dev *gdev, u32 requestor,
141 rc = vbg_req_perform(gdev, hgcm_connect);
144 wait_event(gdev->hgcm_wq,
145 hgcm_req_done(gdev, &hgcm_connect->header));
159 int vbg_hgcm_disconnect(struct vbg_dev *gdev, u32 requestor,
174 rc = vbg_req_perform(gdev, hgcm_disconnect);
177 wait_event(gdev->hgcm_wq,
178 hgcm_req_done(gdev, &hgcm_disconnect->header));
432 static int hgcm_cancel_call(struct vbg_dev *gdev, struct vmmdev_hgcm_call *call)
441 mutex_lock(&gdev->cancel_req_mutex);
442 gdev->cancel_req->phys_req_to_cancel = virt_to_phys(call);
443 rc = vbg_req_perform(gdev, gdev->cancel_req);
444 mutex_unlock(&gdev->cancel_req_mutex);
450 rc = vbg_req_perform(gdev, call);
464 * @gdev: The VBoxGuest device extension.
470 static int vbg_hgcm_do_call(struct vbg_dev *gdev, struct vmmdev_hgcm_call *call,
478 rc = vbg_req_perform(gdev, call);
499 timeout = wait_event_interruptible_timeout(gdev->hgcm_wq,
500 hgcm_req_done(gdev, &call->header),
503 timeout = wait_event_timeout(gdev->hgcm_wq,
504 hgcm_req_done(gdev, &call->header),
518 cancel_rc = hgcm_cancel_call(gdev, call);
531 timeout = wait_event_timeout(gdev->hgcm_wq,
532 hgcm_req_done(gdev, &call->header),
607 int vbg_hgcm_call(struct vbg_dev *gdev, u32 requestor, u32 client_id,
639 ret = vbg_hgcm_do_call(gdev, call, timeout_ms,
663 struct vbg_dev *gdev, u32 requestor, u32 client_id, u32 function,
705 ret = vbg_hgcm_call(gdev, requestor, client_id, function, timeout_ms,