Lines Matching refs:wc
1847 static void srp_handle_recv(struct srp_rdma_ch *ch, struct ib_wc *wc) in srp_handle_recv() argument
1851 struct srp_iu *iu = (struct srp_iu *) (uintptr_t) wc->wr_id; in srp_handle_recv()
1864 iu->buf, wc->byte_len, true); in srp_handle_recv()
1950 struct ib_wc wc; in srp_recv_completion() local
1953 while (ib_poll_cq(cq, 1, &wc) > 0) { in srp_recv_completion()
1954 if (likely(wc.status == IB_WC_SUCCESS)) { in srp_recv_completion()
1955 srp_handle_recv(ch, &wc); in srp_recv_completion()
1957 srp_handle_qp_err(wc.wr_id, wc.status, false, ch); in srp_recv_completion()
1965 struct ib_wc wc; in srp_send_completion() local
1968 while (ib_poll_cq(cq, 1, &wc) > 0) { in srp_send_completion()
1969 if (likely(wc.status == IB_WC_SUCCESS)) { in srp_send_completion()
1970 iu = (struct srp_iu *) (uintptr_t) wc.wr_id; in srp_send_completion()
1973 srp_handle_qp_err(wc.wr_id, wc.status, true, ch); in srp_send_completion()