Home
last modified time | relevance | path

Searched refs:iov_cnt (Results 1 – 25 of 33) sorted by relevance

12

/openbmc/qemu/tests/unit/
H A Dtest-iov.c267 unsigned int iov_cnt; in test_discard_front() local
276 iov_cnt_tmp = iov_cnt; in test_discard_front()
286 iov_cnt_tmp = iov_cnt; in test_discard_front()
296 iov_cnt_tmp = iov_cnt; in test_discard_front()
306 iov_cnt_tmp = iov_cnt; in test_discard_front()
320 iov_cnt_tmp = iov_cnt; in test_discard_front()
330 iov_cnt_tmp = iov_cnt; in test_discard_front()
348 unsigned int iov_cnt; in test_discard_front_undo() local
356 iov_cnt_tmp = iov_cnt; in test_discard_front_undo()
426 unsigned int iov_cnt; in test_discard_back() local
[all …]
/openbmc/qemu/include/qemu/
H A Diov.h21 size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt);
41 iov_from_buf(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf() argument
44 if (__builtin_constant_p(bytes) && iov_cnt && in iov_from_buf()
54 iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf() argument
57 if (__builtin_constant_p(bytes) && iov_cnt && in iov_to_buf()
62 return iov_to_buf_full(iov, iov_cnt, offset, buf, bytes); in iov_to_buf()
98 #define iov_recv(sockfd, iov, iov_cnt, offset, bytes) \ argument
99 iov_send_recv(sockfd, iov, iov_cnt, offset, bytes, false)
100 #define iov_send(sockfd, iov, iov_cnt, offset, bytes) \ argument
101 iov_send_recv(sockfd, iov, iov_cnt, offset, bytes, true)
[all …]
H A Dcoroutine.h294 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 Dcrc32c.h33 uint32_t iov_crc32c(uint32_t crc, const struct iovec *iov, size_t iov_cnt);
H A Dosdep.h639 ssize_t readv(int fd, const struct iovec *iov, int iov_cnt);
640 ssize_t writev(int fd, const struct iovec *iov, int iov_cnt);
/openbmc/qemu/util/
H A Diov.c87 for (i = 0; i < iov_cnt; i++) { in iov_size()
102 msg.msg_iovlen = iov_cnt; in do_send_recv()
115 while (i < iov_cnt) { in do_send_recv()
159 iov_copy(local_iov, iov_cnt, _iov, iov_cnt, offset, bytes); in iov_send_recv()
172 assert(niov < iov_cnt); in iov_send_recv()
174 iov_cnt -= niov; in iov_send_recv()
643 *iov_cnt -= 1; in iov_discard_front_undoable()
668 if (*iov_cnt == 0) { in iov_discard_back_undoable()
672 cur = iov + (*iov_cnt - 1); in iov_discard_back_undoable()
674 while (*iov_cnt > 0) { in iov_discard_back_undoable()
[all …]
H A Dcrc32c.c116 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 Dosdep.c555 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 Dqemu-coroutine-io.c32 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 Dvmbus.h209 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 Dvirtio-gpu-udmabuf.c42 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 Dvirtio-gpu.c904 res->iov_cnt = 0; in virtio_gpu_cleanup_mapping()
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()
1304 res->iov_cnt = qemu_get_be32(f); in virtio_gpu_load()
1337 for (i = 0; i < res->iov_cnt; i++) { in virtio_gpu_load()
1376 qemu_put_be32(f, res->iov_cnt); in virtio_gpu_blob_save()
1377 for (i = 0; i < res->iov_cnt; i++) { in virtio_gpu_blob_save()
1405 res->iov_cnt = qemu_get_be32(f); in virtio_gpu_blob_load()
[all …]
H A Dvirtio-gpu-rutabaga.c468 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 Dksmbd_work.c106 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 Dksmbd_work.h43 int iov_cnt; member
/openbmc/qemu/hw/virtio/
H A Dvirtio-iommu.c958 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()
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()
1040 tail.status = virtio_iommu_handle_detach(s, iov, iov_cnt); in virtio_iommu_handle_command()
1043 tail.status = virtio_iommu_handle_map(s, iov, iov_cnt); in virtio_iommu_handle_command()
[all …]
/openbmc/qemu/net/
H A Dchecksum.c186 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 Dvirtio-net.c1025 s = iov_to_buf(iov, iov_cnt, 0, &on, sizeof(on)); in virtio_net_handle_rx_mode()
1105 if (iov_size(iov, iov_cnt) != 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()
1139 s = iov_to_buf(iov, iov_cnt, 0, macs, in virtio_net_handle_mac()
1153 s = iov_to_buf(iov, iov_cnt, 0, &mac_data.entries, in virtio_net_handle_mac()
1160 iov_discard_front(&iov, &iov_cnt, s); in virtio_net_handle_mac()
1200 s = iov_to_buf(iov, iov_cnt, 0, &vid, sizeof(vid)); in virtio_net_handle_vlan_table()
1395 s = iov_to_buf(iov, iov_cnt, offset, &cfg, size_get); in virtio_net_handle_rss()
1434 s = iov_to_buf(iov, iov_cnt, offset, in virtio_net_handle_rss()
[all …]
/openbmc/qemu/contrib/vhost-user-blk/
H A Dvhost-user-blk.c58 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 Dtarget_core_user.c508 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
881 if (iov_cnt < 0) in tcmu_alloc_data_space()
891 return iov_cnt + ret; in tcmu_alloc_data_space()
1020 int iov_cnt, iov_bidi_cnt; in queue_cmd_ring() local
1050 if (iov_cnt < 0) in queue_cmd_ring()
[all …]
/openbmc/qemu/include/net/
H A Dchecksum.h63 const unsigned int iov_cnt,
/openbmc/linux/include/uapi/linux/
H A Dtarget_core_user.h116 __u32 iov_cnt; member
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_int.c2061 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/qemu/contrib/vhost-user-gpu/
H A Dvhost-user-gpu.c38 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 Dvmbus.c444 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()

12