Home | History | Annotate | Download | only in broadcom

Lines Matching refs:consumer

1037 	struct gmac_rxdb *consumer = rxq->rxq_consumer;
1042 if (consumer == rxq->rxq_producer) {
1049 if (consumer == rxq->rxq_first + currdscr) {
1052 bcmeth_rxq_desc_postsync(sc, rxq, consumer, 1);
1067 KASSERTMSG(rxsts != BCMETH_RCVMAGIC, "currdscr=%u consumer=%zd",
1068 currdscr, consumer - rxq->rxq_first);
1084 if (++consumer == rxq->rxq_last) {
1085 consumer = rxq->rxq_first;
1087 KASSERTMSG(consumer != rxq->rxq_first + currdscr,
1089 "consumer=%zd", i, rxsts, desc_count, currdscr,
1090 consumer - rxq->rxq_first);
1116 consumer - rxq->rxq_first, desc_count, rxsts);
1143 if (++consumer == rxq->rxq_last) {
1144 KASSERT(consumer[-1].rxdb_flags
1148 rxq->rxq_consumer = consumer;
1163 consumer = rxq->rxq_consumer;
1172 if (++consumer == rxq->rxq_last) {
1173 KASSERT(consumer[-1].rxdb_flags & htole32(RXDB_FLAG_ET));
1174 consumer = rxq->rxq_first;
1181 rxq->rxq_consumer = consumer;
1242 * Reset the producer consumer indexes.
1595 struct gmac_txdb *consumer = txq->txq_consumer;
1603 if (consumer == txq->txq_producer) {
1604 txq->txq_consumer = consumer;
1617 bcmeth_txq_desc_postsync(sc, txq, consumer, 1);
1619 if (consumer == txq->txq_first + __SHIFTOUT(s0, XMT_CURRDSCR)) {
1620 txq->txq_consumer = consumer;
1634 const uint32_t txdb_flags = le32toh(consumer->txdb_flags);
1662 consumer->txdb_flags = htole32(TXDB_FLAG_ET);
1663 KASSERT(consumer + 1 == txq->txq_last);
1664 consumer = txq->txq_first;
1666 consumer->txdb_flags = 0;
1667 consumer++;
1668 KASSERT(consumer < txq->txq_last);
1720 * Reset the producer consumer indexes.