Lines Matching refs:lk_unlk

2718 static int opal_save(struct opal_dev *dev, struct opal_lock_unlock *lk_unlk)  in opal_save()  argument
2726 suspend->unlk = *lk_unlk; in opal_save()
2727 suspend->lr = lk_unlk->session.opal_key.lr; in opal_save()
2738 struct opal_lock_unlock *lk_unlk) in opal_add_user_to_lr() argument
2741 { start_admin1LSP_opal_session, &lk_unlk->session.opal_key }, in opal_add_user_to_lr()
2742 { add_user_to_lr, lk_unlk }, in opal_add_user_to_lr()
2743 { add_user_to_lr_ace, lk_unlk }, in opal_add_user_to_lr()
2748 if (lk_unlk->l_state != OPAL_RO && in opal_add_user_to_lr()
2749 lk_unlk->l_state != OPAL_RW) { in opal_add_user_to_lr()
2754 if (lk_unlk->session.who < OPAL_USER1 || in opal_add_user_to_lr()
2755 lk_unlk->session.who > OPAL_USER9) { in opal_add_user_to_lr()
2757 lk_unlk->session.who); in opal_add_user_to_lr()
2761 if (lk_unlk->session.sum) { in opal_add_user_to_lr()
2767 ret = opal_get_key(dev, &lk_unlk->session.opal_key); in opal_add_user_to_lr()
2817 struct opal_lock_unlock *lk_unlk) in __opal_lock_unlock() argument
2820 { start_auth_opal_session, &lk_unlk->session }, in __opal_lock_unlock()
2821 { lock_unlock_locking_range, lk_unlk }, in __opal_lock_unlock()
2825 { start_auth_opal_session, &lk_unlk->session }, in __opal_lock_unlock()
2826 { lock_unlock_locking_range_sum, lk_unlk }, in __opal_lock_unlock()
2830 if (lk_unlk->session.sum) in __opal_lock_unlock()
2851 struct opal_lock_unlock *lk_unlk) in opal_lock_check_for_saved_key() argument
2855 if (lk_unlk->l_state != OPAL_LK || in opal_lock_check_for_saved_key()
2856 lk_unlk->session.opal_key.key_len > 0) in opal_lock_check_for_saved_key()
2876 iter->lr == lk_unlk->session.opal_key.lr && in opal_lock_check_for_saved_key()
2878 lk_unlk->session.opal_key.key_len = in opal_lock_check_for_saved_key()
2880 memcpy(lk_unlk->session.opal_key.key, in opal_lock_check_for_saved_key()
2889 struct opal_lock_unlock *lk_unlk) in opal_lock_unlock() argument
2893 if (lk_unlk->session.who > OPAL_USER9) in opal_lock_unlock()
2897 opal_lock_check_for_saved_key(dev, lk_unlk); in opal_lock_unlock()
2898 ret = opal_get_key(dev, &lk_unlk->session.opal_key); in opal_lock_unlock()
2900 ret = __opal_lock_unlock(dev, lk_unlk); in opal_lock_unlock()