Lines Matching refs:pkru
61 unsigned int pkru; in __rdpkru() local
66 pkru = eax; in __rdpkru()
67 return pkru; in __rdpkru()
72 unsigned int pkru = __rdpkru(); in _rdpkru() local
75 line, pkru, shadow_pkru); in _rdpkru()
76 assert(pkru == shadow_pkru); in _rdpkru()
78 return pkru; in _rdpkru()
83 static inline void __wrpkru(unsigned int pkru) in __wrpkru() argument
85 unsigned int eax = pkru; in __wrpkru()
89 dprintf4("%s() changing %08x to %08x\n", __func__, __rdpkru(), pkru); in __wrpkru()
92 assert(pkru == __rdpkru()); in __wrpkru()
95 static inline void wrpkru(unsigned int pkru) in wrpkru() argument
97 dprintf4("%s() changing %08x to %08x\n", __func__, __rdpkru(), pkru); in wrpkru()
100 __wrpkru(pkru); in wrpkru()
101 shadow_pkru = pkru; in wrpkru()
102 dprintf4("%s(%08x) pkru: %08x\n", __func__, pkru, __rdpkru()); in wrpkru()
111 unsigned int pkru = rdpkru(); in __pkey_access_allow() local
115 pkru &= (1<<bit); in __pkey_access_allow()
117 pkru |= (1<<bit); in __pkey_access_allow()
120 wrpkru(pkru); in __pkey_access_allow()
125 long pkru = rdpkru(); in __pkey_write_allow() local
129 pkru &= (1<<bit); in __pkey_write_allow()
131 pkru |= (1<<bit); in __pkey_write_allow()
133 wrpkru(pkru); in __pkey_write_allow()