Lines Matching refs:sq
816 #define SQLOCK(sq) (&(sq)->sq_lock) argument
842 #define SQ_PUTLOCKS_ENTER(sq) { \ argument
843 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
844 if ((sq)->sq_ciputctrl != NULL) { \
846 int nlocks = (sq)->sq_nciputctrl; \
847 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
848 ASSERT((sq)->sq_type & SQ_CIPUT); \
855 #define SQ_PUTLOCKS_EXIT(sq) { \ argument
856 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
857 if ((sq)->sq_ciputctrl != NULL) { \
859 int nlocks = (sq)->sq_nciputctrl; \
860 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
861 ASSERT((sq)->sq_type & SQ_CIPUT); \
868 #define SQ_PUTCOUNT_SETFAST(sq) { \ argument
869 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
870 if ((sq)->sq_ciputctrl != NULL) { \
872 int nlocks = (sq)->sq_nciputctrl; \
873 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
874 ASSERT((sq)->sq_type & SQ_CIPUT); \
883 #define SQ_PUTCOUNT_CLRFAST(sq) { \ argument
884 ASSERT(MUTEX_HELD(SQLOCK(sq))); \
885 if ((sq)->sq_ciputctrl != NULL) { \
887 int nlocks = (sq)->sq_nciputctrl; \
888 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
889 ASSERT((sq)->sq_type & SQ_CIPUT); \
901 #define SQ_PUTLOCKS_HELD(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); \
914 #define SUMCHECK_SQ_PUTCOUNTS(sq, countcheck) { \ argument
915 if ((sq)->sq_ciputctrl != NULL) { \
918 int ncounts = (sq)->sq_nciputctrl; \
919 ASSERT((sq)->sq_type & SQ_CIPUT); \
922 (((sq)->sq_ciputctrl[i].ciputctrl_count) & \
942 #define SQ_PUTLOCKS_HELD(sq) argument
943 #define SUMCHECK_SQ_PUTCOUNTS(sq, countcheck) argument
944 #define SUMCHECK_CIPUTCTRL_COUNTS(sq, nciput, countcheck) argument
948 #define SUM_SQ_PUTCOUNTS(sq, count) { \ argument
949 if ((sq)->sq_ciputctrl != NULL) { \
951 int ncounts = (sq)->sq_nciputctrl; \
952 ciputctrl_t *cip = (sq)->sq_ciputctrl; \
953 ASSERT((sq)->sq_type & SQ_CIPUT); \