/openbmc/qemu/tests/unit/ |
H A D | test-iov.c | 267 unsigned int iov_cnt; in test_discard_front() local 274 iov_random(&iov, &iov_cnt); in test_discard_front() 276 iov_cnt_tmp = iov_cnt; in test_discard_front() 280 g_assert(iov_cnt_tmp == iov_cnt); in test_discard_front() 281 iov_free(iov, iov_cnt); in test_discard_front() 284 iov_random(&iov, &iov_cnt); in test_discard_front() 286 iov_cnt_tmp = iov_cnt; in test_discard_front() 287 size = iov_size(iov, iov_cnt); in test_discard_front() 291 iov_free(iov, iov_cnt); in test_discard_front() 294 iov_random(&iov, &iov_cnt); in test_discard_front() [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | iov.h | 22 size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt); 36 size_t iov_from_buf_full(const struct iovec *iov, unsigned int iov_cnt, 38 size_t iov_to_buf_full(const struct iovec *iov, const unsigned int iov_cnt, 42 iov_from_buf(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf() argument 45 if (__builtin_constant_p(bytes) && iov_cnt && in iov_from_buf() 50 return iov_from_buf_full(iov, iov_cnt, offset, buf, bytes); in iov_from_buf() 55 iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf() argument 58 if (__builtin_constant_p(bytes) && iov_cnt && in iov_to_buf() 63 return iov_to_buf_full(iov, iov_cnt, offset, buf, bytes); in iov_to_buf() 76 size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt, [all …]
|
H A D | coroutine.h | 294 unsigned iov_cnt, size_t offset, 296 #define qemu_co_recvv(sockfd, iov, iov_cnt, offset, bytes) \ argument 297 qemu_co_sendv_recvv(sockfd, iov, iov_cnt, offset, bytes, false) 298 #define qemu_co_sendv(sockfd, iov, iov_cnt, offset, bytes) \ argument 299 qemu_co_sendv_recvv(sockfd, iov, iov_cnt, offset, bytes, true)
|
H A D | crc32c.h | 33 uint32_t iov_crc32c(uint32_t crc, const struct iovec *iov, size_t iov_cnt);
|
H A D | osdep.h | 643 ssize_t readv(int fd, const struct iovec *iov, int iov_cnt); 644 ssize_t writev(int fd, const struct iovec *iov, int iov_cnt);
|
/openbmc/qemu/util/ |
H A D | iov.c | 25 size_t iov_from_buf_full(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf_full() argument 30 for (i = 0, done = 0; (offset || done < bytes) && i < iov_cnt; i++) { in iov_from_buf_full() 44 size_t iov_to_buf_full(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf_full() argument 49 for (i = 0, done = 0; (offset || done < bytes) && i < iov_cnt; i++) { in iov_to_buf_full() 63 size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt, in iov_memset() argument 68 for (i = 0, done = 0; (offset || done < bytes) && i < iov_cnt; i++) { in iov_memset() 82 size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt) in iov_size() argument 88 for (i = 0; i < iov_cnt; i++) { in iov_size() 96 do_send_recv(int sockfd, int flags, struct iovec *iov, unsigned iov_cnt, in do_send_recv() argument 104 msg.msg_iovlen = iov_cnt; in do_send_recv() [all …]
|
H A D | crc32c.c | 116 uint32_t iov_crc32c(uint32_t crc, const struct iovec *iov, size_t iov_cnt) in iov_crc32c() argument 118 while (iov_cnt--) { in iov_crc32c()
|
H A D | osdep.c | 555 readv_writev(int fd, const struct iovec *iov, int iov_cnt, bool do_write) in readv_writev() argument 560 while (i < iov_cnt) { in readv_writev() 589 readv(int fd, const struct iovec *iov, int iov_cnt) in readv() argument 591 return readv_writev(fd, iov, iov_cnt, false); in readv() 595 writev(int fd, const struct iovec *iov, int iov_cnt) in writev() argument 597 return readv_writev(fd, iov, iov_cnt, true); in writev()
|
H A D | qemu-coroutine-io.c | 32 qemu_co_sendv_recvv(int sockfd, struct iovec *iov, unsigned iov_cnt, in qemu_co_sendv_recvv() argument 38 ret = iov_send_recv(sockfd, iov, iov_cnt, in qemu_co_sendv_recvv()
|
/openbmc/qemu/include/hw/hyperv/ |
H A D | vmbus.h | 209 const struct iovec *iov, size_t iov_cnt); 218 unsigned iov_cnt, size_t len, size_t off); 224 unsigned iov_cnt, size_t accessed);
|
/openbmc/qemu/hw/display/ |
H A D | virtio-gpu-udmabuf.c | 42 sizeof(struct udmabuf_create_item) * res->iov_cnt); in virtio_gpu_create_udmabuf() 44 for (i = 0; i < res->iov_cnt; i++) { in virtio_gpu_create_udmabuf() 59 list->count = res->iov_cnt; in virtio_gpu_create_udmabuf() 135 if (res->iov_cnt == 1 && in virtio_gpu_init_udmabuf()
|
H A D | virtio-gpu.c | 354 &res->iov_cnt); in virtio_gpu_resource_create_blob() 475 iov_to_buf(res->iov, res->iov_cnt, src_offset, in virtio_gpu_transfer_to_host_2d() 482 iov_to_buf(res->iov, res->iov_cnt, src_offset, in virtio_gpu_transfer_to_host_2d() 896 virtio_gpu_cleanup_mapping_iov(g, res->iov, res->iov_cnt); in virtio_gpu_cleanup_mapping() 898 res->iov_cnt = 0; in virtio_gpu_cleanup_mapping() 933 &res->addrs, &res->iov, &res->iov_cnt); in virtio_gpu_resource_attach_backing() 1239 qemu_put_be32(f, res->iov_cnt); in virtio_gpu_save() 1240 for (i = 0; i < res->iov_cnt; i++) { in virtio_gpu_save() 1257 for (i = 0; i < res->iov_cnt; i++) { in virtio_gpu_load_restore_mapping() 1270 res->iov_cnt = i; in virtio_gpu_load_restore_mapping() [all …]
|
H A D | virtio-gpu-rutabaga.c | 468 cmd, NULL, &res->iov, &res->iov_cnt); in rutabaga_cmd_attach_backing() 472 vecs.num_iovecs = res->iov_cnt; in rutabaga_cmd_attach_backing() 618 &res->iov, &res->iov_cnt); in rutabaga_cmd_resource_create_blob() 628 vecs.num_iovecs = res->iov_cnt; in rutabaga_cmd_resource_create_blob()
|
/openbmc/linux/fs/smb/server/ |
H A D | ksmbd_work.c | 106 work->iov_cnt++; in __ksmbd_iov_pin() 122 if (work->iov_alloc_cnt < work->iov_cnt + need_iov_cnt) { in __ksmbd_iov_pin_rsp() 142 work->iov_cnt++; in __ksmbd_iov_pin_rsp()
|
H A D | ksmbd_work.h | 43 int iov_cnt; member
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-iommu.c | 958 unsigned int iov_cnt, in virtio_iommu_iov_to_req() argument 961 size_t sz = iov_to_buf(iov, iov_cnt, 0, req, payload_sz); in virtio_iommu_iov_to_req() 972 unsigned int iov_cnt) \ 975 int ret = virtio_iommu_iov_to_req(iov, iov_cnt, &req, \ 988 unsigned int iov_cnt, in virtio_iommu_handle_req() 992 int ret = virtio_iommu_iov_to_req(iov, iov_cnt, &req, sizeof(req)); in virtio_iommu_handle_req() 1003 unsigned int iov_cnt; in virtio_iommu_handle_command() local 1024 iov_cnt = elem->out_num; in virtio_iommu_handle_command() 1026 sz = iov_to_buf(iov, iov_cnt, 0, &head, sizeof(head)); in virtio_iommu_handle_command() 1037 tail.status = virtio_iommu_handle_attach(s, iov, iov_cnt); in virtio_iommu_handle_command() [all …]
|
/openbmc/qemu/net/ |
H A D | checksum.c | 186 net_checksum_add_iov(const struct iovec *iov, const unsigned int iov_cnt, in net_checksum_add_iov() argument 194 for (i = 0; i < iov_cnt && size; i++) { in net_checksum_add_iov()
|
/openbmc/qemu/hw/net/ |
H A D | virtio-net.c | 1019 struct iovec *iov, unsigned int iov_cnt) in virtio_net_handle_rx_mode() argument 1025 s = iov_to_buf(iov, iov_cnt, 0, &on, sizeof(on)); in virtio_net_handle_rx_mode() 1052 struct iovec *iov, unsigned int iov_cnt) in virtio_net_handle_offloads() argument 1062 s = iov_to_buf(iov, iov_cnt, 0, &offloads, sizeof(offloads)); in virtio_net_handle_offloads() 1097 struct iovec *iov, unsigned int iov_cnt) in virtio_net_handle_mac() argument 1105 if (iov_size(iov, iov_cnt) != sizeof(n->mac)) { in virtio_net_handle_mac() 1108 s = iov_to_buf(iov, iov_cnt, 0, &n->mac, sizeof(n->mac)); in virtio_net_handle_mac() 1126 s = iov_to_buf(iov, iov_cnt, 0, &mac_data.entries, in virtio_net_handle_mac() 1132 iov_discard_front(&iov, &iov_cnt, s); in virtio_net_handle_mac() 1134 if (mac_data.entries * ETH_ALEN > iov_size(iov, iov_cnt)) { in virtio_net_handle_mac() [all …]
|
/openbmc/qemu/contrib/vhost-user-blk/ |
H A D | vhost-user-blk.c | 58 const unsigned int iov_cnt) in vub_iov_size() argument 64 for (i = 0; i < iov_cnt; i++) { in vub_iov_size() 71 const unsigned int iov_cnt, void *buf) in vub_iov_to_buf() argument 77 for (i = 0; i < iov_cnt; i++) { in vub_iov_to_buf()
|
/openbmc/linux/drivers/target/ |
H A D | target_core_user.c | 508 int prev_dbi, int length, int *iov_cnt) in tcmu_get_empty_block() argument 549 *iov_cnt += 1; in tcmu_get_empty_block() 559 int blk_data_len, iov_cnt = 0; in tcmu_get_empty_blocks() local 565 &iov_cnt); in tcmu_get_empty_blocks() 569 return iov_cnt; in tcmu_get_empty_blocks() 857 int space, iov_cnt = 0, ret = 0; in tcmu_alloc_data_space() local 880 iov_cnt = tcmu_get_empty_blocks(udev, cmd, cmd->se_cmd->data_length); in tcmu_alloc_data_space() 881 if (iov_cnt < 0) in tcmu_alloc_data_space() 891 return iov_cnt + ret; in tcmu_alloc_data_space() 894 static inline size_t tcmu_cmd_get_base_cmd_size(size_t iov_cnt) in tcmu_cmd_get_base_cmd_size() argument [all …]
|
/openbmc/qemu/include/net/ |
H A D | checksum.h | 63 const unsigned int iov_cnt,
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_int.c | 2061 if (vfs != p_info->usage.iov_cnt) in qed_int_igu_reset_cam() 2065 p_info->usage.iov_cnt, vfs); in qed_int_igu_reset_cam() 2084 p_info->usage.iov_cnt = vfs; in qed_int_igu_reset_cam() 2090 p_info->usage.free_cnt_iov = p_info->usage.iov_cnt; in qed_int_igu_reset_cam() 2092 p_info->usage.iov_orig = p_info->usage.iov_cnt; in qed_int_igu_reset_cam() 2098 vf_sbs = p_info->usage.iov_cnt; in qed_int_igu_reset_cam() 2126 p_info->usage.iov_cnt - vf_sbs; in qed_int_igu_reset_cam() 2230 p_igu_info->usage.iov_cnt++; in qed_int_igu_read_cam() 2264 p_igu_info->usage.free_cnt_iov = p_igu_info->usage.iov_cnt; in qed_int_igu_read_cam() 2269 p_igu_info->usage.cnt, p_igu_info->usage.iov_cnt); in qed_int_igu_read_cam()
|
/openbmc/linux/include/uapi/linux/ |
H A D | target_core_user.h | 116 __u32 iov_cnt; member
|
/openbmc/qemu/contrib/vhost-user-gpu/ |
H A D | vhost-user-gpu.c | 38 unsigned int iov_cnt; member 553 res->iov_cnt = ab.nr_entries; in vg_resource_attach_backing() 567 vg_cleanup_mapping_iov(g, res->iov, res->iov_cnt); in vg_cleanup_mapping() 569 res->iov_cnt = 0; in vg_cleanup_mapping() 640 iov_to_buf(res->iov, res->iov_cnt, src_offset, in vg_transfer_to_host_2d() 645 iov_to_buf(res->iov, res->iov_cnt, 0, in vg_transfer_to_host_2d()
|
/openbmc/qemu/hw/hyperv/ |
H A D | vmbus.c | 444 const struct iovec *iov, size_t iov_cnt) in vmbus_iov_to_gpadl() argument 454 for (i = 0; i < iov_cnt; i++) { in vmbus_iov_to_gpadl() 466 unsigned iov_cnt, size_t len, size_t off) in vmbus_map_sgl() argument 489 if (ret_cnt == iov_cnt) { in vmbus_map_sgl() 513 unsigned iov_cnt, size_t accessed) in vmbus_unmap_sgl() argument 518 for (i = 0; i < iov_cnt; i++) { in vmbus_unmap_sgl()
|