Lines Matching defs:index

6067 	int		nsize, active_buckets, index, copycount;
6144 /* get new index */
6146 kret = vfs_drt_get_index(&cmap, offset, &index, 1);
6150 index = 0;
6153 DRT_HASH_COPY(ocmap, i, cmap, index);
6199 int index;
6203 index = DRT_HASH(cmap, offset);
6211 if (DRT_HASH_VACANT(cmap, index))
6217 if (DRT_HASH_GET_ADDRESS(cmap, index) == offset) {
6218 *indexp = index;
6225 index = DRT_HASH_NEXT(cmap, index);
6244 u_int32_t index;
6256 index = DRT_HASH(cmap, offset);
6258 /* scan from the index forwards looking for a vacant slot */
6261 if (DRT_HASH_VACANT(cmap, index) || DRT_HASH_GET_COUNT(cmap,index) == 0) {
6263 if (index < cmap->scm_lastclean)
6264 cmap->scm_lastclean = index;
6265 DRT_HASH_SET_ADDRESS(cmap, index, offset);
6266 DRT_HASH_SET_COUNT(cmap, index, 0);
6267 DRT_BITVECTOR_CLEAR(cmap, index);
6268 *indexp = index;
6273 index = DRT_HASH_NEXT(cmap, index);
6305 int i, index, pgoff, pgcount, setcount, ecount;
6335 * Get the hashtable index for this offset.
6340 kret = vfs_drt_get_index(cmapp, offset, &index, 0);
6361 ecount = DRT_HASH_GET_COUNT(cmap, index);
6364 if (!DRT_HASH_TEST_BIT(cmap, index, pgoff + i)) {
6365 DRT_HASH_SET_BIT(cmap, index, pgoff + i);
6370 if (DRT_HASH_TEST_BIT(cmap, index, pgoff + i)) {
6371 DRT_HASH_CLEAR_BIT(cmap, index, pgoff + i);
6377 DRT_HASH_SET_COUNT(cmap, index, ecount);
6456 int index, i, fs, ls;
6465 index = DRT_HASH(cmap, offset);
6467 if (DRT_HASH_VACANT(cmap, index) || (DRT_HASH_GET_COUNT(cmap, index) == 0))
6474 if (DRT_HASH_TEST_BIT(cmap, index, i)) {
6484 if (!DRT_HASH_TEST_BIT(cmap, index, i))
6489 offset = DRT_HASH_GET_ADDRESS(cmap, index) + (PAGE_SIZE * fs);
6492 cmap->scm_lastclean = index;
6578 int index, i;
6581 for (index = 0; index < cmap->scm_modulus; index++) {
6582 if (DRT_HASH_VACANT(cmap, index))
6586 if (DRT_HASH_TEST_BIT(cmap, index, i))
6589 if (bits_on != DRT_HASH_GET_COUNT(cmap, index))
6590 panic("bits_on = %d, index = %d\n", bits_on, index);