Lines Matching refs:n_devices
1388 if (!args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1392 if (args->n_success > args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1397 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_map_memory_to_gpu()
1404 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_map_memory_to_gpu()
1425 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1443 i, args->n_devices); in kfd_ioctl_map_memory_to_gpu()
1458 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1497 if (!args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1501 if (args->n_success > args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1506 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_unmap_memory_from_gpu()
1513 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_unmap_memory_from_gpu()
1534 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_unmap_memory_from_gpu()
1550 i, args->n_devices); in kfd_ioctl_unmap_memory_from_gpu()