Home | History | Annotate | Download | only in dev

Lines Matching refs:SC

107  * XDC_TWAIT: add iorq "N" to tail of SC's wait queue
109 #define XDC_TWAIT(SC, N) \
111 (SC)->waitq[(SC)->waitend] = (N); \
112 (SC)->waitend = ((SC)->waitend + 1) % XDC_MAXIOPB; \
113 (SC)->nwait++; \
117 * XDC_HWAIT: add iorq "N" to head of SC's wait queue
119 #define XDC_HWAIT(SC, N) \
121 (SC)->waithead = ((SC)->waithead == 0) ? \
122 (XDC_MAXIOPB - 1) : ((SC)->waithead - 1); \
123 (SC)->waitq[(SC)->waithead] = (N); \
124 (SC)->nwait++; \
139 * XDC_FREE: add iorq "N" to SC's free list
141 #define XDC_FREE(SC, N) \
143 (SC)->freereq[(SC)->nfree++] = (N); \
144 (SC)->reqs[N].mode = 0; \
145 if ((SC)->nfree == 1) \
146 wakeup(&(SC)->nfree); \
189 #define XDC_DONE(SC,RQ,ER) \
194 if ((SC)->ndone-- == XDC_SUBWAITLIM) \
195 wakeup(&(SC)->ndone); \
196 (ER) = (SC)->reqs[RQ].errno; \
197 XDC_FREE((SC), (RQ)); \