Lines Matching defs:found_wkey
409 dsl_wrapping_key_t *found_wkey;
417 found_wkey = avl_find(&spa->spa_keystore.sk_wkeys, &search_wkey, NULL);
418 if (!found_wkey) {
424 dsl_wrapping_key_hold(found_wkey, tag);
426 *wkey_out = found_wkey;
749 dsl_wrapping_key_t *found_wkey;
754 found_wkey = avl_find(&spa->spa_keystore.sk_wkeys, wkey, &where);
755 if (found_wkey != NULL) {
888 dsl_wrapping_key_t *found_wkey;
896 found_wkey = avl_find(&spa->spa_keystore.sk_wkeys,
898 if (!found_wkey) {
901 } else if (zfs_refcount_count(&found_wkey->wk_refcnt) != 0) {
905 avl_remove(&spa->spa_keystore.sk_wkeys, found_wkey);
910 dsl_wrapping_key_free(found_wkey);
1547 dsl_wrapping_key_t *wkey = NULL, *found_wkey;
1615 found_wkey = avl_find(&spa->spa_keystore.sk_wkeys, &wkey_search, NULL);
1616 if (found_wkey != NULL) {
1617 ASSERT0(zfs_refcount_count(&found_wkey->wk_refcnt));
1618 avl_remove(&spa->spa_keystore.sk_wkeys, found_wkey);
1619 dsl_wrapping_key_free(found_wkey);