Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/misc/habanalabs/common/mmu/
Dmmu_v1.c235 ctx->dram_default_hops = kzalloc(HL_PTE_SIZE * total_hops, GFP_KERNEL); in dram_default_mapping_init()
236 if (!ctx->dram_default_hops) in dram_default_mapping_init()
248 ctx->dram_default_hops[total_hops - 1] = hop1_addr; in dram_default_mapping_init()
257 ctx->dram_default_hops[total_hops - 2] = hop2_addr; in dram_default_mapping_init()
260 ctx->dram_default_hops[i] = alloc_hop(ctx); in dram_default_mapping_init()
261 if (ctx->dram_default_hops[i] == ULLONG_MAX) { in dram_default_mapping_init()
279 pte_val = (ctx->dram_default_hops[i] & HOP_PHYS_ADDR_MASK) | in dram_default_mapping_init()
290 hop3_pte_addr = ctx->dram_default_hops[i]; in dram_default_mapping_init()
293 get_pte(ctx, ctx->dram_default_hops[i]); in dram_default_mapping_init()
304 free_hop(ctx, ctx->dram_default_hops[i]); in dram_default_mapping_init()
[all …]
/linux-6.1.9/drivers/misc/habanalabs/common/
Dhabanalabs.h1841 u64 *dram_default_hops; member