Lines Matching refs:wr_waitp
31 static void cxgbit_init_wr_wait(struct cxgbit_wr_wait *wr_waitp) in cxgbit_init_wr_wait() argument
33 wr_waitp->ret = 0; in cxgbit_init_wr_wait()
34 reinit_completion(&wr_waitp->completion); in cxgbit_init_wr_wait()
38 cxgbit_wake_up(struct cxgbit_wr_wait *wr_waitp, const char *func, u8 ret) in cxgbit_wake_up() argument
41 wr_waitp->ret = 0; in cxgbit_wake_up()
43 wr_waitp->ret = -EIO; in cxgbit_wake_up()
45 if (wr_waitp->ret) in cxgbit_wake_up()
48 complete(&wr_waitp->completion); in cxgbit_wake_up()
53 struct cxgbit_wr_wait *wr_waitp, u32 tid, u32 timeout, in cxgbit_wait_for_reply() argument
59 wr_waitp->ret = -EIO; in cxgbit_wait_for_reply()
63 ret = wait_for_completion_timeout(&wr_waitp->completion, timeout * HZ); in cxgbit_wait_for_reply()
67 wr_waitp->ret = -ETIMEDOUT; in cxgbit_wait_for_reply()
70 if (wr_waitp->ret) in cxgbit_wait_for_reply()
72 pci_name(cdev->lldi.pdev), wr_waitp->ret, tid); in cxgbit_wait_for_reply()
73 return wr_waitp->ret; in cxgbit_wait_for_reply()