Home
last modified time | relevance | path

Searched refs:tx_req (Results 1 – 4 of 4) sorted by relevance

/freebsd-10-stable/sys/ofed/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c271 int ipoib_dma_map_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req, int max) in ipoib_dma_map_tx() argument
273 struct mbuf *mb = tx_req->mb; in ipoib_dma_map_tx()
274 u64 *mapping = tx_req->mapping; in ipoib_dma_map_tx()
290 tx_req->mb = mb = m_defrag(mb, M_NOWAIT); in ipoib_dma_map_tx()
317 void ipoib_dma_unmap_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req) in ipoib_dma_unmap_tx() argument
319 struct mbuf *mb = tx_req->mb; in ipoib_dma_unmap_tx()
320 u64 *mapping = tx_req->mapping; in ipoib_dma_unmap_tx()
332 struct ipoib_tx_buf *tx_req; in ipoib_ib_handle_tx_wc() local
343 tx_req = &priv->tx_ring[wr_id]; in ipoib_ib_handle_tx_wc()
345 ipoib_dma_unmap_tx(priv->ca, tx_req); in ipoib_ib_handle_tx_wc()
[all …]
Dipoib_cm.c591 struct ipoib_cm_tx_buf *tx_req, in post_send() argument
595 struct mbuf *mb = tx_req->mb; in post_send()
596 u64 *mapping = tx_req->mapping; in post_send()
613 struct ipoib_cm_tx_buf *tx_req; in ipoib_cm_send() local
639 tx_req = &tx->tx_ring[tx->tx_head & (ipoib_sendq_size - 1)]; in ipoib_cm_send()
640 tx_req->mb = mb; in ipoib_cm_send()
641 if (unlikely(ipoib_dma_map_tx(priv->ca, (struct ipoib_tx_buf *)tx_req, in ipoib_cm_send()
644 if (tx_req->mb) in ipoib_cm_send()
645 m_freem(tx_req->mb); in ipoib_cm_send()
649 if (unlikely(post_send(priv, tx, tx_req, tx->tx_head & (ipoib_sendq_size - 1)))) { in ipoib_cm_send()
[all …]
Dipoib.h530 int ipoib_dma_map_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req, int max);
531 void ipoib_dma_unmap_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req);
/freebsd-10-stable/sys/ofed/drivers/infiniband/ulp/sdp/
Dsdp_tx.c66 struct sdp_buf *tx_req; in sdp_post_send() local
121 tx_req = &ssk->tx_ring.buffer[mseq & (SDP_TX_SIZE - 1)]; in sdp_post_send()
122 tx_req->mb = mb; in sdp_post_send()
131 tx_req->mapping[i] = addr; in sdp_post_send()
142 if (unlikely(tx_req->mb->m_flags & M_URG)) in sdp_post_send()
150 sdp_cleanup_sdp_buf(ssk, tx_req, DMA_TO_DEVICE); in sdp_post_send()
153 m_freem(tx_req->mb); in sdp_post_send()
168 struct sdp_buf *tx_req; in sdp_send_completion() local
179 tx_req = &tx_ring->buffer[mseq & (SDP_TX_SIZE - 1)]; in sdp_send_completion()
180 mb = tx_req->mb; in sdp_send_completion()
[all …]