Lines Matching refs:l_hdr

54 	(64 - ZAP_LEAF_HASH_SHIFT(l) - zap_leaf_phys(l)->l_hdr.lh_prefix_len)))
117 buf->l_hdr.lh_block_type = BSWAP_64(buf->l_hdr.lh_block_type); in zap_leaf_byteswap()
118 buf->l_hdr.lh_prefix = BSWAP_64(buf->l_hdr.lh_prefix); in zap_leaf_byteswap()
119 buf->l_hdr.lh_magic = BSWAP_32(buf->l_hdr.lh_magic); in zap_leaf_byteswap()
120 buf->l_hdr.lh_nfree = BSWAP_16(buf->l_hdr.lh_nfree); in zap_leaf_byteswap()
121 buf->l_hdr.lh_nentries = BSWAP_16(buf->l_hdr.lh_nentries); in zap_leaf_byteswap()
122 buf->l_hdr.lh_prefix_len = BSWAP_16(buf->l_hdr.lh_prefix_len); in zap_leaf_byteswap()
123 buf->l_hdr.lh_freelist = BSWAP_16(buf->l_hdr.lh_freelist); in zap_leaf_byteswap()
165 zap_memset(&zap_leaf_phys(l)->l_hdr, 0, in zap_leaf_init()
174 zap_leaf_phys(l)->l_hdr.lh_block_type = ZBT_LEAF; in zap_leaf_init()
175 zap_leaf_phys(l)->l_hdr.lh_magic = ZAP_LEAF_MAGIC; in zap_leaf_init()
176 zap_leaf_phys(l)->l_hdr.lh_nfree = ZAP_LEAF_NUMCHUNKS(l); in zap_leaf_init()
178 zap_leaf_phys(l)->l_hdr.lh_flags |= ZLF_ENTRIES_CDSORTED; in zap_leaf_init()
188 ASSERT(zap_leaf_phys(l)->l_hdr.lh_nfree > 0); in zap_leaf_chunk_alloc()
190 int chunk = zap_leaf_phys(l)->l_hdr.lh_freelist; in zap_leaf_chunk_alloc()
194 zap_leaf_phys(l)->l_hdr.lh_freelist = in zap_leaf_chunk_alloc()
197 zap_leaf_phys(l)->l_hdr.lh_nfree--; in zap_leaf_chunk_alloc()
206 ASSERT3U(zap_leaf_phys(l)->l_hdr.lh_nfree, <, ZAP_LEAF_NUMCHUNKS(l)); in zap_leaf_chunk_free()
211 zlf->lf_next = zap_leaf_phys(l)->l_hdr.lh_freelist; in zap_leaf_chunk_free()
213 zap_leaf_phys(l)->l_hdr.lh_freelist = chunk; in zap_leaf_chunk_free()
215 zap_leaf_phys(l)->l_hdr.lh_nfree++; in zap_leaf_chunk_free()
394 ASSERT3U(zap_leaf_phys(l)->l_hdr.lh_magic, ==, ZAP_LEAF_MAGIC); in zap_leaf_lookup()
413 (zap_leaf_phys(l)->l_hdr.lh_flags & ZLF_ENTRIES_CDSORTED)); in zap_leaf_lookup()
442 ASSERT3U(zap_leaf_phys(l)->l_hdr.lh_magic, ==, ZAP_LEAF_MAGIC); in zap_leaf_lookup_closest()
524 if ((int)zap_leaf_phys(l)->l_hdr.lh_nfree < delta_chunks) in zap_entry_update()
552 zap_leaf_phys(l)->l_hdr.lh_nentries--; in zap_entry_remove()
573 if (zap_leaf_phys(l)->l_hdr.lh_flags & ZLF_ENTRIES_CDSORTED) { in zap_entry_create()
609 if (zap_leaf_phys(l)->l_hdr.lh_nfree < numchunks) in zap_entry_create()
630 zap_leaf_phys(l)->l_hdr.lh_nentries++; in zap_entry_create()
760 zap_leaf_phys(l)->l_hdr.lh_nentries--; in zap_leaf_transfer_entry()
761 zap_leaf_phys(nl)->l_hdr.lh_nentries++; in zap_leaf_transfer_entry()
770 int bit = 64 - 1 - zap_leaf_phys(l)->l_hdr.lh_prefix_len; in zap_leaf_split()
773 zap_leaf_phys(l)->l_hdr.lh_prefix <<= 1; in zap_leaf_split()
774 zap_leaf_phys(l)->l_hdr.lh_prefix_len++; in zap_leaf_split()
775 zap_leaf_phys(nl)->l_hdr.lh_prefix = in zap_leaf_split()
776 zap_leaf_phys(l)->l_hdr.lh_prefix | 1; in zap_leaf_split()
777 zap_leaf_phys(nl)->l_hdr.lh_prefix_len = in zap_leaf_split()
778 zap_leaf_phys(l)->l_hdr.lh_prefix_len; in zap_leaf_split()
785 zap_leaf_phys(l)->l_hdr.lh_flags |= ZLF_ENTRIES_CDSORTED; in zap_leaf_split()
812 zap_leaf_phys(l)->l_hdr.lh_prefix_len; in zap_leaf_stats()
817 n = zap_leaf_phys(l)->l_hdr.lh_nentries/5; in zap_leaf_stats()
822 zap_leaf_phys(l)->l_hdr.lh_nfree * (ZAP_LEAF_ARRAY_BYTES+1))*10 / in zap_leaf_stats()