Lines Matching defs:queue

481 	struct enetc_tx_queue *queue;
497 queue = &sc->tx_queues[i];
498 queue->sc = sc;
499 queue->ring = (union enetc_tx_bd*)(vaddrs[i]);
500 queue->ring_paddr = paddrs[i];
501 queue->cidx = 0;
512 struct enetc_rx_queue *queue;
527 queue = &sc->rx_queues[i];
528 queue->sc = sc;
529 queue->qid = i;
530 queue->ring = (union enetc_rx_bd*)(vaddrs[i]);
531 queue->ring_paddr = paddrs[i];
648 struct enetc_ctrl_queue *queue;
652 queue = &sc->ctrl_queue;
653 desc = &queue->ring[queue->pidx];
655 if (++queue->pidx == ENETC_MIN_DESC)
656 queue->pidx = 0;
669 bus_dmamap_sync(queue->dma.idi_tag, queue->dma.idi_map, BUS_DMASYNC_PREWRITE);
670 ENETC_WR4(sc, ENETC_SICBDRPIR, queue->pidx);
674 if (ENETC_RD4(sc, ENETC_SICBDRCIR) == queue->pidx)
723 struct enetc_ctrl_queue *queue = &sc->ctrl_queue;
726 (uint32_t)queue->dma.idi_paddr);
728 (uint32_t)(queue->dma.idi_paddr >> 32));
730 queue->dma.idi_size / sizeof(struct enetc_cbd));
732 queue->pidx = 0;
733 ENETC_WR4(sc, ENETC_SICBDRPIR, queue->pidx);
734 ENETC_WR4(sc, ENETC_SICBDRCIR, queue->pidx);
741 struct enetc_tx_queue *queue;
745 queue = &sc->tx_queues[i];
748 (uint32_t)queue->ring_paddr);
750 (uint32_t)(queue->ring_paddr >> 32));
771 struct enetc_rx_queue *queue;
778 queue = &sc->rx_queues[i];
781 (uint32_t)queue->ring_paddr);
783 (uint32_t)(queue->ring_paddr >> 32));
788 queue->enabled = false;
1094 struct enetc_tx_queue *queue;
1100 queue = &sc->tx_queues[ipi->ipi_qsidx];
1109 desc = &queue->ring[pidx];
1124 desc = &queue->ring[pidx];
1134 desc = &queue->ring[pidx];
1161 struct enetc_tx_queue *queue;
1164 queue = &sc->tx_queues[qid];
1166 cidx = queue->cidx;
1188 queue->cidx = hw_cidx;
1197 struct enetc_rx_queue *queue;
1202 queue = &sc->rx_queues[qid];
1203 desc = &queue->ring[pidx];
1214 desc = &queue->ring[pidx];
1229 struct enetc_rx_queue *queue;
1237 queue = &sc->rx_queues[ri->iri_qsidx];
1238 desc = &queue->ring[cidx];
1277 desc = &queue->ring[cidx];
1293 struct enetc_rx_queue *queue;
1299 queue = &sc->rx_queues[iru->iru_qsidx];
1306 desc = &queue->ring[pidx];
1314 * After enabling the queue NIC will prefetch the first
1319 if (!queue->enabled && pidx >= 8) {
1321 queue->enabled = true;