Searched refs:total_hops (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/accel/habanalabs/common/mmu/ |
H A D | mmu_v1.c | 219 u64 num_of_hop3, total_hops, hop0_addr, hop1_addr, hop2_addr, in dram_default_mapping_init() local 233 total_hops = num_of_hop3 + 2; in dram_default_mapping_init() 235 ctx->dram_default_hops = kzalloc(HL_PTE_SIZE * total_hops, GFP_KERNEL); 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() 319 u64 num_of_hop3, total_hops, hop0_addr, hop1_addr, hop2_addr, in dram_default_mapping_fini() local 334 total_hops = num_of_hop3 + 2; in dram_default_mapping_fini() 335 hop1_addr = ctx->dram_default_hops[total_hops - 1]; in dram_default_mapping_fini() 336 hop2_addr = ctx->dram_default_hops[total_hops - 2]; in dram_default_mapping_fini()
|