Lines Matching full:txp

229 					struct ipoib_txparms *txp)  in hfi1_ipoib_build_ulp_payload()  argument
231 struct hfi1_devdata *dd = txp->dd; in hfi1_ipoib_build_ulp_payload()
259 struct ipoib_txparms *txp) in hfi1_ipoib_build_tx_desc() argument
261 struct hfi1_devdata *dd = txp->dd; in hfi1_ipoib_build_tx_desc()
265 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2) + tx->skb->len; in hfi1_ipoib_build_tx_desc()
276 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2)); in hfi1_ipoib_build_tx_desc()
281 return hfi1_ipoib_build_ulp_payload(tx, txp); in hfi1_ipoib_build_tx_desc()
285 struct ipoib_txparms *txp) in hfi1_ipoib_build_ib_tx_headers() argument
290 struct hfi1_pportdata *ppd = ppd_from_ibp(txp->ibp); in hfi1_ipoib_build_ib_tx_headers()
291 struct rdma_ah_attr *ah_attr = txp->ah_attr; in hfi1_ipoib_build_ib_tx_headers()
311 txp->hdr_dwords = 7; in hfi1_ipoib_build_ib_tx_headers()
315 txp->hdr_dwords += in hfi1_ipoib_build_ib_tx_headers()
316 hfi1_make_grh(txp->ibp, in hfi1_ipoib_build_ib_tx_headers()
319 txp->hdr_dwords - LRH_9B_DWORDS, in hfi1_ipoib_build_ib_tx_headers()
329 lrh0 |= (txp->flow.sc5 & 0xf) << 12; in hfi1_ipoib_build_ib_tx_headers()
347 dwords = txp->hdr_dwords + payload_dwords; in hfi1_ipoib_build_ib_tx_headers()
357 ohdr->bth[1] = cpu_to_be32(txp->dqpn); in hfi1_ipoib_build_ib_tx_headers()
358 ohdr->bth[2] = cpu_to_be32(mask_psn((u32)txp->txq->sent_txreqs)); in hfi1_ipoib_build_ib_tx_headers()
362 ohdr->u.ud.deth[1] = cpu_to_be32((txp->entropy << in hfi1_ipoib_build_ib_tx_headers()
368 ib_is_sc5(txp->flow.sc5) << in hfi1_ipoib_build_ib_tx_headers()
371 sc_to_vlt(priv->dd, txp->flow.sc5), in hfi1_ipoib_build_ib_tx_headers()
378 struct ipoib_txparms *txp) in hfi1_ipoib_send_dma_common() argument
393 tx->txq = txp->txq; in hfi1_ipoib_send_dma_common()
397 hfi1_ipoib_build_ib_tx_headers(tx, txp); in hfi1_ipoib_send_dma_common()
399 ret = hfi1_ipoib_build_tx_desc(tx, txp); in hfi1_ipoib_send_dma_common()
401 if (txp->txq->flow.as_int != txp->flow.as_int) { in hfi1_ipoib_send_dma_common()
402 txp->txq->flow.tx_queue = txp->flow.tx_queue; in hfi1_ipoib_send_dma_common()
403 txp->txq->flow.sc5 = txp->flow.sc5; in hfi1_ipoib_send_dma_common()
404 txp->txq->sde = in hfi1_ipoib_send_dma_common()
406 txp->flow.tx_queue, in hfi1_ipoib_send_dma_common()
407 txp->flow.sc5); in hfi1_ipoib_send_dma_common()
473 struct ipoib_txparms *txp) in hfi1_ipoib_send_dma_single() argument
476 struct hfi1_ipoib_txq *txq = txp->txq; in hfi1_ipoib_send_dma_single()
480 tx = hfi1_ipoib_send_dma_common(dev, skb, txp); in hfi1_ipoib_send_dma_single()
499 ib_is_sc5(txp->flow.sc5)); in hfi1_ipoib_send_dma_single()
519 struct ipoib_txparms *txp) in hfi1_ipoib_send_dma_list() argument
521 struct hfi1_ipoib_txq *txq = txp->txq; in hfi1_ipoib_send_dma_list()
525 if (txq->flow.as_int != txp->flow.as_int) { in hfi1_ipoib_send_dma_list()
536 tx = hfi1_ipoib_send_dma_common(dev, skb, txp); in hfi1_ipoib_send_dma_list()
556 ib_is_sc5(txp->flow.sc5)); in hfi1_ipoib_send_dma_list()
581 struct ipoib_txparms txp; in hfi1_ipoib_send_dma() local
594 txp.dd = priv->dd; in hfi1_ipoib_send_dma()
595 txp.ah_attr = &ibah_to_rvtah(address)->attr; in hfi1_ipoib_send_dma()
596 txp.ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_send_dma()
597 txp.txq = &priv->txqs[skb_get_queue_mapping(skb)]; in hfi1_ipoib_send_dma()
598 txp.dqpn = dqpn; in hfi1_ipoib_send_dma()
599 txp.flow.sc5 = txp.ibp->sl_to_sc[rdma_ah_get_sl(txp.ah_attr)]; in hfi1_ipoib_send_dma()
600 txp.flow.tx_queue = (u8)skb_get_queue_mapping(skb); in hfi1_ipoib_send_dma()
601 txp.entropy = hfi1_ipoib_calc_entropy(skb); in hfi1_ipoib_send_dma()
603 if (netdev_xmit_more() || !list_empty(&txp.txq->tx_list)) in hfi1_ipoib_send_dma()
604 return hfi1_ipoib_send_dma_list(dev, skb, &txp); in hfi1_ipoib_send_dma()
606 return hfi1_ipoib_send_dma_single(dev, skb, &txp); in hfi1_ipoib_send_dma()