Lines Matching defs:tx_req
271 int ipoib_dma_map_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req, int max)
273 struct mbuf *mb = tx_req->mb;
274 u64 *mapping = tx_req->mapping;
290 tx_req->mb = mb = m_defrag(mb, M_NOWAIT);
317 void ipoib_dma_unmap_tx(struct ib_device *ca, struct ipoib_tx_buf *tx_req)
319 struct mbuf *mb = tx_req->mb;
320 u64 *mapping = tx_req->mapping;
332 struct ipoib_tx_buf *tx_req;
343 tx_req = &priv->tx_ring[wr_id];
345 ipoib_dma_unmap_tx(priv->ca, tx_req);
349 m_freem(tx_req->mb);
441 struct ib_ah *address, u32 qpn, struct ipoib_tx_buf *tx_req, void *head,
445 struct mbuf *mb = tx_req->mb;
446 u64 *mapping = tx_req->mapping;
476 struct ipoib_tx_buf *tx_req;
517 tx_req = &priv->tx_ring[priv->tx_head & (ipoib_sendq_size - 1)];
518 tx_req->mb = mb;
519 if (unlikely(ipoib_dma_map_tx(priv->ca, tx_req, IPOIB_UD_TX_SG))) {
521 if (tx_req->mb)
522 m_freem(tx_req->mb);
540 tx_req, phead, hlen))) {
544 ipoib_dma_unmap_tx(priv->ca, tx_req);
743 struct ipoib_tx_buf *tx_req;
769 tx_req = &priv->tx_ring[priv->tx_tail &
771 ipoib_dma_unmap_tx(priv->ca, tx_req);
772 m_freem(tx_req->mb);