Lines Matching refs:devices_arr
1255 uint32_t *devices_arr = NULL; in kfd_ioctl_map_memory_to_gpu() local
1266 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_map_memory_to_gpu()
1268 if (!devices_arr) in kfd_ioctl_map_memory_to_gpu()
1271 err = copy_from_user(devices_arr, in kfd_ioctl_map_memory_to_gpu()
1273 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_map_memory_to_gpu()
1301 peer_pdd = kfd_process_device_data_by_id(p, devices_arr[i]); in kfd_ioctl_map_memory_to_gpu()
1304 devices_arr[i]); in kfd_ioctl_map_memory_to_gpu()
1343 peer_pdd = kfd_process_device_data_by_id(p, devices_arr[i]); in kfd_ioctl_map_memory_to_gpu()
1348 kfree(devices_arr); in kfd_ioctl_map_memory_to_gpu()
1359 kfree(devices_arr); in kfd_ioctl_map_memory_to_gpu()
1371 uint32_t *devices_arr = NULL, i; in kfd_ioctl_unmap_memory_from_gpu() local
1383 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_unmap_memory_from_gpu()
1385 if (!devices_arr) in kfd_ioctl_unmap_memory_from_gpu()
1388 err = copy_from_user(devices_arr, in kfd_ioctl_unmap_memory_from_gpu()
1390 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_unmap_memory_from_gpu()
1411 peer_pdd = kfd_process_device_data_by_id(p, devices_arr[i]); in kfd_ioctl_unmap_memory_from_gpu()
1438 peer_pdd = kfd_process_device_data_by_id(p, devices_arr[i]); in kfd_ioctl_unmap_memory_from_gpu()
1452 kfree(devices_arr); in kfd_ioctl_unmap_memory_from_gpu()
1462 kfree(devices_arr); in kfd_ioctl_unmap_memory_from_gpu()