Home
last modified time | relevance | path

Searched refs:vring (Results 1 – 15 of 15) sorted by relevance

/drivers/net/wireless/ath/wil6210/
Dtxrx.c45 static inline int wil_vring_is_empty(struct vring *vring) in wil_vring_is_empty() argument
47 return vring->swhead == vring->swtail; in wil_vring_is_empty()
50 static inline u32 wil_vring_next_tail(struct vring *vring) in wil_vring_next_tail() argument
52 return (vring->swtail + 1) % vring->size; in wil_vring_next_tail()
55 static inline void wil_vring_advance_head(struct vring *vring, int n) in wil_vring_advance_head() argument
57 vring->swhead = (vring->swhead + n) % vring->size; in wil_vring_advance_head()
60 static inline int wil_vring_is_full(struct vring *vring) in wil_vring_is_full() argument
62 return wil_vring_next_tail(vring) == vring->swhead; in wil_vring_is_full()
66 static inline int wil_vring_used_tx(struct vring *vring) in wil_vring_used_tx() argument
68 u32 swhead = vring->swhead; in wil_vring_used_tx()
[all …]
Dtrace.h190 TP_PROTO(u8 vring, u16 index, unsigned int len, u8 frags),
191 TP_ARGS(vring, index, len, frags),
193 __field(u8, vring)
199 __entry->vring = vring;
205 __entry->vring, __entry->index, __entry->len, __entry->frags)
209 TP_PROTO(u8 vring, u16 index, unsigned int len, u8 err),
210 TP_ARGS(vring, index, len, err),
212 __field(u8, vring)
218 __entry->vring = vring;
224 __entry->vring, __entry->index, __entry->len,
Ddebugfs.c51 const char *name, struct vring *vring, in wil_print_vring() argument
54 void __iomem *x = wmi_addr(wil, vring->hwtail); in wil_print_vring()
58 seq_printf(s, " pa = %pad\n", &vring->pa); in wil_print_vring()
59 seq_printf(s, " va = 0x%p\n", vring->va); in wil_print_vring()
60 seq_printf(s, " size = %d\n", vring->size); in wil_print_vring()
61 seq_printf(s, " swtail = %d\n", vring->swtail); in wil_print_vring()
62 seq_printf(s, " swhead = %d\n", vring->swhead); in wil_print_vring()
63 seq_printf(s, " hwtail = [0x%08x] -> ", vring->hwtail); in wil_print_vring()
71 if (vring->va && (vring->size < 1025)) { in wil_print_vring()
74 for (i = 0; i < vring->size; i++) { in wil_print_vring()
[all …]
Dnetdev.c110 struct vring *vring = &wil->vring_tx[i]; in wil6210_netdev_poll_tx() local
112 if (!vring->va) in wil6210_netdev_poll_tx()
Dwil6210.h380 struct vring { struct
611 struct vring vring_rx;
612 struct vring vring_tx[WIL6210_MAX_TX_RINGS];
755 int wmi_rx_chain_add(struct wil6210_priv *wil, struct vring *vring);
Dwmi.c1101 int wmi_rx_chain_add(struct wil6210_priv *wil, struct vring *vring) in wmi_rx_chain_add() argument
1109 .ring_mem_base = cpu_to_le64(vring->pa), in wmi_rx_chain_add()
1110 .ring_size = cpu_to_le16(vring->size), in wmi_rx_chain_add()
1152 vring->hwtail = le32_to_cpu(evt.evt.rx_ring_tail_ptr); in wmi_rx_chain_add()
1155 le32_to_cpu(evt.evt.status), vring->hwtail); in wmi_rx_chain_add()
/drivers/virtio/
Dvirtio_ring.c68 struct vring vring; member
292 BUG_ON(total_sg > vq->vring.num); in virtqueue_add()
312 desc = vq->vring.desc; in virtqueue_add()
368 vq->vring.desc[head].flags = cpu_to_virtio16(_vq->vdev, VRING_DESC_F_INDIRECT); in virtqueue_add()
369 vq->vring.desc[head].addr = cpu_to_virtio64(_vq->vdev, addr); in virtqueue_add()
371 vq->vring.desc[head].len = cpu_to_virtio32(_vq->vdev, total_sg * sizeof(struct vring_desc)); in virtqueue_add()
379 vq->free_head = virtio16_to_cpu(_vq->vdev, vq->vring.desc[head].next); in virtqueue_add()
390 avail = vq->avail_idx_shadow & (vq->vring.num - 1); in virtqueue_add()
391 vq->vring.avail->ring[avail] = cpu_to_virtio16(_vq->vdev, head); in virtqueue_add()
397 vq->vring.avail->idx = cpu_to_virtio16(_vq->vdev, vq->avail_idx_shadow); in virtqueue_add()
[all …]
/drivers/vhost/
Dvringh.c39 err = getu16(vrh, &avail_idx, &vrh->vring.avail->idx); in __vringh_get_head()
42 &vrh->vring.avail->idx); in __vringh_get_head()
47 return vrh->vring.num; in __vringh_get_head()
52 i = *last_avail_idx & (vrh->vring.num - 1); in __vringh_get_head()
54 err = getu16(vrh, &head, &vrh->vring.avail->ring[i]); in __vringh_get_head()
57 *last_avail_idx, &vrh->vring.avail->ring[i]); in __vringh_get_head()
61 if (head >= vrh->vring.num) { in __vringh_get_head()
63 head, vrh->vring.num); in __vringh_get_head()
213 *descs = vrh->vring.desc; in return_from_indirect()
214 *desc_max = vrh->vring.num; in return_from_indirect()
[all …]
/drivers/remoteproc/
Dremoteproc_core.c205 struct rproc_vring *rvring = &rvdev->vring[i]; in rproc_alloc_vring()
251 rsc->vring[i].da = dma; in rproc_alloc_vring()
252 rsc->vring[i].notifyid = notifyid; in rproc_alloc_vring()
261 struct fw_rsc_vdev_vring *vring = &rsc->vring[i]; in rproc_parse_vring() local
262 struct rproc_vring *rvring = &rvdev->vring[i]; in rproc_parse_vring()
265 i, vring->da, vring->num, vring->align); in rproc_parse_vring()
268 if (vring->reserved) { in rproc_parse_vring()
274 if (!vring->num || !vring->align) { in rproc_parse_vring()
276 vring->num, vring->align); in rproc_parse_vring()
280 rvring->len = vring->num; in rproc_parse_vring()
[all …]
Dremoteproc_virtio.c85 if (id >= ARRAY_SIZE(rvdev->vring)) in rp_find_vq()
95 rvring = &rvdev->vring[id]; in rp_find_vq()
250 cfg = &rsc->vring[rsc->num_of_vrings]; in rproc_virtio_get()
268 cfg = &rsc->vring[rsc->num_of_vrings]; in rproc_virtio_set()
/drivers/misc/mic/host/
Dmic_debugfs.c219 int num = vrh->vring.num; in mic_vdev_info_show()
222 desc = vrh->vring.desc; in mic_vdev_info_show()
224 i, mvr->vring.info->avail_idx & (num - 1)); in mic_vdev_info_show()
226 i, mvr->vring.info->avail_idx); in mic_vdev_info_show()
239 avail = vrh->vring.avail; in mic_vdev_info_show()
249 used = vrh->vring.used; in mic_vdev_info_show()
Dmic_virtio.c268 struct mic_vring *vr = &mvr->vring; in _mic_virtio_copy()
395 mvdev->mvr[i].vrh.vring.used = in mic_virtio_init_post()
427 mvdev->mvr[i].vring.info->avail_idx = 0; in mic_virtio_device_reset()
647 struct mic_vring *vr = &mvdev->mvr[i].vring; in mic_virtio_add_device()
734 mvr->vring.len); in mic_virtio_add_device()
735 free_pages((unsigned long)mvr->vring.va, in mic_virtio_add_device()
736 get_order(mvr->vring.len)); in mic_virtio_add_device()
787 mvr->vring.len); in mic_virtio_del_device()
788 free_pages((unsigned long)mvr->vring.va, in mic_virtio_del_device()
789 get_order(mvr->vring.len)); in mic_virtio_del_device()
Dmic_fops.c179 *pa = virt_to_phys(mvr->vring.va); in mic_query_offset()
180 *size = mvr->vring.len; in mic_query_offset()
183 start += mvr->vring.len; in mic_query_offset()
Dmic_virtio.h57 struct mic_vring vring; member
/drivers/misc/mic/card/
Dmic_virtio.c205 struct vring *vr = (struct vring *)(vq + 1); in mic_del_vq()
243 struct vring *vr; in mic_find_vq()
299 vr = (struct vring *)(vq + 1); in mic_find_vq()