Lines Matching refs:is_dram_addr
23 bool is_dram_addr) in hl_mmu_get_funcs() argument
175 u32 page_size, u32 *real_page_size, bool is_dram_addr) in hl_mmu_get_real_page_size() argument
193 bool is_dram_addr) in hl_mmu_get_prop() argument
197 if (is_dram_addr) in hl_mmu_get_prop()
234 bool is_dram_addr; in hl_mmu_unmap_page() local
239 is_dram_addr = hl_is_dram_va(hdev, virt_addr); in hl_mmu_unmap_page()
240 mmu_prop = hl_mmu_get_prop(hdev, page_size, is_dram_addr); in hl_mmu_unmap_page()
243 mmu_funcs = hl_mmu_get_funcs(hdev, pgt_residency, is_dram_addr); in hl_mmu_unmap_page()
246 is_dram_addr); in hl_mmu_unmap_page()
254 rc = mmu_funcs->unmap(ctx, real_virt_addr, is_dram_addr); in hl_mmu_unmap_page()
301 bool is_dram_addr; in hl_mmu_map_page() local
307 is_dram_addr = hl_is_dram_va(hdev, virt_addr); in hl_mmu_map_page()
308 mmu_prop = hl_mmu_get_prop(hdev, page_size, is_dram_addr); in hl_mmu_map_page()
311 mmu_funcs = hl_mmu_get_funcs(hdev, pgt_residency, is_dram_addr); in hl_mmu_map_page()
314 is_dram_addr); in hl_mmu_map_page()
323 if ((is_dram_addr && in hl_mmu_map_page()
328 (!is_dram_addr && ((phys_addr & (real_page_size - 1)) || in hl_mmu_map_page()
340 is_dram_addr); in hl_mmu_map_page()
359 if (mmu_funcs->unmap(ctx, real_virt_addr, is_dram_addr)) in hl_mmu_map_page()
555 bool is_dram_addr; in hl_mmu_get_tlb_info() local
563 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_get_tlb_info()
568 mmu_prop = is_dram_addr ? &prop->dmmu : &prop->pmmu; in hl_mmu_get_tlb_info()
570 mmu_funcs = hl_mmu_get_funcs(hdev, pgt_residency, is_dram_addr); in hl_mmu_get_tlb_info()