Lines Matching refs:ndx
574 int n, ndx, off, size; in hash_access() local
592 for (bp = (u_int16_t *)rbufp->page, n = *bp++, ndx = 1; ndx < n;) in hash_access()
603 ndx += 2; in hash_access()
613 ndx = 1; in hash_access()
616 if ((ndx = in hash_access()
617 __find_bigpair(hashp, rbufp, ndx, kp, size)) > 0) in hash_access()
619 if (ndx == -2) { in hash_access()
623 ndx = 0; in hash_access()
635 ndx = 1; in hash_access()
668 if (bp[ndx + 1] < REAL_KEY) { in hash_access()
669 if (__big_return(hashp, rbufp, ndx, val, 0)) in hash_access()
672 val->data = (u_char *)rbufp->page + (int)bp[ndx + 1]; in hash_access()
673 val->size = bp[ndx] - bp[ndx + 1]; in hash_access()
677 if ((__delpair(hashp, rbufp, ndx)) || in hash_access()
684 if (__delpair(hashp, rbufp, ndx)) in hash_access()
700 u_int16_t *bp, ndx; in hash_seq() local
764 ndx = hashp->cndx; in hash_seq()
765 if (bp[ndx + 1] < REAL_KEY) { in hash_seq()
771 key->data = (u_char *)hashp->cpage->page + bp[ndx]; in hash_seq()
772 key->size = (ndx > 1 ? bp[ndx - 1] : hashp->BSIZE) - bp[ndx]; in hash_seq()
773 data->data = (u_char *)hashp->cpage->page + bp[ndx + 1]; in hash_seq()
774 data->size = bp[ndx] - bp[ndx + 1]; in hash_seq()