Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/thunderbolt/
Dpath.c111 size_t num_hops; in tb_path_discover() local
129 num_hops = 0; in tb_path_discover()
150 num_hops++; in tb_path_discover()
159 path->path_length = num_hops; in tb_path_discover()
163 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_discover()
175 for (i = 0; i < num_hops; i++) { in tb_path_discover()
245 size_t num_hops; in tb_path_alloc() local
268 num_hops = i / 2; in tb_path_alloc()
270 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc()
281 for (i = 0; i < num_hops; i++) { in tb_path_alloc()
[all …]
/linux-6.6.21/drivers/accel/habanalabs/common/mmu/
Dmmu_v1.c595 int num_hops, hop_idx, prev_hop, rc = -ENOMEM; in hl_mmu_v1_map() local
615 num_hops = is_huge ? (MMU_V1_MAX_HOPS - 1) : MMU_V1_MAX_HOPS; in hl_mmu_v1_map()
617 for (hop_idx = MMU_HOP0; hop_idx < num_hops; hop_idx++) { in hl_mmu_v1_map()
645 for (hop_idx = MMU_HOP1; hop_idx < num_hops; hop_idx++) { in hl_mmu_v1_map()
657 for (hop_idx = MMU_HOP0; hop_idx < num_hops; hop_idx++) in hl_mmu_v1_map()
669 write_final_pte(ctx, hop_pte_addr[num_hops - 1], curr_pte); in hl_mmu_v1_map()
671 for (hop_idx = MMU_HOP1; hop_idx < num_hops; hop_idx++) { in hl_mmu_v1_map()
682 get_pte(ctx, hop_addr[num_hops - 1]); in hl_mmu_v1_map()
687 for (hop_idx = num_hops; hop_idx > MMU_HOP0; hop_idx--) { in hl_mmu_v1_map()
749 used_hops = mmu_prop->num_hops; in hl_mmu_v1_get_tlb_info()
[all …]
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()
Dmmu.c734 if (hop_idx >= mmu_prop->num_hops) { in hl_mmu_get_hop_pte_phys_addr()
1162 used_hops = mmu_prop->num_hops; in hl_mmu_hr_get_tlb_info()
1198 if (i == mmu_prop->num_hops) in hl_mmu_hr_get_tlb_info()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Dta_xgmi_if.h74 uint8_t num_hops; member
Damdgpu_psp.c1335 uint8_t dst_num_hops = node_info.num_hops; in psp_xgmi_reflect_topology_info()
1351 mirror_top_info->nodes[j].num_hops = dst_num_hops; in psp_xgmi_reflect_topology_info()
1394 topology_info_input->nodes[i].num_hops = topology->nodes[i].num_hops; in psp_xgmi_get_topology_info()
1409 if (topology_info_output->nodes[i].num_hops) in psp_xgmi_get_topology_info()
1410 topology->nodes[i].num_hops = topology_info_output->nodes[i].num_hops; in psp_xgmi_get_topology_info()
1447 if (requires_reflection && topology->nodes[i].num_hops) in psp_xgmi_get_topology_info()
1475 topology_info_input->nodes[i].num_hops = topology->nodes[i].num_hops; in psp_xgmi_set_topology_info()
Damdgpu_xgmi.c338 sprintf(buf + 3 * i, "%02x ", top->nodes[i].num_hops); in amdgpu_xgmi_show_num_hops()
673 return top->nodes[i].num_hops & num_hops_mask; in amdgpu_xgmi_get_hops_count()
Damdgpu_psp.h148 uint8_t num_hops; member
/linux-6.6.21/drivers/accel/habanalabs/goya/
Dgoya.c435 prop->dmmu.num_hops = MMU_ARCH_5_HOPS; in goya_set_fixed_properties()
446 prop->pmmu.num_hops = MMU_ARCH_5_HOPS; in goya_set_fixed_properties()
/linux-6.6.21/drivers/accel/habanalabs/common/
Dhabanalabs.h517 u32 num_hops; member
/linux-6.6.21/drivers/accel/habanalabs/gaudi2/
Dgaudi2.c2345 prop->dmmu.num_hops = MMU_ARCH_6_HOPS; in gaudi2_set_fixed_properties()
2361 prop->pmmu.num_hops = MMU_ARCH_6_HOPS; in gaudi2_set_fixed_properties()
/linux-6.6.21/drivers/accel/habanalabs/gaudi/
Dgaudi.c633 prop->pmmu.num_hops = MMU_ARCH_5_HOPS; in gaudi_set_fixed_properties()