set_memory.h 715 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef _ASM_ARM64_SET_MEMORY_H
  3. #define _ASM_ARM64_SET_MEMORY_H
  4. #include <asm/mem_encrypt.h>
  5. #include <asm-generic/set_memory.h>
  6. bool can_set_direct_map(void);
  7. #define can_set_direct_map can_set_direct_map
  8. int set_memory_valid(unsigned long addr, int numpages, int enable);
  9. int set_direct_map_invalid_noflush(struct page *page);
  10. int set_direct_map_default_noflush(struct page *page);
  11. int set_direct_map_valid_noflush(struct page *page, unsigned nr, bool valid);
  12. bool kernel_page_present(struct page *page);
  13. int set_memory_encrypted(unsigned long addr, int numpages);
  14. int set_memory_decrypted(unsigned long addr, int numpages);
  15. #endif /* _ASM_ARM64_SET_MEMORY_H */