Lines Matching defs:index

259 	int index;
262 index = ANON_HASH(ap->an_vp, ap->an_off);
263 ap->an_hash = anon_hash[index];
264 anon_hash[index] = ap;
379 * specified anon index.
412 * starting from the given index.
415 anon_get_next_ptr(struct anon_hdr *ahp, ulong_t *index)
424 i = *index;
437 *index = i;
454 *index = i + (j - chunkoff);
462 *index = size;
617 * startidx_p points to the index into the anon array of the first page
1348 ulong_t index;
1352 index = old_idx;
1353 if ((ap = anon_get_next_ptr(old, &index)) == NULL)
1356 ASSERT(!ANON_ISBUSY(anon_get_slot(old, index)));
1357 off = index - old_idx;
1399 ulong_t index, off;
1414 index = old_idx;
1419 if (anon_get_next_ptr(old, &index) == NULL)
1422 ASSERT(!ANON_ISBUSY(anon_get_slot(old, index)));
1424 * Now backup index to the beginning of the
1427 index = P2ALIGN(index, pgcnt);
1428 off = index - old_idx;
1439 if ((ap = anon_get_ptr(old, index + i)) == NULL) {
1446 (void) anon_set_ptr(old, index + i, ap,
1509 ulong_t index, off;
1521 index = an_idx;
1526 if (anon_get_next_ptr(ahp, &index) == NULL) {
1530 ASSERT(!ANON_ISBUSY(anon_get_slot(ahp, index)));
1532 * Now backup index to the beginning of the
1535 index = P2ALIGN(index, pgcnt);
1536 off = index - an_idx;
1591 anon_free(struct anon_hdr *ahp, ulong_t index, size_t size)
1600 old = index;
1601 if ((ap = anon_get_next_ptr(ahp, &index)) == NULL)
1604 ASSERT(!ANON_ISBUSY(anon_get_slot(ahp, index)));
1605 npages -= index - old;
1609 (void) anon_set_ptr(ahp, index, NULL, ANON_SLEEP);
1612 * Bump index and decrement page count
1614 index++;
1628 ulong_t index, off;
1641 index = an_idx;
1646 if (anon_get_next_ptr(ahp, &index) == NULL)
1649 ASSERT(!ANON_ISBUSY(anon_get_slot(ahp, index)));
1651 * Now backup index to the beginning of the
1654 index = P2ALIGN(index, pgcnt);
1655 off = index - an_idx;
1661 anon_decref_pages(ahp, index, szc);
1673 anon_disclaim(struct anon_map *amp, ulong_t index, size_t size,
1691 for (; npages > 0; index = (pgcnt == 1) ? index + 1 :
1692 P2ROUNDUP(index + 1, pgcnt), npages -= pgcnt) {
1695 * get anon pointer and index for the first valid entry
1696 * in the anon list, starting from "index"
1698 old_idx = index;
1699 if ((ap = anon_get_next_ptr(ahp, &index)) == NULL)
1705 npages -= index - old_idx;
1709 anon_array_enter(amp, index, &cookie);
1710 ap = anon_get_ptr(ahp, index);
1787 (void) anon_set_ptr(ahp, index,
1812 if (!IS_P2ALIGNED(index, pgcnt) || npages < pgcnt) {
1855 ap = anon_get_ptr(ahp, index + i);
2724 * of the new page. pg_idx can be used to index
2859 ulong_t p_index, index;
2873 index = start_index;
2898 ap = anon_get_ptr(amp->ahp, index);
2932 index++;
2956 anon_pages(amp->ahp, index, pg_cnt) == 0) {
3007 ASSERT(anon_get_ptr(amp->ahp, index) == NULL);
3008 (void) anon_set_ptr(amp->ahp, index, ap, ANON_SLEEP);
3011 index++;
3022 ASSERT(IS_P2ALIGNED(index, pg_cnt));
3051 ASSERT(anon_get_ptr(amp->ahp, index) == NULL);
3052 (void) anon_set_ptr(amp->ahp, index, ap, ANON_SLEEP);
3057 index++;
3287 * subpages. Page roots correspond to aligned index positions in anon map.
3568 * specified anon index.