Searched refs:hashp (Results 1 – 10 of 10) sorted by relevance
/freebsd/lib/libc/db/hash/ |
H A D | hash.c | 128 if (!(hashp = init_hash(hashp, file, info))) in __hash_open() 167 bpages = (hashp->SPARES[hashp->OVFL_POINT] + in __hash_open() 292 hashp->BSHIFT = __log2(hashp->BSIZE); in init_hash() 299 hashp->BSIZE = 1 << hashp->BSHIFT; in init_hash() 390 hashp->NKEYS, hashp->MAX_BUCKET, hashp->nsegs); in hdestroy() 400 if (__buf_free(hashp, 1, hashp->save_file)) in hdestroy() 406 free(hashp->dir[--hashp->nsegs]); in hdestroy() 459 if (hashp->fp != -1 && _fsync(hashp->fp) != 0) in hash_sync() 823 hashp->SPARES[spare_ndx] = hashp->SPARES[hashp->OVFL_POINT]; in __expand_table() 829 hashp->LOW_MASK = hashp->HIGH_MASK; in __expand_table() [all …]
|
H A D | hash_page.c | 168 hashp->NKEYS--; in __delpair() 450 hashp->NKEYS++; in __addel() 452 (hashp->NKEYS / (hashp->MAX_BUCKET + 1) > hashp->FFACTOR)) in __addel() 520 fd = hashp->fp; in __get_page() 576 if ((hashp->fp == -1) && open_temp(hashp)) in __put_page() 578 fd = hashp->fp; in __put_page() 623 hashp->nmaps++; in __ibitmap() 667 first_page = hashp->LAST_FREED >>(hashp->BSHIFT + BYTE_SHIFT); in overflow_page() 692 hashp->LAST_FREED = hashp->SPARES[splitnum]; in overflow_page() 705 hashp->SPARES[splitnum] = hashp->SPARES[splitnum-1]; in overflow_page() [all …]
|
H A D | hash_bigkey.c | 258 hashp->NKEYS--; in __big_delete() 406 hashp->cbucket++; in __big_return() 407 hashp->cndx = 1; in __big_return() 409 hashp->cpage = __get_buf(hashp, in __big_return() 413 hashp->cndx = 1; in __big_return() 456 if (hashp->tmp_buf) in collect_data() 461 hashp->cndx = 1; in collect_data() 464 hashp->cbucket++; in collect_data() 466 hashp->cpage = in collect_data() 468 if (!hashp->cpage) in collect_data() [all …]
|
H A D | hash_buf.c | 83 #define MRU hashp->bufhead.next 121 segp = hashp->dir[addr >> hashp->SSHIFT]; in __get_buf() 177 hashp->nbufs++; in newbuf() 187 if (hashp->nbufs || (bp->flags & BUF_PIN) || bp == hashp->cpage) { in newbuf() 195 if (hashp->nbufs) in newbuf() 196 hashp->nbufs--; in newbuf() 225 segp = hashp->dir[bp->addr >> hashp->SSHIFT]; in newbuf() 230 if (hashp->new_file && in newbuf() 298 bfp = &(hashp->bufhead); in __buf_init() 299 npages = (nbytes + hashp->BSIZE - 1) >> hashp->BSHIFT; in __buf_init() [all …]
|
H A D | hash.h | 169 (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__log2((B)+1)-1] : 0)
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdserv.c | 596 u_long *hashp; in nfsrvd_lookup() local 1159 u_long *hashp; in nfsrvd_create() local 1329 u_long *hashp, cnflags; in nfsrvd_mknod() local 1543 u_long *hashp; in nfsrvd_remove() local 1629 u_long *hashp; in nfsrvd_rename() local 1798 u_long *hashp; in nfsrvd_link() local 1905 u_long *hashp; in nfsrvd_symlink() local 2026 u_long *hashp; in nfsrvd_mkdir() local 2838 u_long *hashp; in nfsrvd_open() local 3706 u_long *hashp; in nfsrvd_secinfo() local [all …]
|
H A D | nfs_nfsdsubs.c | 1884 nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp, in nfsrv_parsename() argument 1895 if (hashp != NULL) in nfsrv_parsename() 1896 *hashp = 0; in nfsrv_parsename() 2078 if (hashp != NULL) in nfsrv_parsename() 2079 *hashp = hash; in nfsrv_parsename()
|
H A D | nfs_nfsdport.c | 4254 u_long *hashp; in nfsrv_dscreate() local 4261 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_dscreate() 4637 u_long *hashp; in nfsrv_dsremove() local 4647 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_dsremove() 6411 u_long *hashp; in nfsrv_pnfslookupds() local 6420 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_pnfslookupds()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_bookmark.c | 44 char *hashp; in dsl_bookmark_hold_ds() local 48 hashp = strchr(fullname, '#'); in dsl_bookmark_hold_ds() 49 if (hashp == NULL) in dsl_bookmark_hold_ds() 52 *shortnamep = hashp + 1; in dsl_bookmark_hold_ds() 55 (void) strlcpy(buf, fullname, hashp - fullname + 1); in dsl_bookmark_hold_ds()
|
H A D | zfs_ioctl.c | 966 char *hashp = strchr(name, '#'); in zfs_secpolicy_bookmark() local 968 if (hashp == NULL) { in zfs_secpolicy_bookmark() 972 *hashp = '\0'; in zfs_secpolicy_bookmark() 975 *hashp = '#'; in zfs_secpolicy_bookmark() 992 char *hashp = strchr(name, '#'); in zfs_secpolicy_destroy_bookmarks() local 995 if (hashp == NULL) { in zfs_secpolicy_destroy_bookmarks() 1000 *hashp = '\0'; in zfs_secpolicy_destroy_bookmarks() 1003 *hashp = '#'; in zfs_secpolicy_destroy_bookmarks()
|