Home
last modified time | relevance | path

Searched refs:hashp (Results 1 – 19 of 19) sorted by relevance

/freebsd-11-stable/lib/libc/db/hash/
HDhash.c101 HTAB *hashp; in __hash_open() local
111 if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB)))) in __hash_open()
113 hashp->fp = -1; in __hash_open()
121 hashp->flags = flags; in __hash_open()
124 if ((hashp->fp = _open(file, flags | O_CLOEXEC, mode)) == -1) in __hash_open()
126 new_table = _fstat(hashp->fp, &statbuf) == 0 && in __hash_open()
132 if (!(hashp = init_hash(hashp, file, info))) in __hash_open()
137 hashp->hash = info->hash; in __hash_open()
139 hashp->hash = __default_hash; in __hash_open()
141 hdrsize = _read(hashp->fp, &hashp->hdr, sizeof(HASHHDR)); in __hash_open()
[all …]
HDhash_page.c86 ((u_int16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(u_int16_t); \
87 ((u_int16_t *)(P))[2] = hashp->BSIZE; \
126 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) in __delpair() argument
135 return (__big_delete(hashp, bufp)); in __delpair()
139 newoff = hashp->BSIZE; in __delpair()
159 if (ndx == hashp->cndx) { in __delpair()
165 hashp->cndx -= 2; in __delpair()
172 hashp->NKEYS--; in __delpair()
183 __split_page(HTAB *hashp, u_int32_t obucket, u_int32_t nbucket) in __split_page() argument
193 copyto = (u_int16_t)hashp->BSIZE; in __split_page()
[all …]
HDhash_bigkey.c86 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert() argument
116 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
172 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
196 __big_delete(HTAB *hashp, BUFHEAD *bufp) in __big_delete() argument
221 rbufp = __get_buf(hashp, pageno, rbufp, 0); in __big_delete()
223 __free_ovflpage(hashp, last_bfp); in __big_delete()
253 FREESPACE(bp) = hashp->BSIZE - PAGE_META(n); in __big_delete()
254 OFFSET(bp) = hashp->BSIZE; in __big_delete()
258 __free_ovflpage(hashp, rbufp); in __big_delete()
260 __free_ovflpage(hashp, last_bfp); in __big_delete()
[all …]
HDhash_buf.c87 #define MRU hashp->bufhead.next
88 #define LRU hashp->bufhead.prev
90 #define MRU_INSERT(B) BUF_INSERT((B), &hashp->bufhead)
103 __get_buf(HTAB *hashp, u_int32_t addr, in __get_buf() argument
122 segment_ndx = addr & (hashp->SGSIZE - 1); in __get_buf()
125 segp = hashp->dir[addr >> hashp->SSHIFT]; in __get_buf()
131 is_disk = is_disk_mask || !hashp->new_file; in __get_buf()
135 bp = newbuf(hashp, addr, prev_bp); in __get_buf()
137 __get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0)) in __get_buf()
156 newbuf(HTAB *hashp, u_int32_t addr, BUFHEAD *prev_bp) in newbuf() argument
[all …]
HDhash.h170 (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__log2((B)+1)-1] : 0)
/freebsd-11-stable/contrib/binutils/bfd/
HDcoff-aux.c61 string, copy, collect, hashp) in coff_m68k_aux_link_add_one_symbol() argument
71 struct bfd_link_hash_entry **hashp;
82 if (hashp != NULL && *hashp != NULL)
84 h = *hashp;
92 if (hashp != NULL)
93 *hashp = NULL;
106 if (hashp != (struct bfd_link_hash_entry **) NULL)
107 *hashp = h;
134 hashp);
HDhash.c424 struct bfd_hash_entry *hashp; in bfd_hash_lookup() local
441 for (hashp = table->table[index]; in bfd_hash_lookup()
442 hashp != NULL; in bfd_hash_lookup()
443 hashp = hashp->next) in bfd_hash_lookup()
445 if (hashp->hash == hash in bfd_hash_lookup()
446 && strcmp (hashp->string, string) == 0) in bfd_hash_lookup()
447 return hashp; in bfd_hash_lookup()
453 hashp = (*table->newfunc) (NULL, table, string); in bfd_hash_lookup()
454 if (hashp == NULL) in bfd_hash_lookup()
469 hashp->string = string; in bfd_hash_lookup()
[all …]
HDmerge.c139 struct sec_merge_hash_entry *hashp; in sec_merge_hash_lookup() local
193 for (hashp = (struct sec_merge_hash_entry *) table->table.table[index]; in sec_merge_hash_lookup()
194 hashp != NULL; in sec_merge_hash_lookup()
195 hashp = (struct sec_merge_hash_entry *) hashp->root.next) in sec_merge_hash_lookup()
197 if (hashp->root.hash == hash in sec_merge_hash_lookup()
198 && len == hashp->len in sec_merge_hash_lookup()
199 && memcmp (hashp->root.string, string, len) == 0) in sec_merge_hash_lookup()
203 if (hashp->alignment < alignment) in sec_merge_hash_lookup()
208 hashp->len = 0; in sec_merge_hash_lookup()
209 hashp->alignment = 0; in sec_merge_hash_lookup()
[all …]
HDi386linux.c329 copy, collect, hashp) in linux_add_one_symbol() argument
339 struct bfd_link_hash_entry **hashp;
377 if (hashp != NULL)
378 *hashp = (struct bfd_link_hash_entry *) h;
392 hashp))
HDsparclinux.c330 copy, collect, hashp) in linux_add_one_symbol() argument
340 struct bfd_link_hash_entry **hashp;
378 if (hashp != NULL)
379 *hashp = (struct bfd_link_hash_entry *) h;
393 hashp))
HDlinker.c1533 struct bfd_link_hash_entry **hashp) in _bfd_generic_link_add_one_symbol() argument
1560 if (hashp != NULL && *hashp != NULL) in _bfd_generic_link_add_one_symbol()
1561 h = *hashp; in _bfd_generic_link_add_one_symbol()
1570 if (hashp != NULL) in _bfd_generic_link_add_one_symbol()
1571 *hashp = NULL; in _bfd_generic_link_add_one_symbol()
1585 if (hashp != NULL) in _bfd_generic_link_add_one_symbol()
1586 *hashp = h; in _bfd_generic_link_add_one_symbol()
1988 if (hashp != NULL) in _bfd_generic_link_add_one_symbol()
1989 *hashp = sub; in _bfd_generic_link_add_one_symbol()
HDlibcoff.h927 value, string, cp, coll, hashp)\ argument
929 (info, abfd, name, flags, section, value, string, cp, coll, hashp))
HDsunos.c1060 struct bfd_link_hash_entry **hashp) in sunos_add_one_symbol() argument
1075 if (hashp != NULL) in sunos_add_one_symbol()
1076 *hashp = (struct bfd_link_hash_entry *) h; in sunos_add_one_symbol()
1144 hashp)) in sunos_add_one_symbol()
HDChangeLog-94955684 SHARABLE_CONFLICTS specially if BSF_CONSTRUCTOR is set. Set hashp
7099 * linker.c (_bfd_generic_link_add_one_symbol): If hashp and *hashp
7101 in the hash table and has stored the entry in *hashp.
HDChangeLog-00014586 Use hashp->root.next, not hashp->next to walk the hash chain.
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDdsl_bookmark.c40 char *hashp; in dsl_bookmark_hold_ds() local
44 hashp = strchr(fullname, '#'); in dsl_bookmark_hold_ds()
45 if (hashp == NULL) in dsl_bookmark_hold_ds()
48 *shortnamep = hashp + 1; in dsl_bookmark_hold_ds()
51 (void) strlcpy(buf, fullname, hashp - fullname + 1); in dsl_bookmark_hold_ds()
HDzfs_ioctl.c1077 char *hashp = strchr(name, '#'); in zfs_secpolicy_bookmark() local
1079 if (hashp == NULL) { in zfs_secpolicy_bookmark()
1083 *hashp = '\0'; in zfs_secpolicy_bookmark()
1086 *hashp = '#'; in zfs_secpolicy_bookmark()
1111 char *hashp = strchr(name, '#'); in zfs_secpolicy_destroy_bookmarks() local
1114 if (hashp == NULL) { in zfs_secpolicy_destroy_bookmarks()
1119 *hashp = '\0'; in zfs_secpolicy_destroy_bookmarks()
1122 *hashp = '#'; in zfs_secpolicy_destroy_bookmarks()
/freebsd-11-stable/sys/fs/nfsserver/
HDnfs_nfsdserv.c511 u_long *hashp; in nfsrvd_lookup() local
530 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_lookup()
531 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_lookup()
998 u_long *hashp; in nfsrvd_create() local
1008 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_create()
1009 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_create()
1168 u_long *hashp, cnflags; in nfsrvd_mknod() local
1219 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_mknod()
1220 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_mknod()
1381 u_long *hashp; in nfsrvd_remove() local
[all …]
HDnfs_nfsdsubs.c1829 nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp, in nfsrv_parsename() argument
1840 if (hashp != NULL) in nfsrv_parsename()
1841 *hashp = 0; in nfsrv_parsename()
2022 if (hashp != NULL) in nfsrv_parsename()
2023 *hashp = hash; in nfsrv_parsename()