Lines Matching refs:ndx
122 __delpair(HTAB *hashp, BUFHEAD *bufp, 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()
155 if (ndx == hashp->cndx) { in __delpair()
185 int n, ndx, retval; in __split_page() local
206 for (n = 1, ndx = 1; n < ino[0]; n += 2) { in __split_page()
225 ino[ndx] = copyto + ino[n] - ino[n + 1]; in __split_page()
226 ino[ndx + 1] = copyto; in __split_page()
229 ndx += 2; in __split_page()
466 u_int16_t *sp, ndx, ovfl_num; in __add_ovflpage() local
491 ndx = sp[0]; in __add_ovflpage()
497 sp[ndx + 4] = OFFSET(sp); in __add_ovflpage()
498 sp[ndx + 3] = FREESPACE(sp) - OVFLSIZE; in __add_ovflpage()
499 sp[ndx + 1] = ovfl_num; in __add_ovflpage()
500 sp[ndx + 2] = OVFLPAGE; in __add_ovflpage()
501 sp[0] = ndx + 2; in __add_ovflpage()
616 __ibitmap(HTAB *hashp, int pnum, int nbits, int ndx) in __ibitmap() argument
631 hashp->BITMAPS[ndx] = (u_int16_t)pnum; in __ibitmap()
632 hashp->mapp[ndx] = ip; in __ibitmap()
809 u_int16_t ndx; in __free_ovflpage() local
815 ndx = (((u_int16_t)addr) >> SPLITSHIFT); in __free_ovflpage()
817 (ndx ? hashp->SPARES[ndx - 1] : 0) + (addr & SPLITMASK) - 1; in __free_ovflpage()
902 fetch_bitmap(HTAB *hashp, int ndx) in fetch_bitmap() argument
904 if (ndx >= hashp->nmaps) in fetch_bitmap()
906 if ((hashp->mapp[ndx] = (u_int32_t *)malloc(hashp->BSIZE)) == NULL) in fetch_bitmap()
909 (char *)hashp->mapp[ndx], hashp->BITMAPS[ndx], 0, 1, 1)) { in fetch_bitmap()
910 free(hashp->mapp[ndx]); in fetch_bitmap()
913 return (hashp->mapp[ndx]); in fetch_bitmap()