Lines Matching refs:wc
2070 isert_cq_comp_err(struct isert_conn *isert_conn, struct ib_wc *wc) in isert_cq_comp_err() argument
2072 if (wc->wr_id == ISER_BEACON_WRID) { in isert_cq_comp_err()
2076 } else if (is_isert_tx_desc(isert_conn, (void *)(uintptr_t)wc->wr_id)) { in isert_cq_comp_err()
2081 desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; in isert_cq_comp_err()
2096 isert_handle_wc(struct ib_wc *wc) in isert_handle_wc() argument
2102 isert_conn = wc->qp->qp_context; in isert_handle_wc()
2103 if (likely(wc->status == IB_WC_SUCCESS)) { in isert_handle_wc()
2104 if (wc->opcode == IB_WC_RECV) { in isert_handle_wc()
2105 rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id; in isert_handle_wc()
2106 isert_rcv_completion(rx_desc, isert_conn, wc->byte_len); in isert_handle_wc()
2108 tx_desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; in isert_handle_wc()
2112 if (wc->status != IB_WC_WR_FLUSH_ERR) in isert_handle_wc()
2114 wc->wr_id, wc->status, wc->vendor_err); in isert_handle_wc()
2116 isert_dbg("flush error: wr id %llx\n", wc->wr_id); in isert_handle_wc()
2118 if (wc->wr_id != ISER_FASTREG_LI_WRID) in isert_handle_wc()
2119 isert_cq_comp_err(isert_conn, wc); in isert_handle_wc()