Lines Matching refs:gpu_id
81 struct kfd_topology_device *kfd_topology_device_by_id(uint32_t gpu_id) in kfd_topology_device_by_id() argument
89 if (top_dev->gpu_id == gpu_id) { in kfd_topology_device_by_id()
99 struct kfd_dev *kfd_device_by_id(uint32_t gpu_id) in kfd_device_by_id() argument
103 top_dev = kfd_topology_device_by_id(gpu_id); in kfd_device_by_id()
452 return sysfs_show_32bit_val(buffer, offs, dev->gpu_id); in node_show()
1229 static void kfd_notify_gpu_change(uint32_t gpu_id, int arrival) in kfd_notify_gpu_change() argument
1598 uint32_t gpu_id; in kfd_topology_add_device() local
1611 gpu_id = kfd_generate_gpu_id(gpu); in kfd_topology_add_device()
1612 pr_debug("Adding new GPU (ID: 0x%x) to topology\n", gpu_id); in kfd_topology_add_device()
1630 gpu_id); in kfd_topology_add_device()
1639 gpu_id); in kfd_topology_add_device()
1657 gpu_id, res); in kfd_topology_add_device()
1665 dev->gpu_id = gpu_id; in kfd_topology_add_device()
1666 gpu->id = gpu_id; in kfd_topology_add_device()
1787 kfd_notify_gpu_change(gpu_id, 1); in kfd_topology_add_device()
1858 uint32_t gpu_id; in kfd_topology_remove_device() local
1866 gpu_id = dev->gpu_id; in kfd_topology_remove_device()
1884 kfd_notify_gpu_change(gpu_id, 0); in kfd_topology_remove_device()