Home
last modified time | relevance | path

Searched refs:dck (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_crypt.c534 dsl_crypto_key_free(dsl_crypto_key_t *dck) in dsl_crypto_key_free() argument
536 ASSERT(zfs_refcount_count(&dck->dck_holds) == 0); in dsl_crypto_key_free()
539 zio_crypt_key_destroy(&dck->dck_key); in dsl_crypto_key_free()
542 zfs_refcount_destroy(&dck->dck_holds); in dsl_crypto_key_free()
543 if (dck->dck_wkey) in dsl_crypto_key_free()
544 dsl_wrapping_key_rele(dck->dck_wkey, dck); in dsl_crypto_key_free()
547 kmem_free(dck, sizeof (dsl_crypto_key_t)); in dsl_crypto_key_free()
551 dsl_crypto_key_rele(dsl_crypto_key_t *dck, const void *tag) in dsl_crypto_key_rele() argument
553 if (zfs_refcount_remove(&dck->dck_holds, tag) == 0) in dsl_crypto_key_rele()
554 dsl_crypto_key_free(dck); in dsl_crypto_key_rele()
[all …]
H A Ddmu_recv.c1466 dsl_crypto_key_t *dck = NULL; in do_corrective_recv() local
1488 zb.zb_objset, FTAG, &dck); in do_corrective_recv()
1497 err = zio_do_crypt_abd(B_TRUE, &dck->dck_key, in do_corrective_recv()
1501 spa_keystore_dsl_key_rele(rwa->os->os_spa, dck, FTAG); in do_corrective_recv()
H A Darc.c9003 dsl_crypto_key_t *dck = NULL; in l2arc_apply_transforms() local
9063 FTAG, &dck); in l2arc_apply_transforms()
9067 ret = zio_do_crypt_abd(B_TRUE, &dck->dck_key, in l2arc_apply_transforms()
9082 spa_keystore_dsl_key_rele(spa, dck, FTAG); in l2arc_apply_transforms()
9096 if (dck != NULL) in l2arc_apply_transforms()
9097 spa_keystore_dsl_key_rele(spa, dck, FTAG); in l2arc_apply_transforms()
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddsl_crypt.h177 void spa_keystore_dsl_key_rele(spa_t *spa, dsl_crypto_key_t *dck,