Lines Matching refs:n_devices
1257 if (!args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1261 if (args->n_success > args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1266 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_map_memory_to_gpu()
1273 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_map_memory_to_gpu()
1300 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1342 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1374 if (!args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1378 if (args->n_success > args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1383 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_unmap_memory_from_gpu()
1390 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_unmap_memory_from_gpu()
1410 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_unmap_memory_from_gpu()
1420 i, args->n_devices); in kfd_ioctl_unmap_memory_from_gpu()
1439 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_unmap_memory_from_gpu()