Lines Matching refs:bref

135 blockoff(hammer2_blockref_t *bref)  in blockoff()  argument
137 return(bref->data_off & ~HAMMER2_OFF_MASK_RADIX); in blockoff()
142 blocksize(hammer2_blockref_t *bref) in blocksize() argument
146 bytes = (size_t)(bref->data_off & HAMMER2_OFF_MASK_RADIX); in blocksize()
278 hammer2_blockref_t *bref; in h2lookup() local
357 bref = &hfs->sroot_blockset.blockref[i]; in h2lookup()
360 bref = &media.ipdata.u.blockset.blockref[i]; in h2lookup()
363 bref = &media.npdata[i]; in h2lookup()
366 if (bref->type == 0) in h2lookup()
368 if (bref->key > best.key) in h2lookup()
370 scan_beg = bref->key; in h2lookup()
371 scan_end = scan_beg + ((hammer2_key_t)1 << bref->keybits) - 1; in h2lookup()
373 best = *bref; in h2lookup()
435 hammer2_blockref_t *bref, hammer2_inode_data_t **inop) in h2resolve() argument
448 *bref = hfs->sroot; in h2resolve()
470 bytes = h2lookup(hfs, bref, in h2resolve()
497 *bref = hfs->sroot; in h2resolve()
498 bytes = h2lookup(hfs, bref, in h2resolve()
529 bref->data_off = (hammer2_off_t)-1; in h2resolve()
540 bref->data_off = (hammer2_off_t)-1; in h2resolve()
543 *bref = bres; in h2resolve()
549 h2readfile(struct hammer2_fs *hfs, hammer2_blockref_t *bref, in h2readfile() argument
574 bytes = h2lookup(hfs, bref, off, off + len - 1, in h2readfile()
729 hammer2_blockref_t bref; in boot2_hammer2_lookup() local
731 h2resolve(&hfs, path, &bref, NULL); in boot2_hammer2_lookup()
732 return ((boot2_ino_t)bref.data_off); in boot2_hammer2_lookup()
738 hammer2_blockref_t bref; in boot2_hammer2_read() local
741 bzero(&bref, sizeof(bref)); in boot2_hammer2_read()
742 bref.type = HAMMER2_BREF_TYPE_INODE; in boot2_hammer2_read()
743 bref.data_off = ino; in boot2_hammer2_read()
745 total = h2readfile(&hfs, &bref, fs_off, 0x7FFFFFFF, buf, len); in boot2_hammer2_read()
768 hammer2_blockref_t bref; member
839 h2resolve(&hf->hfs, path, &hf->bref, &ipdata); in hammer2_open()
840 if (hf->bref.data_off == (hammer2_off_t)-1 || in hammer2_open()
841 (hf->bref.type != HAMMER2_BREF_TYPE_INODE && in hammer2_open()
842 hf->bref.type != HAMMER2_BREF_TYPE_VOLUME)) { in hammer2_open()
879 total = h2readfile(&hf->hfs, &hf->bref, in hammer2_read()
936 bytes = h2lookup(&hf->hfs, &hf->bref, in hammer2_readdir()