Lines Matching refs:wc
2048 isert_cq_comp_err(struct isert_conn *isert_conn, struct ib_wc *wc) in isert_cq_comp_err() argument
2050 if (wc->wr_id == ISER_BEACON_WRID) { in isert_cq_comp_err()
2054 } else if (is_isert_tx_desc(isert_conn, (void *)(uintptr_t)wc->wr_id)) { in isert_cq_comp_err()
2059 desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; in isert_cq_comp_err()
2069 isert_handle_wc(struct ib_wc *wc) in isert_handle_wc() argument
2075 isert_conn = wc->qp->qp_context; in isert_handle_wc()
2076 if (likely(wc->status == IB_WC_SUCCESS)) { in isert_handle_wc()
2077 if (wc->opcode == IB_WC_RECV) { in isert_handle_wc()
2078 rx_desc = (struct iser_rx_desc *)(uintptr_t)wc->wr_id; in isert_handle_wc()
2079 isert_rcv_completion(rx_desc, isert_conn, wc->byte_len); in isert_handle_wc()
2081 tx_desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; in isert_handle_wc()
2085 if (wc->status != IB_WC_WR_FLUSH_ERR) in isert_handle_wc()
2087 ib_wc_status_msg(wc->status), wc->status, in isert_handle_wc()
2088 wc->wr_id, wc->vendor_err); in isert_handle_wc()
2091 ib_wc_status_msg(wc->status), wc->status, in isert_handle_wc()
2092 wc->wr_id); in isert_handle_wc()
2094 if (wc->wr_id != ISER_FASTREG_LI_WRID) in isert_handle_wc()
2095 isert_cq_comp_err(isert_conn, wc); in isert_handle_wc()