Home
last modified time | relevance | path

Searched refs:num_hops (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu_v1.c331 int num_hops, hop_idx, prev_hop, rc = -ENOMEM; in hl_mmu_v1_map() local
351 num_hops = is_huge ? (MMU_V1_MAX_HOPS - 1) : MMU_V1_MAX_HOPS; in hl_mmu_v1_map()
353 for (hop_idx = MMU_HOP0; hop_idx < num_hops; hop_idx++) { in hl_mmu_v1_map()
381 for (hop_idx = MMU_HOP1; hop_idx < num_hops; hop_idx++) { in hl_mmu_v1_map()
393 for (hop_idx = MMU_HOP0; hop_idx < num_hops; hop_idx++) in hl_mmu_v1_map()
405 hl_mmu_dr_write_final_pte(ctx, hop_pte_addr[num_hops - 1], curr_pte); in hl_mmu_v1_map()
407 for (hop_idx = MMU_HOP1; hop_idx < num_hops; hop_idx++) { in hl_mmu_v1_map()
418 hl_mmu_dr_get_pte(ctx, hop_addr[num_hops - 1]); in hl_mmu_v1_map()
423 for (hop_idx = num_hops; hop_idx > MMU_HOP0; hop_idx--) { in hl_mmu_v1_map()
485 used_hops = mmu_prop->num_hops; in hl_mmu_v1_get_tlb_info()
[all …]
H A Dmmu_v2.c74 hop_last = mmu_prop->num_hops - 1; in hl_mmu_v2_unmap()
86 for (i = 1 ; i < mmu_prop->num_hops ; i++) { in hl_mmu_v2_unmap()
147 hop_last = mmu_prop->num_hops - 1; in hl_mmu_v2_map()
278 for (i = 1 ; i < mmu_prop->num_hops ; i++) { in hl_mmu_v2_get_tlb_info()
303 if (i == mmu_prop->num_hops) in hl_mmu_v2_get_tlb_info()
H A Dmmu_v2_hr.c130 hop_last = mmu_prop->num_hops - 1; in _hl_mmu_v2_hr_unmap()
135 for (i = 0 ; i < mmu_prop->num_hops ; i++) { in _hl_mmu_v2_hr_unmap()
194 for (hop = (mmu_prop->num_hops - 1); hop; hop--) { in hl_mmu_v2_get_last_hop()
H A Dmmu.c741 if (hop_idx >= mmu_prop->num_hops) { in hl_mmu_get_hop_pte_phys_addr()
1169 used_hops = mmu_prop->num_hops; in hl_mmu_hr_get_tlb_info()
1205 if (i == mmu_prop->num_hops) in hl_mmu_hr_get_tlb_info()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dta_xgmi_if.h84 uint8_t num_hops; member
H A Damdgpu_psp.c2008 uint8_t dst_num_hops = node_info.num_hops; in psp_xgmi_reflect_topology_info()
2028 mirror_top_info->nodes[j].num_hops = dst_num_hops; in psp_xgmi_reflect_topology_info()
2078 topology_info_input->nodes[i].num_hops = topology->nodes[i].num_hops; in psp_xgmi_get_topology_info()
2093 if (topology_info_output->nodes[i].num_hops) in psp_xgmi_get_topology_info()
2094 topology->nodes[i].num_hops = topology_info_output->nodes[i].num_hops; in psp_xgmi_get_topology_info()
2164 if (requires_reflection && topology->nodes[i].num_hops) in psp_xgmi_get_topology_info()
2192 topology_info_input->nodes[i].num_hops = topology->nodes[i].num_hops; in psp_xgmi_set_topology_info()
H A Damdgpu_xgmi.c431 offset += sysfs_emit_at(buf, offset, "%02x ", top->nodes[i].num_hops); in amdgpu_xgmi_show_num_hops()
826 return top->nodes[i].num_hops & num_hops_mask; in amdgpu_xgmi_get_hops_count()
/linux/drivers/accel/habanalabs/goya/
H A Dgoya.c432 prop->dmmu.num_hops = MMU_ARCH_5_HOPS; in goya_set_fixed_properties()
443 prop->pmmu.num_hops = MMU_ARCH_5_HOPS; in goya_set_fixed_properties()
/linux/drivers/accel/habanalabs/gaudi2/
H A Dgaudi2.c2830 prop->dmmu.num_hops = MMU_ARCH_4_HOPS; in gaudi2_set_fixed_properties()
2849 prop->pmmu.num_hops = MMU_ARCH_6_HOPS; in gaudi2_set_fixed_properties()
/linux/drivers/accel/habanalabs/gaudi/
H A Dgaudi.c634 prop->pmmu.num_hops = MMU_ARCH_5_HOPS; in gaudi_set_fixed_properties()