Home
last modified time | relevance | path

Searched refs:gpuidx (Results 1 – 3 of 3) sorted by relevance

/drivers/gpu/drm/amd/amdkfd/
Dkfd_svm.c131 unsigned long *hmm_pfns, uint32_t gpuidx) in svm_range_dma_map_dev() argument
134 dma_addr_t *addr = prange->dma_addr[gpuidx]; in svm_range_dma_map_dev()
144 prange->dma_addr[gpuidx] = addr; in svm_range_dma_map_dev()
182 uint32_t gpuidx; in svm_range_dma_map() local
187 for_each_set_bit(gpuidx, bitmap, MAX_GPU_INSTANCE) { in svm_range_dma_map()
191 pr_debug("mapping to gpu idx 0x%x\n", gpuidx); in svm_range_dma_map()
192 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in svm_range_dma_map()
194 pr_debug("failed to find device idx %d\n", gpuidx); in svm_range_dma_map()
200 hmm_pfns, gpuidx); in svm_range_dma_map()
232 uint32_t gpuidx; in svm_range_free_dma_mappings() local
[all …]
Dkfd_priv.h881 uint32_t *gpuidx);
883 uint32_t gpuidx, uint32_t *gpuid) { in kfd_process_gpuid_from_gpuidx() argument
884 return gpuidx < p->n_pdds ? p->pdds[gpuidx]->dev->id : -EINVAL; in kfd_process_gpuid_from_gpuidx()
887 struct kfd_process *p, uint32_t gpuidx) { in kfd_process_device_from_gpuidx() argument
888 return gpuidx < p->n_pdds ? p->pdds[gpuidx] : NULL; in kfd_process_device_from_gpuidx()
Dkfd_process.c1728 uint32_t *gpuid, uint32_t *gpuidx) in kfd_process_gpuid_from_kgd() argument
1736 *gpuidx = i; in kfd_process_gpuid_from_kgd()