Lines Matching refs:tx_req

275 int ipoib_dma_map_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req)  in ipoib_dma_map_tx()  argument
277 struct sk_buff *skb = tx_req->skb; in ipoib_dma_map_tx()
278 u64 *mapping = tx_req->mapping; in ipoib_dma_map_tx()
318 struct ipoib_tx_buf *tx_req) in ipoib_dma_unmap_tx() argument
320 struct sk_buff *skb = tx_req->skb; in ipoib_dma_unmap_tx()
321 u64 *mapping = tx_req->mapping; in ipoib_dma_unmap_tx()
389 struct ipoib_tx_buf *tx_req; in ipoib_ib_handle_tx_wc() local
400 tx_req = &priv->tx_ring[wr_id]; in ipoib_ib_handle_tx_wc()
402 ipoib_dma_unmap_tx(priv, tx_req); in ipoib_ib_handle_tx_wc()
405 dev->stats.tx_bytes += tx_req->skb->len; in ipoib_ib_handle_tx_wc()
407 dev_kfree_skb_any(tx_req->skb); in ipoib_ib_handle_tx_wc()
544 struct ipoib_tx_buf *tx_req, in post_send() argument
547 struct sk_buff *skb = tx_req->skb; in post_send()
549 ipoib_build_sge(priv, tx_req); in post_send()
570 struct ipoib_tx_buf *tx_req; in ipoib_send() local
626 tx_req = &priv->tx_ring[priv->tx_head & (ipoib_sendq_size - 1)]; in ipoib_send()
627 tx_req->skb = skb; in ipoib_send()
628 if (unlikely(ipoib_dma_map_tx(priv->ca, tx_req))) { in ipoib_send()
654 address, dqpn, tx_req, phead, hlen); in ipoib_send()
658 ipoib_dma_unmap_tx(priv, tx_req); in ipoib_send()
777 struct ipoib_tx_buf *tx_req; in ipoib_ib_dev_stop_default() local
808 tx_req = &priv->tx_ring[priv->tx_tail & in ipoib_ib_dev_stop_default()
810 ipoib_dma_unmap_tx(priv, tx_req); in ipoib_ib_dev_stop_default()
811 dev_kfree_skb_any(tx_req->skb); in ipoib_ib_dev_stop_default()