Lines Matching refs:hop1_addr
262 u64 num_of_hop3, total_hops, hop0_addr, hop1_addr, hop2_addr, in dram_default_mapping_init() local
284 hop1_addr = alloc_hop(ctx); in dram_default_mapping_init()
285 if (hop1_addr == ULLONG_MAX) { in dram_default_mapping_init()
291 ctx->dram_default_hops[total_hops - 1] = hop1_addr; in dram_default_mapping_init()
313 pte_val = (hop1_addr & HOP_PHYS_ADDR_MASK) | PAGE_PRESENT_MASK; in dram_default_mapping_init()
317 write_pte(ctx, hop1_addr, pte_val); in dram_default_mapping_init()
318 get_pte(ctx, hop1_addr); in dram_default_mapping_init()
351 free_hop(ctx, hop1_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
378 hop1_addr = ctx->dram_default_hops[total_hops - 1]; in dram_default_mapping_fini()
398 clear_pte(ctx, hop1_addr); in dram_default_mapping_fini()
399 put_pte(ctx, hop1_addr); in dram_default_mapping_fini()
531 hop1_addr = 0, hop1_pte_addr = 0, in _hl_mmu_v1_unmap() local
546 hop1_addr = get_next_hop_addr(ctx, curr_pte); in _hl_mmu_v1_unmap()
548 if (hop1_addr == ULLONG_MAX) in _hl_mmu_v1_unmap()
551 hop1_pte_addr = get_hop1_pte_addr(ctx, mmu_prop, hop1_addr, virt_addr); in _hl_mmu_v1_unmap()
642 if (put_pte(ctx, hop1_addr)) in _hl_mmu_v1_unmap()
665 hop1_addr = 0, hop1_pte_addr = 0, in _hl_mmu_v1_map() local
696 hop1_addr = get_alloc_next_hop_addr(ctx, curr_pte, &hop1_new); in _hl_mmu_v1_map()
697 if (hop1_addr == ULLONG_MAX) in _hl_mmu_v1_map()
700 hop1_pte_addr = get_hop1_pte_addr(ctx, mmu_prop, hop1_addr, virt_addr); in _hl_mmu_v1_map()
779 (hop1_addr & HOP_PHYS_ADDR_MASK) | PAGE_PRESENT_MASK; in _hl_mmu_v1_map()
786 get_pte(ctx, hop1_addr); in _hl_mmu_v1_map()
818 free_hop(ctx, hop1_addr); in _hl_mmu_v1_map()