Lines Matching refs:zap
879 zap_verify(zap_phys_t *zap) in zap_verify() argument
881 if (zap->zap_magic != (uint64_t) ZAP_MAGIC) { in zap_verify()
886 if (zap->zap_flags != 0) { in zap_verify()
891 if (zap->zap_salt == 0) { in zap_verify()
905 fzap_lookup(dnode_end_t *zap_dnode, zap_phys_t *zap, in fzap_lookup() argument
915 err = zap_verify(zap); in fzap_lookup()
919 hash = zap_hash(zap->zap_salt, name); in fzap_lookup()
922 if (zap->zap_ptrtbl.zt_numblks != 0) { in fzap_lookup()
926 idx = ZAP_HASH_IDX(hash, zap->zap_ptrtbl.zt_shift); in fzap_lookup()
927 blkid = ((uint64_t *) zap)[idx + (1 << (blksft - 3 - 1))]; in fzap_lookup()
945 fzap_iterate(dnode_end_t *zap_dnode, zap_phys_t *zap, in fzap_iterate() argument
960 if (zap_verify(zap)) in fzap_iterate()
964 if (zap->zap_ptrtbl.zt_numblks != 0) { in fzap_iterate()
973 for (idx = 0; idx < zap->zap_ptrtbl.zt_numblks; idx++) { in fzap_iterate()
974 blkid = ((uint64_t *) zap)[idx + (1 << (blksft - 3 - 1))]; in fzap_iterate()