Searched refs:mmu_priv (Results 1 – 4 of 4) sorted by relevance
/linux-6.6.21/drivers/accel/habanalabs/common/mmu/ |
D | mmu_v1.c | 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() [all …]
|
D | mmu_v2_hr.c | 33 return &ctx->hdev->mmu_priv.hr.mmu_asid_hop0[ctx->asid]; in hl_mmu_v2_hr_get_hop0_pgt_info() 50 return hl_mmu_hr_init(hdev, &hdev->mmu_priv.hr, prop->mmu_hop_table_size, in hl_mmu_v2_hr_init() 68 hl_mmu_hr_fini(hdev, &hdev->mmu_priv.hr, prop->mmu_hop_table_size); in hl_mmu_v2_hr_fini() 110 hl_mmu_hr_free_hop_remove_pgt(pgt_info, &ctx->hdev->mmu_priv.hr, in hl_mmu_v2_hr_ctx_fini() 174 if (hl_mmu_hr_put_pte(ctx, hops_pgt_info[i], &ctx->hdev->mmu_priv.hr, in _hl_mmu_v2_hr_unmap() 247 &ctx->hdev->mmu_priv.hr, in _hl_mmu_v2_hr_map() 305 hl_mmu_hr_free_hop_remove_pgt(hops_pgt_info[i], &ctx->hdev->mmu_priv.hr, in _hl_mmu_v2_hr_map()
|
/linux-6.6.21/drivers/accel/habanalabs/common/ |
D | habanalabs.h | 3376 struct hl_mmu_priv mmu_priv; member
|
/linux-6.6.21/drivers/accel/habanalabs/gaudi2/ |
D | gaudi2.c | 5751 hop0_addr = hdev->mmu_priv.hr.mmu_asid_hop0[asid].phys_addr; in gaudi2_mmu_update_hop0_addr()
|