Lines Matching refs:TX_DESC_COUNT
78 #define TX_DESC_COUNT 1024
79 #define TX_DESC_SIZE (sizeof(struct sunxi_emac_desc) * TX_DESC_COUNT)
84 #define TX_NEXT(n) (((n) + 1) & (TX_DESC_COUNT - 1))
85 #define TX_SKIP(n, o) (((n) + (o)) & (TX_DESC_COUNT - 1))
155 struct sunxi_emac_bufmap buf_map[TX_DESC_COUNT];
454 if (sc->tx.queued >= TX_DESC_COUNT - TX_MAX_SEGS) {
483 start, sc->tx.cur, TX_DESC_COUNT,
862 KASSERT(sc->tx.queued > 0 && sc->tx.queued <= TX_DESC_COUNT);
864 i, i + 1, TX_DESC_COUNT,
882 i, i + 1, TX_DESC_COUNT,
1218 for (i = 0; i < TX_DESC_COUNT; i++)
1222 sc->tx.queued = TX_DESC_COUNT;
1223 for (i = 0; i < TX_DESC_COUNT; i++) {