Lines Matching refs:n_devices
1435 if (!args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1439 if (args->n_success > args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1444 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_map_memory_to_gpu()
1451 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_map_memory_to_gpu()
1472 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1491 i, args->n_devices); in kfd_ioctl_map_memory_to_gpu()
1507 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1546 if (!args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1550 if (args->n_success > args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1555 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_unmap_memory_from_gpu()
1562 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_unmap_memory_from_gpu()
1583 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_unmap_memory_from_gpu()
1599 i, args->n_devices); in kfd_ioctl_unmap_memory_from_gpu()
1615 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_unmap_memory_from_gpu()