Home
last modified time | relevance | path

Searched refs:dram_default_hops (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/accel/habanalabs/common/mmu/
Dmmu_v1.c46 ctx->dram_default_hops = kcalloc(total_hops, HL_PTE_SIZE, GFP_KERNEL); in dram_default_mapping_init()
47 if (!ctx->dram_default_hops) in dram_default_mapping_init()
59 ctx->dram_default_hops[total_hops - 1] = hop1_addr; in dram_default_mapping_init()
68 ctx->dram_default_hops[total_hops - 2] = hop2_addr; in dram_default_mapping_init()
71 ctx->dram_default_hops[i] = hl_mmu_dr_alloc_hop(ctx); in dram_default_mapping_init()
72 if (ctx->dram_default_hops[i] == ULLONG_MAX) { in dram_default_mapping_init()
90 pte_val = (ctx->dram_default_hops[i] & HOP_PHYS_ADDR_MASK) | in dram_default_mapping_init()
101 hop3_pte_addr = ctx->dram_default_hops[i]; in dram_default_mapping_init()
104 hl_mmu_dr_get_pte(ctx, ctx->dram_default_hops[i]); in dram_default_mapping_init()
115 hl_mmu_dr_free_hop(ctx, ctx->dram_default_hops[i]); in dram_default_mapping_init()
[all …]
/linux-6.12.1/drivers/accel/habanalabs/common/
Dhabanalabs.h1949 u64 *dram_default_hops; member