Home
last modified time | relevance | path

Searched refs:out_num (Results 1 – 25 of 56) sorted by relevance

123

/openbmc/qemu/fsdev/
H A D9p-iov-marshal.c60 static ssize_t v9fs_unpack(void *dst, struct iovec *out_sg, int out_num, in v9fs_unpack() argument
63 return v9fs_packunpack(dst, out_sg, out_num, offset, size, 0); in v9fs_unpack()
72 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset, in v9fs_iov_vunmarshal() argument
89 copied = v9fs_unpack(&val, out_sg, out_num, offset, sizeof(val)); in v9fs_iov_vunmarshal()
100 copied = v9fs_unpack(&val, out_sg, out_num, offset, sizeof(val)); in v9fs_iov_vunmarshal()
121 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal()
126 copied = v9fs_unpack(str->data, out_sg, out_num, offset, in v9fs_iov_vunmarshal()
138 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal()
145 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal()
160 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal()
[all …]
H A D9p-iov-marshal.h9 ssize_t v9fs_iov_unmarshal(struct iovec *out_sg, int out_num, size_t offset,
14 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset,
/openbmc/qemu/hw/virtio/
H A Dvirtio-crypto.c79 unsigned int num = *out_num; in virtio_crypto_cipher_session_helper()
104 *out_num = num; in virtio_crypto_cipher_session_helper()
133 &iov, &out_num); in virtio_crypto_create_sym_session()
142 &iov, &out_num); in virtio_crypto_create_sym_session()
344 unsigned out_num; in virtio_crypto_handle_ctrl() local
368 out_num = elem->out_num; in virtio_crypto_handle_ctrl()
398 out_iov, out_num, in virtio_crypto_handle_ctrl()
832 unsigned out_num; in virtio_crypto_handle_request() local
841 out_num = elem->out_num; in virtio_crypto_handle_request()
890 out_iov, out_num); in virtio_crypto_handle_request()
[all …]
H A Dvhost-shadow-virtqueue.c176 const struct iovec *out_sg, size_t out_num, in vhost_svq_add_split() argument
183 g_autofree hwaddr *sgs = g_new(hwaddr, MAX(out_num, in_num)); in vhost_svq_add_split()
188 if (unlikely(!out_num && !in_num)) { in vhost_svq_add_split()
194 ok = vhost_svq_vring_write_descs(svq, sgs, out_sg, out_num, in_num > 0, in vhost_svq_add_split()
250 size_t out_num, const struct iovec *in_sg, size_t in_num, in vhost_svq_add() argument
254 unsigned ndescs = in_num + out_num; in vhost_svq_add()
261 ok = vhost_svq_add_split(svq, out_sg, out_num, in_sg, in_num, &qemu_head); in vhost_svq_add()
277 return vhost_svq_add(svq, elem->out_sg, elem->out_num, elem->in_sg, in vhost_svq_add_element()
H A Dvirtio.c819 for (i = 0; i < elem->out_num; i++) in virtqueue_unmap_sg()
1612 int is_write = i >= out_num; in virtqueue_undo_map_desc()
1664 elem->out_num = out_num; in virtqueue_alloc_element()
1699 out_num = in_num = elem_entries = 0; in virtqueue_split_pop()
1790 for (i = 0; i < out_num; i++) { in virtqueue_split_pop()
1843 out_num = in_num = elem_entries = 0; in virtqueue_packed_pop()
1928 for (i = 0; i < out_num; i++) { in virtqueue_packed_pop()
2092 unsigned int out_num; member
2123 for (i = 0; i < elem->out_num; i++) { in qemu_get_virtqueue_element()
2133 for (i = 0; i < elem->out_num; i++) { in qemu_get_virtqueue_element()
[all …]
H A Dvhost-shadow-virtqueue.h121 size_t out_num, const struct iovec *in_sg, size_t in_num,
/openbmc/qemu/block/export/
H A Dvirtio-blk-handler.c136 unsigned int out_num) in virtio_blk_process_req() argument
144 if (out_num < 1 || in_num < 1) { in virtio_blk_process_req()
149 if (unlikely(iov_to_buf(out_iov, out_num, 0, &out, in virtio_blk_process_req()
155 iov_discard_front(&out_iov, &out_num, sizeof(out)); in virtio_blk_process_req()
185 qemu_iovec_init_external(&qiov, out_iov, out_num); in virtio_blk_process_req()
233 out_num, type); in virtio_blk_process_req()
H A Dvirtio-blk-handler.h35 unsigned int out_num);
H A Dvhost-user-blk-server.c67 unsigned out_num = elem->out_num; in vu_blk_virtio_process_req() local
71 in_num, out_num); in vu_blk_virtio_process_req()
H A Dvduse-blk.c81 unsigned out_num = elem->out_num; in vduse_blk_virtio_process_req() local
85 out_iov, in_num, out_num); in vduse_blk_virtio_process_req()
/openbmc/linux/drivers/nvdimm/
H A Dbus.c774 .out_num = 2,
778 .out_num = 2,
782 .out_num = 2,
786 .out_num = 3,
792 .out_num = 2,
798 .out_num = 1,
804 .out_num = 3,
810 .out_num = 1,
828 .out_num = 4,
834 .out_num = 2,
[all …]
/openbmc/qemu/tests/
H A Dvhost-user-bridge.c184 unsigned int out_num; in vubr_handle_tx() local
192 out_num = elem->out_num; in vubr_handle_tx()
194 if (out_num < 1) { in vubr_handle_tx()
199 iov_hexdump(out_sg, out_num, stderr, "TX:", 1024); in vubr_handle_tx()
204 out_sg, out_num, in vubr_handle_tx()
206 out_num = sg_num; in vubr_handle_tx()
214 .msg_iovlen = out_num, in vubr_handle_tx()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/basics/
H A Dconversion.c116 uint32_t *out_num, uint32_t *out_den) in reduce_fraction() argument
121 *out_num = num / gcd; in reduce_fraction()
H A Dconversion.h42 uint32_t *out_num, uint32_t *out_den);
/openbmc/qemu/contrib/vhost-user-blk/
H A Dvhost-user-blk.c233 unsigned out_num; in vub_virtio_process_req() local
242 if (elem->out_num < 1 || elem->in_num < 1) { in vub_virtio_process_req()
254 out_num = elem->out_num; in vub_virtio_process_req()
262 out_num--; in vub_virtio_process_req()
279 ret = vub_writev(req, &elem->out_sg[1], out_num); in vub_virtio_process_req()
308 rc = vub_discard_write_zeroes(req, &elem->out_sg[1], out_num, type); in vub_virtio_process_req()
/openbmc/qemu/hw/9pfs/
H A Dvirtio-9p-device.c69 len = iov_to_buf(elem->out_sg, elem->out_num, 0, &out, 7); in handle_9p_output()
146 ret = v9fs_iov_vunmarshal(elem->out_sg, elem->out_num, offset, 1, fmt, ap); in virtio_pdu_vunmarshal()
181 size_t buf_size = iov_size(elem->out_sg, elem->out_num); in virtio_init_out_iov_from_pdu()
192 *pniov = elem->out_num; in virtio_init_out_iov_from_pdu()
/openbmc/qemu/subprojects/libvduse/
H A Dlibvduse.c626 static void *vduse_queue_alloc_element(size_t sz, unsigned out_num, in vduse_queue_alloc_element() argument
632 size_t out_sg_end = out_sg_ofs + out_num * sizeof(elem->out_sg[0]); in vduse_queue_alloc_element()
639 elem->out_num = out_num; in vduse_queue_alloc_element()
657 unsigned int out_num = 0, in_num = 0; in vduse_queue_map_desc() local
691 if (!vduse_queue_map_single_desc(vq, &in_num, iov + out_num, in vduse_queue_map_desc()
692 VIRTQUEUE_MAX_SIZE - out_num, in vduse_queue_map_desc()
702 if (!vduse_queue_map_single_desc(vq, &out_num, iov, in vduse_queue_map_desc()
711 if ((in_num + out_num) > max) { in vduse_queue_map_desc()
724 elem = vduse_queue_alloc_element(sz, out_num, in_num); in vduse_queue_map_desc()
730 for (i = 0; i < out_num; i++) { in vduse_queue_map_desc()
[all …]
H A Dlibvduse.h40 unsigned int out_num; member
/openbmc/qemu/hw/audio/
H A Dvirtio-snd.c167 cmd->elem->out_num, in virtio_snd_handle_pcm_info()
296 cmd->elem->out_num, in virtio_snd_handle_pcm_set_params()
516 cmd->elem->out_num, in virtio_snd_handle_pcm_prepare()
542 cmd->elem->out_num, in virtio_snd_handle_pcm_start_stop()
608 cmd->elem->out_num, in virtio_snd_handle_pcm_release()
667 cmd->elem->out_num, in process_cmd()
876 elem->out_num, in virtio_snd_handle_tx_xfer()
896 size = iov_size(elem->out_sg, elem->out_num) - msg_sz; in virtio_snd_handle_tx_xfer()
957 elem->out_num, in virtio_snd_handle_rx_xfer()
1164 buffer->elem->out_num, in virtio_snd_pcm_out_cb()
/openbmc/linux/drivers/scsi/
H A Dvirtio_scsi.c432 unsigned out_num = 0, in_num = 0; in __virtscsi_add_cmd() local
445 sgs[out_num++] = &req; in __virtscsi_add_cmd()
451 sgs[out_num++] = scsi_prot_sglist(sc); in __virtscsi_add_cmd()
452 sgs[out_num++] = out->sgl; in __virtscsi_add_cmd()
457 sgs[out_num + in_num++] = &resp; in __virtscsi_add_cmd()
463 sgs[out_num + in_num++] = scsi_prot_sglist(sc); in __virtscsi_add_cmd()
464 sgs[out_num + in_num++] = in->sgl; in __virtscsi_add_cmd()
467 return virtqueue_add_sgs(vq, sgs, out_num, in_num, cmd, GFP_ATOMIC); in __virtscsi_add_cmd()
/openbmc/linux/drivers/clk/
H A Dclk-versaclock7.c691 unsigned int val, out_num; in vc7_read_output() local
693 out_num = vc7_map_index_to_output(vc7->chip_info->model, idx); in vc7_read_output()
695 VC7_REG_ODRV_EN(out_num), in vc7_read_output()
710 unsigned int out_num; in vc7_write_output() local
712 out_num = vc7_map_index_to_output(vc7->chip_info->model, idx); in vc7_write_output()
714 VC7_REG_ODRV_EN(out_num), in vc7_write_output()
1101 unsigned int i, val, bank_idx, out_num; in vc7_probe() local
1177 out_num = vc7_map_index_to_output(vc7->chip_info->model, i); in vc7_probe()
1184 bank_idx = output_bank_mapping[out_num]; in vc7_probe()
/openbmc/qemu/hw/net/
H A Dvirtio-net.c1546 unsigned out_num) in virtio_net_handle_ctrl_iov() argument
1555 iov_size(out_sg, out_num) < sizeof(ctrl)) { in virtio_net_handle_ctrl_iov()
2704 unsigned int out_num; in virtio_net_flush_tx() local
2713 out_num = elem->out_num; in virtio_net_flush_tx()
2715 if (out_num < 1) { in virtio_net_flush_tx()
2729 out_num = iov_copy(&sg2[1], ARRAY_SIZE(sg2) - 1, out_sg, out_num, in virtio_net_flush_tx()
2731 if (out_num == VIRTQUEUE_MAX_SIZE) { in virtio_net_flush_tx()
2734 out_num += 1; in virtio_net_flush_tx()
2752 out_sg, out_num, in virtio_net_flush_tx()
2754 out_num = sg_num; in virtio_net_flush_tx()
[all …]
/openbmc/qemu/contrib/vhost-user-scsi/
H A Dvhost-user-scsi.c262 assert(!(elem->out_num > 1 && elem->in_num > 1)); in vus_proc_req()
263 assert(elem->out_num > 0 && elem->in_num > 0); in vus_proc_req()
280 req, &elem->out_sg[1], elem->out_num - 1, in vus_proc_req()
/openbmc/qemu/hw/block/
H A Dvirtio-blk.c200 if (elem->out_num < 2 || elem->in_num < 3) { in virtio_blk_handle_scsi()
760 uint64_t out_num, in virtio_blk_handle_zone_append() argument
767 int64_t len = iov_size(out_iov, out_num); in virtio_blk_handle_zone_append()
780 qemu_iovec_init_external(&req->qiov, out_iov, out_num); in virtio_blk_handle_zone_append()
801 unsigned out_num = req->elem.out_num; in virtio_blk_handle_request() local
805 if (req->elem.out_num < 1 || req->elem.in_num < 1) { in virtio_blk_handle_request()
810 if (unlikely(iov_to_buf(out_iov, out_num, 0, &req->out, in virtio_blk_handle_request()
816 iov_discard_front_undoable(&out_iov, &out_num, sizeof(req->out), in virtio_blk_handle_request()
845 qemu_iovec_init_external(&req->qiov, out_iov, out_num); in virtio_blk_handle_request()
934 size_t out_len = iov_size(out_iov, out_num); in virtio_blk_handle_request()
[all …]
/openbmc/qemu/net/
H A Dvhost-vdpa.c641 const struct iovec *out_sg, size_t out_num, in vhost_vdpa_net_cvq_add() argument
647 r = vhost_svq_add(svq, out_sg, out_num, in_sg, in_num, NULL); in vhost_vdpa_net_cvq_add()
1350 r = iov_to_buf(elem->out_sg, elem->out_num, cursor, in vhost_vdpa_net_excessive_mac_filter_cvq_add()
1363 r = iov_to_buf(elem->out_sg, elem->out_num, cursor, in vhost_vdpa_net_excessive_mac_filter_cvq_add()
1376 if (iov_size(elem->out_sg, elem->out_num) != cursor) { in vhost_vdpa_net_excessive_mac_filter_cvq_add()
1501 out.iov_len = iov_to_buf(elem->out_sg, elem->out_num, 0, in vhost_vdpa_net_handle_ctrl_avail()
1515 iov_size(elem->out_sg, elem->out_num) > out.iov_len)) { in vhost_vdpa_net_handle_ctrl_avail()

123