Lines Matching refs:buf_vec

606 		struct buf_vector *buf_vec, uint16_t *vec_idx,  in map_one_desc()  argument
627 buf_vec[vec_id].buf_iova = desc_iova; in map_one_desc()
628 buf_vec[vec_id].buf_addr = desc_addr; in map_one_desc()
629 buf_vec[vec_id].buf_len = desc_chunck_len; in map_one_desc()
643 struct buf_vector *buf_vec, uint16_t *desc_chain_head, in fill_vec_buf_split() argument
698 if (unlikely(map_one_desc(dev, vq, buf_vec, &vec_id, in fill_vec_buf_split()
725 uint32_t size, struct buf_vector *buf_vec, in reserve_avail_buf_split() argument
756 &vec_idx, buf_vec, in reserve_avail_buf_split()
777 struct buf_vector *buf_vec, uint32_t *len, uint8_t perm) in fill_vec_buf_packed_indirect() argument
818 if (unlikely(map_one_desc(dev, vq, buf_vec, &vec_id, in fill_vec_buf_packed_indirect()
834 struct buf_vector *buf_vec, uint16_t *vec_idx, in fill_vec_buf_packed() argument
869 &vec_id, buf_vec, in fill_vec_buf_packed()
876 if (unlikely(map_one_desc(dev, vq, buf_vec, &vec_id, in fill_vec_buf_packed()
899 struct buf_vector *buf_vec, in copy_vnet_hdr_to_desc() argument
905 uint64_t iova = buf_vec->buf_iova; in copy_vnet_hdr_to_desc()
909 buf_vec->buf_len); in copy_vnet_hdr_to_desc()
910 dst = buf_vec->buf_addr; in copy_vnet_hdr_to_desc()
923 buf_vec++; in copy_vnet_hdr_to_desc()
1058 struct rte_mbuf *m, struct buf_vector *buf_vec, in mbuf_to_desc() argument
1074 buf_addr = buf_vec[vec_idx].buf_addr; in mbuf_to_desc()
1075 buf_iova = buf_vec[vec_idx].buf_iova; in mbuf_to_desc()
1076 buf_len = buf_vec[vec_idx].buf_len; in mbuf_to_desc()
1095 buf_addr = buf_vec[vec_idx].buf_addr; in mbuf_to_desc()
1096 buf_iova = buf_vec[vec_idx].buf_iova; in mbuf_to_desc()
1097 buf_len = buf_vec[vec_idx].buf_len; in mbuf_to_desc()
1119 buf_addr = buf_vec[vec_idx].buf_addr; in mbuf_to_desc()
1120 buf_iova = buf_vec[vec_idx].buf_iova; in mbuf_to_desc()
1121 buf_len = buf_vec[vec_idx].buf_len; in mbuf_to_desc()
1142 copy_vnet_hdr_to_desc(dev, vq, buf_vec, hdr); in mbuf_to_desc()
1147 buf_vec[0].buf_iova, in mbuf_to_desc()
1187 struct buf_vector *buf_vec, in vhost_enqueue_single_packed() argument
1218 buf_vec, &nr_vec, in vhost_enqueue_single_packed()
1237 if (mbuf_to_desc(dev, vq, pkt, buf_vec, nr_vec, num_buffers, false) < 0) in vhost_enqueue_single_packed()
1252 struct buf_vector buf_vec[BUF_VECTOR_MAX]; in virtio_dev_rx_split() local
1268 pkt_len, buf_vec, &num_buffers, in virtio_dev_rx_split()
1281 if (mbuf_to_desc(dev, vq, pkts[pkt_idx], buf_vec, nr_vec, in virtio_dev_rx_split()
1420 struct buf_vector buf_vec[BUF_VECTOR_MAX]; in virtio_dev_rx_single_packed() local
1423 if (unlikely(vhost_enqueue_single_packed(dev, vq, pkt, buf_vec, in virtio_dev_rx_single_packed()
1589 struct buf_vector buf_vec[BUF_VECTOR_MAX]; in virtio_dev_rx_async_submit_split() local
1613 if (unlikely(reserve_avail_buf_split(dev, vq, pkt_len, buf_vec, in virtio_dev_rx_async_submit_split()
1624 if (mbuf_to_desc(dev, vq, pkts[pkt_idx], buf_vec, nr_vec, num_buffers, true) < 0) { in virtio_dev_rx_async_submit_split()
1689 struct buf_vector *buf_vec, in vhost_enqueue_async_packed() argument
1720 buf_vec, &nr_vec, in vhost_enqueue_async_packed()
1738 if (unlikely(mbuf_to_desc(dev, vq, pkt, buf_vec, nr_vec, *nr_buffers, true) < 0)) in vhost_enqueue_async_packed()
1750 struct buf_vector buf_vec[BUF_VECTOR_MAX]; in virtio_dev_rx_async_packed() local
1752 if (unlikely(vhost_enqueue_async_packed(dev, vq, pkt, buf_vec, in virtio_dev_rx_async_packed()
2451 struct buf_vector *buf_vec) in copy_vnet_hdr_from_desc() argument
2459 len = RTE_MIN(remain, buf_vec->buf_len); in copy_vnet_hdr_from_desc()
2460 src = buf_vec->buf_addr; in copy_vnet_hdr_from_desc()
2466 buf_vec++; in copy_vnet_hdr_from_desc()
2472 struct buf_vector *buf_vec, uint16_t nr_vec, in copy_desc_to_mbuf() argument
2488 buf_addr = buf_vec[vec_idx].buf_addr; in copy_desc_to_mbuf()
2489 buf_len = buf_vec[vec_idx].buf_len; in copy_desc_to_mbuf()
2502 copy_vnet_hdr_from_desc(&tmp_hdr, buf_vec); in copy_desc_to_mbuf()
2517 buf_addr = buf_vec[vec_idx].buf_addr; in copy_desc_to_mbuf()
2518 buf_len = buf_vec[vec_idx].buf_len; in copy_desc_to_mbuf()
2523 buf_addr = buf_vec[vec_idx].buf_addr; in copy_desc_to_mbuf()
2524 buf_len = buf_vec[vec_idx].buf_len; in copy_desc_to_mbuf()
2530 buf_avail = buf_vec[vec_idx].buf_len - dev->vhost_hlen; in copy_desc_to_mbuf()
2569 buf_addr = buf_vec[vec_idx].buf_addr; in copy_desc_to_mbuf()
2570 buf_len = buf_vec[vec_idx].buf_len; in copy_desc_to_mbuf()
2710 struct buf_vector buf_vec[BUF_VECTOR_MAX]; in virtio_dev_tx_split() local
2718 &nr_vec, buf_vec, in virtio_dev_tx_split()
2742 err = copy_desc_to_mbuf(dev, vq, buf_vec, nr_vec, pkts[i], in virtio_dev_tx_split()
2913 struct buf_vector buf_vec[BUF_VECTOR_MAX]; in vhost_dequeue_single_packed() local
2921 buf_vec, &nr_vec, in vhost_dequeue_single_packed()
2935 err = copy_desc_to_mbuf(dev, vq, buf_vec, nr_vec, pkts, in vhost_dequeue_single_packed()