Lines Matching refs:zl

2456 fzap_name_equal(const zap_leaf_t *zl, const zap_leaf_chunk_t *zc,  in fzap_name_equal()  argument
2465 nc = &ZAP_LEAF_CHUNK(zl, zc->l_entry.le_name_chunk); in fzap_name_equal()
2477 nc = &ZAP_LEAF_CHUNK(zl, nc->l_array.la_next); in fzap_name_equal()
2487 fzap_leaf_value(const zap_leaf_t *zl, const zap_leaf_chunk_t *zc) in fzap_leaf_value() argument
2494 vc = &ZAP_LEAF_CHUNK(zl, zc->l_entry.le_value_chunk); in fzap_leaf_value()
2525 fzap_leaf_array(const zap_leaf_t *zl, const zap_leaf_chunk_t *zc, in fzap_leaf_array() argument
2537 *u64 = fzap_leaf_value(zl, zc); in fzap_leaf_array()
2542 struct zap_leaf_array *la = &ZAP_LEAF_CHUNK(zl, chunk).l_array; in fzap_leaf_array()
2545 ASSERT3U(chunk, <, ZAP_LEAF_NUMCHUNKS(zl)); in fzap_leaf_array()
2669 zap_leaf_lookup(zap_leaf_t *zl, uint64_t hash, const char *name, in zap_leaf_lookup() argument
2679 if (zl->l_phys->l_hdr.lh_prefix_len > 0 && in zap_leaf_lookup()
2680 zl->l_phys->l_hdr.lh_prefix != in zap_leaf_lookup()
2681 hash >> (64 - zl->l_phys->l_hdr.lh_prefix_len)) in zap_leaf_lookup()
2685 for (chunkp = LEAF_HASH_ENTPTR(zl, hash); in zap_leaf_lookup()
2690 le = ZAP_LEAF_ENTRY(zl, chunk); in zap_leaf_lookup()
2693 zc = &ZAP_LEAF_CHUNK(zl, chunk); in zap_leaf_lookup()
2694 if (fzap_name_equal(zl, zc, name)) { in zap_leaf_lookup()
2698 fzap_leaf_array(zl, zc, integer_size, in zap_leaf_lookup()
2718 zap_leaf_t *zl; in fzap_lookup() local
2734 rc = zap_deref_leaf(&z, hash, &zl); in fzap_lookup()
2738 rc = zap_leaf_lookup(zl, hash, name, integer_size, num_integers, value); in fzap_lookup()
2740 zap_leaf_free(zl); in fzap_lookup()
2830 zap_leaf_t zl; in fzap_list() local
2831 zl.l_bs = z.zap_block_shift; in fzap_list()
2832 zl.l_phys = malloc(bsize); in fzap_list()
2833 if (zl.l_phys == NULL) in fzap_list()
2837 off_t off = ((off_t)(i + 1)) << zl.l_bs; in fzap_list()
2841 if (dnode_read(spa, dnode, off, zl.l_phys, bsize)) { in fzap_list()
2842 free(zl.l_phys); in fzap_list()
2846 for (j = 0; j < ZAP_LEAF_NUMCHUNKS(&zl); j++) { in fzap_list()
2850 zc = &ZAP_LEAF_CHUNK(&zl, j); in fzap_list()
2860 nc = &ZAP_LEAF_CHUNK(&zl, zc->l_entry.le_name_chunk); in fzap_list()
2870 nc = &ZAP_LEAF_CHUNK(&zl, nc->l_array.la_next); in fzap_list()
2877 value = fzap_leaf_value(&zl, zc); in fzap_list()
2882 free(zl.l_phys); in fzap_list()
2888 free(zl.l_phys); in fzap_list()
2963 fzap_name_copy(const zap_leaf_t *zl, const zap_leaf_chunk_t *zc, char *name) in fzap_name_copy() argument
2971 nc = &ZAP_LEAF_CHUNK(zl, zc->l_entry.le_name_chunk); in fzap_name_copy()
2981 nc = &ZAP_LEAF_CHUNK(zl, nc->l_array.la_next); in fzap_name_copy()
3006 zap_leaf_t zl; in fzap_rlookup() local
3007 zl.l_bs = z.zap_block_shift; in fzap_rlookup()
3008 zl.l_phys = malloc(bsize); in fzap_rlookup()
3009 if (zl.l_phys == NULL) in fzap_rlookup()
3013 off_t off = ((off_t)(i + 1)) << zl.l_bs; in fzap_rlookup()
3015 rc = dnode_read(spa, dnode, off, zl.l_phys, bsize); in fzap_rlookup()
3019 for (j = 0; j < ZAP_LEAF_NUMCHUNKS(&zl); j++) { in fzap_rlookup()
3022 zc = &ZAP_LEAF_CHUNK(&zl, j); in fzap_rlookup()
3029 if (fzap_leaf_value(&zl, zc) == value) { in fzap_rlookup()
3030 fzap_name_copy(&zl, zc, name); in fzap_rlookup()
3038 free(zl.l_phys); in fzap_rlookup()