Lines Matching refs:fence_req

52 	struct scif_fence_info *fence_req =  in scif_recv_mark_resp()  local
57 fence_req->state = OP_COMPLETED; in scif_recv_mark_resp()
58 fence_req->dma_mark = (int)msg->payload[2]; in scif_recv_mark_resp()
60 fence_req->state = OP_FAILED; in scif_recv_mark_resp()
63 complete(&fence_req->comp); in scif_recv_mark_resp()
112 struct scif_fence_info *fence_req = in scif_recv_wait_resp() local
117 fence_req->state = OP_COMPLETED; in scif_recv_wait_resp()
119 fence_req->state = OP_FAILED; in scif_recv_wait_resp()
121 complete(&fence_req->comp); in scif_recv_wait_resp()
175 struct scif_fence_info *fence_req = in scif_recv_sig_resp() local
180 fence_req->state = OP_COMPLETED; in scif_recv_sig_resp()
182 fence_req->state = OP_FAILED; in scif_recv_sig_resp()
184 complete(&fence_req->comp); in scif_recv_sig_resp()
397 struct scif_fence_info *fence_req; in _scif_send_fence() local
400 fence_req = kmalloc(sizeof(*fence_req), GFP_KERNEL); in _scif_send_fence()
401 if (!fence_req) { in _scif_send_fence()
406 fence_req->state = OP_IN_PROGRESS; in _scif_send_fence()
407 init_completion(&fence_req->comp); in _scif_send_fence()
412 msg.payload[1] = (u64)fence_req; in _scif_send_fence()
425 err = wait_for_completion_timeout(&fence_req->comp, in _scif_send_fence()
435 if (fence_req->state == OP_IN_PROGRESS) in _scif_send_fence()
436 fence_req->state = OP_FAILED; in _scif_send_fence()
438 if (fence_req->state == OP_FAILED && !err) in _scif_send_fence()
440 if (uop == SCIF_MARK && fence_req->state == OP_COMPLETED) in _scif_send_fence()
441 *out_mark = SCIF_REMOTE_FENCE | fence_req->dma_mark; in _scif_send_fence()
444 kfree(fence_req); in _scif_send_fence()
474 struct scif_fence_info *fence_req) in _scif_send_fence_signal_wait() argument
480 err = wait_for_completion_timeout(&fence_req->comp, in _scif_send_fence_signal_wait()
490 if (fence_req->state == OP_IN_PROGRESS) in _scif_send_fence_signal_wait()
491 fence_req->state = OP_FAILED; in _scif_send_fence_signal_wait()
494 if (fence_req->state == OP_FAILED && !err) in _scif_send_fence_signal_wait()
515 struct scif_fence_info *fence_req; in scif_send_fence_signal() local
518 fence_req = kmalloc(sizeof(*fence_req), GFP_KERNEL); in scif_send_fence_signal()
519 if (!fence_req) { in scif_send_fence_signal()
524 fence_req->state = OP_IN_PROGRESS; in scif_send_fence_signal()
525 init_completion(&fence_req->comp); in scif_send_fence_signal()
532 msg.payload[3] = (u64)fence_req; in scif_send_fence_signal()
541 err = _scif_send_fence_signal_wait(ep, fence_req); in scif_send_fence_signal()
545 fence_req->state = OP_IN_PROGRESS; in scif_send_fence_signal()
552 msg.payload[3] = (u64)fence_req; in scif_send_fence_signal()
561 err = _scif_send_fence_signal_wait(ep, fence_req); in scif_send_fence_signal()
564 kfree(fence_req); in scif_send_fence_signal()