Lines Matching refs:txp
200 struct ipoib_txparms *txp) in hfi1_ipoib_build_ulp_payload() argument
202 struct hfi1_devdata *dd = txp->dd; in hfi1_ipoib_build_ulp_payload()
230 struct ipoib_txparms *txp) in hfi1_ipoib_build_tx_desc() argument
232 struct hfi1_devdata *dd = txp->dd; in hfi1_ipoib_build_tx_desc()
236 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2) + tx->skb->len; in hfi1_ipoib_build_tx_desc()
247 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2)); in hfi1_ipoib_build_tx_desc()
252 return hfi1_ipoib_build_ulp_payload(tx, txp); in hfi1_ipoib_build_tx_desc()
256 struct ipoib_txparms *txp) in hfi1_ipoib_build_ib_tx_headers() argument
261 struct hfi1_pportdata *ppd = ppd_from_ibp(txp->ibp); in hfi1_ipoib_build_ib_tx_headers()
262 struct rdma_ah_attr *ah_attr = txp->ah_attr; in hfi1_ipoib_build_ib_tx_headers()
282 txp->hdr_dwords = 7; in hfi1_ipoib_build_ib_tx_headers()
286 txp->hdr_dwords += in hfi1_ipoib_build_ib_tx_headers()
287 hfi1_make_grh(txp->ibp, in hfi1_ipoib_build_ib_tx_headers()
290 txp->hdr_dwords - LRH_9B_DWORDS, in hfi1_ipoib_build_ib_tx_headers()
300 lrh0 |= (txp->flow.sc5 & 0xf) << 12; in hfi1_ipoib_build_ib_tx_headers()
318 dwords = txp->hdr_dwords + payload_dwords; in hfi1_ipoib_build_ib_tx_headers()
328 ohdr->bth[1] = cpu_to_be32(txp->dqpn); in hfi1_ipoib_build_ib_tx_headers()
329 ohdr->bth[2] = cpu_to_be32(mask_psn((u32)txp->txq->tx_ring.sent_txreqs)); in hfi1_ipoib_build_ib_tx_headers()
333 ohdr->u.ud.deth[1] = cpu_to_be32((txp->entropy << in hfi1_ipoib_build_ib_tx_headers()
339 ib_is_sc5(txp->flow.sc5) << in hfi1_ipoib_build_ib_tx_headers()
342 sc_to_vlt(priv->dd, txp->flow.sc5), in hfi1_ipoib_build_ib_tx_headers()
349 struct ipoib_txparms *txp) in hfi1_ipoib_send_dma_common() argument
352 struct hfi1_ipoib_txq *txq = txp->txq; in hfi1_ipoib_send_dma_common()
381 hfi1_ipoib_build_ib_tx_headers(tx, txp); in hfi1_ipoib_send_dma_common()
383 ret = hfi1_ipoib_build_tx_desc(tx, txp); in hfi1_ipoib_send_dma_common()
385 if (txq->flow.as_int != txp->flow.as_int) { in hfi1_ipoib_send_dma_common()
386 txq->flow.tx_queue = txp->flow.tx_queue; in hfi1_ipoib_send_dma_common()
387 txq->flow.sc5 = txp->flow.sc5; in hfi1_ipoib_send_dma_common()
390 txp->flow.tx_queue, in hfi1_ipoib_send_dma_common()
391 txp->flow.sc5); in hfi1_ipoib_send_dma_common()
457 struct ipoib_txparms *txp) in hfi1_ipoib_send_dma_single() argument
459 struct hfi1_ipoib_txq *txq = txp->txq; in hfi1_ipoib_send_dma_single()
464 tx = hfi1_ipoib_send_dma_common(dev, skb, txp); in hfi1_ipoib_send_dma_single()
487 ib_is_sc5(txp->flow.sc5)); in hfi1_ipoib_send_dma_single()
508 struct ipoib_txparms *txp) in hfi1_ipoib_send_dma_list() argument
510 struct hfi1_ipoib_txq *txq = txp->txq; in hfi1_ipoib_send_dma_list()
515 if (txq->flow.as_int != txp->flow.as_int) { in hfi1_ipoib_send_dma_list()
527 tx = hfi1_ipoib_send_dma_common(dev, skb, txp); in hfi1_ipoib_send_dma_list()
551 ib_is_sc5(txp->flow.sc5)); in hfi1_ipoib_send_dma_list()
576 struct ipoib_txparms txp; in hfi1_ipoib_send() local
589 txp.dd = priv->dd; in hfi1_ipoib_send()
590 txp.ah_attr = &ibah_to_rvtah(address)->attr; in hfi1_ipoib_send()
591 txp.ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_send()
592 txp.txq = &priv->txqs[skb_get_queue_mapping(skb)]; in hfi1_ipoib_send()
593 txp.dqpn = dqpn; in hfi1_ipoib_send()
594 txp.flow.sc5 = txp.ibp->sl_to_sc[rdma_ah_get_sl(txp.ah_attr)]; in hfi1_ipoib_send()
595 txp.flow.tx_queue = (u8)skb_get_queue_mapping(skb); in hfi1_ipoib_send()
596 txp.entropy = hfi1_ipoib_calc_entropy(skb); in hfi1_ipoib_send()
598 if (netdev_xmit_more() || !list_empty(&txp.txq->tx_list)) in hfi1_ipoib_send()
599 return hfi1_ipoib_send_dma_list(dev, skb, &txp); in hfi1_ipoib_send()
601 return hfi1_ipoib_send_dma_single(dev, skb, &txp); in hfi1_ipoib_send()