Lines Matching refs:aspace
171 int rt_hw_mmu_map_init(struct rt_aspace *aspace, void* v_address, size_t size, size_t *vtable, size… in rt_hw_mmu_map_init() argument
175 if (!aspace || !vtable) in rt_hw_mmu_map_init()
217 int rt_hw_mmu_ioremap_init(rt_aspace_t aspace, void* v_address, size_t size) in rt_hw_mmu_ioremap_init() argument
246 mmu_l1 = (size_t*)aspace->page_table + l1_off; in rt_hw_mmu_ioremap_init()
358 void *rt_hw_mmu_map(rt_aspace_t aspace, void *v_addr, void *p_addr, size_t size, in rt_hw_mmu_map() argument
368 ret = _kenrel_map_4K(aspace->page_table, v_addr, p_addr, attr); in rt_hw_mmu_map()
375 _kenrel_unmap_4K(aspace->page_table, (void *)unmap_va); in rt_hw_mmu_map()
394 void rt_hw_mmu_unmap(rt_aspace_t aspace, void *v_addr, size_t size) in rt_hw_mmu_unmap() argument
399 if (!aspace->page_table) in rt_hw_mmu_unmap()
407 _kenrel_unmap_4K(aspace->page_table, v_addr); in rt_hw_mmu_unmap()
414 void rt_hw_aspace_switch(rt_aspace_t aspace) in rt_hw_aspace_switch() argument
416 if (aspace != &rt_kernel_space) in rt_hw_aspace_switch()
418 void *pgtbl = aspace->page_table; in rt_hw_aspace_switch()
427 void *rt_hw_mmu_v2p(rt_aspace_t aspace, void* v_addr) in rt_hw_mmu_v2p() argument
436 RT_ASSERT(aspace); in rt_hw_mmu_v2p()
438 mmu_l1 = (size_t*)aspace->page_table + l1_off; in rt_hw_mmu_v2p()
477 int rt_hw_mmu_control(struct rt_aspace *aspace, void *vaddr, size_t size, in rt_hw_mmu_control() argument