Lines Matching defs:ldcp
68 #define LDC_TO_VNET(ldcp) ((ldcp)->portp->vgenp->vnetp)
69 #define LDC_TO_VGEN(ldcp) ((ldcp)->portp->vgenp)
165 #define NEXTTBUF(ldcp, tbufp) (((tbufp) + 1) == (ldcp)->tbufendp \
166 ? (ldcp)->tbufp : ((tbufp) + 1))
169 #define INCR_RXI(i, ldcp) \
170 ((i) = (((i) + 1) & ((ldcp)->num_rxds - 1)))
173 #define DECR_RXI(i, ldcp) \
174 ((i) = (((i) - 1) & ((ldcp)->num_rxds - 1)))
177 #define INCR_TXI(i, ldcp) \
178 ((i) = (((i) + 1) & ((ldcp)->num_txds - 1)))
181 #define DECR_TXI(i, ldcp) \
182 ((i) = (((i) - 1) & ((ldcp)->num_txds - 1)))
185 #define CHECK_RXI(i, ldcp) \
186 (((i) >= 0) && ((i) < (ldcp)->num_rxds))
189 #define CHECK_TXI(i, ldcp) \
190 (((i) >= 0) && ((i) < (ldcp)->num_txds))
392 vgen_ldc_t *ldcp; /* list of ldcs for this port */