Searched refs:pkru (Results 1 – 4 of 4) sorted by relevance
102 u32 edx, pkru; in __read_pkru() local109 : "=a" (pkru), "=d" (edx) in __read_pkru()111 return pkru; in __read_pkru()114 static inline void __write_pkru(u32 pkru) in __write_pkru() argument123 : : "a" (pkru), "c"(ecx), "d"(edx)); in __write_pkru()131 static inline void __write_pkru(u32 pkru) in __write_pkru() argument
226 u32 pkru = read_pkru(); in __pkru_allows_pkey() local228 if (!__pkru_allows_read(pkru, pkey)) in __pkru_allows_pkey()230 if (write && !__pkru_allows_write(pkru, pkey)) in __pkru_allows_pkey()
122 static inline void write_pkru(u32 pkru) in write_pkru() argument125 __write_pkru(pkru); in write_pkru()987 static inline bool __pkru_allows_read(u32 pkru, u16 pkey) in __pkru_allows_read() argument990 return !(pkru & (PKRU_AD_BIT << pkru_pkey_bits)); in __pkru_allows_read()993 static inline bool __pkru_allows_write(u32 pkru, u16 pkey) in __pkru_allows_write() argument1000 return !(pkru & ((PKRU_AD_BIT|PKRU_WD_BIT) << pkru_pkey_bits)); in __pkru_allows_write()
224 u32 pkru; member