Lines Matching refs:txq

1048 static void txq_stop(struct sge_eth_txq *txq)
1050 netif_tx_stop_queue(txq->txq);
1051 txq->q.stops++;
1079 struct sge_eth_txq *txq;
1106 txq = &adapter->sge.ethtxq[pi->first_qset + qidx];
1112 reclaim_completed_tx(adapter, &txq->q, true);
1121 credits = txq_avail(&txq->q) - ndesc;
1130 txq_stop(txq);
1144 txq->mapping_err++;
1159 txq_stop(txq);
1170 wr = (void *)&txq->q.desc[txq->q.pidx];
1220 txq->tso++;
1221 txq->tx_cso += ssi->gso_segs;
1237 txq->tx_cso++;
1247 txq->vlan_ins++;
1262 T4_TRACE5(adapter->tb[txq->q.cntxt_id & 7],
1264 ndesc, credits, txq->q.pidx, skb->len, ssi->nr_frags);
1276 inline_tx_skb(skb, &txq->q, cpl + 1);
1317 struct sge_txq *tq = &txq->q;
1346 txq_advance(&txq->q, ndesc);
1348 ring_tx_db(adapter, &txq->q, ndesc);
2006 struct sge_eth_txq *txq = &s->ethtxq[i];
2008 if (reclaimable(&txq->q) && __netif_tx_trylock(txq->txq)) {
2009 int avail = reclaimable(&txq->q);
2014 free_tx_desc(adapter, &txq->q, avail, true);
2015 txq->q.in_use -= avail;
2016 __netif_tx_unlock(txq->txq);
2214 * @txq: pointer to the new txq to be filled in
2215 * @devq: the network TX queue associated with the new txq
2217 * the new txq should be directed
2219 int t4vf_sge_alloc_eth_txq(struct adapter *adapter, struct sge_eth_txq *txq,
2232 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc);
2238 txq->q.desc = alloc_ring(adapter->pdev_dev, txq->q.size,
2241 &txq->q.phys_addr, &txq->q.sdesc, s->stat_len);
2242 if (!txq->q.desc)
2271 cmd.eqaddr = cpu_to_be64(txq->q.phys_addr);
2283 kfree(txq->q.sdesc);
2284 txq->q.sdesc = NULL;
2287 txq->q.desc, txq->q.phys_addr);
2288 txq->q.desc = NULL;
2292 txq->q.in_use = 0;
2293 txq->q.cidx = 0;
2294 txq->q.pidx = 0;
2295 txq->q.stat = (void *)&txq->q.desc[txq->q.size];
2296 txq->q.cntxt_id = FW_EQ_ETH_CMD_EQID_GET(be32_to_cpu(rpl.eqid_pkd));
2297 txq->q.abs_id =
2299 txq->txq = devq;
2300 txq->tso = 0;
2301 txq->tx_cso = 0;
2302 txq->vlan_ins = 0;
2303 txq->q.stops = 0;
2304 txq->q.restarts = 0;
2305 txq->mapping_err = 0;
2366 struct sge_eth_txq *txq = s->ethtxq;
2371 for (qs = 0; qs < adapter->sge.ethqsets; qs++, rxq++, txq++) {
2374 if (txq->q.desc) {
2375 t4vf_eth_eq_free(adapter, txq->q.cntxt_id);
2376 free_tx_desc(adapter, &txq->q, txq->q.in_use, true);
2377 kfree(txq->q.sdesc);
2378 free_txq(adapter, &txq->q);