/Linux-v5.15/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace.h | 104 struct iovec iov; in ptrace_read_regs() local 109 iov.iov_base = regs; in ptrace_read_regs() 110 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs() 112 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs() 124 struct iovec iov; in ptrace_write_regs() local 129 iov.iov_base = regs; in ptrace_write_regs() 130 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs() 132 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs() 142 struct iovec iov; in show_tar_registers() local 151 iov.iov_base = (u64 *) reg; in show_tar_registers() [all …]
|
/Linux-v5.15/include/linux/ |
D | vringh.h | 89 struct iovec *iov; member 101 struct kvec *iov; member 116 static inline void vringh_iov_init(struct vringh_iov *iov, in vringh_iov_init() argument 119 iov->used = iov->i = 0; in vringh_iov_init() 120 iov->consumed = 0; in vringh_iov_init() 121 iov->max_num = num; in vringh_iov_init() 122 iov->iov = iovec; in vringh_iov_init() 125 static inline void vringh_iov_reset(struct vringh_iov *iov) in vringh_iov_reset() argument 127 iov->iov[iov->i].iov_len += iov->consumed; in vringh_iov_reset() 128 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_iov_reset() [all …]
|
/Linux-v5.15/arch/powerpc/platforms/powernv/ |
D | pci-sriov.c | 152 struct pnv_iov_data *iov; in pnv_pci_ioda_fixup_iov_resources() local 155 iov = kzalloc(sizeof(*iov), GFP_KERNEL); in pnv_pci_ioda_fixup_iov_resources() 156 if (!iov) in pnv_pci_ioda_fixup_iov_resources() 158 pdev->dev.archdata.iov_data = iov; in pnv_pci_ioda_fixup_iov_resources() 197 iov->m64_single_mode[i] = true; in pnv_pci_ioda_fixup_iov_resources() 212 iov->need_shift = true; in pnv_pci_ioda_fixup_iov_resources() 226 kfree(iov); in pnv_pci_ioda_fixup_iov_resources() 258 struct pnv_iov_data *iov = pnv_iov_get(pdev); in pnv_pci_iov_resource_alignment() local 266 if (!iov) in pnv_pci_iov_resource_alignment() 274 if (iov->m64_single_mode[resno - PCI_IOV_RESOURCES]) in pnv_pci_iov_resource_alignment() [all …]
|
/Linux-v5.15/drivers/pci/ |
D | iov.c | 44 struct pci_sriov *iov = dev->sriov; in pci_iov_set_numvfs() local 46 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn); in pci_iov_set_numvfs() 47 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_OFFSET, &iov->offset); in pci_iov_set_numvfs() 48 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_STRIDE, &iov->stride); in pci_iov_set_numvfs() 60 struct pci_sriov *iov = dev->sriov; in compute_max_vf_buses() local 63 for (nr_virtfn = iov->total_VFs; nr_virtfn; nr_virtfn--) { in compute_max_vf_buses() 65 if (!iov->offset || (nr_virtfn > 1 && !iov->stride)) { in compute_max_vf_buses() 71 if (busnr > iov->max_VF_buses) in compute_max_vf_buses() 72 iov->max_VF_buses = busnr; in compute_max_vf_buses() 254 struct pci_sriov *iov = dev->sriov; in pci_iov_add_virtfn() local [all …]
|
/Linux-v5.15/drivers/usb/usbip/ |
D | vhci_tx.c | 59 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 …]
|
D | stub_tx.c | 164 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 …]
|
D | vudc_tx.c | 41 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-v5.15/drivers/vhost/ |
D | vringh.c | 83 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-v5.15/drivers/crypto/cavium/nitrox/ |
D | nitrox_mbx.c | 134 vfno = RING_TO_VFNO(i, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler() 135 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler() 146 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler() 156 vfno = RING_TO_VFNO(i + 64, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler() 157 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler() 169 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler() 180 ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs, in nitrox_mbox_init() 182 if (!ndev->iov.vfdev) in nitrox_mbox_init() 185 for (i = 0; i < ndev->iov.num_vfs; i++) { in nitrox_mbox_init() 186 vfdev = ndev->iov.vfdev + i; in nitrox_mbox_init() [all …]
|
/Linux-v5.15/arch/x86/um/os-Linux/ |
D | registers.c | 31 struct iovec iov; in save_fp_registers() local 34 iov.iov_base = fp_regs; in save_fp_registers() 35 iov.iov_len = FP_SIZE * sizeof(unsigned long); in save_fp_registers() 36 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in save_fp_registers() 54 struct iovec iov; in restore_fp_registers() local 56 iov.iov_base = fp_regs; in restore_fp_registers() 57 iov.iov_len = FP_SIZE * sizeof(unsigned long); in restore_fp_registers() 58 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in restore_fp_registers() 129 struct iovec iov; in arch_init_registers() local 135 iov.iov_base = fp_regs; in arch_init_registers() [all …]
|
/Linux-v5.15/lib/ |
D | iov_iter.c | 116 const struct iovec *iov = i->iov; \ 120 iov, (I)) \ 121 i->nr_segs -= iov - i->iov; \ 122 i->iov = iov; \ 177 const struct iovec *iov; in copy_page_to_iter_iovec() local 189 iov = i->iov; in copy_page_to_iter_iovec() 191 buf = iov->iov_base + skip; in copy_page_to_iter_iovec() 192 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec() 206 iov++; in copy_page_to_iter_iovec() 207 buf = iov->iov_base; in copy_page_to_iter_iovec() [all …]
|
/Linux-v5.15/fs/cifs/ |
D | smb2pdu.c | 796 add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode) in add_posix_context() argument 798 struct smb2_create_req *req = iov[0].iov_base; in add_posix_context() 801 iov[num].iov_base = create_posix_buf(mode); in add_posix_context() 804 if (iov[num].iov_base == NULL) in add_posix_context() 806 iov[num].iov_len = sizeof(struct create_posix); in add_posix_context() 810 iov[num - 1].iov_len); in add_posix_context() 838 struct kvec iov[1]; in SMB2_negotiate() local 912 iov[0].iov_base = (char *)req; in SMB2_negotiate() 913 iov[0].iov_len = total_len; in SMB2_negotiate() 916 rqst.rq_iov = iov; in SMB2_negotiate() [all …]
|
D | sess.c | 831 struct kvec iov[3]; member 847 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer() 848 sess_data->iov[0].iov_len = be32_to_cpu(smb_buf->smb_buf_length) + 4; in sess_alloc_buffer() 856 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer() 857 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer() 866 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer() 867 sess_data->iov[0].iov_len = 0; in sess_alloc_buffer() 876 free_rsp_buf(sess_data->buf0_type, sess_data->iov[0].iov_base); in sess_free_buffer() 878 kfree(sess_data->iov[2].iov_base); in sess_free_buffer() 917 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive() [all …]
|
D | transport.c | 262 struct kvec *iov; in smb_rqst_len() local 268 iov = &rqst->rq_iov[1]; in smb_rqst_len() 271 iov = rqst->rq_iov; in smb_rqst_len() 277 buflen += iov[i].iov_len; in smb_rqst_len() 307 struct kvec *iov; in __smb_send_rqst() local 368 iov = rqst[j].rq_iov; in __smb_send_rqst() 373 dump_smb(iov[i].iov_base, iov[i].iov_len); in __smb_send_rqst() 374 size += iov[i].iov_len; in __smb_send_rqst() 377 iov_iter_kvec(&smb_msg.msg_iter, WRITE, iov, n_vec, size); in __smb_send_rqst() 453 struct kvec iov; in smb_send_rqst() local [all …]
|
/Linux-v5.15/include/linux/sunrpc/ |
D | svc.h | 185 static inline u32 svc_getnl(struct kvec *iov) in svc_getnl() argument 188 vp = iov->iov_base; in svc_getnl() 190 iov->iov_base = (void*)vp; in svc_getnl() 191 iov->iov_len -= sizeof(__be32); in svc_getnl() 195 static inline void svc_putnl(struct kvec *iov, u32 val) in svc_putnl() argument 197 __be32 *vp = iov->iov_base + iov->iov_len; in svc_putnl() 199 iov->iov_len += sizeof(__be32); in svc_putnl() 202 static inline __be32 svc_getu32(struct kvec *iov) in svc_getu32() argument 205 vp = iov->iov_base; in svc_getu32() 207 iov->iov_base = (void*)vp; in svc_getu32() [all …]
|
/Linux-v5.15/fs/ksmbd/ |
D | transport_tcp.c | 34 struct kvec *iov; member 101 kfree(t->iov); in free_transport() 114 static unsigned int kvec_array_init(struct kvec *new, struct kvec *iov, in kvec_array_init() argument 119 while (bytes || !iov->iov_len) { in kvec_array_init() 120 int copy = min(bytes, iov->iov_len); in kvec_array_init() 124 if (iov->iov_len == base) { in kvec_array_init() 125 iov++; in kvec_array_init() 131 memcpy(new, iov, sizeof(*iov) * nr_segs); in kvec_array_init() 148 if (t->iov && nr_segs <= t->nr_iov) in get_conn_iovec() 149 return t->iov; in get_conn_iovec() [all …]
|
D | connection.c | 164 struct kvec iov[3]; in ksmbd_conn_write() local 174 iov[iov_idx] = (struct kvec) { work->tr_buf, in ksmbd_conn_write() 176 len += iov[iov_idx++].iov_len; in ksmbd_conn_write() 180 iov[iov_idx] = (struct kvec) { rsp_hdr, work->resp_hdr_sz }; in ksmbd_conn_write() 181 len += iov[iov_idx++].iov_len; in ksmbd_conn_write() 182 iov[iov_idx] = (struct kvec) { work->aux_payload_buf, work->aux_payload_sz }; in ksmbd_conn_write() 183 len += iov[iov_idx++].iov_len; in ksmbd_conn_write() 186 iov[iov_idx].iov_len = work->resp_hdr_sz; in ksmbd_conn_write() 188 iov[iov_idx].iov_len = get_rfc1002_len(rsp_hdr) + 4; in ksmbd_conn_write() 189 iov[iov_idx].iov_base = rsp_hdr; in ksmbd_conn_write() [all …]
|
/Linux-v5.15/net/rxrpc/ |
D | output.c | 178 struct kvec iov[2]; in rxrpc_send_ack_packet() local 227 iov[0].iov_base = pkt; in rxrpc_send_ack_packet() 228 iov[0].iov_len = sizeof(pkt->whdr) + sizeof(pkt->ack) + n; in rxrpc_send_ack_packet() 229 iov[1].iov_base = &pkt->ackinfo; in rxrpc_send_ack_packet() 230 iov[1].iov_len = sizeof(pkt->ackinfo); in rxrpc_send_ack_packet() 231 len = iov[0].iov_len + iov[1].iov_len; in rxrpc_send_ack_packet() 245 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); in rxrpc_send_ack_packet() 287 struct kvec iov[1]; in rxrpc_send_abort_packet() local 324 iov[0].iov_base = &pkt; in rxrpc_send_abort_packet() 325 iov[0].iov_len = sizeof(pkt); in rxrpc_send_abort_packet() [all …]
|
D | local_event.c | 32 struct kvec iov[2]; in rxrpc_send_version_request() local 59 iov[0].iov_base = &whdr; in rxrpc_send_version_request() 60 iov[0].iov_len = sizeof(whdr); in rxrpc_send_version_request() 61 iov[1].iov_base = (char *)rxrpc_version_string; in rxrpc_send_version_request() 62 iov[1].iov_len = sizeof(rxrpc_version_string); in rxrpc_send_version_request() 64 len = iov[0].iov_len + iov[1].iov_len; in rxrpc_send_version_request() 68 ret = kernel_sendmsg(local->socket, &msg, iov, 2, len); in rxrpc_send_version_request()
|
D | conn_event.c | 29 struct kvec iov[3]; in rxrpc_conn_retransmit_call() local 61 iov[0].iov_base = &pkt; in rxrpc_conn_retransmit_call() 62 iov[0].iov_len = sizeof(pkt.whdr); in rxrpc_conn_retransmit_call() 63 iov[1].iov_base = &padding; in rxrpc_conn_retransmit_call() 64 iov[1].iov_len = 3; in rxrpc_conn_retransmit_call() 65 iov[2].iov_base = &ack_info; in rxrpc_conn_retransmit_call() 66 iov[2].iov_len = sizeof(ack_info); in rxrpc_conn_retransmit_call() 83 iov[0].iov_len += sizeof(pkt.abort_code); in rxrpc_conn_retransmit_call() 104 iov[0].iov_len += sizeof(pkt.ack); in rxrpc_conn_retransmit_call() 136 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, ioc, len); in rxrpc_conn_retransmit_call() [all …]
|
/Linux-v5.15/tools/io_uring/ |
D | io_uring-cp.c | 31 struct iovec iov; member 77 io_uring_prep_readv(sqe, infd, &data->iov, 1, data->offset); in queue_prepped() 79 io_uring_prep_writev(sqe, outfd, &data->iov, 1, data->offset); in queue_prepped() 102 data->iov.iov_base = data + 1; in queue_read() 103 data->iov.iov_len = size; in queue_read() 106 io_uring_prep_readv(sqe, infd, &data->iov, 1, offset); in queue_read() 116 data->iov.iov_base = data + 1; in queue_write() 117 data->iov.iov_len = data->first_len; in queue_write() 201 } else if (cqe->res != data->iov.iov_len) { in copy_file() 203 data->iov.iov_base += cqe->res; in copy_file() [all …]
|
/Linux-v5.15/net/rds/ |
D | rdma.c | 529 static int rds_rdma_pages(struct rds_iovec iov[], int nr_iovecs) in rds_rdma_pages() argument 537 nr_pages = rds_pages_in_vec(&iov[i]); in rds_rdma_pages() 555 struct rds_iov_vector *iov) in rds_rdma_extra_size() argument 571 iov->iov = kcalloc(args->nr_local, in rds_rdma_extra_size() 574 if (!iov->iov) in rds_rdma_extra_size() 577 vec = &iov->iov[0]; in rds_rdma_extra_size() 582 iov->len = args->nr_local; in rds_rdma_extra_size() 646 iovs = vec->iov; in rds_cmsg_rdma_args() 708 struct rds_iovec *iov = &iovs[i]; in rds_cmsg_rdma_args() local 710 unsigned int nr = rds_pages_in_vec(iov); in rds_cmsg_rdma_args() [all …]
|
/Linux-v5.15/drivers/net/ethernet/google/gve/ |
D | gve_tx.c | 76 struct gve_tx_iovec iov[2]) in gve_tx_alloc_fifo() 96 iov[0].iov_offset = fifo->head; in gve_tx_alloc_fifo() 97 iov[0].iov_len = bytes; in gve_tx_alloc_fifo() 106 iov[0].iov_len -= overflow; in gve_tx_alloc_fifo() 107 iov[1].iov_offset = 0; /* Start of fifo*/ in gve_tx_alloc_fifo() 108 iov[1].iov_len = overflow; in gve_tx_alloc_fifo() 116 iov[nfrags - 1].iov_padding = padding; in gve_tx_alloc_fifo() 448 &info->iov[0]); in gve_tx_add_skb_copy() 451 &info->iov[payload_iov]); in gve_tx_add_skb_copy() 455 info->iov[hdr_nfrags - 1].iov_offset); in gve_tx_add_skb_copy() [all …]
|
/Linux-v5.15/arch/um/drivers/ |
D | vector_kern.c | 294 struct iovec *iov) in prep_msg() argument 306 iov[iov_index].iov_len = vp->header_size; in prep_msg() 307 vp->form_header(iov[iov_index].iov_base, skb, vp); in prep_msg() 310 iov[iov_index].iov_base = skb->data; in prep_msg() 312 iov[iov_index].iov_len = skb->len - skb->data_len; in prep_msg() 315 iov[iov_index].iov_len = skb->len; in prep_msg() 319 iov[iov_index].iov_base = skb_frag_address_safe(skb_frag); in prep_msg() 320 iov[iov_index].iov_len = skb_frag_size(skb_frag); in prep_msg() 486 struct iovec *iov; in destroy_queue() local 506 iov = mmsg_vector->msg_hdr.msg_iov; in destroy_queue() [all …]
|
/Linux-v5.15/tools/testing/selftests/net/ |
D | ipv6_flowlabel.c | 42 struct iovec iov = {0}; in do_send() local 45 iov.iov_base = (char *)cfg_data; in do_send() 46 iov.iov_len = sizeof(cfg_data); in do_send() 48 msg.msg_iov = &iov; in do_send() 79 struct iovec iov = {0}; in do_recv() local 84 iov.iov_base = data; in do_recv() 85 iov.iov_len = sizeof(data); in do_recv() 87 msg.msg_iov = &iov; in do_recv()
|