Lines Matching defs:found_wkey
376 dsl_wrapping_key_t *found_wkey;
384 found_wkey = avl_find(&spa->spa_keystore.sk_wkeys, &search_wkey, NULL);
385 if (!found_wkey) {
391 dsl_wrapping_key_hold(found_wkey, tag);
393 *wkey_out = found_wkey;
710 dsl_wrapping_key_t *found_wkey;
715 found_wkey = avl_find(&spa->spa_keystore.sk_wkeys, wkey, &where);
716 if (found_wkey != NULL) {
849 dsl_wrapping_key_t *found_wkey;
857 found_wkey = avl_find(&spa->spa_keystore.sk_wkeys,
859 if (!found_wkey) {
862 } else if (zfs_refcount_count(&found_wkey->wk_refcnt) != 0) {
866 avl_remove(&spa->spa_keystore.sk_wkeys, found_wkey);
871 dsl_wrapping_key_free(found_wkey);
1508 dsl_wrapping_key_t *wkey = NULL, *found_wkey;
1576 found_wkey = avl_find(&spa->spa_keystore.sk_wkeys, &wkey_search, NULL);
1577 if (found_wkey != NULL) {
1578 ASSERT0(zfs_refcount_count(&found_wkey->wk_refcnt));
1579 avl_remove(&spa->spa_keystore.sk_wkeys, found_wkey);
1580 dsl_wrapping_key_free(found_wkey);