Lines Matching refs:sq

403  *	mutex_enter(SQLOCK(sq));
404 * while (sq->sq_count > 0) {
405 * sq->sq_flags |= SQ_WANTWAKEUP;
406 * cv_wait(&sq->sq_wait, SQLOCK(sq));
408 * mutex_exit(SQLOCK(sq));
412 * mutex_enter(SQLOCK(sq));
413 * count = sq->sq_count;
414 * SQ_PUTLOCKS_ENTER(sq);
415 * SUM_SQ_PUTCOUNTS(sq, count);
417 * sq->sq_flags |= SQ_WANTWAKEUP;
418 * SQ_PUTLOCKS_EXIT(sq);
419 * cv_wait(&sq->sq_wait, SQLOCK(sq));
420 * count = sq->sq_count;
421 * SQ_PUTLOCKS_ENTER(sq);
422 * SUM_SQ_PUTCOUNTS(sq, count);
424 * SQ_PUTLOCKS_EXIT(sq);
425 * mutex_exit(SQLOCK(sq));
455 uint_t sq_nqueues; /* # of queues on this sq */
816 #define SQLOCK(sq) (&(sq)->sq_lock)
842 #define SQ_PUTLOCKS_ENTER(sq) { \
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) { \
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) { \
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) { \
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) { \
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) { \
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)
943 #define SUMCHECK_SQ_PUTCOUNTS(sq, countcheck)
944 #define SUMCHECK_CIPUTCTRL_COUNTS(sq, nciput, countcheck)
948 #define SUM_SQ_PUTCOUNTS(sq, count) { \
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); \