Lines Matching defs:key

177 	/* Copy page access key and fetch protection bit to pgste */
197 * Set page access key and fetch protection bit from pgste.
199 * key C/R to 0.
696 /* don't touch the storage key - it belongs to parent pgste */
714 /* don't touch the storage key - it belongs to parent pgste */
760 /* Clear storage key ACC and F, but set R/C */
803 unsigned char key, bool nq)
813 * we can ignore attempts to set the key to 0, because it already is 0.
817 return key ? -EFAULT : 0;
827 return key ? -EFAULT : 0;
837 page_set_storage_key(paddr, key, 1);
849 keyul = (unsigned long) key;
858 skey = key & (_PAGE_ACC_BITS | _PAGE_FP_BIT);
859 /* Set storage key ACC and FP */
864 /* changing the guest storage key is considered a change of the page */
876 * Conditionally set a guest storage key (handling csske).
879 * Returns 0 if a guests storage key update wasn't necessary, 1 if the guest
880 * storage key was updated and -EFAULT on access errors.
883 unsigned char key, unsigned char *oldkey,
889 /* we can drop the pgste lock between getting and setting the key */
900 if (!((tmp ^ key) & mask))
903 rc = set_guest_storage_key(current->mm, addr, key, nq);
924 * the storage key is 0 and there is nothing for us to do.
965 /* Changing the guest storage key is considered a change of the page */
976 unsigned char *key)
986 * the storage key is 0.
988 *key = 0;
1008 *key = page_get_storage_key(paddr);
1018 *key = (pgste_val(pgste) & (PGSTE_ACC_BITS | PGSTE_FP_BIT)) >> 56;
1021 *key = page_get_storage_key(paddr);
1023 *key |= (pgste_val(pgste) & (PGSTE_GR_BIT | PGSTE_GC_BIT)) >> 48;