Searched refs:hashp (Results 1 – 5 of 5) sorted by relevance
/picolibc-latest/newlib/libc/search/ |
D | hash.c | 104 HTAB *hashp; local 120 if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB)))) 122 hashp->fp = -1; 130 hashp->flags = flags; 144 if ((hashp->fp = open(file, flags, mode)) == -1) 151 fstat64(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0) 153 fstat(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0) 158 (void)fcntl(hashp->fp, F_SETFD, 1); 162 if (!(hashp = init_hash(hashp, file, (HASHINFO *)info))) 167 hashp->hash = info->hash; [all …]
|
D | hash_page.c | 79 ((__uint16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(__uint16_t); \ 80 ((__uint16_t *)(P))[2] = hashp->BSIZE; \ 119 __delpair(HTAB *hashp, in __delpair() argument 131 return (__big_delete(hashp, bufp)); in __delpair() 135 newoff = hashp->BSIZE; in __delpair() 160 hashp->NKEYS--; in __delpair() 171 __split_page(HTAB *hashp, in __split_page() argument 183 copyto = (__uint16_t)hashp->BSIZE; in __split_page() 184 off = (__uint16_t)hashp->BSIZE; in __split_page() 185 old_bufp = __get_buf(hashp, obucket, NULL, 0); in __split_page() [all …]
|
D | hash_bigkey.c | 86 __big_insert(HTAB *hashp, in __big_insert() argument 119 bufp = __add_ovflpage(hashp, bufp); in __big_insert() 163 bufp = __add_ovflpage(hashp, bufp); in __big_insert() 187 __big_delete(HTAB *hashp, in __big_delete() argument 213 rbufp = __get_buf(hashp, pageno, rbufp, 0); in __big_delete() 215 __free_ovflpage(hashp, last_bfp); in __big_delete() 245 FREESPACE(bp) = hashp->BSIZE - PAGE_META(n); in __big_delete() 246 OFFSET(bp) = hashp->BSIZE - 1; in __big_delete() 250 __free_ovflpage(hashp, rbufp); in __big_delete() 252 __free_ovflpage(hashp, last_bfp); in __big_delete() [all …]
|
D | hash_buf.c | 86 #define MRU hashp->bufhead.next 87 #define LRU hashp->bufhead.prev 89 #define MRU_INSERT(B) BUF_INSERT((B), &hashp->bufhead) 110 __get_buf(HTAB *hashp, in __get_buf() argument 130 segment_ndx = addr & (hashp->SGSIZE - 1); in __get_buf() 133 segp = hashp->dir[addr >> hashp->SSHIFT]; in __get_buf() 139 is_disk = is_disk_mask || !hashp->new_file; in __get_buf() 143 bp = newbuf(hashp, addr, prev_bp); in __get_buf() 145 __get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0)) in __get_buf() 164 newbuf(HTAB *hashp, in newbuf() argument [all …]
|
D | hash.h | 204 (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__log2((B)+1)-1] : 0)
|