Lines Matching refs:sq
834 #define SQLOCK(sq) (&(sq)->sq_lock) argument
860 #define SQ_PUTLOCKS_ENTER(sq) { \ argument
861 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
862 if ((sq)->sq_ciputctrl != NULL) { \
864 int nlocks = (sq)->sq_nciputctrl; \
865 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
866 ASSERT((sq)->sq_type & SQ_CIPUT); \
873 #define SQ_PUTLOCKS_EXIT(sq) { \ argument
874 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
875 if ((sq)->sq_ciputctrl != NULL) { \
877 int nlocks = (sq)->sq_nciputctrl; \
878 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
879 ASSERT((sq)->sq_type & SQ_CIPUT); \
886 #define SQ_PUTCOUNT_SETFAST(sq) { \ argument
887 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
888 if ((sq)->sq_ciputctrl != NULL) { \
890 int nlocks = (sq)->sq_nciputctrl; \
891 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
892 ASSERT((sq)->sq_type & SQ_CIPUT); \
901 #define SQ_PUTCOUNT_CLRFAST(sq) { \ argument
902 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
903 if ((sq)->sq_ciputctrl != NULL) { \
905 int nlocks = (sq)->sq_nciputctrl; \
906 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
907 ASSERT((sq)->sq_type & SQ_CIPUT); \
919 #define SQ_PUTLOCKS_HELD(sq) { \ argument
920 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
921 if ((sq)->sq_ciputctrl != NULL) { \
923 int nlocks = (sq)->sq_nciputctrl; \
924 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
925 ASSERT((sq)->sq_type & SQ_CIPUT); \
932 #define SUMCHECK_SQ_PUTCOUNTS(sq, countcheck) { \ argument
933 if ((sq)->sq_ciputctrl != NULL) { \
936 int ncounts = (sq)->sq_nciputctrl; \
937 ASSERT((sq)->sq_type & SQ_CIPUT); \
940 (((sq)->sq_ciputctrl[i].ciputctrl_count) & \
960 #define SQ_PUTLOCKS_HELD(sq) argument
961 #define SUMCHECK_SQ_PUTCOUNTS(sq, countcheck) argument
962 #define SUMCHECK_CIPUTCTRL_COUNTS(sq, nciput, countcheck) argument
966 #define SUM_SQ_PUTCOUNTS(sq, count) { \ argument
967 if ((sq)->sq_ciputctrl != NULL) { \
969 int ncounts = (sq)->sq_nciputctrl; \
970 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
971 ASSERT((sq)->sq_type & SQ_CIPUT); \