Lines Matching refs:txp
200 struct ipoib_txparms *txp)
202 struct hfi1_devdata *dd = txp->dd;
231 struct ipoib_txparms *txp)
233 struct hfi1_devdata *dd = txp->dd;
237 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2) + tx->skb->len;
248 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2));
253 return hfi1_ipoib_build_ulp_payload(tx, txp);
257 struct ipoib_txparms *txp)
262 struct hfi1_pportdata *ppd = ppd_from_ibp(txp->ibp);
263 struct rdma_ah_attr *ah_attr = txp->ah_attr;
283 txp->hdr_dwords = 7;
287 txp->hdr_dwords +=
288 hfi1_make_grh(txp->ibp,
291 txp->hdr_dwords - LRH_9B_DWORDS,
301 lrh0 |= (txp->flow.sc5 & 0xf) << 12;
319 dwords = txp->hdr_dwords + payload_dwords;
329 ohdr->bth[1] = cpu_to_be32(txp->dqpn);
330 ohdr->bth[2] = cpu_to_be32(mask_psn((u32)txp->txq->tx_ring.sent_txreqs));
334 ohdr->u.ud.deth[1] = cpu_to_be32((txp->entropy <<
340 ib_is_sc5(txp->flow.sc5) <<
343 sc_to_vlt(priv->dd, txp->flow.sc5),
350 struct ipoib_txparms *txp)
353 struct hfi1_ipoib_txq *txq = txp->txq;
382 hfi1_ipoib_build_ib_tx_headers(tx, txp);
384 ret = hfi1_ipoib_build_tx_desc(tx, txp);
386 if (txq->flow.as_int != txp->flow.as_int) {
387 txq->flow.tx_queue = txp->flow.tx_queue;
388 txq->flow.sc5 = txp->flow.sc5;
391 txp->flow.tx_queue,
392 txp->flow.sc5);
458 struct ipoib_txparms *txp)
460 struct hfi1_ipoib_txq *txq = txp->txq;
465 tx = hfi1_ipoib_send_dma_common(dev, skb, txp);
488 ib_is_sc5(txp->flow.sc5));
509 struct ipoib_txparms *txp)
511 struct hfi1_ipoib_txq *txq = txp->txq;
516 if (txq->flow.as_int != txp->flow.as_int) {
528 tx = hfi1_ipoib_send_dma_common(dev, skb, txp);
552 ib_is_sc5(txp->flow.sc5));
577 struct ipoib_txparms txp;
590 txp.dd = priv->dd;
591 txp.ah_attr = &ibah_to_rvtah(address)->attr;
592 txp.ibp = to_iport(priv->device, priv->port_num);
593 txp.txq = &priv->txqs[skb_get_queue_mapping(skb)];
594 txp.dqpn = dqpn;
595 txp.flow.sc5 = txp.ibp->sl_to_sc[rdma_ah_get_sl(txp.ah_attr)];
596 txp.flow.tx_queue = (u8)skb_get_queue_mapping(skb);
597 txp.entropy = hfi1_ipoib_calc_entropy(skb);
599 if (netdev_xmit_more() || !list_empty(&txp.txq->tx_list))
600 return hfi1_ipoib_send_dma_list(dev, skb, &txp);
602 return hfi1_ipoib_send_dma_single(dev, skb, &txp);