Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/misc/habanalabs/
Dmmu.c256 ctx->dram_default_hops = kzalloc(HL_PTE_SIZE * total_hops, GFP_KERNEL); in dram_default_mapping_init()
257 if (!ctx->dram_default_hops) in dram_default_mapping_init()
269 ctx->dram_default_hops[total_hops - 1] = hop1_addr; in dram_default_mapping_init()
278 ctx->dram_default_hops[total_hops - 2] = hop2_addr; in dram_default_mapping_init()
281 ctx->dram_default_hops[i] = alloc_hop(ctx); in dram_default_mapping_init()
282 if (ctx->dram_default_hops[i] == ULLONG_MAX) { in dram_default_mapping_init()
300 pte_val = (ctx->dram_default_hops[i] & PTE_PHYS_ADDR_MASK) | in dram_default_mapping_init()
311 hop3_pte_addr = ctx->dram_default_hops[i]; in dram_default_mapping_init()
314 get_pte(ctx, ctx->dram_default_hops[i]); in dram_default_mapping_init()
325 free_hop(ctx, ctx->dram_default_hops[i]); in dram_default_mapping_init()
[all …]
Dhabanalabs.h658 u64 *dram_default_hops; member