Lines Matching refs:zl

1288 fzap_name_equal(const zap_leaf_t *zl, const zap_leaf_chunk_t *zc, const char *name)  in fzap_name_equal()  argument
1296 nc = &ZAP_LEAF_CHUNK(zl, zc->l_entry.le_name_chunk); in fzap_name_equal()
1307 nc = &ZAP_LEAF_CHUNK(zl, nc->l_array.la_next); in fzap_name_equal()
1317 fzap_leaf_value(const zap_leaf_t *zl, const zap_leaf_chunk_t *zc) in fzap_leaf_value() argument
1324 vc = &ZAP_LEAF_CHUNK(zl, zc->l_entry.le_value_chunk); in fzap_leaf_value()
1367 zap_leaf_t zl; in fzap_lookup() local
1368 zl.l_bs = z.zap_block_shift; in fzap_lookup()
1370 off_t off = ptrtbl[hash >> (64 - zh.zap_ptrtbl.zt_shift)] << zl.l_bs; in fzap_lookup()
1377 zl.l_phys = (zap_leaf_phys_t *) zap_scratch; in fzap_lookup()
1382 if (zl.l_phys->l_hdr.lh_prefix_len > 0 in fzap_lookup()
1383 && zl.l_phys->l_hdr.lh_prefix in fzap_lookup()
1384 != hash >> (64 - zl.l_phys->l_hdr.lh_prefix_len)) in fzap_lookup()
1390 int shift = (64 - ZAP_LEAF_HASH_SHIFT(&zl) - zl.l_phys->l_hdr.lh_prefix_len); in fzap_lookup()
1391 int h = (hash >> shift) & ((1 << ZAP_LEAF_HASH_SHIFT(&zl)) - 1); in fzap_lookup()
1392 h = zl.l_phys->l_hash[h]; in fzap_lookup()
1395 zc = &ZAP_LEAF_CHUNK(&zl, h); in fzap_lookup()
1401 zc = &ZAP_LEAF_CHUNK(&zl, zc->l_entry.le_next); in fzap_lookup()
1403 if (fzap_name_equal(&zl, zc, name)) { in fzap_lookup()
1406 *value = fzap_leaf_value(&zl, zc); in fzap_lookup()
1488 zap_leaf_t zl; in fzap_list() local
1489 zl.l_bs = z.zap_block_shift; in fzap_list()
1491 off_t off = (i + 1) << zl.l_bs; in fzap_list()
1498 zl.l_phys = (zap_leaf_phys_t *) zap_scratch; in fzap_list()
1500 for (j = 0; j < ZAP_LEAF_NUMCHUNKS(&zl); j++) { in fzap_list()
1504 zc = &ZAP_LEAF_CHUNK(&zl, j); in fzap_list()
1514 nc = &ZAP_LEAF_CHUNK(&zl, zc->l_entry.le_name_chunk); in fzap_list()
1524 nc = &ZAP_LEAF_CHUNK(&zl, nc->l_array.la_next); in fzap_list()
1531 value = fzap_leaf_value(&zl, zc); in fzap_list()
1599 fzap_name_copy(const zap_leaf_t *zl, const zap_leaf_chunk_t *zc, char *name) in fzap_name_copy() argument
1607 nc = &ZAP_LEAF_CHUNK(zl, zc->l_entry.le_name_chunk); in fzap_name_copy()
1617 nc = &ZAP_LEAF_CHUNK(zl, nc->l_array.la_next); in fzap_name_copy()
1641 zap_leaf_t zl; in fzap_rlookup() local
1642 zl.l_bs = z.zap_block_shift; in fzap_rlookup()
1644 off_t off = (i + 1) << zl.l_bs; in fzap_rlookup()
1649 zl.l_phys = (zap_leaf_phys_t *) zap_scratch; in fzap_rlookup()
1651 for (j = 0; j < ZAP_LEAF_NUMCHUNKS(&zl); j++) { in fzap_rlookup()
1654 zc = &ZAP_LEAF_CHUNK(&zl, j); in fzap_rlookup()
1661 if (fzap_leaf_value(&zl, zc) == value) { in fzap_rlookup()
1662 fzap_name_copy(&zl, zc, name); in fzap_rlookup()