Lines Matching refs:chan
507 u_int chan; /* transmit channel */
525 struct en_txslot *slot = &sc->txslot[tx->chan];
560 MID_MK_TXQ_ENI(COUNT, tx->chan, 0, BCODE) : \
561 MID_MK_TXQ_ADP(COUNT, tx->chan, 0, BCODE)); \
575 tx->chan, cnt, (uintmax_t)rest, cur)); \
611 tx->chan, (uintmax_t)rest, (uintmax_t)addr, cur));
679 EN_DQ_MK(tx->chan, tx->m->m_pkthdr.len);
717 tx.chan = slot - sc->txslot;
1673 int chan;
1677 for (mask = 1, chan = 0; chan < EN_NTX; chan++, mask *= 2) {
1678 if (!(reg & MID_TXCHAN(chan)))
1684 val = en_read(sc, MIDX_READPTR(chan));
1686 val = (val * sizeof(uint32_t)) + sc->txslot[chan].start;
1687 if (val > sc->txslot[chan].cur)
1688 sc->txslot[chan].bfree = val - sc->txslot[chan].cur;
1690 sc->txslot[chan].bfree = (val + (EN_TXSZ * 1024)) -
1691 sc->txslot[chan].cur;
1693 "buffer", chan, sc->txslot[chan].bfree));
3251 printf("\t0x%x=[%#x cnt=%d, chan=%d, end=%d, type=%d @ 0x%x]\n",
3269 printf("\t0x%x=[cnt=%d, chan=%d, end=%d, type=%d @ 0x%x]\n",