Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 25 of 227) sorted by relevance

12345678910

/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/
Dptrace.h108 struct iovec iov; in ptrace_read_regs() local
113 iov.iov_base = regs; in ptrace_read_regs()
114 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs()
116 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs()
128 struct iovec iov; in ptrace_write_regs() local
133 iov.iov_base = regs; in ptrace_write_regs()
134 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs()
136 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs()
146 struct iovec iov; in show_tar_registers() local
155 iov.iov_base = (u64 *) reg; in show_tar_registers()
[all …]
/linux-6.12.1/include/linux/
Dvringh.h99 struct iovec *iov; member
117 struct kvec *iov; member
132 static inline void vringh_iov_init(struct vringh_iov *iov, in vringh_iov_init() argument
135 iov->used = iov->i = 0; in vringh_iov_init()
136 iov->consumed = 0; in vringh_iov_init()
137 iov->max_num = num; in vringh_iov_init()
138 iov->iov = iovec; in vringh_iov_init()
141 static inline void vringh_iov_reset(struct vringh_iov *iov) in vringh_iov_reset() argument
143 iov->iov[iov->i].iov_len += iov->consumed; in vringh_iov_reset()
144 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_iov_reset()
[all …]
/linux-6.12.1/arch/powerpc/platforms/powernv/
Dpci-sriov.c149 struct pnv_iov_data *iov; in pnv_pci_ioda_fixup_iov_resources() local
152 iov = kzalloc(sizeof(*iov), GFP_KERNEL); in pnv_pci_ioda_fixup_iov_resources()
153 if (!iov) in pnv_pci_ioda_fixup_iov_resources()
155 pdev->dev.archdata.iov_data = iov; in pnv_pci_ioda_fixup_iov_resources()
194 iov->m64_single_mode[i] = true; in pnv_pci_ioda_fixup_iov_resources()
209 iov->need_shift = true; in pnv_pci_ioda_fixup_iov_resources()
223 kfree(iov); in pnv_pci_ioda_fixup_iov_resources()
252 struct pnv_iov_data *iov = pnv_iov_get(pdev); in pnv_pci_iov_resource_alignment() local
260 if (!iov) in pnv_pci_iov_resource_alignment()
268 if (iov->m64_single_mode[resno - PCI_IOV_RESOURCES]) in pnv_pci_iov_resource_alignment()
[all …]
/linux-6.12.1/drivers/pci/
Diov.c86 struct pci_sriov *iov = dev->sriov; in pci_iov_set_numvfs() local
88 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn); in pci_iov_set_numvfs()
89 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_OFFSET, &iov->offset); in pci_iov_set_numvfs()
90 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_STRIDE, &iov->stride); in pci_iov_set_numvfs()
102 struct pci_sriov *iov = dev->sriov; in compute_max_vf_buses() local
105 for (nr_virtfn = iov->total_VFs; nr_virtfn; nr_virtfn--) { in compute_max_vf_buses()
107 if (!iov->offset || (nr_virtfn > 1 && !iov->stride)) { in compute_max_vf_buses()
113 if (busnr > iov->max_VF_buses) in compute_max_vf_buses()
114 iov->max_VF_buses = busnr; in compute_max_vf_buses()
295 struct pci_sriov *iov = dev->sriov; in pci_iov_add_virtfn() local
[all …]
/linux-6.12.1/drivers/vhost/
Dvringh.c83 void vringh_kiov_advance(struct vringh_kiov *iov, size_t len) in vringh_kiov_advance() argument
85 while (len && iov->i < iov->used) { in vringh_kiov_advance()
86 size_t partlen = min(iov->iov[iov->i].iov_len, len); in vringh_kiov_advance()
88 iov->consumed += partlen; in vringh_kiov_advance()
89 iov->iov[iov->i].iov_len -= partlen; in vringh_kiov_advance()
90 iov->iov[iov->i].iov_base += partlen; in vringh_kiov_advance()
92 if (!iov->iov[iov->i].iov_len) { in vringh_kiov_advance()
94 iov->iov[iov->i].iov_len = iov->consumed; in vringh_kiov_advance()
95 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_kiov_advance()
97 iov->consumed = 0; in vringh_kiov_advance()
[all …]
/linux-6.12.1/tools/testing/selftests/arm64/fp/
Dfp-ptrace.c321 struct iovec iov; in continue_breakpoint() local
325 iov.iov_base = &pt_regs; in continue_breakpoint()
326 iov.iov_len = sizeof(pt_regs); in continue_breakpoint()
327 ret = ptrace(PTRACE_GETREGSET, child, NT_PRSTATUS, &iov); in continue_breakpoint()
336 ret = ptrace(PTRACE_SETREGSET, child, NT_PRSTATUS, &iov); in continue_breakpoint()
358 struct iovec iov; in check_ptrace_values_sve() local
367 iov.iov_len = SVE_PT_SVE_OFFSET + SVE_PT_SVE_SIZE(vq, SVE_PT_REGS_SVE); in check_ptrace_values_sve()
368 iov.iov_base = malloc(iov.iov_len); in check_ptrace_values_sve()
369 if (!iov.iov_base) { in check_ptrace_values_sve()
371 iov.iov_len); in check_ptrace_values_sve()
[all …]
Dzt-ptrace.c59 struct iovec iov; in get_za() local
73 iov.iov_base = *buf; in get_za()
74 iov.iov_len = sz; in get_za()
75 if (ptrace(PTRACE_GETREGSET, pid, NT_ARM_ZA, &iov)) in get_za()
93 struct iovec iov; in set_za() local
95 iov.iov_base = (void *)za; in set_za()
96 iov.iov_len = za->size; in set_za()
97 return ptrace(PTRACE_SETREGSET, pid, NT_ARM_ZA, &iov); in set_za()
102 struct iovec iov; in get_zt() local
104 iov.iov_base = zt; in get_zt()
[all …]
/linux-6.12.1/drivers/usb/usbip/
Dvhci_tx.c59 struct kvec *iov; in vhci_send_cmd_submit() local
75 memset(&iov, 0, sizeof(iov)); in vhci_send_cmd_submit()
85 iov = kcalloc(iovnum, sizeof(*iov), GFP_KERNEL); in vhci_send_cmd_submit()
86 if (!iov) { 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()
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()
114 iov[iovnum].iov_base = urb->transfer_buffer; in vhci_send_cmd_submit()
115 iov[iovnum].iov_len = in vhci_send_cmd_submit()
[all …]
Dstub_tx.c164 struct kvec *iov = NULL; in stub_send_ret_submit() local
193 iov = kcalloc(iovnum, sizeof(struct kvec), GFP_KERNEL); in stub_send_ret_submit()
195 if (!iov) { 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()
230 iov[iovnum].iov_base = in stub_send_ret_submit()
232 iov[iovnum].iov_len = in stub_send_ret_submit()
253 iov[iovnum].iov_base = sg_virt(sg); in stub_send_ret_submit()
254 iov[iovnum].iov_len = size; in stub_send_ret_submit()
260 iov[iovnum].iov_base = urb->transfer_buffer; in stub_send_ret_submit()
[all …]
Dvudc_tx.c41 struct kvec iov[1]; in v_send_ret_unlink() local
50 memset(&iov, 0, sizeof(iov)); in v_send_ret_unlink()
56 iov[0].iov_base = &pdu_header; in v_send_ret_unlink()
57 iov[0].iov_len = sizeof(pdu_header); in v_send_ret_unlink()
60 ret = kernel_sendmsg(udc->ud.tcp_socket, &msg, iov, in v_send_ret_unlink()
78 struct kvec *iov = NULL; in v_send_ret_submit() local
100 iov = kcalloc(iovnum, sizeof(*iov), GFP_KERNEL); in v_send_ret_submit()
101 if (!iov) { 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()
[all …]
/linux-6.12.1/drivers/crypto/cavium/nitrox/
Dnitrox_mbx.c137 vfno = RING_TO_VFNO(i, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler()
138 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler()
149 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler()
160 vfno = RING_TO_VFNO(i + 64, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler()
161 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler()
173 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler()
184 ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs, in nitrox_mbox_init()
186 if (!ndev->iov.vfdev) in nitrox_mbox_init()
189 for (i = 0; i < ndev->iov.num_vfs; i++) { in nitrox_mbox_init()
190 vfdev = ndev->iov.vfdev + i; in nitrox_mbox_init()
[all …]
/linux-6.12.1/arch/x86/um/os-Linux/
Dregisters.c32 struct iovec iov; in save_fp_registers() local
35 iov.iov_base = fp_regs; in save_fp_registers()
36 iov.iov_len = FP_SIZE * sizeof(unsigned long); in save_fp_registers()
37 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in save_fp_registers()
55 struct iovec iov; in restore_fp_registers() local
57 iov.iov_base = fp_regs; in restore_fp_registers()
58 iov.iov_len = FP_SIZE * sizeof(unsigned long); in restore_fp_registers()
59 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in restore_fp_registers()
130 struct iovec iov; in arch_init_registers() local
136 iov.iov_base = fp_regs; in arch_init_registers()
[all …]
/linux-6.12.1/fs/smb/server/
Dtransport_tcp.c36 struct kvec *iov; member
103 kfree(t->iov); in free_transport()
116 static unsigned int kvec_array_init(struct kvec *new, struct kvec *iov, in kvec_array_init() argument
121 while (bytes || !iov->iov_len) { in kvec_array_init()
122 int copy = min(bytes, iov->iov_len); in kvec_array_init()
126 if (iov->iov_len == base) { in kvec_array_init()
127 iov++; in kvec_array_init()
133 memcpy(new, iov, sizeof(*iov) * nr_segs); in kvec_array_init()
150 if (t->iov && nr_segs <= t->nr_iov) in get_conn_iovec()
151 return t->iov; in get_conn_iovec()
[all …]
Dksmbd_work.c32 work->iov = kcalloc(work->iov_alloc_cnt, sizeof(struct kvec), in ksmbd_alloc_work_struct()
34 if (!work->iov) { in ksmbd_alloc_work_struct()
58 kfree(work->iov); in ksmbd_free_work_struct()
104 work->iov[++work->iov_idx].iov_base = ib; in __ksmbd_iov_pin()
105 work->iov[work->iov_idx].iov_len = ib_len; in __ksmbd_iov_pin()
126 new = krealloc(work->iov, in __ksmbd_iov_pin_rsp()
134 work->iov = new; in __ksmbd_iov_pin_rsp()
139 work->iov[work->iov_idx].iov_base = work->response_buf; in __ksmbd_iov_pin_rsp()
140 *(__be32 *)work->iov[0].iov_base = 0; in __ksmbd_iov_pin_rsp()
141 work->iov[work->iov_idx].iov_len = 4; in __ksmbd_iov_pin_rsp()
[all …]
/linux-6.12.1/net/handshake/
Dalert.c40 struct kvec iov; in tls_alert_send() local
48 iov.iov_base = alert; in tls_alert_send()
49 iov.iov_len = sizeof(alert); in tls_alert_send()
62 iov_iter_kvec(&msg.msg_iter, ITER_SOURCE, &iov, 1, iov.iov_len); in tls_alert_send()
100 const struct kvec *iov; in tls_alert_recv() local
103 iov = msg->msg_iter.kvec; in tls_alert_recv()
104 data = iov->iov_base; in tls_alert_recv()
/linux-6.12.1/net/rxrpc/
Dlocal_event.c41 struct kvec iov[2]; in rxrpc_send_version_request() local
68 iov[0].iov_base = &whdr; in rxrpc_send_version_request()
69 iov[0].iov_len = sizeof(whdr); in rxrpc_send_version_request()
70 iov[1].iov_base = (char *)rxrpc_version_string; in rxrpc_send_version_request()
71 iov[1].iov_len = sizeof(rxrpc_version_string); in rxrpc_send_version_request()
73 len = iov[0].iov_len + iov[1].iov_len; in rxrpc_send_version_request()
75 ret = kernel_sendmsg(local->socket, &msg, iov, 2, len); in rxrpc_send_version_request()
Doutput.c268 struct kvec iov[1]; in rxrpc_send_abort_packet() local
305 iov[0].iov_base = &pkt; in rxrpc_send_abort_packet()
306 iov[0].iov_len = sizeof(pkt); in rxrpc_send_abort_packet()
311 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, sizeof(pkt)); in rxrpc_send_abort_packet()
530 struct kvec iov[2]; in rxrpc_send_conn_abort() local
555 iov[0].iov_base = &whdr; in rxrpc_send_conn_abort()
556 iov[0].iov_len = sizeof(whdr); in rxrpc_send_conn_abort()
557 iov[1].iov_base = &word; in rxrpc_send_conn_abort()
558 iov[1].iov_len = sizeof(word); in rxrpc_send_conn_abort()
560 len = iov[0].iov_len + iov[1].iov_len; in rxrpc_send_conn_abort()
[all …]
/linux-6.12.1/fs/smb/client/
Dsmb2pdu.c1016 add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode) in add_posix_context() argument
1020 iov[num].iov_base = create_posix_buf(mode); in add_posix_context()
1023 if (iov[num].iov_base == NULL) in add_posix_context()
1025 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context()
1054 struct kvec iov[1]; in SMB2_negotiate() local
1127 iov[0].iov_base = (char *)req; in SMB2_negotiate()
1128 iov[0].iov_len = total_len; in SMB2_negotiate()
1131 rqst.rq_iov = iov; in SMB2_negotiate()
1462 struct kvec iov[2]; member
1528 sess_data->iov[0].iov_base = (char *)req; in SMB2_sess_alloc_buffer()
[all …]
Dsess.c1311 struct kvec iov[3]; member
1328 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer()
1329 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer()
1337 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer()
1338 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer()
1347 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer()
1348 sess_data->iov[0].iov_len = 0; in sess_alloc_buffer()
1356 struct kvec *iov = sess_data->iov; in sess_free_buffer() local
1362 if (sess_data->buf0_type != CIFS_NO_BUFFER && iov[0].iov_base) in sess_free_buffer()
1363 memzero_explicit(iov[0].iov_base, iov[0].iov_len); in sess_free_buffer()
[all …]
Dtransport.c251 struct kvec *iov; in smb_rqst_len() local
257 iov = &rqst->rq_iov[1]; in smb_rqst_len()
260 iov = rqst->rq_iov; in smb_rqst_len()
266 buflen += iov[i].iov_len; in smb_rqst_len()
277 struct kvec *iov; in __smb_send_rqst() local
342 iov = rqst[j].rq_iov; in __smb_send_rqst()
347 dump_smb(iov[i].iov_base, iov[i].iov_len); in __smb_send_rqst()
348 size += iov[i].iov_len; in __smb_send_rqst()
351 iov_iter_kvec(&smb_msg.msg_iter, ITER_SOURCE, iov, n_vec, size); in __smb_send_rqst()
424 struct kvec iov; member
[all …]
/linux-6.12.1/lib/
Diov_iter.c163 const struct iovec *iov, unsigned long nr_segs, in iov_iter_init() argument
171 .__iov = iov, in iov_iter_init()
515 const struct iovec *iov, *end; in iov_iter_iovec_advance() local
522 for (iov = iter_iov(i), end = iov + i->nr_segs; iov < end; iov++) { in iov_iter_iovec_advance()
523 if (likely(size < iov->iov_len)) in iov_iter_iovec_advance()
525 size -= iov->iov_len; in iov_iter_iovec_advance()
528 i->nr_segs -= iov - iter_iov(i); in iov_iter_iovec_advance()
529 i->__iov = iov; in iov_iter_iovec_advance()
646 const struct iovec *iov = iter_iov(i); in iov_iter_revert() local
648 size_t n = (--iov)->iov_len; in iov_iter_revert()
[all …]
/linux-6.12.1/tools/hv/
Dvmbus_bufring.c120 vmbus_txbr_write(struct vmbus_br *tbr, const struct iovec iov[], int iovlen) in vmbus_txbr_write() argument
130 total += iov[i].iov_len; in vmbus_txbr_write()
157 windex = vmbus_txbr_copyto(tbr, windex, iov[i].iov_base, iov[i].iov_len); in vmbus_txbr_write()
185 struct iovec iov[3]; in rte_vmbus_chan_send() local
197 iov[0].iov_base = &pkt; in rte_vmbus_chan_send()
198 iov[0].iov_len = hlen; in rte_vmbus_chan_send()
199 iov[1].iov_base = data; in rte_vmbus_chan_send()
200 iov[1].iov_len = dlen; in rte_vmbus_chan_send()
201 iov[2].iov_base = &pad; in rte_vmbus_chan_send()
202 iov[2].iov_len = pad_pktlen - pktlen; in rte_vmbus_chan_send()
[all …]
/linux-6.12.1/fs/fuse/
Dioctl.c72 static int fuse_verify_ioctl_iov(struct fuse_conn *fc, struct iovec *iov, in fuse_verify_ioctl_iov() argument
78 for (n = 0; n < count; n++, iov++) { in fuse_verify_ioctl_iov()
79 if (iov->iov_len > (size_t) max) in fuse_verify_ioctl_iov()
81 max -= iov->iov_len; in fuse_verify_ioctl_iov()
122 static int fuse_setup_measure_verity(unsigned long arg, struct iovec *iov) in fuse_setup_measure_verity() argument
133 iov->iov_len = sizeof(struct fsverity_digest) + digest_size; in fuse_setup_measure_verity()
138 static int fuse_setup_enable_verity(unsigned long arg, struct iovec *iov, in fuse_setup_enable_verity() argument
152 iov++; in fuse_setup_enable_verity()
155 iov->iov_base = u64_to_user_ptr(enable.salt_ptr); in fuse_setup_enable_verity()
156 iov->iov_len = enable.salt_size; in fuse_setup_enable_verity()
[all …]
/linux-6.12.1/net/rds/
Drdma.c532 static int rds_rdma_pages(struct rds_iovec iov[], int nr_iovecs) in rds_rdma_pages() argument
540 nr_pages = rds_pages_in_vec(&iov[i]); in rds_rdma_pages()
558 struct rds_iov_vector *iov) in rds_rdma_extra_size() argument
574 iov->iov = kcalloc(args->nr_local, in rds_rdma_extra_size()
577 if (!iov->iov) in rds_rdma_extra_size()
580 vec = &iov->iov[0]; in rds_rdma_extra_size()
585 iov->len = args->nr_local; in rds_rdma_extra_size()
649 iovs = vec->iov; in rds_cmsg_rdma_args()
711 struct rds_iovec *iov = &iovs[i]; in rds_cmsg_rdma_args() local
713 unsigned int nr = rds_pages_in_vec(iov); in rds_cmsg_rdma_args()
[all …]
/linux-6.12.1/arch/um/drivers/
Dvector_kern.c285 struct iovec *iov) in prep_msg() argument
297 iov[iov_index].iov_len = vp->header_size; in prep_msg()
298 vp->form_header(iov[iov_index].iov_base, skb, vp); in prep_msg()
301 iov[iov_index].iov_base = skb->data; in prep_msg()
303 iov[iov_index].iov_len = skb->len - skb->data_len; in prep_msg()
306 iov[iov_index].iov_len = skb->len; in prep_msg()
310 iov[iov_index].iov_base = skb_frag_address_safe(skb_frag); in prep_msg()
311 iov[iov_index].iov_len = skb_frag_size(skb_frag); in prep_msg()
468 struct iovec *iov; in destroy_queue() local
488 iov = mmsg_vector->msg_hdr.msg_iov; in destroy_queue()
[all …]

12345678910