Lines Matching refs:wr_waitp
28 static void cxgbit_init_wr_wait(struct cxgbit_wr_wait *wr_waitp) in cxgbit_init_wr_wait() argument
30 wr_waitp->ret = 0; in cxgbit_init_wr_wait()
31 reinit_completion(&wr_waitp->completion); in cxgbit_init_wr_wait()
35 cxgbit_wake_up(struct cxgbit_wr_wait *wr_waitp, const char *func, u8 ret) in cxgbit_wake_up() argument
38 wr_waitp->ret = 0; in cxgbit_wake_up()
40 wr_waitp->ret = -EIO; in cxgbit_wake_up()
42 if (wr_waitp->ret) in cxgbit_wake_up()
45 complete(&wr_waitp->completion); in cxgbit_wake_up()
50 struct cxgbit_wr_wait *wr_waitp, u32 tid, u32 timeout, in cxgbit_wait_for_reply() argument
56 wr_waitp->ret = -EIO; in cxgbit_wait_for_reply()
60 ret = wait_for_completion_timeout(&wr_waitp->completion, timeout * HZ); in cxgbit_wait_for_reply()
64 wr_waitp->ret = -ETIMEDOUT; in cxgbit_wait_for_reply()
67 if (wr_waitp->ret) in cxgbit_wait_for_reply()
69 pci_name(cdev->lldi.pdev), wr_waitp->ret, tid); in cxgbit_wait_for_reply()
70 return wr_waitp->ret; in cxgbit_wait_for_reply()