Lines Matching defs:cmdQ
177 struct cmdQ {
191 spinlock_t lock; /* Lock to protect cmdQ enqueuing */
217 /* Bit flags for cmdQ.status */
274 struct cmdQ cmdQ[SGE_CMDQ_N] ____cacheline_aligned_in_smp;
483 struct cmdQ *q = &sge->cmdQ[0];
621 static void free_cmdQ_buffers(struct sge *sge, struct cmdQ *q, unsigned int n)
662 struct cmdQ *q = &sge->cmdQ[i];
686 struct cmdQ *q = &sge->cmdQ[i];
715 sge->cmdQ[0].stop_thres = sge->adapter->params.nports *
759 setup_ring_params(ap, sge->cmdQ[0].dma_addr, sge->cmdQ[0].size,
761 setup_ring_params(ap, sge->cmdQ[1].dma_addr, sge->cmdQ[1].size,
1142 * Write a cmdQ entry.
1145 * write the first cmdQ entry.
1172 struct cmdQ *q)
1208 struct cmdQ *q)
1295 static inline void reclaim_completed_tx(struct sge *sge, struct cmdQ *q)
1316 struct cmdQ *q = &sge->cmdQ[0];
1404 static inline int enough_free_Tx_descs(const struct cmdQ *q)
1420 if (!enough_free_Tx_descs(&sge->cmdQ[0]))
1443 struct cmdQ *cmdq = &sge->cmdQ[0];
1499 sge->cmdQ[1].processed += cmdq_processed[1];
1543 sge->cmdQ[1].processed += cmdq_processed[1];
1599 sge->cmdQ[1].processed += cmdq_processed[1];
1655 * Enqueues the sk_buff onto the cmdQ[qid] and has hardware fetch it.
1658 * cmdQ and updates the cmdQ data structure with the state once the enqueue
1671 struct cmdQ *q = &sge->cmdQ[qid];
1898 struct cmdQ *q = &sge->cmdQ[i];