Lines Matching refs:kdev

1326 static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev,  in kfd_fill_gpu_cache_info()  argument
1343 switch (kdev->device_info->asic_family) { in kfd_fill_gpu_cache_info()
1838 struct kfd_dev *kdev, uint8_t type, uint64_t size, in kfd_fill_gpu_memory_affinity() argument
1867 static void kfd_find_numa_node_in_srat(struct kfd_dev *kdev) in kfd_find_numa_node_in_srat() argument
1872 u32 pci_id = pci_domain_nr(kdev->pdev->bus) << 16 | in kfd_find_numa_node_in_srat()
1873 pci_dev_id(kdev->pdev); in kfd_find_numa_node_in_srat()
1948 set_dev_node(&kdev->pdev->dev, numa_node); in kfd_find_numa_node_in_srat()
1962 struct kfd_dev *kdev, in kfd_fill_gpu_direct_io_link_to_cpu() argument
1966 struct amdgpu_device *adev = (struct amdgpu_device *)kdev->kgd; in kfd_fill_gpu_direct_io_link_to_cpu()
1978 if (kfd_dev_is_large_bar(kdev)) in kfd_fill_gpu_direct_io_link_to_cpu()
1996 kdev->kgd, NULL, true); in kfd_fill_gpu_direct_io_link_to_cpu()
2003 amdgpu_amdkfd_get_pcie_bandwidth_mbytes(kdev->kgd, true); in kfd_fill_gpu_direct_io_link_to_cpu()
2005 amdgpu_amdkfd_get_pcie_bandwidth_mbytes(kdev->kgd, false); in kfd_fill_gpu_direct_io_link_to_cpu()
2011 if (kdev->pdev->dev.numa_node == NUMA_NO_NODE) in kfd_fill_gpu_direct_io_link_to_cpu()
2012 kfd_find_numa_node_in_srat(kdev); in kfd_fill_gpu_direct_io_link_to_cpu()
2015 if (kdev->pdev->dev.numa_node == NUMA_NO_NODE) in kfd_fill_gpu_direct_io_link_to_cpu()
2018 sub_type_hdr->proximity_domain_to = kdev->pdev->dev.numa_node; in kfd_fill_gpu_direct_io_link_to_cpu()
2026 struct kfd_dev *kdev, in kfd_fill_gpu_xgmi_link_to_gpu() argument
2047 amdgpu_amdkfd_get_xgmi_hops_count(kdev->kgd, peer_kdev->kgd); in kfd_fill_gpu_xgmi_link_to_gpu()
2049 amdgpu_amdkfd_get_xgmi_bandwidth_mbytes(kdev->kgd, peer_kdev->kgd, false); in kfd_fill_gpu_xgmi_link_to_gpu()
2051 amdgpu_amdkfd_get_xgmi_bandwidth_mbytes(kdev->kgd, NULL, true) : 0; in kfd_fill_gpu_xgmi_link_to_gpu()
2063 size_t *size, struct kfd_dev *kdev, in kfd_create_vcrat_image_gpu() argument
2117 amdgpu_amdkfd_get_cu_info(kdev->kgd, &cu_info); in kfd_create_vcrat_image_gpu()
2137 if (!kfd_iommu_check_device(kdev)) in kfd_create_vcrat_image_gpu()
2148 amdgpu_amdkfd_get_local_mem_info(kdev->kgd, &local_mem_info); in kfd_create_vcrat_image_gpu()
2157 kdev, HSA_MEM_HEAP_TYPE_FB_PUBLIC, in kfd_create_vcrat_image_gpu()
2164 kdev, HSA_MEM_HEAP_TYPE_FB_PRIVATE, in kfd_create_vcrat_image_gpu()
2181 ret = kfd_fill_gpu_cache_info(kdev, cu->processor_id_low, in kfd_create_vcrat_image_gpu()
2201 ret = kfd_fill_gpu_direct_io_link_to_cpu(&avail_size, kdev, in kfd_create_vcrat_image_gpu()
2219 if (kdev->hive_id) { in kfd_create_vcrat_image_gpu()
2224 if (peer_dev->gpu->hive_id != kdev->hive_id) in kfd_create_vcrat_image_gpu()
2230 &avail_size, kdev, peer_dev->gpu, in kfd_create_vcrat_image_gpu()
2263 int flags, struct kfd_dev *kdev, in kfd_create_crat_image_virtual() argument
2295 if (!kdev) in kfd_create_crat_image_virtual()
2301 ret = kfd_create_vcrat_image_gpu(pcrat_image, size, kdev, in kfd_create_crat_image_virtual()