Home
last modified time | relevance | path

Searched refs:niov (Results 1 – 25 of 79) sorted by relevance

1234

/openbmc/qemu/util/
H A Diov.c151 unsigned niov; in iov_send_recv() local
166 for (niov = 0; niov < iov_cnt && offset >= iov[niov].iov_len; ++niov) { in iov_send_recv()
185 for (niov = 0; niov < iov_cnt && iov[niov].iov_len <= tail; ++niov) { in iov_send_recv()
278 qiov->niov = 0; in qemu_iovec_init()
288 qiov->niov = niov; in qemu_iovec_init_external()
306 ++qiov->niov; in qemu_iovec_add()
412 int niov; in qemu_iovec_subvec_niov() local
416 return niov; in qemu_iovec_subvec_niov()
517 assert(a->niov == b->niov); in qemu_iovec_compare()
704 unsigned int niov = qiov->niov; in qemu_iovec_discard_back() local
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-iov.c11 for (i = 0; i < niov; ++i) { in iov_random()
16 *iov_cntp = niov; in iov_random()
22 for (i = 0; i < niov; ++i) { in iov_free()
62 unsigned niov; in test_to_from_buf_1() local
68 iov_random(&iov, &niov); in test_to_from_buf_1()
70 sz = iov_size(iov, niov); in test_to_from_buf_1()
142 iov_free(iov, niov); in test_to_from_buf_1()
162 unsigned niov; in test_io() local
167 iov_random(&iov, &niov); in test_io()
213 iov_free(iov, niov); in test_io()
[all …]
H A Dio-channel-helpers.c29 size_t niov; member
46 data->niov, in test_io_thread_writer()
60 data->niov, in test_io_thread_reader()
88 data->niov = CHUNK_COUNT; in qio_channel_test_new()
89 data->inputv = g_new0(struct iovec, data->niov); in qio_channel_test_new()
90 data->outputv = g_new0(struct iovec, data->niov); in qio_channel_test_new()
92 for (i = 0, offset = 0; i < data->niov; i++, offset += CHUNK_LEN) { in qio_channel_test_new()
/openbmc/qemu/io/
H A Dchannel.c53 size_t niov, in qio_channel_readv_full() argument
81 size_t niov, in qio_channel_writev_full() argument
136 struct iovec *local_iov = g_new(struct iovec, niov); in qio_channel_readv_full_all_eof()
138 unsigned int nlocal_iov = niov; in qio_channel_readv_full_all_eof()
152 iov, niov, in qio_channel_readv_full_all_eof()
153 0, iov_size(iov, niov)); in qio_channel_readv_full_all_eof()
255 unsigned int nlocal_iov = niov; in qio_channel_writev_full_all()
258 iov, niov, in qio_channel_writev_full_all()
259 0, iov_size(iov, niov)); in qio_channel_writev_full_all()
293 size_t niov, in qio_channel_readv() argument
[all …]
H A Dchannel-buffer.c54 size_t niov, in qio_channel_buffer_readv() argument
64 for (i = 0; i < niov; i++) { in qio_channel_buffer_readv()
82 size_t niov, in qio_channel_buffer_writev() argument
93 for (i = 0; i < niov; i++) { in qio_channel_buffer_writev()
107 for (i = 0; i < niov; i++) { in qio_channel_buffer_writev()
H A Dchannel-file.c87 size_t niov, in qio_channel_file_readv() argument
97 ret = readv(fioc->fd, iov, niov); in qio_channel_file_readv()
116 size_t niov, in qio_channel_file_writev() argument
126 ret = writev(fioc->fd, iov, niov); in qio_channel_file_writev()
H A Dchannel-null.c60 size_t niov, in qio_channel_null_readv() argument
81 size_t niov, in qio_channel_null_writev() argument
95 return iov_size(iov, niov); in qio_channel_null_writev()
H A Dchannel-command.c204 size_t niov, in qio_channel_command_readv() argument
220 ret = readv(cioc->readfd, iov, niov); in qio_channel_command_readv()
239 size_t niov, in qio_channel_command_writev() argument
255 ret = writev(cioc->writefd, iov, niov); in qio_channel_command_writev()
H A Dchannel-websock.c613 size_t niov, in qio_channel_websock_encode() argument
623 assert(size <= iov_size(iov, niov)); in qio_channel_websock_encode()
644 for (i = 0; i < niov && size != 0; i++) { in qio_channel_websock_encode()
664 size_t niov = 1; in qio_channel_websock_write_close() local
673 niov++; in qio_channel_websock_write_close()
676 iov, niov, size); in qio_channel_websock_write_close()
1081 size_t niov, in qio_channel_websock_readv() argument
1104 for (i = 0 ; i < niov ; i++) { in qio_channel_websock_readv()
1128 size_t niov, in qio_channel_websock_writev() argument
1135 ssize_t want = iov_size(iov, niov); in qio_channel_websock_writev()
[all …]
H A Dchannel-socket.c503 size_t niov, in qio_channel_socket_readv() argument
518 msg.msg_iovlen = niov; in qio_channel_socket_readv()
556 size_t niov, in qio_channel_socket_writev() argument
573 msg.msg_iovlen = niov; in qio_channel_socket_writev()
636 size_t niov, in qio_channel_socket_readv() argument
651 for (i = 0; i < niov; i++) { in qio_channel_socket_readv()
684 size_t niov, in qio_channel_socket_writev() argument
694 for (i = 0; i < niov; i++) { in qio_channel_socket_writev()
/openbmc/qemu/include/io/
H A Dchannel.h112 size_t niov,
119 size_t niov,
232 size_t niov,
276 size_t niov,
309 size_t niov,
336 size_t niov,
361 size_t niov,
376 size_t niov,
391 size_t niov,
844 size_t niov,
[all …]
/openbmc/qemu/crypto/
H A Dhash.c43 size_t niov, 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()
84 size_t niov, in qcrypto_hash_digestv() argument
92 if (qcrypto_hash_bytesv(alg, iov, niov, &result, &resultlen, errp) < 0) { in qcrypto_hash_digestv()
119 size_t niov, in qcrypto_hash_base64v() argument
126 if (qcrypto_hash_bytesv(alg, iov, niov, &result, &resultlen, errp) < 0) { in qcrypto_hash_base64v()
H A Dhash-afalg.c120 size_t niov, uint8_t **result, in qcrypto_afalg_hash_hmac_bytesv() argument
150 ret = iov_send_recv(afalg->opfd, iov, niov, in qcrypto_afalg_hash_hmac_bytesv()
151 0, iov_size(iov, niov), true); in qcrypto_afalg_hash_hmac_bytesv()
178 size_t niov, uint8_t **result, in qcrypto_afalg_hash_bytesv() argument
182 return qcrypto_afalg_hash_hmac_bytesv(NULL, alg, iov, niov, result, in qcrypto_afalg_hash_bytesv()
189 size_t niov, uint8_t **result, in qcrypto_afalg_hmac_bytesv() argument
194 iov, niov, result, resultlen, in qcrypto_afalg_hmac_bytesv()
H A Dhmac.c20 size_t niov, in qcrypto_hmac_bytesv() argument
27 return drv->hmac_bytesv(hmac, iov, niov, result, resultlen, errp); in qcrypto_hmac_bytesv()
47 size_t niov, in qcrypto_hmac_digestv() argument
55 if (qcrypto_hmac_bytesv(hmac, iov, niov, &result, &resultlen, errp) < 0) { in qcrypto_hmac_digestv()
H A Dhash-glib.c50 size_t niov, in qcrypto_glib_hash_bytesv() argument
67 for (i = 0; i < niov; i++) { in qcrypto_glib_hash_bytesv()
H A Dhash-gnutls.c59 size_t niov, in qcrypto_gnutls_hash_bytesv() argument
93 for (i = 0; i < niov; i++) { in qcrypto_gnutls_hash_bytesv()
H A Dhash-gcrypt.c51 size_t niov, in qcrypto_gcrypt_hash_bytesv() argument
76 for (i = 0; i < niov; i++) { in qcrypto_gcrypt_hash_bytesv()
H A Dhmac-glib.c87 size_t niov, in qcrypto_glib_hmac_bytesv() argument
97 for (i = 0; i < niov; i++) { in qcrypto_glib_hmac_bytesv()
H A Dhmac-gnutls.c100 size_t niov, in qcrypto_gnutls_hmac_bytesv() argument
111 for (i = 0; i < niov; i++) { in qcrypto_gnutls_hmac_bytesv()
/openbmc/qemu/include/crypto/
H A Dhash.h70 size_t niov,
119 size_t niov,
165 size_t niov,
H A Dhmac.h91 size_t niov,
142 size_t niov,
/openbmc/qemu/migration/
H A Dchannel-block.c53 size_t niov, in qio_channel_block_readv() argument
63 qemu_iovec_init_external(&qiov, (struct iovec *)iov, niov); in qio_channel_block_readv()
78 size_t niov, in qio_channel_block_writev() argument
88 qemu_iovec_init_external(&qiov, (struct iovec *)iov, niov); in qio_channel_block_writev()
/openbmc/qemu/include/qemu/
H A Diov.h158 int niov; member
192 .niov = 1, \
224 void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov);
229 size_t *head, size_t *tail, int *niov);
/openbmc/qemu/block/
H A Dio_uring.c96 qemu_iovec_init(resubmit_qiov, luringcb->qiov->niov); in luring_resubmit_short_read()
106 luringcb->sqeq.len = luringcb->resubmit_qiov.niov; in luring_resubmit_short_read()
346 luringcb->qiov->niov, offset); in luring_do_submit()
350 luringcb->qiov->niov, offset); in luring_do_submit()
354 luringcb->qiov->niov, offset); in luring_do_submit()
H A Dwin32-aio.c86 iov_from_buf(qiov->iov, qiov->niov, 0, waiocb->buf, qiov->size); in win32_aio_process_completion()
127 if (qiov->niov > 1) { in win32_aio_submit()
133 iov_to_buf(qiov->iov, qiov->niov, 0, waiocb->buf, qiov->size); in win32_aio_submit()

1234