/openbmc/qemu/util/ |
H A D | iov.c | 162 unsigned niov; in iov_send_recv_with_flags() local 177 for (niov = 0; niov < iov_cnt && offset >= iov[niov].iov_len; ++niov) { in iov_send_recv_with_flags() 178 offset -= iov[niov].iov_len; in iov_send_recv_with_flags() 183 assert(niov < iov_cnt); in iov_send_recv_with_flags() 184 iov += niov; in iov_send_recv_with_flags() 185 iov_cnt -= niov; in iov_send_recv_with_flags() 196 for (niov = 0; niov < iov_cnt && iov[niov].iov_len <= tail; ++niov) { in iov_send_recv_with_flags() 197 tail -= iov[niov].iov_len; in iov_send_recv_with_flags() 202 assert(niov < iov_cnt); in iov_send_recv_with_flags() 203 assert(iov[niov].iov_len > tail); in iov_send_recv_with_flags() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-iov.c | 8 unsigned niov = g_test_rand_int_range(3,8); in iov_random() local 9 struct iovec *iov = g_malloc(niov * sizeof(*iov)); in iov_random() 11 for (i = 0; i < niov; ++i) { in iov_random() 16 *iov_cntp = niov; in iov_random() 19 static void iov_free(struct iovec *iov, unsigned niov) in iov_free() argument 22 for (i = 0; i < niov; ++i) { in iov_free() 29 unsigned niov) in iov_equals() argument 31 return memcmp(a, b, sizeof(a[0]) * niov) == 0; in iov_equals() 34 static void test_iov_bytes(struct iovec *iov, unsigned niov, in test_iov_bytes() argument 43 for (i = 0; i < niov; ++i) { in test_iov_bytes() [all …]
|
H A D | io-channel-helpers.c | 29 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/include/io/ |
H A D | channel.h | 113 size_t niov, 120 size_t niov, 136 size_t niov, 141 size_t niov, 246 size_t niov, 290 size_t niov, 323 size_t niov, 350 size_t niov, 375 size_t niov, 390 size_t niov, [all …]
|
/openbmc/qemu/io/ |
H A D | channel.c | 53 size_t niov, in qio_channel_readv_full() argument 75 return klass->io_readv(ioc, iov, niov, fds, nfds, flags, errp); in qio_channel_readv_full() 81 size_t niov, in qio_channel_writev_full() argument 109 return klass->io_writev(ioc, iov, niov, fds, nfds, flags, errp); in qio_channel_writev_full() 115 size_t niov, in qio_channel_readv_all_eof() argument 118 return qio_channel_readv_full_all_eof(ioc, iov, niov, NULL, NULL, errp); in qio_channel_readv_all_eof() 123 size_t niov, in qio_channel_readv_all() argument 126 return qio_channel_readv_full_all(ioc, iov, niov, NULL, NULL, errp); in qio_channel_readv_all() 131 size_t niov, in qio_channel_readv_full_all_eof() argument 136 struct iovec *local_iov = g_new(struct iovec, niov); in qio_channel_readv_full_all_eof() [all …]
|
H A D | channel-file.c | 109 size_t niov, in qio_channel_file_readv() argument 119 ret = readv(fioc->fd, iov, niov); in qio_channel_file_readv() 138 size_t niov, in qio_channel_file_writev() argument 148 ret = writev(fioc->fd, iov, niov); in qio_channel_file_writev() 166 size_t niov, in qio_channel_file_preadv() argument 174 ret = preadv(fioc->fd, iov, niov, offset); in qio_channel_file_preadv() 192 size_t niov, in qio_channel_file_pwritev() argument 200 ret = pwritev(fioc->fd, iov, niov, offset); in qio_channel_file_pwritev()
|
H A D | channel-buffer.c | 54 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 D | channel-null.c | 60 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 D | channel-command.c | 204 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 D | channel-websock.c | 613 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() 1082 size_t niov, in qio_channel_websock_readv() argument 1105 for (i = 0 ; i < niov ; i++) { in qio_channel_websock_readv() 1129 size_t niov, in qio_channel_websock_writev() argument 1136 ssize_t want = iov_size(iov, niov); in qio_channel_websock_writev() [all …]
|
H A D | channel-socket.c | 503 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/crypto/ |
H A D | hash-afalg.c | 164 size_t niov, in qcrypto_afalg_send_to_kernel() argument 172 ret = iov_send_recv_with_flags(afalg->opfd, flags, iov, niov, in qcrypto_afalg_send_to_kernel() 173 0, iov_size(iov, niov), true); in qcrypto_afalg_send_to_kernel() 222 size_t niov, in qcrypto_afalg_hash_update() argument 226 iov, niov, true, errp); in qcrypto_afalg_hash_update() 243 size_t niov, uint8_t **result, in qcrypto_afalg_hash_hmac_bytesv() argument 249 ret = qcrypto_afalg_send_to_kernel(hmac, iov, niov, false, errp); in qcrypto_afalg_hash_hmac_bytesv() 261 size_t niov, uint8_t **result, in qcrypto_afalg_hmac_bytesv() argument 266 iov, niov, result, resultlen, in qcrypto_afalg_hmac_bytesv()
|
H A D | hash.c | 49 size_t niov, in qcrypto_hash_bytesv() argument 60 if (qcrypto_hash_updatev(ctx, iov, niov, errp) < 0 || in qcrypto_hash_bytesv() 83 size_t niov, in qcrypto_hash_updatev() argument 88 return drv->hash_update(hash, iov, niov, errp); in qcrypto_hash_updatev() 190 size_t niov, in qcrypto_hash_digestv() argument 200 if (qcrypto_hash_updatev(ctx, iov, niov, errp) < 0 || in qcrypto_hash_digestv() 221 size_t niov, in qcrypto_hash_base64v() argument 231 if (qcrypto_hash_updatev(ctx, iov, niov, errp) < 0 || in qcrypto_hash_base64v()
|
H A D | hmac.c | 20 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 D | hash-glib.c | 74 size_t niov, in qcrypto_glib_hash_update() argument 79 for (int i = 0; i < niov; i++) { in qcrypto_glib_hash_update()
|
H A D | hmac-glib.c | 87 size_t niov, in qcrypto_glib_hmac_bytesv() argument 97 for (i = 0; i < niov; i++) { in qcrypto_glib_hmac_bytesv()
|
H A D | hmac-gnutls.c | 100 size_t niov, in qcrypto_gnutls_hmac_bytesv() argument 111 for (i = 0; i < niov; i++) { in qcrypto_gnutls_hmac_bytesv()
|
H A D | hash-gcrypt.c | 91 size_t niov, in qcrypto_gcrypt_hash_update() argument 96 for (int i = 0; i < niov; i++) { in qcrypto_gcrypt_hash_update()
|
/openbmc/qemu/include/crypto/ |
H A D | hash.h | 94 size_t niov, 150 size_t niov, 168 size_t niov, 316 size_t niov,
|
H A D | hmac.h | 98 size_t niov, 156 size_t niov,
|
/openbmc/qemu/migration/ |
H A D | channel-block.c | 53 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()
|
H A D | file.c | 199 int niov, MultiFDPages_t *pages, Error **errp) in file_write_ramblock_iov() argument 216 for (i = 0; i < niov; i++, slice_num++) { in file_write_ramblock_iov() 219 if (i != niov - 1) { in file_write_ramblock_iov()
|
/openbmc/qemu/include/qemu/ |
H A D | iov.h | 185 int niov; member 219 .niov = 1, \ 251 void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov); 256 size_t *head, size_t *tail, int *niov);
|
/openbmc/qemu/block/ |
H A D | io_uring.c | 96 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 D | win32-aio.c | 86 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()
|