| /f-stack/dpdk/drivers/net/virtio/virtio_user/ |
| H A D | virtio_user_dev.c | 53 struct vring *vring = &dev->vrings[queue_sel]; in virtio_user_kick_queue() local 75 state.num = vring->num; in virtio_user_kick_queue() 655 virtio_user_handle_ctrl_msg(struct virtio_user_dev *dev, struct vring *vring, in virtio_user_handle_ctrl_msg() argument 664 idx_data = vring->desc[idx_hdr].next; in virtio_user_handle_ctrl_msg() 669 i = vring->desc[i].next; in virtio_user_handle_ctrl_msg() 707 struct vring_packed *vring, in virtio_user_handle_ctrl_msg_packed() argument 737 vring->desc[idx_data].addr; in virtio_user_handle_ctrl_msg_packed() 750 vring->desc[idx_hdr].id = vring->desc[idx_status].id; in virtio_user_handle_ctrl_msg_packed() 794 struct vring *vring = &dev->vrings[queue_idx]; in virtio_user_handle_cq() local 798 != vring->avail->idx) { in virtio_user_handle_cq() [all …]
|
| H A D | virtio_user_dev.h | 60 struct vring vrings[VIRTIO_MAX_VIRTQUEUES];
|
| /f-stack/dpdk/drivers/vdpa/ifc/ |
| H A D | ifcvf_vdpa.c | 282 hw->vring[i].desc = gpa; in vdpa_ifcvf_start() 289 hw->vring[i].avail = gpa; in vdpa_ifcvf_start() 296 hw->vring[i].used = gpa; in vdpa_ifcvf_start() 357 vring.callfd = -1; in vdpa_enable_vfio_intr() 453 vring.kickfd = -1; in notify_relay() 621 hw->vring[i].desc = gpa; in m_ifcvf_start() 734 vring.kickfd = -1; in vring_relay() 1108 if (vring < 0 || vring >= internal->max_queues * 2) { in ifcvf_set_vring_state() 1121 if (!state && hw->vring[vring].enable) { in ifcvf_set_vring_state() 1127 if (state && !hw->vring[vring].enable) { in ifcvf_set_vring_state() [all …]
|
| /f-stack/dpdk/examples/vhost_blk/ |
| H A D | vhost_blk.c | 75 struct vring_used *used = vq->vring.used; in enqueue_task() 126 if (vq->last_used_idx >= vq->vring.size) { in enqueue_task_packed() 127 vq->last_used_idx -= vq->vring.size; in enqueue_task_packed() 183 return &vq->vring.desc[desc->next]; in vring_get_next_desc() 192 *req_idx = (*req_idx + 1) % vq->vring.size; in vring_get_next_desc_packed() 193 return &vq->vring.desc_packed[*req_idx]; in vring_get_next_desc_packed() 413 if (vq->last_avail_idx >= vq->vring.size) { in submit_inflight_vq() 414 vq->last_avail_idx -= vq->vring.size; in submit_inflight_vq() 474 uint16_t flags = vq->vring.desc_packed[ in vhost_blk_vq_is_avail() 581 for (j = 0; j < vq->vring.size; j++) { in alloc_task_pool() [all …]
|
| H A D | vhost_blk.h | 33 struct rte_vhost_vring vring; member
|
| /f-stack/dpdk/drivers/vdpa/ifc/base/ |
| H A D | ifcvf.c | 206 io_write64_twopart(hw->vring[i].desc, &cfg->queue_desc_lo, in ifcvf_hw_enable() 208 io_write64_twopart(hw->vring[i].avail, &cfg->queue_avail_lo, in ifcvf_hw_enable() 210 io_write64_twopart(hw->vring[i].used, &cfg->queue_used_lo, in ifcvf_hw_enable() 212 IFCVF_WRITE_REG16(hw->vring[i].size, &cfg->queue_size); in ifcvf_hw_enable() 216 (u32)hw->vring[i].last_avail_idx | in ifcvf_hw_enable() 217 ((u32)hw->vring[i].last_used_idx << 16); in ifcvf_hw_enable() 252 hw->vring[i].last_avail_idx = (u16)(ring_state >> 16); in ifcvf_hw_disable() 253 hw->vring[i].last_used_idx = (u16)(ring_state >> 16); in ifcvf_hw_disable()
|
| H A D | ifcvf.h | 134 struct vring_info vring[IFCVF_MAX_QUEUES * 2]; member
|
| /f-stack/freebsd/contrib/device-tree/src/arm/ |
| H A D | keystone-k2hk.dtsi | 167 interrupt-names = "vring", "exception"; 183 interrupt-names = "vring", "exception"; 199 interrupt-names = "vring", "exception"; 215 interrupt-names = "vring", "exception"; 231 interrupt-names = "vring", "exception"; 247 interrupt-names = "vring", "exception"; 263 interrupt-names = "vring", "exception"; 279 interrupt-names = "vring", "exception";
|
| H A D | keystone-k2l.dtsi | 337 interrupt-names = "vring", "exception"; 353 interrupt-names = "vring", "exception"; 369 interrupt-names = "vring", "exception"; 385 interrupt-names = "vring", "exception";
|
| H A D | keystone-k2e.dtsi | 133 interrupt-names = "vring", "exception";
|
| /f-stack/dpdk/drivers/crypto/virtio/ |
| H A D | virtio_ring.h | 60 struct vring { struct 114 vring_init(struct vring *vr, unsigned int num, uint8_t *p, in vring_init()
|
| H A D | virtqueue.h | 65 struct vring vq_ring; /**< vring keeping desc, used and avail */
|
| H A D | virtio_rxtx.c | 369 struct vring *vr = &vq->vq_ring; in virtio_crypto_vring_start()
|
| /f-stack/dpdk/drivers/net/vhost/ |
| H A D | rte_eth_vhost.c | 577 struct rte_vhost_vring vring; in eth_rxq_intr_enable() local 614 struct rte_vhost_vring vring; in eth_rxq_intr_disable() local 655 struct rte_vhost_vring vring; in eth_vhost_install_intr() local 701 if (vring.kickfd < 0) { in eth_vhost_install_intr() 706 dev->intr_handle->efds[i] = vring.kickfd; in eth_vhost_install_intr() 899 struct rte_vhost_vring vring; in vring_conf_update() local 917 eth_dev->intr_handle->efds[rx_idx] = vring.kickfd; in vring_conf_update() 955 (int)vring); in vring_state_changed() 958 if (state->cur[vring] == enable) { in vring_state_changed() 962 state->cur[vring] = enable; in vring_state_changed() [all …]
|
| /f-stack/dpdk/lib/librte_vhost/ |
| H A D | vhost.c | 896 struct rte_vhost_vring *vring) in rte_vhost_get_vhost_vring() argument 902 if (dev == NULL || vring == NULL) in rte_vhost_get_vhost_vring() 913 vring->desc_packed = vq->desc_packed; in rte_vhost_get_vhost_vring() 914 vring->driver_event = vq->driver_event; in rte_vhost_get_vhost_vring() 915 vring->device_event = vq->device_event; in rte_vhost_get_vhost_vring() 917 vring->desc = vq->desc; in rte_vhost_get_vhost_vring() 918 vring->avail = vq->avail; in rte_vhost_get_vhost_vring() 919 vring->used = vq->used; in rte_vhost_get_vhost_vring() 923 vring->callfd = vq->callfd; in rte_vhost_get_vhost_vring() 924 vring->kickfd = vq->kickfd; in rte_vhost_get_vhost_vring() [all …]
|
| H A D | rte_vdpa_dev.h | 35 int (*set_vring_state)(int vid, int vring, int state);
|
| H A D | rte_vhost.h | 741 struct rte_vhost_vring *vring); 758 struct rte_vhost_ring_inflight *vring);
|
| H A D | vdpa.c | 141 struct vring *s_vring; in rte_vdpa_relay_vring_used() 155 s_vring = (struct vring *)vring_m; in rte_vdpa_relay_vring_used()
|
| /f-stack/dpdk/drivers/net/virtio/ |
| H A D | virtio_ring.h | 91 struct vring { struct 152 vring_init_split(struct vring *vr, uint8_t *p, unsigned long align, in vring_init_split()
|
| H A D | virtio_user_ethdev.c | 373 struct vring_packed *vring; in virtio_user_setup_queue_packed() local 379 vring = &dev->packed_vrings[queue_idx]; in virtio_user_setup_queue_packed() 386 vring->num = vq->vq_nentries; in virtio_user_setup_queue_packed() 387 vring->desc = (void *)(uintptr_t)desc_addr; in virtio_user_setup_queue_packed() 388 vring->driver = (void *)(uintptr_t)avail_addr; in virtio_user_setup_queue_packed() 389 vring->device = (void *)(uintptr_t)used_addr; in virtio_user_setup_queue_packed() 393 for (i = 0; i < vring->num; i++) in virtio_user_setup_queue_packed() 394 vring->desc[i].flags = 0; in virtio_user_setup_queue_packed()
|
| /f-stack/freebsd/contrib/device-tree/Bindings/remoteproc/ |
| H A D | ti,keystone-rproc.txt | 63 "vring" - interrupt for virtio based IPC 139 interrupt-names = "vring", "exception"; 178 interrupt-names = "vring", "exception";
|
| H A D | ti,k3-dsp-rproc.yaml | 69 vring buffers
|
| /f-stack/dpdk/drivers/vdpa/mlx5/ |
| H A D | mlx5_vdpa.c | 131 mlx5_vdpa_set_vring_state(int vid, int vring, int state) in mlx5_vdpa_set_vring_state() argument 142 if (vring >= (int)priv->caps.max_num_virtio_queues * 2) { in mlx5_vdpa_set_vring_state() 143 DRV_LOG(ERR, "Too big vring id: %d.", vring); in mlx5_vdpa_set_vring_state() 147 ret = mlx5_vdpa_virtq_enable(priv, vring, state); in mlx5_vdpa_set_vring_state()
|
| /f-stack/dpdk/doc/guides/prog_guide/ |
| H A D | vhost_lib.rst | 19 * Know all the necessary information about the vring: 23 the information it needs to know how to manipulate the vring. 379 Called to change the state of the vring in the actual device when vring state
|
| /f-stack/dpdk/doc/guides/nics/ |
| H A D | virtio.rst | 32 In Rx, packets described by the used descriptors in vring are available 35 In Tx, packets described by the used descriptors in vring are available 37 vring, make them available to the device, and then notify the host back
|