Lines Matching refs:domain
335 struct arch_mem_domain *domain = in xtensa_mmu_reinit() local
340 xtensa_set_paging(domain->asid, domain->ptables); in xtensa_mmu_reinit()
448 struct arch_mem_domain *domain; in __arch_mem_map() local
453 domain = CONTAINER_OF(node, struct arch_mem_domain, node); in __arch_mem_map()
455 ret = l2_page_table_map(domain->ptables, (void *)vaddr, paddr, in __arch_mem_map()
458 vaddr, domain); in __arch_mem_map()
461 ret = l2_page_table_map(domain->ptables, in __arch_mem_map()
465 vaddr_uc, domain); in __arch_mem_map()
603 struct arch_mem_domain *domain; in __arch_mem_unmap() local
608 domain = CONTAINER_OF(node, struct arch_mem_domain, node); in __arch_mem_unmap()
610 (void)l2_page_table_unmap(domain->ptables, (void *)vaddr); in __arch_mem_unmap()
613 (void)l2_page_table_unmap(domain->ptables, (void *)vaddr_uc); in __arch_mem_unmap()
707 struct arch_mem_domain *domain = in xtensa_mmu_tlb_shootdown() local
709 xtensa_set_paging(domain->asid, (uint32_t *)thread_ptables); in xtensa_mmu_tlb_shootdown()
798 int arch_mem_domain_init(struct k_mem_domain *domain) in arch_mem_domain_init() argument
816 if (domain == &k_mem_domain_default) { in arch_mem_domain_init()
817 domain->arch.ptables = xtensa_kernel_ptables; in arch_mem_domain_init()
818 domain->arch.asid = asid_count; in arch_mem_domain_init()
830 domain->arch.ptables = ptables; in arch_mem_domain_init()
831 domain->arch.asid = ++asid_count; in arch_mem_domain_init()
833 sys_slist_append(&xtensa_domain_list, &domain->arch.node); in arch_mem_domain_init()
941 int arch_mem_domain_partition_remove(struct k_mem_domain *domain, in arch_mem_domain_partition_remove() argument
944 struct k_mem_partition *partition = &domain->partitions[partition_id]; in arch_mem_domain_partition_remove()
947 return reset_region(domain->arch.ptables, partition->start, in arch_mem_domain_partition_remove()
951 int arch_mem_domain_partition_add(struct k_mem_domain *domain, in arch_mem_domain_partition_add() argument
954 struct k_mem_partition *partition = &domain->partitions[partition_id]; in arch_mem_domain_partition_add()
958 return update_region(domain->arch.ptables, partition->start, in arch_mem_domain_partition_add()
968 struct k_mem_domain *domain; in arch_mem_domain_thread_add() local
971 domain = thread->mem_domain_info.mem_domain; in arch_mem_domain_thread_add()
972 thread->arch.ptables = domain->arch.ptables; in arch_mem_domain_thread_add()
998 xtensa_set_paging(domain->arch.asid, thread->arch.ptables); in arch_mem_domain_thread_add()
1018 struct k_mem_domain *domain = thread->mem_domain_info.mem_domain; in arch_mem_domain_thread_remove() local
1041 return reset_region(domain->arch.ptables, in arch_mem_domain_thread_remove()
1120 struct arch_mem_domain *domain = in xtensa_swap_update_page_tables() local
1123 xtensa_set_paging(domain->asid, ptables); in xtensa_swap_update_page_tables()