| /openbmc/qemu/hw/net/ |
| H A D | net_tx_pkt.c | 74 p->vec[NET_TX_PKT_VHDR_FRAG].iov_base = &p->virt_hdr; in net_tx_pkt_init() 76 p->vec[NET_TX_PKT_L2HDR_FRAG].iov_base = &p->l2_hdr; in net_tx_pkt_init() 77 p->vec[NET_TX_PKT_L3HDR_FRAG].iov_base = &p->l3_hdr; in net_tx_pkt_init() 111 void *ip_hdr = pkt->vec[NET_TX_PKT_L3HDR_FRAG].iov_base; in net_tx_pkt_update_ip_checksums() 174 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, 0, l2_hdr->iov_base, in net_tx_pkt_parse_headers() 182 switch (be16_to_cpu(PKT_GET_ETH_HDR(l2_hdr->iov_base)->h_proto)) { in net_tx_pkt_parse_headers() 198 l2_hdr->iov_len = eth_get_l2_hdr_length(l2_hdr->iov_base); in net_tx_pkt_parse_headers() 199 pkt->packet_type = get_eth_packet_type(l2_hdr->iov_base); in net_tx_pkt_parse_headers() 207 l3_hdr->iov_base, sizeof(struct ip_header)); in net_tx_pkt_parse_headers() 214 l3_hdr->iov_len = IP_HDR_GET_LEN(l3_hdr->iov_base); in net_tx_pkt_parse_headers() [all …]
|
| /openbmc/qemu/util/ |
| H A D | iov.c | 33 memcpy(iov[i].iov_base + offset, buf + done, len); in iov_from_buf_full() 51 memcpy(buf + done, iov[i].iov_base + offset, len); in iov_to_buf_full() 69 memset(iov[i].iov_base + offset, fillc, len); in iov_memset() 116 ? send(sockfd, iov[i].iov_base + off, iov[i].iov_len - off, flags) in do_send_recv() 117 : recv(sockfd, iov[i].iov_base + off, iov[i].iov_len - off, flags); in do_send_recv() 187 iov[0].iov_base += offset; in iov_send_recv_with_flags() 210 iov[0].iov_base -= offset; in iov_send_recv_with_flags() 271 dst_iov[j].iov_base = iov[i].iov_base + offset; in iov_copy() 310 qiov->iov[qiov->niov].iov_base = base; in qemu_iovec_add() 340 qemu_iovec_add(dst, src_iov[i].iov_base + soffset, len); in qemu_iovec_concat_iov() [all …]
|
| H A D | crc32c.c | 119 crc = crc32c(crc, iov->iov_base, iov->iov_len) ^ 0xffffffff; in iov_crc32c()
|
| /openbmc/qemu/hw/virtio/ |
| H A D | virtio-nsm.c | 104 len = cbor_serialize(root, response->iov_base, response->iov_len); in error_response() 161 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_get_random() 264 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_describe_nsm() 381 type = get_nsm_describe_pcr_req(request->iov_base, request->iov_len, in handle_describe_pcr() 415 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_describe_pcr() 568 type = get_nsm_extend_pcr_req(request->iov_base, request->iov_len, in handle_extend_pcr() 614 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_extend_pcr() 719 type = get_nsm_lock_pcr_req(request->iov_base, request->iov_len, &nsm_req); in handle_lock_pcr() 749 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_lock_pcr() 853 type = get_nsm_lock_pcrs_req(request->iov_base, request->iov_len, &nsm_req); in handle_lock_pcrs() [all …]
|
| /openbmc/qemu/tests/qtest/ |
| H A D | test-filter-redirector.c | 102 .iov_base = &size, in test_redirector_tx() 105 .iov_base = send_buf, in test_redirector_tx() 166 .iov_base = &size, in test_redirector_rx() 169 .iov_base = send_buf, in test_redirector_rx()
|
| H A D | test-filter-mirror.c | 43 .iov_base = &size, in test_mirror() 46 .iov_base = send_buf, in test_mirror()
|
| H A D | virtio-net-test.c | 43 .iov_base = &len, in rx_test() 46 .iov_base = test, in rx_test() 111 .iov_base = &len, in rx_stop_cont_test() 114 .iov_base = test, in rx_stop_cont_test()
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-crypto-hash.c | 180 { .iov_base = (char *)INPUT_TEXT1, .iov_len = strlen(INPUT_TEXT1) }, in test_hash_iov() 181 { .iov_base = (char *)INPUT_TEXT2, .iov_len = strlen(INPUT_TEXT2) }, in test_hash_iov() 182 { .iov_base = (char *)INPUT_TEXT3, .iov_len = strlen(INPUT_TEXT3) }, in test_hash_iov() 269 { .iov_base = (char *)INPUT_TEXT1, .iov_len = strlen(INPUT_TEXT1) }, in test_hash_accumulate() 270 { .iov_base = (char *)INPUT_TEXT2, .iov_len = strlen(INPUT_TEXT2) }, in test_hash_accumulate() 271 { .iov_base = (char *)INPUT_TEXT3, .iov_len = strlen(INPUT_TEXT3) }, in test_hash_accumulate()
|
| H A D | test-iov.c | 13 iov[i].iov_base = g_malloc(iov[i].iov_len); in iov_random() 23 g_free(iov[i].iov_base); in iov_free() 44 b = iov[i].iov_base; in test_iov_bytes() 307 old_base = iov->iov_base; in test_discard_front() 313 g_assert(iov_tmp->iov_base == old_base + size); in test_discard_front() 314 iov_tmp->iov_base = old_base; /* undo before g_free() */ in test_discard_front() 331 old_base = iov[1].iov_base; in test_discard_front() 337 g_assert(iov_tmp->iov_base == old_base + (size - iov->iov_len)); in test_discard_front() 338 iov_tmp->iov_base = old_base; /* undo before g_free() */ in test_discard_front() 461 old_base = iov[iov_cnt - 1].iov_base; in test_discard_back() [all …]
|
| H A D | test-crypto-hmac.c | 188 { .iov_base = (char *)INPUT_TEXT1, .iov_len = strlen(INPUT_TEXT1) }, in test_hmac_iov() 189 { .iov_base = (char *)INPUT_TEXT2, .iov_len = strlen(INPUT_TEXT2) }, in test_hmac_iov() 190 { .iov_base = (char *)INPUT_TEXT3, .iov_len = strlen(INPUT_TEXT3) }, in test_hmac_iov()
|
| H A D | io-channel-helpers.c | 93 data->inputv[i].iov_base = data->input + offset; in qio_channel_test_new() 94 data->outputv[i].iov_base = data->output + offset; in qio_channel_test_new()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/usbguard/usbguard/ |
| H A D | 0001-Adapt-for-protobuf-30.0-API-changes.patch | 32 iov[0].iov_base = &hdr; 58 iov[0].iov_base = &hdr; 70 iov[1].iov_base = (void*)payload.data(); 74 iov[0].iov_base = nullptr; 75 iov[1].iov_base = nullptr;
|
| /openbmc/qemu/net/ |
| H A D | vhost-vdpa.c | 681 out_cursor->iov_base = s->cvq_cmd_out_buffer; in vhost_vdpa_net_load_cursor_reset() 685 in_cursor->iov_base = s->status; in vhost_vdpa_net_load_cursor_reset() 742 r = vhost_vdpa_net_svq_flush(s, in_cursor->iov_base - in vhost_vdpa_net_load_cmd() 755 out_cursor->iov_base + sizeof(ctrl), data_size); in vhost_vdpa_net_load_cmd() 783 .iov_base = (void *)n->mac, in vhost_vdpa_net_load_mac() 823 .iov_base = &uni, in vhost_vdpa_net_load_mac() 826 .iov_base = n->mac_table.macs, in vhost_vdpa_net_load_mac() 829 .iov_base = &mul, in vhost_vdpa_net_load_mac() 832 .iov_base = &n->mac_table.macs[uni_macs_size], in vhost_vdpa_net_load_mac() 915 .iov_base = &cfg, in vhost_vdpa_net_load_rss() [all …]
|
| H A D | l2tpv3.c | 234 s->vec->iov_base = s->header_buf; in net_l2tpv3_receive_dgram_iov() 274 vec->iov_base = s->header_buf; in net_l2tpv3_receive_dgram() 277 vec->iov_base = (void *) buf; in net_l2tpv3_receive_dgram() 359 (l2tpv3_verify_header(s, vec->iov_base) == 0)) { in net_l2tpv3_process_queue() 367 vec->iov_base, in net_l2tpv3_process_queue() 458 g_free(iov->iov_base); in destroy_vector() 482 iov->iov_base = g_malloc(s->header_size); in build_l2tpv3_vector() 485 iov->iov_base = qemu_memalign(BUFFER_ALIGN, BUFFER_SIZE); in build_l2tpv3_vector()
|
| /openbmc/qemu/crypto/ |
| H A D | hash.c | 76 struct iovec iov = { .iov_base = (char *)buf, in qcrypto_hash_bytes() 96 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_update() 214 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_digest() 245 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_base64()
|
| H A D | hmac.c | 38 .iov_base = (char *)buf, in qcrypto_hmac_bytes() 79 .iov_base = (char *)buf, in qcrypto_hmac_digest()
|
| H A D | afsplit.c | 65 { .iov_base = &iv, in qcrypto_afsplit_hash() 67 { .iov_base = block + (i * digestlen), in qcrypto_afsplit_hash()
|
| /openbmc/qemu/include/qemu/ |
| H A D | iov.h | 47 memcpy(iov[0].iov_base + offset, buf, bytes); in iov_from_buf() 60 memcpy(buf, iov[0].iov_base + offset, bytes); in iov_to_buf() 223 .iov_base = (void *)(buf), /* cast away const */ \ 248 return qiov->local_iov.iov_base; in qemu_iovec_buf()
|
| /openbmc/qemu/hw/remote/ |
| H A D | mpqemu-link.c | 43 send[0].iov_base = msg; in mpqemu_msg_send() 46 send[1].iov_base = (void *)&msg->data; in mpqemu_msg_send() 98 struct iovec iov = { .iov_base = buf, .iov_len = len }; in mpqemu_read()
|
| /openbmc/libpldm/src/transport/ |
| H A D | mctp-demux.c | 167 iov[0].iov_base = mctp_prefix; in pldm_transport_mctp_demux_recv() 169 iov[1].iov_base = buf; in pldm_transport_mctp_demux_recv() 216 iov[0].iov_base = hdr; in pldm_transport_mctp_demux_send() 218 iov[1].iov_base = (uint8_t *)pldm_msg; in pldm_transport_mctp_demux_send()
|
| /openbmc/qemu/migration/ |
| H A D | file.c | 217 base = (uintptr_t) iov[i].iov_base; in file_write_ramblock_iov() 221 next = (uintptr_t) iov[i + 1].iov_base; in file_write_ramblock_iov() 232 offset = (uintptr_t) iov[slice_idx].iov_base - (uintptr_t) block->host; in file_write_ramblock_iov()
|
| H A D | qemu-file.c | 254 if (iov.iov_base + iov.iov_len == f->iov[idx].iov_base) { in qemu_iovec_release_ram() 258 if (qemu_madvise(iov.iov_base, iov.iov_len, QEMU_MADV_DONTNEED) < 0) { in qemu_iovec_release_ram() 260 iov.iov_base, iov.iov_len, strerror(errno)); in qemu_iovec_release_ram() 264 if (qemu_madvise(iov.iov_base, iov.iov_len, QEMU_MADV_DONTNEED) < 0) { in qemu_iovec_release_ram() 266 iov.iov_base, iov.iov_len, strerror(errno)); in qemu_iovec_release_ram() 464 if (f->iovcnt > 0 && buf == f->iov[f->iovcnt - 1].iov_base + in add_to_iovec() 478 f->iov[f->iovcnt].iov_base = (uint8_t *)buf; in add_to_iovec()
|
| /openbmc/qemu/hw/9pfs/ |
| H A D | xen-9p-backend.c | 86 in_sg[0].iov_base = ring->ring.in + masked_prod; in xen_9pfs_in_sg() 90 in_sg[0].iov_base = ring->ring.in + masked_prod; in xen_9pfs_in_sg() 92 in_sg[1].iov_base = ring->ring.in; in xen_9pfs_in_sg() 112 out_sg[0].iov_base = ring->ring.out + masked_cons; in xen_9pfs_out_sg() 118 out_sg[0].iov_base = ring->ring.out + masked_cons; in xen_9pfs_out_sg() 121 out_sg[1].iov_base = ring->ring.out; in xen_9pfs_out_sg() 127 out_sg[0].iov_base = ring->ring.out + masked_cons; in xen_9pfs_out_sg()
|
| /openbmc/qemu/bsd-user/freebsd/ |
| H A D | os-syscall.c | 108 abi_ulong base = tswapal(target_vec[i].iov_base); in helper_unlock_iovec() 110 if (vec[i].iov_base) { in helper_unlock_iovec() 111 unlock_user(vec[i].iov_base, base, copy ? vec[i].iov_len : 0); in helper_unlock_iovec() 152 abi_ulong base = tswapal(target_vec[i].iov_base); in lock_iovec() 160 vec[i].iov_base = 0; in lock_iovec() 162 vec[i].iov_base = lock_user(type, base, len, copy); in lock_iovec() 169 if (!vec[i].iov_base) { in lock_iovec()
|
| /openbmc/qemu/io/ |
| H A D | channel.c | 317 struct iovec iov = { .iov_base = buf, .iov_len = buflen }; in qio_channel_read() 327 struct iovec iov = { .iov_base = (char *)buf, .iov_len = buflen }; in qio_channel_write() 337 struct iovec iov = { .iov_base = buf, .iov_len = buflen }; in qio_channel_read_all_eof() 347 struct iovec iov = { .iov_base = buf, .iov_len = buflen }; in qio_channel_read_all() 357 struct iovec iov = { .iov_base = (char *)buf, .iov_len = buflen }; in qio_channel_write_all() 482 .iov_base = buf, in qio_channel_pwrite() 511 .iov_base = buf, in qio_channel_pread()
|