Lines Matching refs:wc
558 void ipoib_cm_handle_rx_wc(struct net_device *dev, struct ib_wc *wc) in ipoib_cm_handle_rx_wc() argument
562 unsigned int wr_id = wc->wr_id & ~(IPOIB_OP_CM | IPOIB_OP_RECV); in ipoib_cm_handle_rx_wc()
572 wr_id, wc->status); in ipoib_cm_handle_rx_wc()
587 p = wc->qp->qp_context; in ipoib_cm_handle_rx_wc()
594 if (unlikely(wc->status != IB_WC_SUCCESS)) { in ipoib_cm_handle_rx_wc()
597 wc->status, wr_id, wc->vendor_err); in ipoib_cm_handle_rx_wc()
624 if (wc->byte_len < IPOIB_CM_COPYBREAK) { in ipoib_cm_handle_rx_wc()
625 int dlen = wc->byte_len; in ipoib_cm_handle_rx_wc()
641 frags = PAGE_ALIGN(wc->byte_len - min(wc->byte_len, in ipoib_cm_handle_rx_wc()
660 wc->byte_len, wc->slid); in ipoib_cm_handle_rx_wc()
662 skb_put_frags(skb, IPOIB_CM_HEAD_SIZE, wc->byte_len, newskb); in ipoib_cm_handle_rx_wc()
769 void ipoib_cm_handle_tx_wc(struct net_device *dev, struct ib_wc *wc) in ipoib_cm_handle_tx_wc() argument
772 struct ipoib_cm_tx *tx = wc->qp->qp_context; in ipoib_cm_handle_tx_wc()
773 unsigned int wr_id = wc->wr_id & ~IPOIB_OP_CM; in ipoib_cm_handle_tx_wc()
778 wr_id, wc->status); in ipoib_cm_handle_tx_wc()
804 if (wc->status != IB_WC_SUCCESS && in ipoib_cm_handle_tx_wc()
805 wc->status != IB_WC_WR_FLUSH_ERR) { in ipoib_cm_handle_tx_wc()
810 wc->status, wr_id, wc->vendor_err); in ipoib_cm_handle_tx_wc()