Searched refs:total_hops (Results 1 – 1 of 1) sorted by relevance
| /Linux-v5.15/drivers/misc/habanalabs/common/mmu/ |
| D | mmu_v1.c | 261 u64 num_of_hop3, total_hops, hop0_addr, hop1_addr, hop2_addr, in dram_default_mapping_init() local 275 total_hops = num_of_hop3 + 2; in dram_default_mapping_init() 277 ctx->dram_default_hops = kzalloc(HL_PTE_SIZE * total_hops, GFP_KERNEL); in dram_default_mapping_init() 290 ctx->dram_default_hops[total_hops - 1] = hop1_addr; in dram_default_mapping_init() 299 ctx->dram_default_hops[total_hops - 2] = hop2_addr; in dram_default_mapping_init() 361 u64 num_of_hop3, total_hops, hop0_addr, hop1_addr, hop2_addr, in dram_default_mapping_fini() local 376 total_hops = num_of_hop3 + 2; in dram_default_mapping_fini() 377 hop1_addr = ctx->dram_default_hops[total_hops - 1]; in dram_default_mapping_fini() 378 hop2_addr = ctx->dram_default_hops[total_hops - 2]; in dram_default_mapping_fini()
|