Searched refs:RINGMASK (Results 1 – 4 of 4) sorted by relevance
48 #define RINGMASK (RINGSIZE-1) macro51 #define RING_CNT(qsp) (((qsp)->qcn_rput - (qsp)->qcn_rget) & RINGMASK)54 ((qsp)->qcn_ring[(qsp)->qcn_rput++ & RINGMASK] = (uchar_t)(c))55 #define RING_GET(qsp) ((qsp)->qcn_ring[(qsp)->qcn_rget++ & RINGMASK])56 #define RING_ADDR(qsp) (&((qsp)->qcn_ring[(qsp)->qcn_rget & RINGMASK]))57 #define RING_POFF(qsp) ((qsp)->qcn_rput & RINGMASK)58 #define RING_GOFF(qsp) ((qsp)->qcn_rget & RINGMASK)
80 #define RINGMASK (RINGSIZE-1) macro84 #define RING_CNT(zap) (((zap)->za_rput - (zap)->za_rget) & RINGMASK)88 ((zap)->za_ring[(zap)->za_rput++ & RINGMASK] = (uchar_t)(c))91 #define RING_GET(zap) ((zap)->za_ring[(zap)->za_rget++ & RINGMASK])102 ((zap)->za_ring[(zap)->za_rput++ & RINGMASK] = ((uchar_t)(c)|(s)))104 ((zap)->za_ring[((zap)->za_rget) & RINGMASK] &= S_UNMARK)106 ((zap)->za_ring[((zap)->za_rget) & RINGMASK] & (c))
197 #define RINGMASK (RINGSIZE-1) macro201 #define RING_CNT(ap) (((ap)->async_rput - (ap)->async_rget) & RINGMASK)205 ((ap)->async_ring[(ap)->async_rput++ & RINGMASK] = (uchar_t)(c))208 #define RING_GET(ap) ((ap)->async_ring[(ap)->async_rget++ & RINGMASK])211 ((ap)->async_ring[(ap)->async_rput++ & RINGMASK] = ((uchar_t)(c)|(s)))213 ((ap)->async_ring[((ap)->async_rget) & RINGMASK] &= ~S_ERRORS)215 ((ap)->async_ring[((ap)->async_rget) & RINGMASK] & (c))
173 #define RINGMASK (RINGSIZE-1) macro183 ((ap)->async_ring[(ap)->async_rput++ & RINGMASK] = (uchar_t)(c))186 #define RING_GET(ap) ((ap)->async_ring[(ap)->async_rget++ & RINGMASK])189 ((ap)->async_ring[(ap)->async_rput++ & RINGMASK] = ((uchar_t)(c)|(s)))191 ((ap)->async_ring[((ap)->async_rget) & RINGMASK] &= ~S_ERRORS)193 ((ap)->async_ring[((ap)->async_rget) & RINGMASK] & (c))