Lines Matching defs:kdev

974 	struct kfd_topology_device *kdev =
981 list_for_each_entry(mem, &kdev->mem_props, list) {
994 static void kfd_add_non_crat_information(struct kfd_topology_device *kdev)
997 if (!kdev->gpu) {
999 dmi_walk(find_system_memory, kdev);
1011 struct kfd_topology_device *kdev;
1051 kdev = list_first_entry(&temp_topology_device_list,
1074 kdev = list_first_entry(&topology_device_list,
1077 kfd_add_non_crat_information(kdev);
1330 static int kfd_create_indirect_link_prop(struct kfd_topology_device *kdev, int gpu_node)
1345 if (list_empty(&kdev->io_link_props))
1348 gpu_link = list_first_entry(&kdev->io_link_props,
1386 kdev->node_props.p2p_links_count++;
1387 list_add_tail(&props->list, &kdev->p2p_link_props);
1388 ret = kfd_build_p2p_node_entry(kdev, props);
1393 if (kfd_dev_is_large_bar(kdev->gpu)) {
1414 static int kfd_add_peer_prop(struct kfd_topology_device *kdev,
1423 kdev->gpu->adev,
1427 if (list_empty(&kdev->io_link_props))
1430 iolink1 = list_first_entry(&kdev->io_link_props,
1675 static void kfd_fill_cache_non_crat_info(struct kfd_topology_device *dev, struct kfd_node *kdev)
1691 amdgpu_amdkfd_get_cu_info(kdev->adev, &cu_info);
1697 num_of_cache_types = kfd_get_gpu_cache_info(kdev, &pcache_info);
1712 start = ffs(kdev->xcc_mask) - 1;
1713 end = start + NUM_XCC(kdev->xcc_mask);
1747 pcu_info, ct, cu_processor_id, kdev);
2187 * returned through @kdev
2188 * Return - 0: On success (@kdev will be NULL for non GPU nodes)
2191 int kfd_topology_enum_kfd_devices(uint8_t idx, struct kfd_node **kdev)
2197 *kdev = NULL;
2202 *kdev = top_dev->gpu;