Home | History | Annotate | Download | only in pci

Lines Matching refs:rxr

206 static u_int	 if_rxr_get(struct if_rxring *rxr, unsigned int max);
207 static void if_rxr_put(struct if_rxring *rxr, unsigned int n);
208 static void if_rxr_init(struct if_rxring *rxr, unsigned int lwm, unsigned int hwm);
1175 if_rxr_get(struct if_rxring *rxr, unsigned int max)
1177 u_int taken = MIN(max, (rxr->rxr_total - rxr->rxr_inuse));
1179 KASSERTMSG(rxr->rxr_inuse + taken <= rxr->rxr_total,
1180 "rxr->rxr_inuse: %d\n"
1182 "rxr->rxr_total: %d\n",
1183 rxr->rxr_inuse, taken, rxr->rxr_total);
1184 rxr->rxr_inuse += taken;
1190 if_rxr_put(struct if_rxring *rxr, unsigned int n)
1192 KASSERTMSG(rxr->rxr_inuse >= n,
1193 "rxr->rxr_inuse: %d\n"
1195 "rxr->rxr_total: %d\n",
1196 rxr->rxr_inuse, n, rxr->rxr_total);
1198 rxr->rxr_inuse -= n;
1202 if_rxr_init(struct if_rxring *rxr, unsigned int lwm __unused, unsigned int hwm)
1206 rxr->rxr_total = hwm;
1207 rxr->rxr_inuse = 0;