Lines Matching refs:n_devices
1239 if (!args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1243 if (args->n_success > args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1248 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_map_memory_to_gpu()
1255 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_map_memory_to_gpu()
1282 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1324 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1355 if (!args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1359 if (args->n_success > args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1364 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_unmap_memory_from_gpu()
1371 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_unmap_memory_from_gpu()
1391 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_unmap_memory_from_gpu()
1401 i, args->n_devices); in kfd_ioctl_unmap_memory_from_gpu()
1417 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_unmap_memory_from_gpu()