Home
last modified time | relevance | path

Searched refs:n_devices (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/block/drbd/
H A Ddrbd_state.c42 unsigned int *n_devices, in count_objects() argument
49 *n_devices = 0; in count_objects()
53 (*n_devices)++; in count_objects()
64 n_devices * sizeof(struct drbd_device_state_change) + in alloc_state_change()
70 state_change->n_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
98 count_objects(resource, &n_devices, &n_connections); in remember_old_state()
99 state_change = alloc_state_change(n_devices, n_connections, gfp); in remember_old_state()
173 for (n = 0; n < state_change->n_devices; n++) { in remember_new_state()
[all …]
H A Ddrbd_state_change.h35 unsigned int n_devices; member
H A Ddrbd_nl.c4842 state_change->n_devices + in notifications_for_state_change()
4843 state_change->n_devices * state_change->n_connections; in notifications_for_state_change()
4879 if (n < state_change->n_devices) { in get_initial_state()
4884 n -= state_change->n_devices; in get_initial_state()
4885 if (n < state_change->n_devices * state_change->n_connections) { in get_initial_state()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c1241 if (!args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1245 if (args->n_success > args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1250 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_map_memory_to_gpu()
1257 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_map_memory_to_gpu()
1284 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1326 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1358 if (!args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1362 if (args->n_success > args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1374 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_unmap_memory_from_gpu()
1394 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_unmap_memory_from_gpu()
[all …]
/linux/include/uapi/linux/
H A Dkfd_ioctl.h464 __u32 n_devices; /* to KFD */ member
475 __u32 n_devices; /* to KFD */ member