Lines Matching refs:ndx
121 int ndx) in __delpair() argument
130 if (bp[ndx + 1] < REAL_KEY) in __delpair()
132 if (ndx != 1) in __delpair()
133 newoff = bp[ndx - 1]; in __delpair()
136 pairlen = newoff - bp[ndx + 1]; in __delpair()
138 if (ndx != (n - 1)) { in __delpair()
143 memmove(dst, src, bp[ndx + 1] - OFFSET(bp)); in __delpair()
146 for (i = ndx + 2; i <= n; i += 2) { in __delpair()
179 int ndx, retval; in __split_page() local
200 for (n = 1, ndx = 1; n < ino[0]; n += 2) { in __split_page()
219 ino[ndx] = copyto + ino[n] - ino[n + 1]; in __split_page()
220 ino[ndx + 1] = copyto; in __split_page()
223 ndx += 2; in __split_page()
458 __uint16_t ndx, ovfl_num; in __add_ovflpage() local
483 ndx = sp[0]; in __add_ovflpage()
489 sp[ndx + 4] = OFFSET(sp); in __add_ovflpage()
490 sp[ndx + 3] = FREESPACE(sp) - OVFLSIZE; in __add_ovflpage()
491 sp[ndx + 1] = ovfl_num; in __add_ovflpage()
492 sp[ndx + 2] = OVFLPAGE; in __add_ovflpage()
493 sp[0] = ndx + 2; in __add_ovflpage()
619 int ndx) in __ibitmap() argument
634 hashp->BITMAPS[ndx] = (__uint16_t)pnum; in __ibitmap()
635 hashp->mapp[ndx] = ip; in __ibitmap()
806 __uint16_t ndx; in __free_ovflpage() local
812 ndx = (((__uint16_t)addr) >> SPLITSHIFT); in __free_ovflpage()
814 (ndx ? hashp->SPARES[ndx - 1] : 0) + (addr & SPLITMASK) - 1; in __free_ovflpage()
893 fetch_bitmap(HTAB *hashp, int ndx) in fetch_bitmap() argument
895 if (ndx >= hashp->nmaps) in fetch_bitmap()
897 if ((hashp->mapp[ndx] = (__uint32_t *)malloc(hashp->BSIZE)) == NULL) in fetch_bitmap()
900 (char *)hashp->mapp[ndx], hashp->BITMAPS[ndx], 0, 1, 1)) { in fetch_bitmap()
901 free(hashp->mapp[ndx]); in fetch_bitmap()
904 return (hashp->mapp[ndx]); in fetch_bitmap()