Lines Matching refs:tids

190 	struct tid_info *t = &sc->tids;
203 struct tid_info *t = &sc->tids;
267 struct tid_info *t = &sc->tids;
288 struct tid_info *t = &sc->tids;
308 struct tid_info *t = &sc->tids;
320 struct tid_info *t = &sc->tids;
494 if (sc->tids.ftids_in_use > 0 || sc->tids.hpftids_in_use > 0) {
559 MPASS(t->idx < sc->tids.nhpftids);
560 f = &sc->tids.hpftid_tab[t->idx];
561 tid = sc->tids.hpftid_base + t->idx;
563 MPASS(t->idx < sc->tids.nftids);
564 f = &sc->tids.ftid_tab[t->idx];
565 tid = sc->tids.ftid_base + t->idx;
568 mtx_lock(&sc->tids.ftid_lock);
590 sc->tids.hpftids_in_use++;
592 sc->tids.ftids_in_use++;
595 mtx_unlock(&sc->tids.ftid_lock);
701 mtx_lock(&sc->tids.ftid_lock);
707 if (cv_wait_sig(&sc->tids.ftid_cv, &sc->tids.ftid_lock) != 0) {
712 mtx_unlock(&sc->tids.ftid_lock);
814 struct tid_info *ti = &sc->tids;
890 rc = alloc_hftid_hash(&sc->tids, HASH_NOWAIT);
894 if (__predict_false(sc->tids.atid_tab == NULL)) {
895 rc = alloc_atid_tab(&sc->tids, M_NOWAIT);
911 if (!mtx_initialized(&sc->tids.ftid_lock)) {
926 if (!mtx_initialized(&sc->tids.ftid_lock)) {
988 mtx_lock(&sc->tids.ftid_lock);
990 nfilters = sc->tids.nhpftids;
991 f = sc->tids.hpftid_tab;
993 tid_base = sc->tids.hpftid_base;
996 nfilters = sc->tids.nftids;
997 f = sc->tids.ftid_tab;
999 tid_base = sc->tids.ftid_base;
1039 if (cv_wait_sig(&sc->tids.ftid_cv, &sc->tids.ftid_lock) != 0) {
1045 mtx_unlock(&sc->tids.ftid_lock);
1062 if (sc->tids.hftid_hash_4t != NULL)
1065 if (sc->tids.hpftid_tab != NULL)
1068 if (sc->tids.ftid_tab != NULL)
1141 idx = tid - sc->tids.hpftid_base;
1142 f = &sc->tids.hpftid_tab[idx];
1144 idx = tid - sc->tids.ftid_base;
1145 f = &sc->tids.ftid_tab[idx];
1152 mtx_lock(&sc->tids.ftid_lock);
1178 sc->tids.hpftids_in_use--;
1180 sc->tids.ftids_in_use--;
1189 cv_broadcast(&sc->tids.ftid_cv);
1190 mtx_unlock(&sc->tids.ftid_lock);
1211 mtx_lock(&sc->tids.hftid_lock);
1240 cv_broadcast(&sc->tids.hftid_cv);
1242 mtx_unlock(&sc->tids.hftid_lock);
1257 mtx_lock(&sc->tids.hftid_lock);
1277 cv_broadcast(&sc->tids.hftid_cv);
1278 mtx_unlock(&sc->tids.hftid_lock);
1292 mtx_lock(&sc->tids.hftid_lock);
1309 cv_broadcast(&sc->tids.hftid_cv);
1310 mtx_unlock(&sc->tids.hftid_lock);
1328 nfilters = sc->tids.nhpftids;
1329 f = sc->tids.hpftid_tab;
1330 in_use = sc->tids.hpftids_in_use;
1332 tid_base = sc->tids.hpftid_base;
1335 nfilters = sc->tids.nftids;
1336 f = sc->tids.ftid_tab;
1337 in_use = sc->tids.ftids_in_use;
1339 tid_base = sc->tids.ftid_base;
1349 mtx_lock(&sc->tids.ftid_lock);
1367 mtx_unlock(&sc->tids.ftid_lock);
1374 struct tid_info *ti = &sc->tids;
1541 mtx_lock(&sc->tids.hftid_lock);
1596 if (cv_wait_sig(&sc->tids.hftid_cv, &sc->tids.hftid_lock) != 0) {
1603 mtx_unlock(&sc->tids.hftid_lock);
1731 struct tid_info *ti = &sc->tids;
1739 MPASS(sc->tids.hftid_hash_4t != NULL);
1740 MPASS(sc->tids.ntids > 0);
1742 if (t->idx < sc->tids.tid_base || t->idx >= inv_tid)
1873 MPASS(f->tid < sc->tids.ntids);