Lines Matching defs:table

182  * association, and have found the appropriate table & hash chain.  All this
421 isaf_t *table;
424 table = (isaf_t *)kmem_alloc(size * sizeof (*table), kmflag);
425 *tablep = table;
427 if (table == NULL)
431 mutex_init(&(table[i].isaf_lock), NULL, MUTEX_DEFAULT, NULL);
432 table[i].isaf_ipsa = NULL;
433 table[i].isaf_gen = 0;
445 iacqf_t *table;
448 table = (iacqf_t *)kmem_alloc(size * sizeof (*table), kmflag);
449 *tablep = table;
451 if (table == NULL)
455 mutex_init(&(table[i].iacqf_lock), NULL, MUTEX_DEFAULT, NULL);
456 table[i].iacqf_ipsacq = NULL;
501 "Unable to allocate %u entry IPv%u %s SADB hash table",
679 * Generic sadb table walker.
681 * Call "walkfn" for each SA in each bucket in "table"; pass the
691 sadb_walker(isaf_t *table, uint_t numentries,
699 mutex_enter(&table[i].isaf_lock);
701 for (entry = table[i].isaf_ipsa; entry != NULL;
704 (*walkfn)(&table[i], entry, cookie);
706 mutex_exit(&table[i].isaf_lock);
721 isaf_t *table = *tablep;
726 if (table == NULL)
730 mutex_enter(&table[i].isaf_lock);
731 while ((sa = table[i].isaf_ipsa) != NULL) {
743 table[i].isaf_gen++;
744 mutex_exit(&table[i].isaf_lock);
746 mutex_destroy(&(table[i].isaf_lock));
751 kmem_free(table, numentries * sizeof (*table));
1763 * Check ire table for local/non-local/broadcast.
2445 * the correct bucket in the outbound table.
2658 * association in the other hash table.
2759 /* Found SA in inbound table, pair will be in outbound. */
2995 * or the inbound hash table, so its cloned and put in both. If
3567 * pointers of the table that reference this SA.
3599 /* Collision in secondary table. */
3609 /* Collision in secondary table. */
7142 #define SADB_ALG_UPDATE_WALK(sadb, table) \
7143 sadb_walker((sadb).table, (sadb).sdb_hashsize, sadb_alg_update_cb, \
7588 * inbound table, then again after processing the outbound table.