Home | History | Annotate | Download | only in vme

Lines Matching refs:SC

96  * XDC_TWAIT: add iorq "N" to tail of SC's wait queue
98 #define XDC_TWAIT(SC, N) { \
99 (SC)->waitq[(SC)->waitend] = (N); \
100 (SC)->waitend = ((SC)->waitend + 1) % XDC_MAXIOPB; \
101 (SC)->nwait++; \
105 * XDC_HWAIT: add iorq "N" to head of SC's wait queue
107 #define XDC_HWAIT(SC, N) { \
108 (SC)->waithead = ((SC)->waithead == 0) ? \
109 (XDC_MAXIOPB - 1) : ((SC)->waithead - 1); \
110 (SC)->waitq[(SC)->waithead] = (N); \
111 (SC)->nwait++; \
125 * XDC_FREE: add iorq "N" to SC's free list
127 #define XDC_FREE(SC, N) { \
128 (SC)->freereq[(SC)->nfree++] = (N); \
129 (SC)->reqs[N].mode = 0; \
130 if ((SC)->nfree == 1) wakeup(&(SC)->nfree); \
170 #define XDC_DONE(SC,RQ,ER) { \
174 if ((SC)->ndone-- == XDC_SUBWAITLIM) \
175 wakeup(&(SC)->ndone); \
176 (ER) = (SC)->reqs[RQ].errnum; \
177 XDC_FREE((SC), (RQ)); \