Lines Matching refs:opal_key
334 static int opal_get_key(struct opal_dev *dev, struct opal_key *key) in opal_get_key()
1523 lr = setup->session.opal_key.lr; in setup_locking_range()
1622 lrst->session.opal_key.lr); in locking_range_status()
1630 lrst->session.opal_key.lr, OPAL_RANGESTART, in locking_range_status()
1752 const struct opal_key *okey = data; in start_SIDASP_opal_session()
1771 struct opal_key *key = data; in start_admin1LSP_opal_session()
1780 const struct opal_key *okey = data; in start_PSID_opal_session()
1792 size_t keylen = session->opal_key.key_len; in start_auth_opal_session()
1795 u8 *key = session->opal_key.key; in start_auth_opal_session()
1800 session->opal_key.lr); in start_auth_opal_session()
1902 if (build_locking_range(uid, sizeof(uid), session->opal_key.lr) < 0) in erase_locking_range()
2005 cpin_uid[7] = usr->opal_key.lr + 1; in set_new_pw()
2010 if (generic_pw_cmd(usr->opal_key.key, usr->opal_key.key_len, in set_new_pw()
2022 struct opal_key *key = data; in set_sid_cpin_pin()
2123 lkul->session.opal_key.lr, users, in add_user_to_lr()
2143 lkul->session.opal_key.lr, users, in add_user_to_lr_ace()
2162 lkul->session.opal_key.lr) < 0) in lock_unlock_locking_range()
2221 lkul->session.opal_key.lr) < 0) in lock_unlock_locking_range_sum()
2560 { get_active_key, &opal_session->opal_key.lr }, in opal_secure_erase_locking_range()
2566 ret = opal_get_key(dev, &opal_session->opal_key); in opal_secure_erase_locking_range()
2623 ret = opal_get_key(dev, &opal_session->opal_key); in opal_erase_locking_range()
2726 suspend->lr = lk_unlk->session.opal_key.lr; in opal_save()
2740 { start_admin1LSP_opal_session, &lk_unlk->session.opal_key }, in opal_add_user_to_lr()
2766 ret = opal_get_key(dev, &lk_unlk->session.opal_key); in opal_add_user_to_lr()
2777 static int opal_reverttper(struct opal_dev *dev, struct opal_key *opal, bool psid) in opal_reverttper()
2837 static int __opal_set_mbr_done(struct opal_dev *dev, struct opal_key *key) in __opal_set_mbr_done()
2855 lk_unlk->session.opal_key.key_len > 0) in opal_lock_check_for_saved_key()
2875 iter->lr == lk_unlk->session.opal_key.lr && in opal_lock_check_for_saved_key()
2876 iter->unlk.session.opal_key.key_len > 0) { in opal_lock_check_for_saved_key()
2877 lk_unlk->session.opal_key.key_len = in opal_lock_check_for_saved_key()
2878 iter->unlk.session.opal_key.key_len; in opal_lock_check_for_saved_key()
2879 memcpy(lk_unlk->session.opal_key.key, in opal_lock_check_for_saved_key()
2880 iter->unlk.session.opal_key.key, in opal_lock_check_for_saved_key()
2881 iter->unlk.session.opal_key.key_len); in opal_lock_check_for_saved_key()
2897 ret = opal_get_key(dev, &lk_unlk->session.opal_key); in opal_lock_unlock()
2905 static int opal_take_ownership(struct opal_dev *dev, struct opal_key *opal) in opal_take_ownership()
2966 ret = opal_get_key(dev, &opal_lrs->session.opal_key); in opal_setup_locking_range()
3027 opal_pw->new_user_pw.opal_key.key, in opal_set_new_pw()
3028 opal_pw->new_user_pw.opal_key.key_len); in opal_set_new_pw()
3037 { start_admin1LSP_opal_session, &opal_session->opal_key }, in opal_activate_user()
3050 ret = opal_get_key(dev, &opal_session->opal_key); in opal_activate_user()
3083 suspend->unlk.session.opal_key.lr, in opal_unlock_from_suspend()
3089 ret = __opal_set_mbr_done(dev, &suspend->unlk.session.opal_key); in opal_unlock_from_suspend()