Lines Matching refs:bufp
86 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert() argument
94 cp = bufp->page; /* Character pointer of p. */ in __big_insert()
125 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
126 if (!bufp) in __big_insert()
157 p = (uint16_t *)(void *)bufp->page; in __big_insert()
158 cp = bufp->page; in __big_insert()
159 bufp->flags |= BUF_MOD; in __big_insert()
192 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
193 if (!bufp) in __big_insert()
195 cp = bufp->page; in __big_insert()
199 bufp->flags |= BUF_MOD; in __big_insert()
219 __big_delete(HTAB *hashp, BUFHEAD *bufp) in __big_delete() argument
226 rbufp = bufp; in __big_delete()
228 bp = (uint16_t *)(void *)bufp->page; in __big_delete()
266 bp = (uint16_t *)(void *)bufp->page; in __big_delete()
271 bufp->ovfl = rbufp->ovfl; in __big_delete()
274 bufp->ovfl = NULL; in __big_delete()
282 bufp->flags |= BUF_MOD; in __big_delete()
299 __find_bigpair(HTAB *hashp, BUFHEAD *bufp, int ndx, char *key, int size) in __find_bigpair() argument
307 bp = (uint16_t *)(void *)bufp->page; in __find_bigpair()
308 p = bufp->page; in __find_bigpair()
319 bufp = __get_buf(hashp, (uint32_t)bp[ndx + 2], bufp, 0); in __find_bigpair()
320 if (!bufp) in __find_bigpair()
322 p = bufp->page; in __find_bigpair()
348 BUFHEAD *bufp; in __find_last_page() local
352 bufp = *bpp; in __find_last_page()
353 bp = (uint16_t *)(void *)bufp->page; in __find_last_page()
367 bufp = __get_buf(hashp, (uint32_t)pageno, bufp, 0); in __find_last_page()
368 if (!bufp) in __find_last_page()
370 bp = (uint16_t *)(void *)bufp->page; in __find_last_page()
373 *bpp = bufp; in __find_last_page()
385 __big_return(HTAB *hashp, BUFHEAD *bufp, int ndx, DBT *val, int set_current) in __big_return() argument
391 bp = (uint16_t *)(void *)bufp->page; in __big_return()
393 bufp = __get_buf(hashp, (uint32_t)bp[bp[0] - 1], bufp, 0); in __big_return()
394 if (!bufp) in __big_return()
396 bp = (uint16_t *)(void *)bufp->page; in __big_return()
401 bufp = __get_buf(hashp, (uint32_t)bp[bp[0] - 1], bufp, 0); in __big_return()
402 if (!bufp) in __big_return()
404 bp = (uint16_t *)(void *)bufp->page; in __big_return()
405 save_p = bufp; in __big_return()
420 save_p = bufp; in __big_return()
421 save_addr = bufp->addr; in __big_return()
422 bufp = __get_buf(hashp, (uint32_t)bp[bp[0] - 1], bufp, in __big_return()
424 if (!bufp) in __big_return()
426 bp = (uint16_t *)(void *)bufp->page; in __big_return()
441 (uint32_t)bp[bp[0] - 1], bufp, 0); in __big_return()
455 val->size = collect_data(hashp, bufp, (int)len, set_current); in __big_return()
472 collect_data(HTAB *hashp, BUFHEAD *bufp, int len, int set) in collect_data() argument
480 p = bufp->page; in collect_data()
483 save_addr = bufp->addr; in collect_data()
499 bufp, 0); in collect_data()
509 xbp = __get_buf(hashp, (uint32_t)bp[bp[0] - 1], bufp, 0); in collect_data()
514 if (bufp->addr != save_addr) { in collect_data()
518 memmove(&hashp->tmp_buf[len], (bufp->page) + bp[1], (size_t)mylen); in collect_data()
526 __big_keydata(HTAB *hashp, BUFHEAD *bufp, DBT *key, DBT *val, int set) in __big_keydata() argument
528 key->size = collect_key(hashp, bufp, 0, val, set); in __big_keydata()
540 collect_key(HTAB *hashp, BUFHEAD *bufp, int len, DBT *val, int set) in collect_key() argument
547 p = bufp->page; in collect_key()
551 save_addr = bufp->addr; in collect_key()
558 if (__big_return(hashp, bufp, 1, val, set)) in collect_key()
561 xbp = __get_buf(hashp, (uint32_t)bp[bp[0] - 1], bufp, 0); in collect_key()
566 if (bufp->addr != save_addr) { in collect_key()
570 memmove(&hashp->tmp_key[len], (bufp->page) + bp[1], (size_t)mylen); in collect_key()