Lines Matching defs:coda_nc_hash
102 struct coda_hash *coda_nc_hash; /* hash table of cfscache pointers */
143 CODA_ALLOC(coda_nc_hash, struct coda_hash *, TOTAL_HASH_SIZE);
146 memset(coda_nc_hash, 0, TOTAL_HASH_SIZE);
155 LIST_INIT(&coda_nc_hash[i].head);
180 LIST_FOREACH(cncp, &coda_nc_hash[hash].head, hash)
236 hash = CODA_NC_HASH(name, namelen, dcp);
253 coda_nc_hash[CODA_NC_HASH(cncp->name, cncp->namelen, cncp->dcp)].length--;
277 LIST_INSERT_HEAD(&coda_nc_hash[hash].head, cncp, hash);
278 coda_nc_hash[hash].length++; /* Used for tuning */
309 hash = CODA_NC_HASH(name, namelen, dcp);
325 LIST_INSERT_HEAD(&coda_nc_hash[hash].head, cncp, hash);
397 ncncp = LIST_FIRST(&coda_nc_hash[i].head);
402 coda_nc_hash[i].length--; /* Used for tuning */
431 ncncp = LIST_FIRST(&coda_nc_hash[i].head);
436 coda_nc_hash[i].length--; /* Used for tuning */
488 hash = CODA_NC_HASH(name, namelen, dcp);
492 coda_nc_hash[hash].length--; /* Used for tuning */
533 hash = CODA_NC_HASH(cncp->name, cncp->namelen, cncp->dcp);
534 coda_nc_hash[hash].length--; /* For performance tuning */
598 coda_nc_hash[i].length = 0;
617 LIST_FOREACH(cncp, &coda_nc_hash[hash].head, hash) {
631 if (coda_nc_hash[i].length) {
632 sum += coda_nc_hash[i].length;
637 if (coda_nc_hash[i].length > xmax)
638 xmax = coda_nc_hash[i].length;
656 if (coda_nc_hash[i].length) {
657 temp = coda_nc_hash[i].length - ave;
683 CODA_FREE(coda_nc_hash,TOTAL_HASH_SIZE);
707 LIST_FOREACH(cncp, &coda_nc_hash[i].head, hash) {