Lines Matching refs:attrs

657 static uint64_t get_region_desc(uint32_t attrs)  in get_region_desc()  argument
663 desc |= (attrs & MT_NS) ? PTE_BLOCK_DESC_NS : 0; in get_region_desc()
677 desc |= (attrs & MT_RW) ? PTE_BLOCK_DESC_AP_RW : PTE_BLOCK_DESC_AP_RO; in get_region_desc()
678 desc |= (IS_ENABLED(CONFIG_DEMAND_PAGING) && (attrs & MT_RW)) ? in get_region_desc()
682 desc |= (attrs & MT_RW_AP_ELx) ? in get_region_desc()
687 if (IS_ENABLED(CONFIG_DEMAND_PAGING) && (attrs & MT_PAGED_OUT) != 0) { in get_region_desc()
694 mem_type = MT_TYPE(attrs); in get_region_desc()
714 if ((attrs & MT_RW) || (attrs & MT_P_EXECUTE_NEVER)) { in get_region_desc()
718 if (((attrs & MT_RW) && (attrs & MT_RW_AP_ELx)) || in get_region_desc()
719 (attrs & MT_U_EXECUTE_NEVER)) { in get_region_desc()
731 if (attrs & MT_NG) { in get_region_desc()
739 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in __add_map() argument
741 uint64_t desc = get_region_desc(attrs); in __add_map()
742 bool may_overwrite = !(attrs & MT_NO_OVERWRITE); in __add_map()
754 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in add_map() argument
760 ret = __add_map(ptables, name, phys, virt, size, attrs); in add_map()
798 uint32_t attrs; member
810 .attrs = MT_NORMAL | MT_P_RW_U_NA | MT_DEFAULT_SECURE_STATE },
816 .attrs = MT_NORMAL | MT_P_RX_U_RX | MT_DEFAULT_SECURE_STATE },
822 .attrs = MT_NORMAL | MT_P_RO_U_RO | MT_DEFAULT_SECURE_STATE },
829 .attrs = MT_NORMAL_NC | MT_P_RW_U_RW | MT_DEFAULT_SECURE_STATE },
843 size, range->attrs | extra_flags); in add_arm_mmu_flat_range()
851 if (region->size || region->attrs) { in add_arm_mmu_region()
854 region->size, region->attrs | extra_flags); in add_arm_mmu_region()
858 static inline void inv_dcache_after_map_helper(void *virt, size_t size, uint32_t attrs) in inv_dcache_after_map_helper() argument
864 if ((attrs & MT_RW) != MT_RW) { in inv_dcache_after_map_helper()
868 if (MT_TYPE(attrs) == MT_NORMAL || MT_TYPE(attrs) == MT_NORMAL_WT) { in inv_dcache_after_map_helper()
918 inv_dcache_after_map_helper(range->start, size, range->attrs); in setup_page_tables()
924 region->attrs); in setup_page_tables()
1239 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in private_map() argument
1245 ret = add_map(ptables, name, phys, virt, size, attrs | MT_NG); in private_map()
1249 inv_dcache_after_map_helper(UINT_TO_POINTER(virt), size, attrs); in private_map()
1272 ptn->size, ptn->attr.attrs | MT_NORMAL); in arch_mem_domain_partition_add()