Lines Matching refs:tx
80 struct verbs_txreq *tx;
83 tx = kmem_cache_alloc(dev->verbs_txreq_cache, VERBS_TXREQ_GFP);
84 if (unlikely(!tx)) {
86 tx = __get_txreq(dev, qp);
87 if (!tx)
88 return tx;
90 tx->qp = qp;
91 tx->mr = NULL;
92 tx->sde = priv->s_sde;
93 tx->psc = priv->s_sendcontext;
95 tx->txreq.num_desc = 0;
97 tx->phdr.hdr.hdr_type = priv->hdr_type;
98 tx->txreq.flags = 0;
99 return tx;
102 static inline struct sdma_txreq *get_sdma_txreq(struct verbs_txreq *tx)
104 return &tx->txreq;
122 void hfi1_put_txreq(struct verbs_txreq *tx);