Home
last modified time | relevance | path

Searched refs:sring (Results 1 – 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dtxrx_edma.c60 struct wil_status_ring *sring) in wil_sring_free() argument
65 if (!sring || !sring->va) in wil_sring_free()
68 sz = sring->elem_size * sring->size; in wil_sring_free()
71 sz, sring->va, &sring->pa); in wil_sring_free()
73 dma_free_coherent(dev, sz, (void *)sring->va, sring->pa); in wil_sring_free()
74 sring->pa = 0; in wil_sring_free()
75 sring->va = NULL; in wil_sring_free()
79 struct wil_status_ring *sring) in wil_sring_alloc() argument
82 size_t sz = sring->elem_size * sring->size; in wil_sring_alloc()
91 sring->swhead = 0; in wil_sring_alloc()
[all …]
Ddebugfs.c194 struct wil_status_ring *sring) in wil_print_sring() argument
197 int sring_idx = sring - wil->srings; in wil_print_sring()
201 sring->is_rx ? "RX" : "TX", sring_idx); in wil_print_sring()
202 seq_printf(s, " pa = %pad\n", &sring->pa); in wil_print_sring()
203 seq_printf(s, " va = 0x%pK\n", sring->va); in wil_print_sring()
204 seq_printf(s, " size = %d\n", sring->size); in wil_print_sring()
205 seq_printf(s, " elem_size = %zu\n", sring->elem_size); in wil_print_sring()
206 seq_printf(s, " swhead = %d\n", sring->swhead); in wil_print_sring()
218 seq_printf(s, " hwtail = [0x%08x] -> ", sring->hwtail); in wil_print_sring()
219 x = wmi_addr(wil, sring->hwtail); in wil_print_sring()
[all …]
Dnetdev.c176 struct wil_status_ring *sring = &wil->srings[wil->tx_sring_idx]; in wil6210_netdev_poll_tx_edma() local
178 if (!sring->va) in wil6210_netdev_poll_tx_edma()
181 tx_done = wil_tx_sring_handler(wil, sring); in wil6210_netdev_poll_tx_edma()
Dtxrx_edma.h597 struct wil_status_ring *sring);
Dwmi.c3721 struct wil_status_ring *sring = &wil->srings[ring_id]; in wil_wmi_tx_sring_cfg() local
3724 .ring_size = cpu_to_le16(sring->size), in wil_wmi_tx_sring_cfg()
3737 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_tx_sring_cfg()
3752 sring->hwtail = le32_to_cpu(reply.evt.ring_tail_ptr); in wil_wmi_tx_sring_cfg()
3797 struct wil_status_ring *sring = &wil->srings[ring_id]; in wil_wmi_rx_sring_add() local
3801 .ring_size = cpu_to_le16(sring->size), in wil_wmi_rx_sring_add()
3816 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_rx_sring_add()
3831 sring->hwtail = le32_to_cpu(reply.evt.ring_tail_ptr); in wil_wmi_rx_sring_add()
/kernel/linux/linux-5.10/include/xen/interface/io/
Dring.h124 struct __name##_sring *sring; \
132 struct __name##_sring *sring; \
161 (_r)->sring = (_s); \
170 (_r)->sring = (_s); \
191 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
194 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
202 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
205 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
238 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
243 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
[all …]
/kernel/linux/linux-5.10/drivers/net/xen-netback/
Dxenbus.c33 if (tx_ring->sring) { in xenvif_read_io_ring()
34 struct xen_netif_tx_sring *sring = tx_ring->sring; in xenvif_read_io_ring() local
39 sring->req_prod, in xenvif_read_io_ring()
40 sring->req_prod - sring->rsp_prod, in xenvif_read_io_ring()
42 tx_ring->req_cons - sring->rsp_prod, in xenvif_read_io_ring()
43 sring->req_event, in xenvif_read_io_ring()
44 sring->req_event - sring->rsp_prod); in xenvif_read_io_ring()
46 sring->rsp_prod, in xenvif_read_io_ring()
48 tx_ring->rsp_prod_pvt - sring->rsp_prod, in xenvif_read_io_ring()
49 sring->rsp_event, in xenvif_read_io_ring()
[all …]
Drx.c68 prod = queue->rx.sring->req_prod; in xenvif_rx_ring_slots_available()
74 queue->rx.sring->req_event = prod + 1; in xenvif_rx_ring_slots_available()
80 } while (queue->rx.sring->req_prod != prod); in xenvif_rx_ring_slots_available()
513 prod = queue->rx.sring->req_prod; in xenvif_rx_queue_slots()
Dinterface.c679 vif->ctrl.sring); in xenvif_connect_ctrl()
680 vif->ctrl.sring = NULL; in xenvif_connect_ctrl()
843 if (vif->ctrl.sring) { in xenvif_disconnect_ctrl()
845 vif->ctrl.sring); in xenvif_disconnect_ctrl()
846 vif->ctrl.sring = NULL; in xenvif_disconnect_ctrl()
Dnetback.c890 if (queue->tx.sring->req_prod - queue->tx.req_cons > in xenvif_tx_build_gops()
895 queue->tx.sring->req_prod, queue->tx.req_cons, in xenvif_tx_build_gops()
1483 if (queue->tx.sring) in xenvif_unmap_frontend_data_rings()
1485 queue->tx.sring); in xenvif_unmap_frontend_data_rings()
1486 if (queue->rx.sring) in xenvif_unmap_frontend_data_rings()
1488 queue->rx.sring); in xenvif_unmap_frontend_data_rings()
1647 req_prod = vif->ctrl.sring->req_prod; in xenvif_ctrl_action()
1666 vif->ctrl.sring->req_event = req_cons + 1; in xenvif_ctrl_action()
/kernel/linux/linux-5.10/drivers/gpu/drm/xen/
Dxen_drm_front_evtchnl.c37 rp = evtchnl->u.req.ring.sring->rsp_prod; in evtchnl_interrupt_ctrl()
74 evtchnl->u.req.ring.sring->rsp_event = i + 1; in evtchnl_interrupt_ctrl()
129 page = (unsigned long)evtchnl->u.req.ring.sring; in evtchnl_free()
180 struct xen_displif_sring *sring; in evtchnl_alloc() local
184 sring = (struct xen_displif_sring *)page; in evtchnl_alloc()
185 SHARED_RING_INIT(sring); in evtchnl_alloc()
186 FRONT_RING_INIT(&evtchnl->u.req.ring, sring, XEN_PAGE_SIZE); in evtchnl_alloc()
188 ret = xenbus_grant_ring(xb_dev, sring, 1, &gref); in evtchnl_alloc()
190 evtchnl->u.req.ring.sring = NULL; in evtchnl_alloc()
/kernel/linux/linux-5.10/sound/xen/
Dxen_snd_front_evtchnl.c34 rp = channel->u.req.ring.sring->rsp_prod; in evtchnl_interrupt_req()
80 channel->u.req.ring.sring->rsp_event = i + 1; in evtchnl_interrupt_req()
149 page = (unsigned long)channel->u.req.ring.sring; in evtchnl_free()
229 struct xen_sndif_sring *sring = (struct xen_sndif_sring *)page; in evtchnl_alloc() local
233 SHARED_RING_INIT(sring); in evtchnl_alloc()
234 FRONT_RING_INIT(&channel->u.req.ring, sring, XEN_PAGE_SIZE); in evtchnl_alloc()
236 ret = xenbus_grant_ring(xb_dev, sring, 1, &gref); in evtchnl_alloc()
238 channel->u.req.ring.sring = NULL; in evtchnl_alloc()
/kernel/linux/linux-5.10/tools/io_uring/
Dio_uring-bench.c391 struct io_sq_ring *sring = &s->sq_ring; in setup_ring() local
436 sring->head = ptr + p.sq_off.head; in setup_ring()
437 sring->tail = ptr + p.sq_off.tail; in setup_ring()
438 sring->ring_mask = ptr + p.sq_off.ring_mask; in setup_ring()
439 sring->ring_entries = ptr + p.sq_off.ring_entries; in setup_ring()
440 sring->flags = ptr + p.sq_off.flags; in setup_ring()
441 sring->array = ptr + p.sq_off.array; in setup_ring()
442 sq_ring_mask = *sring->ring_mask; in setup_ring()
/kernel/linux/linux-5.10/drivers/scsi/
Dxen-scsifront.c328 rp = info->ring.sring->rsp_prod; in scsifront_ring_drain()
340 info->ring.sring->rsp_event = i + 1; in scsifront_ring_drain()
705 struct vscsiif_sring *sring; in scsifront_alloc_ring() local
710 sring = (struct vscsiif_sring *)__get_free_page(GFP_KERNEL); in scsifront_alloc_ring()
711 if (!sring) { in scsifront_alloc_ring()
716 SHARED_RING_INIT(sring); in scsifront_alloc_ring()
717 FRONT_RING_INIT(&info->ring, sring, PAGE_SIZE); in scsifront_alloc_ring()
719 err = xenbus_grant_ring(dev, sring, 1, &gref); in scsifront_alloc_ring()
721 free_page((unsigned long)sring); in scsifront_alloc_ring()
756 (unsigned long)info->ring.sring); in scsifront_alloc_ring()
[all …]
/kernel/linux/linux-5.10/drivers/block/
Dxen-blkfront.c1355 free_pages((unsigned long)rinfo->ring.sring, get_order(info->nr_ring_pages * XEN_PAGE_SIZE)); in blkif_free_ring()
1356 rinfo->ring.sring = NULL; in blkif_free_ring()
1585 rp = READ_ONCE(rinfo->ring.sring->rsp_prod); in blkif_interrupt()
1709 rinfo->ring.sring->rsp_event = i + 1; in blkif_interrupt()
1734 struct blkif_sring *sring; in setup_blkring() local
1743 sring = (struct blkif_sring *)__get_free_pages(GFP_NOIO | __GFP_HIGH, in setup_blkring()
1745 if (!sring) { in setup_blkring()
1749 SHARED_RING_INIT(sring); in setup_blkring()
1750 FRONT_RING_INIT(&rinfo->ring, sring, ring_size); in setup_blkring()
1752 err = xenbus_grant_ring(dev, rinfo->ring.sring, info->nr_ring_pages, gref); in setup_blkring()
[all …]
/kernel/linux/linux-5.10/drivers/xen/
Dpvcalls-front.c1121 kfree(bedata->ring.sring); in pvcalls_front_remove()
1137 struct xen_pvcalls_sring *sring; in pvcalls_front_probe() local
1180 sring = (struct xen_pvcalls_sring *) __get_free_page(GFP_KERNEL | in pvcalls_front_probe()
1182 if (!sring) in pvcalls_front_probe()
1184 SHARED_RING_INIT(sring); in pvcalls_front_probe()
1185 FRONT_RING_INIT(&bedata->ring, sring, XEN_PAGE_SIZE); in pvcalls_front_probe()
1207 virt_to_gfn((void *)sring), 0); in pvcalls_front_probe()
Dpvcalls-back.c40 struct xen_pvcalls_sring *sring; member
962 (void **)&fedata->sring); in backend_connect()
966 BACK_RING_INIT(&fedata->ring, fedata->sring, XEN_PAGE_SIZE * 1); in backend_connect()
983 if (fedata->sring != NULL) in backend_connect()
984 xenbus_unmap_ring_vfree(dev, fedata->sring); in backend_connect()
1022 xenbus_unmap_ring_vfree(dev, fedata->sring); in backend_disconnect()
Dxen-scsiback.c553 xenbus_unmap_ring_vfree(info->dev, info->ring.sring); in scsiback_disconnect()
699 rp = ring->sring->req_prod; in scsiback_do_cmd_fn()
789 struct vscsiif_sring *sring; in scsiback_init_sring() local
799 sring = (struct vscsiif_sring *)area; in scsiback_init_sring()
800 BACK_RING_INIT(&info->ring, sring, PAGE_SIZE); in scsiback_init_sring()
/kernel/linux/linux-5.10/drivers/net/
Dxen-netfront.c370 queue->rx.sring->rsp_event = queue->rx.rsp_cons + 1; in xennet_open()
394 prod = queue->tx.sring->rsp_prod; in xennet_tx_buf_gc()
1217 rp = queue->rx.sring->rsp_prod; in xennet_poll()
1772 xennet_end_access(queue->tx_ring_ref, queue->tx.sring); in xennet_disconnect_backend()
1773 xennet_end_access(queue->rx_ring_ref, queue->rx.sring); in xennet_disconnect_backend()
1777 queue->tx.sring = NULL; in xennet_disconnect_backend()
1778 queue->rx.sring = NULL; in xennet_disconnect_backend()
1906 queue->rx.sring = NULL; in setup_netfront()
1907 queue->tx.sring = NULL; in setup_netfront()
/kernel/linux/linux-5.10/drivers/block/xen-blkback/
Dxenbus.c258 ring->blk_rings.common.sring = NULL; in xen_blkif_map()
295 if (ring->blk_rings.common.sring) { in xen_blkif_disconnect()
297 ring->blk_rings.common.sring = NULL; in xen_blkif_disconnect()
Dblkback.c1091 rp = blk_rings->common.sring->req_prod; in __do_block_io_op()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0022_linux_drivers_i2c.patch3174 + (unsigned long)info->i2c_ring.sring);
3177 + info->i2c_ring.sring = NULL;
3244 + rp = info->i2c_ring.sring->rsp_prod;
3268 + info->i2c_ring.sring->rsp_event = i + 1;
3355 + rp = info->i2c_ring.sring->rsp_prod;
3373 + info->i2c_ring.sring->rsp_event = i + 1;
3446 + xenbus_dev_fatal(dev, -ENOMEM, "allocating i2c sring");
3456 + info->i2c_ring.sring = NULL;