Searched refs:n_devices (Results 1 – 4 of 4) sorted by relevance
42 unsigned int *n_devices, in count_objects() argument49 *n_devices = 0; in count_objects()53 (*n_devices)++; in count_objects()58 static struct drbd_state_change *alloc_state_change(unsigned int n_devices, unsigned int n_connecti… in alloc_state_change() argument64 n_devices * sizeof(struct drbd_device_state_change) + in alloc_state_change()66 n_devices * n_connections * sizeof(struct drbd_peer_device_state_change); in alloc_state_change()70 state_change->n_devices = n_devices; in alloc_state_change()73 state_change->connections = (void *)&state_change->devices[n_devices]; in alloc_state_change()76 for (n = 0; n < n_devices; n++) in alloc_state_change()87 unsigned int n_devices; in remember_old_state() local[all …]
35 unsigned int n_devices; member
4828 state_change->n_devices + in notifications_for_state_change()4829 state_change->n_devices * state_change->n_connections; in notifications_for_state_change()4865 if (n < state_change->n_devices) { in get_initial_state()4870 n -= state_change->n_devices; in get_initial_state()4871 if (n < state_change->n_devices * state_change->n_connections) { in get_initial_state()
1225 if (!args->n_devices) { in kfd_ioctl_map_memory_to_gpu()1229 if (args->n_success > args->n_devices) { in kfd_ioctl_map_memory_to_gpu()1234 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_map_memory_to_gpu()1241 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_map_memory_to_gpu()1268 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()1310 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()1342 if (!args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()1346 if (args->n_success > args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()1351 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_unmap_memory_from_gpu()1358 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_unmap_memory_from_gpu()[all …]