Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/staging/wusbcore/host/whci/
Dinit.c31 for (d = 0; d < whc->n_devices; d++) in whc_hw_init_di_buf()
93 whc->n_devices = WHCSPARAMS_TO_N_DEVICES(whcsparams); in whc_init()
98 whc->n_devices, whc->n_keys, whc->n_mmc_ies); in whc_init()
135 sizeof(struct di_buf_entry) * whc->n_devices, in whc_init()
155 dma_free_coherent(&whc->umc->dev, sizeof(struct di_buf_entry) * whc->n_devices, in whc_clean_up()
Dhcd.c259 if (whc->n_devices > USB_MAXCHILDREN) { in whc_probe()
261 whc->n_devices); in whc_probe()
264 wusbhc->ports_max = whc->n_devices; in whc_probe()
Ddebug.c80 for (d = 0; d < whc->n_devices; d++) { in di_show()
Dwusb.c199 ret = whc_set_key(whc, whc->n_devices, tkid, gtk, key_size, true); in whc_set_gtk()
Dwhcd.h29 u8 n_devices; member
/Linux-v5.4/drivers/gpu/drm/amd/amdkfd/
Dkfd_chardev.c1388 if (!args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1392 if (args->n_success > args->n_devices) { in kfd_ioctl_map_memory_to_gpu()
1397 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_map_memory_to_gpu()
1404 args->n_devices * sizeof(*devices_arr)); in kfd_ioctl_map_memory_to_gpu()
1425 for (i = args->n_success; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1443 i, args->n_devices); in kfd_ioctl_map_memory_to_gpu()
1458 for (i = 0; i < args->n_devices; i++) { in kfd_ioctl_map_memory_to_gpu()
1497 if (!args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1501 if (args->n_success > args->n_devices) { in kfd_ioctl_unmap_memory_from_gpu()
1506 devices_arr = kmalloc_array(args->n_devices, sizeof(*devices_arr), in kfd_ioctl_unmap_memory_from_gpu()
[all …]
/Linux-v5.4/drivers/block/drbd/
Ddrbd_state.c42 unsigned int *n_devices, in count_objects() argument
49 *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() argument
64 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 …]
Ddrbd_state_change.h35 unsigned int n_devices; member
Ddrbd_nl.c4915 state_change->n_devices + in notifications_for_state_change()
4916 state_change->n_devices * state_change->n_connections; in notifications_for_state_change()
4951 if (n < state_change->n_devices) { in get_initial_state()
4956 n -= state_change->n_devices; in get_initial_state()
4957 if (n < state_change->n_devices * state_change->n_connections) { in get_initial_state()
/Linux-v5.4/include/uapi/linux/
Dkfd_ioctl.h398 __u32 n_devices; /* to KFD */ member
409 __u32 n_devices; /* to KFD */ member