Lines Matching refs:kdev
988 struct kfd_topology_device *kdev = in find_system_memory() local
995 list_for_each_entry(mem, &kdev->mem_props, list) { in find_system_memory()
1009 static int kfd_add_perf_to_topology(struct kfd_topology_device *kdev) in kfd_add_perf_to_topology() argument
1012 return kfd_iommu_add_perf_counters(kdev); in kfd_add_perf_to_topology()
1019 static void kfd_add_non_crat_information(struct kfd_topology_device *kdev) in kfd_add_non_crat_information() argument
1022 if (!kdev->gpu) { in kfd_add_non_crat_information()
1024 dmi_walk(find_system_memory, kdev); in kfd_add_non_crat_information()
1055 struct kfd_topology_device *kdev; in kfd_topology_init() local
1117 kdev = list_first_entry(&temp_topology_device_list, in kfd_topology_init()
1119 kfd_add_perf_to_topology(kdev); in kfd_topology_init()
1141 kdev = list_first_entry(&topology_device_list, in kfd_topology_init()
1144 kfd_add_non_crat_information(kdev); in kfd_topology_init()
1393 static int kfd_create_indirect_link_prop(struct kfd_topology_device *kdev, int gpu_node) in kfd_create_indirect_link_prop() argument
1408 gpu_link = list_first_entry(&kdev->io_link_props, in kfd_create_indirect_link_prop()
1448 kdev->node_props.p2p_links_count++; in kfd_create_indirect_link_prop()
1449 list_add_tail(&props->list, &kdev->p2p_link_props); in kfd_create_indirect_link_prop()
1450 ret = kfd_build_p2p_node_entry(kdev, props); in kfd_create_indirect_link_prop()
1455 if (kfd_dev_is_large_bar(kdev->gpu)) { in kfd_create_indirect_link_prop()
1476 static int kfd_add_peer_prop(struct kfd_topology_device *kdev, in kfd_add_peer_prop() argument
1485 kdev->gpu->adev, in kfd_add_peer_prop()
1489 iolink1 = list_first_entry(&kdev->io_link_props, in kfd_add_peer_prop()
1895 int kfd_topology_enum_kfd_devices(uint8_t idx, struct kfd_dev **kdev) in kfd_topology_enum_kfd_devices() argument
1901 *kdev = NULL; in kfd_topology_enum_kfd_devices()
1906 *kdev = top_dev->gpu; in kfd_topology_enum_kfd_devices()