Lines Matching defs:kdev

973 	struct kfd_topology_device *kdev =
980 list_for_each_entry(mem, &kdev->mem_props, list) {
993 static void kfd_add_non_crat_information(struct kfd_topology_device *kdev)
996 if (!kdev->gpu) {
998 dmi_walk(find_system_memory, kdev);
1010 struct kfd_topology_device *kdev;
1050 kdev = list_first_entry(&temp_topology_device_list,
1073 kdev = list_first_entry(&topology_device_list,
1076 kfd_add_non_crat_information(kdev);
1329 static int kfd_create_indirect_link_prop(struct kfd_topology_device *kdev, int gpu_node)
1344 if (list_empty(&kdev->io_link_props))
1347 gpu_link = list_first_entry(&kdev->io_link_props,
1385 kdev->node_props.p2p_links_count++;
1386 list_add_tail(&props->list, &kdev->p2p_link_props);
1387 ret = kfd_build_p2p_node_entry(kdev, props);
1392 if (kfd_dev_is_large_bar(kdev->gpu)) {
1413 static int kfd_add_peer_prop(struct kfd_topology_device *kdev,
1422 kdev->gpu->adev,
1426 if (list_empty(&kdev->io_link_props))
1429 iolink1 = list_first_entry(&kdev->io_link_props,
1674 static void kfd_fill_cache_non_crat_info(struct kfd_topology_device *dev, struct kfd_node *kdev)
1690 amdgpu_amdkfd_get_cu_info(kdev->adev, &cu_info);
1696 num_of_cache_types = kfd_get_gpu_cache_info(kdev, &pcache_info);
1711 start = ffs(kdev->xcc_mask) - 1;
1712 end = start + NUM_XCC(kdev->xcc_mask);
1746 pcu_info, ct, cu_processor_id, kdev);
2186 * returned through @kdev
2187 * Return - 0: On success (@kdev will be NULL for non GPU nodes)
2190 int kfd_topology_enum_kfd_devices(uint8_t idx, struct kfd_node **kdev)
2196 *kdev = NULL;
2201 *kdev = top_dev->gpu;