Lines Matching refs:NBUCKETS

73 #define NBUCKETS               1009     /*%< how many buckets for names/addrs */
142 dns_adbnamelist_t names[NBUCKETS];
143 dns_adbnamelist_t deadnames[NBUCKETS];
145 isc_mutex_t namelocks[NBUCKETS];
147 isc_boolean_t name_sd[NBUCKETS];
149 unsigned int name_refcnt[NBUCKETS];
156 dns_adbentrylist_t entries[NBUCKETS];
157 dns_adbentrylist_t deadentries[NBUCKETS];
158 isc_mutex_t entrylocks[NBUCKETS];
159 isc_boolean_t entry_sd[NBUCKETS]; /*%< shutting down */
160 unsigned int entry_refcnt[NBUCKETS];
846 for (bucket = 0; bucket < NBUCKETS; bucket++) {
891 for (bucket = 0; bucket < NBUCKETS; bucket++) {
1603 bucket = dns_name_fullhash(name, ISC_FALSE) % NBUCKETS;
1645 bucket = isc_sockaddr_hash(addr, ISC_TRUE) % NBUCKETS;
1999 DESTROYMUTEXBLOCK(adb->entrylocks, NBUCKETS);
2000 DESTROYMUTEXBLOCK(adb->namelocks, NBUCKETS);
2083 result = isc_mutexblock_init(adb->namelocks, NBUCKETS);
2086 for (i = 0; i < NBUCKETS; i++) {
2093 for (i = 0; i < NBUCKETS; i++) {
2100 result = isc_mutexblock_init(adb->entrylocks, NBUCKETS);
2147 DESTROYMUTEXBLOCK(adb->entrylocks, NBUCKETS);
2150 DESTROYMUTEXBLOCK(adb->namelocks, NBUCKETS);
2754 for (i = 0; i < NBUCKETS; i++)
2756 for (i = 0; i < NBUCKETS; i++)
2782 for (i = 0; i < NBUCKETS; i++)
2784 for (i = 0; i < NBUCKETS; i++)
2790 for (i = 0; i < NBUCKETS; i++) {
2834 for (i = 0; i < NBUCKETS; i++) {
2846 for (i = 0; i < NBUCKETS; i++)
2848 for (i = 0; i < NBUCKETS; i++)
3577 for (i = 0; i < NBUCKETS; i++)
3579 for (i = 0; i < NBUCKETS; i++)
3598 bucket = dns_name_hash(name, ISC_FALSE) % NBUCKETS;