Home
last modified time | relevance | path

Searched refs:RINGMASK (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/uts/sun4v/sys/
H A Dqcn.h48 #define RINGMASK (RINGSIZE-1) macro
51 #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)
/titanic_41/usr/src/uts/sun/sys/
H A Dser_async.h80 #define RINGMASK (RINGSIZE-1) macro
84 #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))
/titanic_41/usr/src/uts/sun4/sys/
H A Dsudev.h197 #define RINGMASK (RINGSIZE-1) macro
201 #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))
/titanic_41/usr/src/uts/common/sys/
H A Dasy.h173 #define RINGMASK (RINGSIZE-1) macro
183 ((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))