Lines Matching refs:mmu_priv
33 gen_pool_free(hdev->mmu_priv.dr.mmu_pgt_pool, pgt_info->phys_addr, in _free_hop()
58 phys_addr = (u64) gen_pool_alloc(hdev->mmu_priv.dr.mmu_pgt_pool, in alloc_hop()
79 gen_pool_free(hdev->mmu_priv.dr.mmu_pgt_pool, phys_addr, in alloc_hop()
95 return (u64) (uintptr_t) ctx->hdev->mmu_priv.dr.mmu_shadow_hop0 + in get_hop0_addr()
378 hdev->mmu_priv.dr.mmu_pgt_pool = in hl_mmu_v1_init()
381 if (!hdev->mmu_priv.dr.mmu_pgt_pool) { in hl_mmu_v1_init()
386 rc = gen_pool_add(hdev->mmu_priv.dr.mmu_pgt_pool, prop->mmu_pgt_addr + in hl_mmu_v1_init()
395 hdev->mmu_priv.dr.mmu_shadow_hop0 = kvcalloc(prop->max_asid, prop->mmu_hop_table_size, in hl_mmu_v1_init()
397 if (ZERO_OR_NULL_PTR(hdev->mmu_priv.dr.mmu_shadow_hop0)) { in hl_mmu_v1_init()
407 gen_pool_destroy(hdev->mmu_priv.dr.mmu_pgt_pool); in hl_mmu_v1_init()
426 if (!ZERO_OR_NULL_PTR(hdev->mmu_priv.dr.mmu_shadow_hop0)) { in hl_mmu_v1_fini()
427 kvfree(hdev->mmu_priv.dr.mmu_shadow_hop0); in hl_mmu_v1_fini()
428 gen_pool_destroy(hdev->mmu_priv.dr.mmu_pgt_pool); in hl_mmu_v1_fini()
434 hdev->mmu_priv.dr.mmu_shadow_hop0 = NULL; in hl_mmu_v1_fini()