Lines Matching refs:hop2_addr

262 	u64 num_of_hop3, total_hops, hop0_addr, hop1_addr, hop2_addr,  in dram_default_mapping_init()  local
293 hop2_addr = alloc_hop(ctx); in dram_default_mapping_init()
294 if (hop2_addr == ULLONG_MAX) { in dram_default_mapping_init()
300 ctx->dram_default_hops[total_hops - 2] = hop2_addr; in dram_default_mapping_init()
316 pte_val = (hop2_addr & HOP_PHYS_ADDR_MASK) | PAGE_PRESENT_MASK; in dram_default_mapping_init()
320 hop2_pte_addr = hop2_addr; in dram_default_mapping_init()
325 get_pte(ctx, hop2_addr); in dram_default_mapping_init()
349 free_hop(ctx, hop2_addr); in dram_default_mapping_init()
362 u64 num_of_hop3, total_hops, hop0_addr, hop1_addr, hop2_addr, in dram_default_mapping_fini() local
379 hop2_addr = ctx->dram_default_hops[total_hops - 2]; in dram_default_mapping_fini()
390 hop2_pte_addr = hop2_addr; in dram_default_mapping_fini()
391 hop2_pte_addr = hop2_addr; in dram_default_mapping_fini()
394 put_pte(ctx, hop2_addr); in dram_default_mapping_fini()
532 hop2_addr = 0, hop2_pte_addr = 0, in _hl_mmu_v1_unmap() local
555 hop2_addr = get_next_hop_addr(ctx, curr_pte); in _hl_mmu_v1_unmap()
557 if (hop2_addr == ULLONG_MAX) in _hl_mmu_v1_unmap()
560 hop2_pte_addr = get_hop2_pte_addr(ctx, mmu_prop, hop2_addr, virt_addr); in _hl_mmu_v1_unmap()
637 if (put_pte(ctx, hop2_addr)) in _hl_mmu_v1_unmap()
666 hop2_addr = 0, hop2_pte_addr = 0, in _hl_mmu_v1_map() local
703 hop2_addr = get_alloc_next_hop_addr(ctx, curr_pte, &hop2_new); in _hl_mmu_v1_map()
704 if (hop2_addr == ULLONG_MAX) in _hl_mmu_v1_map()
707 hop2_pte_addr = get_hop2_pte_addr(ctx, mmu_prop, hop2_addr, virt_addr); in _hl_mmu_v1_map()
784 (hop2_addr & HOP_PHYS_ADDR_MASK) | PAGE_PRESENT_MASK; in _hl_mmu_v1_map()
792 get_pte(ctx, hop2_addr); in _hl_mmu_v1_map()
816 free_hop(ctx, hop2_addr); in _hl_mmu_v1_map()