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