tx_qp
struct ib_qp *tx_qp;
tx_qp = get_tx_qp(gsi, &cur_wr);
if (!tx_qp) {
ret = ib_post_send(tx_qp, &cur_wr.wr, bad_wr);
siw_dbg_qp(tx_qp(c_tx), "stale wqe type %d\n", tx_type(wqe));
siw_dbg_qp(tx_qp(c_tx), "to many fragments\n");
struct ib_qp *tx_qp;
tx_qp = ib_create_qp(priv->pd, &attr);
return tx_qp;
tx_stats = &apc->tx_qp[q_idx].txq.stats;
if (!apc->tx_qp)
debugfs_remove_recursive(apc->tx_qp[i].mana_tx_debugfs);
apc->tx_qp[i].mana_tx_debugfs = NULL;
napi = &apc->tx_qp[i].tx_cq.napi;
if (apc->tx_qp[i].txq.napi_initialized) {
apc->tx_qp[i].txq.napi_initialized = false;
mana_destroy_wq_obj(apc, GDMA_SQ, apc->tx_qp[i].tx_object);
mana_deinit_cq(apc, &apc->tx_qp[i].tx_cq);
mana_deinit_txq(apc, &apc->tx_qp[i].txq);
kfree(apc->tx_qp);
apc->tx_qp = NULL;
struct mana_tx_qp *tx_qp = &apc->tx_qp[idx];
tx_qp->mana_tx_debugfs = debugfs_create_dir(qnum, apc->mana_port_debugfs);
debugfs_create_u32("sq_head", 0400, tx_qp->mana_tx_debugfs,
&tx_qp->txq.gdma_sq->head);
debugfs_create_u32("sq_tail", 0400, tx_qp->mana_tx_debugfs,
&tx_qp->txq.gdma_sq->tail);
debugfs_create_u32("sq_pend_skb_qlen", 0400, tx_qp->mana_tx_debugfs,
&tx_qp->txq.pending_skbs.qlen);
debugfs_create_u32("cq_head", 0400, tx_qp->mana_tx_debugfs,
&tx_qp->tx_cq.gdma_cq->head);
debugfs_create_u32("cq_tail", 0400, tx_qp->mana_tx_debugfs,
&tx_qp->tx_cq.gdma_cq->tail);
debugfs_create_u32("cq_budget", 0400, tx_qp->mana_tx_debugfs,
&tx_qp->tx_cq.budget);
debugfs_create_file("txq_dump", 0400, tx_qp->mana_tx_debugfs,
tx_qp->txq.gdma_sq, &mana_dbg_q_fops);
debugfs_create_file("cq_dump", 0400, tx_qp->mana_tx_debugfs,
tx_qp->tx_cq.gdma_cq, &mana_dbg_q_fops);
apc->tx_qp = kzalloc_objs(struct mana_tx_qp, apc->num_queues);
if (!apc->tx_qp)
apc->tx_qp[i].tx_object = INVALID_MANA_HANDLE;
txq = &apc->tx_qp[i].txq;
cq = &apc->tx_qp[i].tx_cq;
&apc->tx_qp[i].tx_object);
txq = &apc->tx_qp[i].txq;
txq = &apc->tx_qp[i].txq;
txq = &apc->tx_qp[txq_idx].txq;
cq = &apc->tx_qp[txq_idx].tx_cq;
tx_stats = &apc->tx_qp[q].txq.stats;
tx_stats = &apc->tx_qp[q].txq.stats;
struct mana_tx_qp *tx_qp;