Searched refs:iovnum (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/usb/usbip/ |
D | stub_tx.c | 167 int iovnum = 0; in stub_send_ret_submit() local 184 iovnum = 2 + urb->number_of_packets; in stub_send_ret_submit() 187 iovnum = 1 + urb->num_sgs; in stub_send_ret_submit() 189 iovnum = 1 + priv->num_urbs; in stub_send_ret_submit() 191 iovnum = 2; in stub_send_ret_submit() 193 iov = kcalloc(iovnum, sizeof(struct kvec), GFP_KERNEL); in stub_send_ret_submit() 200 iovnum = 0; in stub_send_ret_submit() 217 iov[iovnum].iov_base = &pdu_header; in stub_send_ret_submit() 218 iov[iovnum].iov_len = sizeof(pdu_header); in stub_send_ret_submit() 219 iovnum++; in stub_send_ret_submit() [all …]
|
D | vhci_tx.c | 63 int iovnum; in vhci_send_cmd_submit() local 81 iovnum = 2 + urb->num_sgs; in vhci_send_cmd_submit() 83 iovnum = 3; in vhci_send_cmd_submit() 85 iov = kcalloc(iovnum, sizeof(*iov), GFP_KERNEL); in vhci_send_cmd_submit() 97 iovnum = 0; in vhci_send_cmd_submit() 99 iov[iovnum].iov_base = &pdu_header; in vhci_send_cmd_submit() 100 iov[iovnum].iov_len = sizeof(pdu_header); in vhci_send_cmd_submit() 102 iovnum++; in vhci_send_cmd_submit() 109 iov[iovnum].iov_base = sg_virt(sg); in vhci_send_cmd_submit() 110 iov[iovnum].iov_len = sg->length; in vhci_send_cmd_submit() [all …]
|
D | vudc_tx.c | 79 int iovnum = 0; in v_send_ret_submit() local 96 iovnum = 2 + urb->number_of_packets; in v_send_ret_submit() 98 iovnum = 2; in v_send_ret_submit() 100 iov = kcalloc(iovnum, sizeof(*iov), GFP_KERNEL); in v_send_ret_submit() 106 iovnum = 0; in v_send_ret_submit() 114 iov[iovnum].iov_base = &pdu_header; in v_send_ret_submit() 115 iov[iovnum].iov_len = sizeof(pdu_header); in v_send_ret_submit() 116 iovnum++; in v_send_ret_submit() 122 iov[iovnum].iov_base = urb->transfer_buffer; in v_send_ret_submit() 123 iov[iovnum].iov_len = urb->actual_length; in v_send_ret_submit() [all …]
|
/linux-6.12.1/tools/testing/vsock/ |
D | util.c | 524 size_t iovec_bytes(const struct iovec *iov, size_t iovnum) in iovec_bytes() argument 529 for (bytes = 0, i = 0; i < iovnum; i++) in iovec_bytes() 535 unsigned long iovec_hash_djb2(const struct iovec *iov, size_t iovnum) in iovec_hash_djb2() argument 543 iov_bytes = iovec_bytes(iov, iovnum); in iovec_hash_djb2() 551 for (offs = 0, i = 0; i < iovnum; i++) { in iovec_hash_djb2() 582 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum) in alloc_test_iovec() argument 587 iovec = malloc(sizeof(*iovec) * iovnum); in alloc_test_iovec() 593 for (i = 0; i < iovnum; i++) { in alloc_test_iovec() 610 for (i = 0; i < iovnum; i++) { in alloc_test_iovec() 619 for (i = 0; i < iovnum; i++) { in alloc_test_iovec() [all …]
|
D | util.h | 66 size_t iovec_bytes(const struct iovec *iov, size_t iovnum); 67 unsigned long iovec_hash_djb2(const struct iovec *iov, size_t iovnum); 68 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum); 70 struct iovec *iovec, int iovnum);
|