Home
last modified time | relevance | path

Searched defs:qsp (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/uts/sun4v/sys/
H A Dqcn.h50 #define RING_INIT(qsp) ((qsp)->qcn_rput = (qsp)->qcn_rget = 0) argument
51 #define RING_CNT(qsp) (((qsp)->qcn_rput - (qsp)->qcn_rget) & RINGMASK) argument
52 #define RING_POK(qsp, n) ((int)RING_CNT(qsp) < (int)(RINGSIZE-(n))) argument
53 #define RING_PUT(qsp, c) \ argument
55 #define RING_GET(qsp) ((qsp)->qcn_ring[(qsp)->qcn_rget++ & RINGMASK]) argument
56 #define RING_ADDR(qsp) (&((qsp)->qcn_ring[(qsp)->qcn_rget & RINGMASK])) argument
57 #define RING_POFF(qsp) ((qsp)->qcn_rput & RINGMASK) argument
58 #define RING_GOFF(qsp) ((qsp)->qcn_rget & RINGMASK) argument
59 #define RING_LEFT(qsp) (RING_POFF(qsp) >= RING_GOFF(qsp) ? (RINGSIZE) - \ argument
62 #define RING_UPD(qsp, n) ((qsp)->qcn_rput += (n)) argument