/openbmc/qemu/util/ |
H A D | iov.c | 151 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 D | test-iov.c | 11 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() 215 iov_free(iov, niov); in test_io() [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 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 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 …]
|
/openbmc/qemu/crypto/ |
H A D | hash.c | 43 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 D | hash-afalg.c | 120 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 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 | 50 size_t niov, in qcrypto_glib_hash_bytesv() argument 67 for (i = 0; i < niov; i++) { in qcrypto_glib_hash_bytesv()
|
H A D | hash-gnutls.c | 59 size_t niov, in qcrypto_gnutls_hash_bytesv() argument 93 for (i = 0; i < niov; i++) { in qcrypto_gnutls_hash_bytesv()
|
H A D | hash-gcrypt.c | 51 size_t niov, in qcrypto_gcrypt_hash_bytesv() argument 76 for (i = 0; i < niov; i++) { in qcrypto_gcrypt_hash_bytesv()
|
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()
|
/openbmc/qemu/include/crypto/ |
H A D | hash.h | 70 size_t niov, 119 size_t niov, 165 size_t niov,
|
H A D | hmac.h | 91 size_t niov, 142 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, RAMBlock *block, Error **errp) in file_write_ramblock_iov() argument 215 for (i = 0; i < niov; i++, slice_num++) { in file_write_ramblock_iov() 218 if (i != niov - 1) { in file_write_ramblock_iov()
|
/openbmc/qemu/include/qemu/ |
H A D | iov.h | 158 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 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()
|