Lines Matching refs:tmdp
245 #define NEXTTMDP(tbasep, tmdlimp, tmdp) (((tmdp) + 1) == tmdlimp \ argument
246 ? tbasep : ((tmdp) + 1))
3450 volatile struct eri_tmd *tmdp = NULL; in eri_send_msg() local
3507 tmdp = erip->tnextp; in eri_send_msg()
3509 if (tmdp >= erip->tcurp) /* check notmds */ in eri_send_msg()
3510 i = tmdp - erip->tcurp; in eri_send_msg()
3512 i = tmdp + ERI_TPENDING - erip->tcurp; in eri_send_msg()
3527 i = tmdp - tbasep; /* index */ in eri_send_msg()
3556 PUT_TMD(tmdp, c, len_msg, ctrl); in eri_send_msg()
3557 ERI_SYNCIOPB(erip, tmdp, sizeof (struct eri_tmd), in eri_send_msg()
3560 tmdp = NEXTTMD(erip, tmdp); in eri_send_msg()
3563 erip->tx_kick = tmdp - tbasep; in eri_send_msg()
3565 erip->tnextp = tmdp; in eri_send_msg()
3612 volatile struct eri_tmd *tmdp; in eri_reclaim() local
3622 tmdp = erip->tcurp; in eri_reclaim()
3628 while (tmdp != tcomp) { in eri_reclaim()
3629 flags = GET_TMD_FLAGS(tmdp); in eri_reclaim()
3635 tmdp = NEXTTMDP(tbasep, tlimp, tmdp); in eri_reclaim()
3639 erip->tcurp = tmdp; in eri_reclaim()