Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/qemu/tests/unit/
H A Dtest-iov.c9 struct iovec *iov = g_malloc(niov * sizeof(*iov)); in iov_random() local
13 iov[i].iov_base = g_malloc(iov[i].iov_len); in iov_random()
15 *iovp = iov; in iov_random()
25 g_free(iov); in iov_free()
175 siov = g_memdup2(iov, sizeof(*iov) * niov); in test_io()
354 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
365 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
377 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
389 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
401 iov_orig = g_memdup2(iov, sizeof(iov[0]) * iov_cnt); in test_discard_front_undo()
[all …]
/openbmc/qemu/util/
H A Diov.c161 iov = local_iov; in iov_send_recv()
287 qiov->iov = iov; in qemu_iovec_init_external()
301 qiov->iov = g_renew(struct iovec, qiov->iov, qiov->nalloc); in qemu_iovec_add()
373 iov++; in iov_skip_offset()
377 return iov; in iov_skip_offset()
395 iov = iov_skip_offset(qiov->iov, offset, head); in qemu_iovec_slice()
406 return iov; in qemu_iovec_slice()
429 iov = iov_skip_offset(qiov->iov, offset, &current_offset); in qemu_iovec_is_zero()
441 iov++; in qemu_iovec_is_zero()
523 assert(a->iov[i].iov_len == b->iov[i].iov_len); in qemu_iovec_compare()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h108 struct iovec iov; in ptrace_read_regs() local
113 iov.iov_base = regs; in ptrace_read_regs()
128 struct iovec iov; in ptrace_write_regs() local
146 struct iovec iov; in show_tar_registers() local
192 struct iovec iov; in write_tar_registers() local
235 struct iovec iov; in show_tm_checkpointed_state() local
283 struct iovec iov; in write_ckpt_tar_registers() local
370 struct iovec iov; in show_ckpt_fpr() local
394 struct iovec iov; in write_ckpt_fpr() local
539 struct iovec iov; in show_ckpt_gpr() local
[all …]
/openbmc/linux/include/linux/
H A Dvringh.h99 struct iovec *iov; member
117 struct kvec *iov; member
135 iov->used = iov->i = 0; in vringh_iov_init()
138 iov->iov = iovec; in vringh_iov_init()
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()
146 iov->i = 0; in vringh_iov_reset()
152 kfree(iov->iov); in vringh_iov_cleanup()
153 iov->max_num = iov->used = iov->i = iov->consumed = 0; in vringh_iov_cleanup()
154 iov->iov = NULL; in vringh_iov_cleanup()
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dpci-sriov.c152 iov = kzalloc(sizeof(*iov), GFP_KERNEL); in pnv_pci_ioda_fixup_iov_resources()
153 if (!iov) in pnv_pci_ioda_fixup_iov_resources()
223 kfree(iov); in pnv_pci_ioda_fixup_iov_resources()
260 if (!iov) in pnv_pci_iov_resource_alignment()
513 iov = pnv_iov_get(dev); in pnv_pci_vf_resource_shift()
574 memset(&iov->holes[i], 0, sizeof(iov->holes[i])); in pnv_pci_vf_resource_shift()
585 &iov->holes[i]); in pnv_pci_vf_resource_shift()
597 if (WARN_ON(!iov)) in pnv_pci_sriov_disable()
607 if (iov->need_shift) in pnv_pci_sriov_disable()
697 if (!iov) { in pnv_pci_sriov_enable()
[all …]
/openbmc/qemu/include/qemu/
H A Diov.h41 iov_from_buf(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf() argument
45 offset <= iov[0].iov_len && bytes <= iov[0].iov_len - offset) { in iov_from_buf()
46 memcpy(iov[0].iov_base + offset, buf, bytes); in iov_from_buf()
58 offset <= iov[0].iov_len && bytes <= iov[0].iov_len - offset) { in iov_to_buf()
59 memcpy(buf, iov[0].iov_base + offset, bytes); in iov_to_buf()
98 #define iov_recv(sockfd, iov, iov_cnt, offset, bytes) \ argument
99 iov_send_recv(sockfd, iov, iov_cnt, offset, bytes, false)
100 #define iov_send(sockfd, iov, iov_cnt, offset, bytes) \ argument
101 iov_send_recv(sockfd, iov, iov_cnt, offset, bytes, true)
157 struct iovec *iov; member
[all …]
/openbmc/linux/drivers/pci/
H A Diov.c107 if (!iov->offset || (nr_virtfn > 1 && !iov->stride)) { in compute_max_vf_buses()
612 if (iov->num_VFs) in sriov_enable()
781 iov = kzalloc(sizeof(*iov), GFP_KERNEL); in sriov_init()
782 if (!iov) in sriov_init()
811 iov->pos = pos; in sriov_init()
818 iov->self = dev; in sriov_init()
823 iov->link = PCI_DEVFN(PCI_SLOT(dev->devfn), iov->link); in sriov_init()
828 iov->dev = dev; in sriov_init()
847 kfree(iov); in sriov_init()
931 iov->driver_max_VFs = iov->total_VFs; in pci_iov_remove()
[all …]
/openbmc/linux/drivers/vhost/
H A Dvringh.c89 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()
127 iov->iov[iov->i].iov_len -= partlen; in vringh_iov_xfer()
128 iov->iov[iov->i].iov_base += partlen; in vringh_iov_xfer()
130 if (!iov->iov[iov->i].iov_len) { in vringh_iov_xfer()
132 iov->iov[iov->i].iov_len = iov->consumed; in vringh_iov_xfer()
133 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_iov_xfer()
[all …]
/openbmc/linux/drivers/usb/usbip/
H A 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()
115 iov[iovnum].iov_len = in vhci_send_cmd_submit()
134 iov[iovnum].iov_len = len; in vhci_send_cmd_submit()
149 kfree(iov); in vhci_send_cmd_submit()
164 kfree(iov); in vhci_send_cmd_submit()
192 struct kvec iov; in vhci_send_cmd_unlink() local
202 memset(&iov, 0, sizeof(iov)); in vhci_send_cmd_unlink()
[all …]
H A Dstub_tx.c164 struct kvec *iov = NULL; in stub_send_ret_submit() local
195 if (!iov) { 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()
280 iov[iovnum].iov_len = in stub_send_ret_submit()
291 kfree(iov); in stub_send_ret_submit()
306 kfree(iov); in stub_send_ret_submit()
322 kfree(iov); in stub_send_ret_submit()
328 kfree(iov); in stub_send_ret_submit()
367 struct kvec iov[1]; in stub_send_ret_unlink() local
[all …]
H A 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()
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()
134 iov[iovnum].iov_len = in v_send_ret_submit()
161 iov[iovnum].iov_len = len; in v_send_ret_submit()
167 iov, iovnum, txsize); in v_send_ret_submit()
[all …]
/openbmc/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_mbx.c138 vfdev = ndev->iov.vfdev + vfno; 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()
190 vfdev = ndev->iov.vfdev + i; in nitrox_mbox_init()
196 if (!ndev->iov.pf2vf_wq) { in nitrox_mbox_init()
197 kfree(ndev->iov.vfdev); in nitrox_mbox_init()
198 ndev->iov.vfdev = NULL; in nitrox_mbox_init()
212 if (ndev->iov.pf2vf_wq) in nitrox_mbox_cleanup()
215 kfree(ndev->iov.vfdev); in nitrox_mbox_cleanup()
216 ndev->iov.pf2vf_wq = NULL; in nitrox_mbox_cleanup()
[all …]
/openbmc/qemu/crypto/
H A Dhash.c42 const struct iovec *iov, in qcrypto_hash_bytesv() argument
54 ret = qcrypto_hash_afalg_driver.hash_bytesv(alg, iov, niov, in qcrypto_hash_bytesv()
62 return qcrypto_hash_lib_driver.hash_bytesv(alg, iov, niov, in qcrypto_hash_bytesv()
75 struct iovec iov = { .iov_base = (char *)buf, in qcrypto_hash_bytes() local
77 return qcrypto_hash_bytesv(alg, &iov, 1, result, resultlen, errp); in qcrypto_hash_bytes()
83 const struct iovec *iov, in qcrypto_hash_digestv() argument
112 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_digest() local
114 return qcrypto_hash_digestv(alg, &iov, 1, digest, errp); in qcrypto_hash_digest()
118 const struct iovec *iov, in qcrypto_hash_base64v() argument
141 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_base64() local
[all …]
/openbmc/linux/arch/x86/um/os-Linux/
H A 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 …]
/openbmc/qemu/system/
H A Ddma-helpers.c70 QEMUIOVector iov; member
92 for (i = 0; i < dbs->iov.niov; ++i) { in dma_blk_unmap()
93 dma_memory_unmap(dbs->sg->as, dbs->iov.iov[i].iov_base, in dma_blk_unmap()
94 dbs->iov.iov[i].iov_len, dbs->dir, in dma_blk_unmap()
95 dbs->iov.iov[i].iov_len); in dma_blk_unmap()
97 qemu_iovec_reset(&dbs->iov); in dma_blk_unmap()
109 qemu_iovec_destroy(&dbs->iov); in dma_complete()
126 dbs->offset += dbs->iov.size; in dma_blk_cb()
149 if (ranges_overlap((intptr_t)dbs->iov.iov[i].iov_base, in dma_blk_cb()
150 dbs->iov.iov[i].iov_len, (intptr_t)mem, in dma_blk_cb()
[all …]
/openbmc/qemu/io/
H A Dchannel.c52 const struct iovec *iov, in qio_channel_readv_full() argument
80 const struct iovec *iov, in qio_channel_writev_full() argument
152 iov, niov, in qio_channel_readv_full_all_eof()
153 0, iov_size(iov, niov)); in qio_channel_readv_full_all_eof()
258 iov, niov, in qio_channel_writev_full_all()
259 0, iov_size(iov, niov)); in qio_channel_writev_full_all()
292 const struct iovec *iov, in qio_channel_readv() argument
301 const struct iovec *iov, in qio_channel_writev() argument
345 return qio_channel_readv_all(ioc, &iov, 1, errp); in qio_channel_read_all()
478 struct iovec iov = { in qio_channel_pwrite() local
[all …]
/openbmc/qemu/hw/usb/
H A Dlibhw.c47 qemu_iovec_add(&p->iov, mem, xlen); in usb_packet_map()
65 for (i = 0; i < p->iov.niov; i++) { in usb_packet_unmap()
66 dma_memory_unmap(sgl->as, p->iov.iov[i].iov_base, in usb_packet_unmap()
67 p->iov.iov[i].iov_len, dir, in usb_packet_unmap()
68 p->iov.iov[i].iov_len); in usb_packet_unmap()
/openbmc/linux/fs/smb/server/
H A Dksmbd_work.c34 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()
146 inc_rfc1001_len(work->iov[0].iov_base, len); in __ksmbd_iov_pin_rsp()
[all …]
H A Dtransport_tcp.c36 struct kvec *iov; member
103 kfree(t->iov); in free_transport()
127 iov++; in kvec_array_init()
133 memcpy(new, iov, sizeof(*iov) * nr_segs); in kvec_array_init()
151 return t->iov; in get_conn_iovec()
156 kfree(t->iov); in get_conn_iovec()
157 t->iov = new_iov; in get_conn_iovec()
312 struct kvec *iov; in ksmbd_tcp_readv() local
316 if (!iov) in ksmbd_tcp_readv()
376 struct kvec iov; in ksmbd_tcp_read() local
[all …]
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A 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()
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()
102 struct iovec iov; in get_zt() local
104 iov.iov_base = zt; in get_zt()
105 iov.iov_len = ZT_SIG_REG_BYTES; in get_zt()
112 struct iovec iov; in set_zt() local
[all …]
/openbmc/libpldm/src/transport/
H A Dmctp-demux.c137 struct iovec iov[2]; in pldm_transport_mctp_demux_recv() local
168 iov[1].iov_len = pldm_len; in pldm_transport_mctp_demux_recv()
169 iov[1].iov_base = buf; in pldm_transport_mctp_demux_recv()
171 msg.msg_iov = iov; in pldm_transport_mctp_demux_recv()
172 msg.msg_iovlen = sizeof(iov) / sizeof(iov[0]); in pldm_transport_mctp_demux_recv()
215 struct iovec iov[2]; in pldm_transport_mctp_demux_send() local
216 iov[0].iov_base = hdr; in pldm_transport_mctp_demux_send()
217 iov[0].iov_len = sizeof(hdr); in pldm_transport_mctp_demux_send()
219 iov[1].iov_len = msg_len; in pldm_transport_mctp_demux_send()
222 msg.msg_iov = iov; in pldm_transport_mctp_demux_send()
[all …]
/openbmc/linux/net/handshake/
H A 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()
/openbmc/linux/net/rxrpc/
H A 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()
/openbmc/qemu/hw/misc/
H A Daspeed_hace.c125 uint8_t *padding = iov->iov_base; in has_padding()
145 iov[i].iov_base = s->iov_cache[i].iov_base; in reconstruct_iov()
146 iov[i].iov_len = s->iov_cache[i].iov_len; in reconstruct_iov()
178 iov[id].iov_len = *req_len; in gen_acc_mode_iov()
191 struct iovec iov[ASPEED_HACE_MAX_SG]; in do_hash_operation() local
227 iov[i].iov_base = haddr; in do_hash_operation()
232 iov[i].iov_len = plen; in do_hash_operation()
244 iov[0].iov_base = haddr; in do_hash_operation()
245 iov[0].iov_len = len; in do_hash_operation()
282 iov[i - 1].iov_len, false, in do_hash_operation()
[all …]
/openbmc/qemu/include/io/
H A Dchannel.h112 const struct iovec *iov,
119 const struct iovec *iov,
135 const struct iovec *iov,
140 const struct iovec *iov,
245 const struct iovec *iov,
289 const struct iovec *iov,
349 const struct iovec *iov,
389 const struct iovec *iov,
404 const struct iovec *iov,
562 ssize_t qio_channel_pwritev(QIOChannel *ioc, const struct iovec *iov,
[all …]

12345678910>>...18