Home | History | Annotate | Download | only in net

Lines Matching refs:l2tp_hash

110 } l2tp_hash __cacheline_aligned = {
204 mutex_init(&l2tp_hash.lock, MUTEX_DEFAULT, IPL_NONE);
231 mutex_destroy(&l2tp_hash.lock);
265 PSLIST_ENTRY_INIT(sc, l2tp_hash);
1123 l2tp_hash.lists = hashinit(L2TP_ID_HASH_SIZE, HASH_PSLIST, true,
1124 &l2tp_hash.mask);
1132 mutex_enter(&l2tp_hash.lock);
1134 for (i = 0; i < l2tp_hash.mask + 1; i++) {
1135 if (PSLIST_WRITER_FIRST(&l2tp_hash.lists[i], struct l2tp_softc,
1136 l2tp_hash) != NULL) {
1137 mutex_exit(&l2tp_hash.lock);
1141 for (i = 0; i < l2tp_hash.mask + 1; i++)
1142 PSLIST_DESTROY(&l2tp_hash.lists[i]);
1144 mutex_exit(&l2tp_hash.lock);
1146 hashdone(l2tp_hash.lists, HASH_PSLIST, l2tp_hash.mask);
1169 mutex_enter(&l2tp_hash.lock);
1171 PSLIST_WRITER_REMOVE(sc, l2tp_hash);
1174 mutex_exit(&l2tp_hash.lock);
1175 PSLIST_ENTRY_DESTROY(sc, l2tp_hash);
1180 idx = id_hash_func(nvar->lv_my_sess_id, l2tp_hash.mask);
1185 PSLIST_ENTRY_INIT(sc, l2tp_hash);
1186 mutex_enter(&l2tp_hash.lock);
1187 PSLIST_WRITER_INSERT_HEAD(&l2tp_hash.lists[idx], sc, l2tp_hash);
1188 mutex_exit(&l2tp_hash.lock);
1209 mutex_enter(&l2tp_hash.lock);
1211 PSLIST_WRITER_REMOVE(sc, l2tp_hash);
1214 mutex_exit(&l2tp_hash.lock);
1229 idx = id_hash_func(id, l2tp_hash.mask);
1232 PSLIST_READER_FOREACH(sc, &l2tp_hash.lists[idx], struct l2tp_softc,
1233 l2tp_hash) {