Home
last modified time | relevance | path

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

12

/netbsd-src/lib/libc/db/hash/
H A Dhash.c100 HTAB *hashp; in __hash_open() local
111 if (!(hashp = calloc(1, sizeof(HTAB)))) in __hash_open()
113 hashp->fp = -1; in __hash_open()
121 hashp->flags = flags; in __hash_open()
131 if ((hashp->fp = __dbopen(file, flags, mode, &statbuf)) == -1) in __hash_open()
136 if (!(hashp = init_hash(hashp, file, info))) in __hash_open()
141 hashp->hash = info->hash; in __hash_open()
143 hashp->hash = __default_hash; in __hash_open()
145 hdrsize = read(hashp->fp, &hashp->hdr, sizeof(HASHHDR)); in __hash_open()
147 swap_header(hashp); in __hash_open()
[all …]
H A Dhash_page.c86 _DIAGASSERT((size_t)HASH_BSIZE(hashp) >= temp); \
87 ((uint16_t *)(void *)(P))[1] = (uint16_t)(HASH_BSIZE(hashp) - temp); \
88 ((uint16_t *)(void *)(P))[2] = HASH_BSIZE(hashp); \
133 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) in __delpair() argument
144 return (__big_delete(hashp, bufp)); in __delpair()
148 newoff = HASH_BSIZE(hashp); in __delpair()
175 hashp->NKEYS--; in __delpair()
186 __split_page(HTAB *hashp, uint32_t obucket, uint32_t nbucket) in __split_page() argument
197 copyto = HASH_BSIZE(hashp); in __split_page()
198 off = HASH_BSIZE(hashp); in __split_page()
[all …]
H A Dhash_bigkey.c86 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert() argument
125 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
192 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
219 __big_delete(HTAB *hashp, BUFHEAD *bufp) in __big_delete() argument
245 rbufp = __get_buf(hashp, (uint32_t)pageno, rbufp, 0); in __big_delete()
247 __free_ovflpage(hashp, last_bfp); in __big_delete()
277 temp = HASH_BSIZE(hashp) - PAGE_META(n); in __big_delete()
280 OFFSET(bp) = HASH_BSIZE(hashp); in __big_delete()
284 __free_ovflpage(hashp, rbufp); in __big_delete()
286 __free_ovflpage(hashp, last_bfp); in __big_delete()
[all …]
H A Dhash_buf.c88 #define MRU hashp->bufhead.next
89 #define LRU hashp->bufhead.prev
91 #define MRU_INSERT(B) BUF_INSERT((B), &hashp->bufhead)
105 HTAB *hashp, in __get_buf() argument
126 segment_ndx = addr & (hashp->SGSIZE - 1); in __get_buf()
129 segp = hashp->dir[addr >> hashp->SSHIFT]; in __get_buf()
133 is_disk = is_disk_mask || !hashp->new_file; in __get_buf()
137 bp = newbuf(hashp, addr, prev_bp); in __get_buf()
139 __get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0)) in __get_buf()
158 newbuf(HTAB *hashp, uint32_t addr, BUFHEAD *prev_bp) in newbuf() argument
[all …]
H A Dhash.h179 (B) + hashp->HDRPAGES + \
180 ((B) ? hashp->SPARES[__log2((uint32_t)((B)+1))-1] : 0)
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Dhash.c464 struct bfd_hash_entry *hashp; in bfd_hash_lookup() local
470 for (hashp = table->table[_index]; in bfd_hash_lookup()
471 hashp != NULL; in bfd_hash_lookup()
472 hashp = hashp->next) in bfd_hash_lookup()
474 if (hashp->hash == hash in bfd_hash_lookup()
475 && strcmp (hashp->string, string) == 0) in bfd_hash_lookup()
476 return hashp; in bfd_hash_lookup()
507 struct bfd_hash_entry *hashp; in bfd_hash_insert() local
510 hashp = (*table->newfunc) (NULL, table, string); in bfd_hash_insert()
511 if (hashp == NULL) in bfd_hash_insert()
[all …]
H A Dmerge.c143 struct sec_merge_hash_entry *hashp; in sec_merge_hash_lookup() local
197 for (hashp = (struct sec_merge_hash_entry *) table->table.table[_index]; in sec_merge_hash_lookup()
198 hashp != NULL; in sec_merge_hash_lookup()
199 hashp = (struct sec_merge_hash_entry *) hashp->root.next) in sec_merge_hash_lookup()
201 if (hashp->root.hash == hash in sec_merge_hash_lookup()
202 && len == hashp->len in sec_merge_hash_lookup()
203 && memcmp (hashp->root.string, string, len) == 0) in sec_merge_hash_lookup()
207 if (hashp->alignment < alignment) in sec_merge_hash_lookup()
212 hashp->len = 0; in sec_merge_hash_lookup()
213 hashp->alignment = 0; in sec_merge_hash_lookup()
[all …]
H A Dlinker.c1388 struct bfd_link_hash_entry **hashp) in _bfd_generic_link_add_one_symbol() argument
1436 if (hashp != NULL && *hashp != NULL) in _bfd_generic_link_add_one_symbol()
1437 h = *hashp; in _bfd_generic_link_add_one_symbol()
1446 if (hashp != NULL) in _bfd_generic_link_add_one_symbol()
1447 *hashp = NULL; in _bfd_generic_link_add_one_symbol()
1461 if (hashp != NULL) in _bfd_generic_link_add_one_symbol()
1462 *hashp = h; in _bfd_generic_link_add_one_symbol()
1818 if (hashp != NULL) in _bfd_generic_link_add_one_symbol()
1819 *hashp = sub; in _bfd_generic_link_add_one_symbol()
H A Dlibcoff.h967 value, string, cp, coll, hashp)\ argument
969 (info, abfd, name, flags, section, value, string, cp, coll, hashp))
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Dhash.c553 struct bfd_hash_entry *hashp; in bfd_hash_lookup() local
559 for (hashp = table->table[_index]; in bfd_hash_lookup()
560 hashp != NULL; in bfd_hash_lookup()
561 hashp = hashp->next) in bfd_hash_lookup()
563 if (hashp->hash == hash in bfd_hash_lookup()
564 && strcmp (hashp->string, string) == 0) in bfd_hash_lookup()
565 return hashp; in bfd_hash_lookup()
608 struct bfd_hash_entry *hashp; in bfd_hash_insert() local
611 hashp = (*table->newfunc) (NULL, table, string); in bfd_hash_insert()
612 if (hashp == NULL) in bfd_hash_insert()
[all …]
H A Dmerge.c234 struct sec_merge_hash_entry *hashp; in sec_merge_hash_insert() local
236 hashp = (struct sec_merge_hash_entry *) in sec_merge_hash_insert()
238 if (hashp == NULL) in sec_merge_hash_insert()
241 memcpy (hashp->str, string, len); in sec_merge_hash_insert()
242 hashp->len = len; in sec_merge_hash_insert()
243 hashp->alignment = 0; in sec_merge_hash_insert()
244 hashp->u.suffix = NULL; in sec_merge_hash_insert()
245 hashp->next = NULL; in sec_merge_hash_insert()
250 table->values[_index] = hashp; in sec_merge_hash_insert()
252 return hashp; in sec_merge_hash_insert()
[all …]
H A Dlinker.c1391 struct bfd_link_hash_entry **hashp) in _bfd_generic_link_add_one_symbol() argument
1439 if (hashp != NULL && *hashp != NULL) in _bfd_generic_link_add_one_symbol()
1440 h = *hashp; in _bfd_generic_link_add_one_symbol()
1449 if (hashp != NULL) in _bfd_generic_link_add_one_symbol()
1450 *hashp = NULL; in _bfd_generic_link_add_one_symbol()
1464 if (hashp != NULL) in _bfd_generic_link_add_one_symbol()
1465 *hashp = h; in _bfd_generic_link_add_one_symbol()
1829 if (hashp != NULL) in _bfd_generic_link_add_one_symbol()
1830 *hashp = sub; in _bfd_generic_link_add_one_symbol()
H A Dlibcoff.h1009 value, string, cp, coll, hashp)\ argument
1011 (info, abfd, name, flags, section, value, string, cp, coll, hashp))
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Ddsl_bookmark.c38 char *hashp; in dsl_bookmark_hold_ds() local
42 hashp = strchr(fullname, '#'); in dsl_bookmark_hold_ds()
43 if (hashp == NULL) in dsl_bookmark_hold_ds()
46 *shortnamep = hashp + 1; in dsl_bookmark_hold_ds()
49 (void) strlcpy(buf, fullname, hashp - fullname + 1); in dsl_bookmark_hold_ds()
H A Dzfs_ioctl.c1081 char *hashp = strchr(name, '#'); in zfs_secpolicy_bookmark() local
1083 if (hashp == NULL) { in zfs_secpolicy_bookmark()
1087 *hashp = '\0'; in zfs_secpolicy_bookmark()
1090 *hashp = '#'; in zfs_secpolicy_bookmark()
1107 char *hashp = strchr(name, '#'); in zfs_secpolicy_destroy_bookmarks() local
1110 if (hashp == NULL) { in zfs_secpolicy_destroy_bookmarks()
1115 *hashp = '\0'; in zfs_secpolicy_destroy_bookmarks()
1118 *hashp = '#'; in zfs_secpolicy_destroy_bookmarks()
/netbsd-src/external/gpl2/xcvs/dist/src/
H A Dhash.c30 hashp (const char *key) in hashp() function
285 hashval = hashp (p->key); in insert_before()
357 head = list->hasharray[hashp (key)]; in findnode()
386 head = list->hasharray[hashp (key)]; in findnode_fn()
H A DChangeLog-919424 * hash.c (hashp): Replace hash function with one from p436 of the
H A DChangeLog-963372 rewritten to not start out by calling hashp.
3398 which is already done in the hashp function.
3404 * hash.c (findnode_fn): one more place to avoid calling hashp()
3765 assertion in hashp take care of it.
3960 (hashp): assert (key != NULL)
H A DChangeLog-9395204 * hash.c (hashp): Tweak hash function so that findnode_fn works.
2154 * commit.c (fsortcmp), find_names (fsortcmp), hash.c (hashp,
/netbsd-src/sys/fs/nfs/server/
H A Dnfs_nfsdserv.c504 u_long *hashp; in nfsrvd_lookup() local
523 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_lookup()
524 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_lookup()
990 u_long *hashp; in nfsrvd_create() local
1000 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_create()
1001 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_create()
1160 u_long *hashp, cnflags; in nfsrvd_mknod() local
1211 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_mknod()
1212 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_mknod()
1373 u_long *hashp; in nfsrvd_remove() local
[all …]
H A Dnfs_nfsdsubs.c1836 nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp, in nfsrv_parsename() argument
1847 if (hashp != NULL) in nfsrv_parsename()
1848 *hashp = 0; in nfsrv_parsename()
2029 if (hashp != NULL) in nfsrv_parsename()
2030 *hashp = hash; in nfsrv_parsename()
/netbsd-src/sys/kern/
H A Dvfs_vnode.c1411 struct hashhead *hashp; in vcache_hash_lookup()
1416 hashp = &vcache_hashtab[hash & vcache_hashmask]; in vcache_hash_lookup()
1417 SLIST_FOREACH(vip, hashp, vi_hash) { in vcache_hash_lookup()
1406 struct hashhead *hashp; vcache_hash_lookup() local
/netbsd-src/external/gpl3/binutils.old/dist/bfd/doc/
H A Dcoffcode.texi608 value, string, cp, coll, hashp)\
610 (info, abfd, name, flags, section, value, string, cp, coll, hashp))
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dfunction.c5685 record_insns (rtx_insn *insns, rtx end, hash_table<insn_cache_hasher> **hashp) in record_insns() argument
5688 hash_table<insn_cache_hasher> *hash = *hashp; in record_insns()
5691 *hashp = hash = hash_table<insn_cache_hasher>::create_ggc (17); in record_insns()
/netbsd-src/external/gpl3/gdb.old/dist/bfd/
H A DChangeLog-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.

12