Searched refs:qsp (Results 1 – 1 of 1) sorted by relevance
50 #define RING_INIT(qsp) ((qsp)->qcn_rput = (qsp)->qcn_rget = 0) argument51 #define RING_CNT(qsp) (((qsp)->qcn_rput - (qsp)->qcn_rget) & RINGMASK) argument52 #define RING_POK(qsp, n) ((int)RING_CNT(qsp) < (int)(RINGSIZE-(n))) argument53 #define RING_PUT(qsp, c) \ argument54 ((qsp)->qcn_ring[(qsp)->qcn_rput++ & RINGMASK] = (uchar_t)(c))55 #define RING_GET(qsp) ((qsp)->qcn_ring[(qsp)->qcn_rget++ & RINGMASK]) argument56 #define RING_ADDR(qsp) (&((qsp)->qcn_ring[(qsp)->qcn_rget & RINGMASK])) argument57 #define RING_POFF(qsp) ((qsp)->qcn_rput & RINGMASK) argument58 #define RING_GOFF(qsp) ((qsp)->qcn_rget & RINGMASK) argument59 #define RING_LEFT(qsp) (RING_POFF(qsp) >= RING_GOFF(qsp) ? (RINGSIZE) - \ argument[all …]