Searched refs:RING_CNT (Results 1 – 7 of 7) sorted by relevance
84 #define RING_CNT(zap) (((zap)->za_rput - (zap)->za_rget) & RINGMASK) macro85 #define RING_FRAC(zap) ((int)RING_CNT(zap) >= (int)(RINGSIZE/RINGFRAC))86 #define RING_POK(zap, n) ((int)RING_CNT(zap) < (int)(RINGSIZE-(n)))90 #define RING_GOK(zap, n) ((int)RING_CNT(zap) >= (int)(n))
201 #define RING_CNT(ap) (((ap)->async_rput - (ap)->async_rget) & RINGMASK) macro202 #define RING_FRAC(ap) ((int)RING_CNT(ap) >= (int)(RINGSIZE/RINGFRAC))203 #define RING_POK(ap, n) ((int)RING_CNT(ap) < (int)(RINGSIZE-(n)))207 #define RING_GOK(ap, n) ((int)RING_CNT(ap) >= (int)(n))
51 #define RING_CNT(qsp) (((qsp)->qcn_rput - (qsp)->qcn_rget) & RINGMASK) macro52 #define RING_POK(qsp, n) ((int)RING_CNT(qsp) < (int)(RINGSIZE-(n)))
177 #define RING_CNT(ap) (((ap)->async_rput >= (ap)->async_rget) ? \ macro180 #define RING_FRAC(ap) ((int)RING_CNT(ap) >= (int)(RINGSIZE/RINGFRAC))181 #define RING_POK(ap, n) ((int)RING_CNT(ap) < (int)(RINGSIZE-(n)))185 #define RING_GOK(ap, n) ((int)RING_CNT(ap) >= (int)(n))
1004 cc = RING_CNT(qcn_state); in qcn_soft_intr()1089 if (RING_CNT(qcn_state) <= 0) { in qcn_receive_read()
1895 if ((int)(RING_CNT(async)) > (RINGSIZE * 3)/4) { in async_rxint()2057 cc = RING_CNT(async); in asysoftintr()2196 if ((cc = RING_CNT(async)) == 0) { in async_softint()2222 ((int)(RING_CNT(async)) < (RINGSIZE/4))) { in async_softint()
2543 if ((RING_CNT(async) > (RINGSIZE * 3)/4) && in async_rxint()2659 cc = RING_CNT(async); in asysoftintr()2830 if ((cc = RING_CNT(async)) == 0) in async_softint()2896 if ((RING_CNT(async) < (RINGSIZE/4)) && in async_softint()