Lines Matching refs:txp

236 					struct ipoib_txparms *txp)
238 struct hfi1_devdata *dd = txp->dd;
267 struct ipoib_txparms *txp)
269 struct hfi1_devdata *dd = txp->dd;
273 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2) + tx->skb->len;
284 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2));
289 return hfi1_ipoib_build_ulp_payload(tx, txp);
293 struct ipoib_txparms *txp)
298 struct hfi1_pportdata *ppd = ppd_from_ibp(txp->ibp);
299 struct rdma_ah_attr *ah_attr = txp->ah_attr;
319 txp->hdr_dwords = 7;
323 txp->hdr_dwords +=
324 hfi1_make_grh(txp->ibp,
327 txp->hdr_dwords - LRH_9B_DWORDS,
337 lrh0 |= (txp->flow.sc5 & 0xf) << 12;
355 dwords = txp->hdr_dwords + payload_dwords;
365 ohdr->bth[1] = cpu_to_be32(txp->dqpn);
366 ohdr->bth[2] = cpu_to_be32(mask_psn((u32)txp->txq->sent_txreqs));
370 ohdr->u.ud.deth[1] = cpu_to_be32((txp->entropy <<
376 ib_is_sc5(txp->flow.sc5) <<
379 sc_to_vlt(priv->dd, txp->flow.sc5),
386 struct ipoib_txparms *txp)
401 tx->txq = txp->txq;
405 hfi1_ipoib_build_ib_tx_headers(tx, txp);
407 ret = hfi1_ipoib_build_tx_desc(tx, txp);
409 if (txp->txq->flow.as_int != txp->flow.as_int) {
410 txp->txq->flow.tx_queue = txp->flow.tx_queue;
411 txp->txq->flow.sc5 = txp->flow.sc5;
412 txp->txq->sde =
414 txp->flow.tx_queue,
415 txp->flow.sc5);
416 trace_hfi1_flow_switch(txp->txq);
482 struct ipoib_txparms *txp)
485 struct hfi1_ipoib_txq *txq = txp->txq;
489 tx = hfi1_ipoib_send_dma_common(dev, skb, txp);
508 ib_is_sc5(txp->flow.sc5));
528 struct ipoib_txparms *txp)
530 struct hfi1_ipoib_txq *txq = txp->txq;
534 if (txq->flow.as_int != txp->flow.as_int) {
546 tx = hfi1_ipoib_send_dma_common(dev, skb, txp);
566 ib_is_sc5(txp->flow.sc5));
591 struct ipoib_txparms txp;
604 txp.dd = priv->dd;
605 txp.ah_attr = &ibah_to_rvtah(address)->attr;
606 txp.ibp = to_iport(priv->device, priv->port_num);
607 txp.txq = &priv->txqs[skb_get_queue_mapping(skb)];
608 txp.dqpn = dqpn;
609 txp.flow.sc5 = txp.ibp->sl_to_sc[rdma_ah_get_sl(txp.ah_attr)];
610 txp.flow.tx_queue = (u8)skb_get_queue_mapping(skb);
611 txp.entropy = hfi1_ipoib_calc_entropy(skb);
613 if (netdev_xmit_more() || !list_empty(&txp.txq->tx_list))
614 return hfi1_ipoib_send_dma_list(dev, skb, &txp);
616 return hfi1_ipoib_send_dma_single(dev, skb, &txp);