Home
last modified time | relevance | path

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

/linux-6.1.9/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.c3722 struct wil_status_ring *sring = &wil->srings[ring_id]; in wil_wmi_tx_sring_cfg() local
3725 .ring_size = cpu_to_le16(sring->size), in wil_wmi_tx_sring_cfg()
3738 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_tx_sring_cfg()
3753 sring->hwtail = le32_to_cpu(reply.evt.ring_tail_ptr); in wil_wmi_tx_sring_cfg()
3798 struct wil_status_ring *sring = &wil->srings[ring_id]; in wil_wmi_rx_sring_add() local
3802 .ring_size = cpu_to_le16(sring->size), in wil_wmi_rx_sring_add()
3817 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_rx_sring_add()
3832 sring->hwtail = le32_to_cpu(reply.evt.ring_tail_ptr); in wil_wmi_rx_sring_add()
/linux-6.1.9/include/xen/interface/io/
Dring.h106 struct __name##_sring *sring; \
114 struct __name##_sring *sring; \
143 (_r)->sring = (_s); \
157 (_r)->sring = (_s); \
178 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
181 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
194 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
230 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
235 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
[all …]
/linux-6.1.9/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()
514 prod = queue->rx.sring->req_prod; in xenvif_rx_queue_slots()
Dinterface.c665 xenbus_unmap_ring_vfree(xendev, vif->ctrl.sring); in xenvif_connect_ctrl()
666 vif->ctrl.sring = NULL; in xenvif_connect_ctrl()
829 if (vif->ctrl.sring) { in xenvif_disconnect_ctrl()
831 vif->ctrl.sring); in xenvif_disconnect_ctrl()
832 vif->ctrl.sring = NULL; in xenvif_disconnect_ctrl()
Dnetback.c892 if (queue->tx.sring->req_prod - queue->tx.req_cons > in xenvif_tx_build_gops()
897 queue->tx.sring->req_prod, queue->tx.req_cons, in xenvif_tx_build_gops()
1485 if (queue->tx.sring) in xenvif_unmap_frontend_data_rings()
1487 queue->tx.sring); in xenvif_unmap_frontend_data_rings()
1488 if (queue->rx.sring) in xenvif_unmap_frontend_data_rings()
1490 queue->rx.sring); in xenvif_unmap_frontend_data_rings()
1649 req_prod = vif->ctrl.sring->req_prod; in xenvif_ctrl_action()
1668 vif->ctrl.sring->req_event = req_cons + 1; in xenvif_ctrl_action()
/linux-6.1.9/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()
/linux-6.1.9/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 = evtchnl->u.req.ring.sring; in evtchnl_free()
176 struct xen_displif_sring *sring; in evtchnl_alloc() local
180 sring = page; in evtchnl_alloc()
181 XEN_FRONT_RING_INIT(&evtchnl->u.req.ring, sring, XEN_PAGE_SIZE); in evtchnl_alloc()
/linux-6.1.9/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 = channel->u.req.ring.sring; in evtchnl_free()
222 struct xen_sndif_sring *sring = page; in evtchnl_alloc() local
226 XEN_FRONT_RING_INIT(&channel->u.req.ring, sring, XEN_PAGE_SIZE); in evtchnl_alloc()
/linux-6.1.9/drivers/scsi/
Dxen-scsifront.c390 rp = READ_ONCE(info->ring.sring->rsp_prod); in scsifront_ring_drain()
409 info->ring.sring->rsp_event = i + 1; in scsifront_ring_drain()
792 struct vscsiif_sring *sring; in scsifront_alloc_ring() local
796 err = xenbus_setup_ring(dev, GFP_KERNEL, (void **)&sring, 1, in scsifront_alloc_ring()
801 XEN_FRONT_RING_INIT(&info->ring, sring, PAGE_SIZE); in scsifront_alloc_ring()
830 xenbus_teardown_ring((void **)&sring, 1, &info->ring_ref); in scsifront_alloc_ring()
838 xenbus_teardown_ring((void **)&info->ring.sring, 1, &info->ring_ref); in scsifront_free_ring()
/linux-6.1.9/drivers/xen/
Dpvcalls-front.c1123 kfree(bedata->ring.sring); in pvcalls_front_remove()
1139 struct xen_pvcalls_sring *sring; in pvcalls_front_probe() local
1182 sring = (struct xen_pvcalls_sring *) __get_free_page(GFP_KERNEL | in pvcalls_front_probe()
1184 if (!sring) in pvcalls_front_probe()
1186 SHARED_RING_INIT(sring); in pvcalls_front_probe()
1187 FRONT_RING_INIT(&bedata->ring, sring, XEN_PAGE_SIZE); in pvcalls_front_probe()
1209 virt_to_gfn((void *)sring), 0); in pvcalls_front_probe()
Dpvcalls-back.c40 struct xen_pvcalls_sring *sring; member
961 (void **)&fedata->sring); in backend_connect()
965 BACK_RING_INIT(&fedata->ring, fedata->sring, XEN_PAGE_SIZE * 1); in backend_connect()
982 if (fedata->sring != NULL) in backend_connect()
983 xenbus_unmap_ring_vfree(dev, fedata->sring); in backend_connect()
1021 xenbus_unmap_ring_vfree(dev, fedata->sring); in backend_disconnect()
Dxen-scsiback.c612 xenbus_unmap_ring_vfree(info->dev, info->ring.sring); in scsiback_disconnect()
758 rp = ring->sring->req_prod; in scsiback_do_cmd_fn()
848 struct vscsiif_sring *sring; in scsiback_init_sring() local
858 sring = (struct vscsiif_sring *)area; in scsiback_init_sring()
859 BACK_RING_INIT(&info->ring, sring, PAGE_SIZE); in scsiback_init_sring()
/linux-6.1.9/drivers/net/
Dxen-netfront.c376 queue->rx.sring->rsp_event = queue->rx.rsp_cons + 1; in xennet_open()
400 prod = queue->tx.sring->rsp_prod; in xennet_tx_buf_gc()
1278 rp = queue->rx.sring->rsp_prod; in xennet_poll()
1836 xennet_end_access(queue->tx_ring_ref, queue->tx.sring); in xennet_disconnect_backend()
1837 xennet_end_access(queue->rx_ring_ref, queue->rx.sring); in xennet_disconnect_backend()
1841 queue->tx.sring = NULL; in xennet_disconnect_backend()
1842 queue->rx.sring = NULL; in xennet_disconnect_backend()
1975 queue->rx.sring = NULL; in setup_netfront()
1976 queue->tx.sring = NULL; in setup_netfront()
2007 xenbus_teardown_ring((void **)&queue->rx.sring, 1, &queue->rx_ring_ref); in setup_netfront()
[all …]
/linux-6.1.9/drivers/usb/host/
Dxen-hcd.c968 rp = info->urb_ring.sring->rsp_prod; in xenhcd_urb_request_done()
999 info->urb_ring.sring->rsp_event = i + 1; in xenhcd_urb_request_done()
1025 rp = info->conn_ring.sring->rsp_prod; in xenhcd_conn_notify()
1062 info->conn_ring.sring->rsp_event = rc + 1; in xenhcd_conn_notify()
1101 xenbus_teardown_ring((void **)&info->urb_ring.sring, 1, in xenhcd_destroy_rings()
1103 xenbus_teardown_ring((void **)&info->conn_ring.sring, 1, in xenhcd_destroy_rings()
/linux-6.1.9/drivers/block/xen-blkback/
Dxenbus.c263 ring->blk_rings.common.sring = NULL; in xen_blkif_map()
300 if (ring->blk_rings.common.sring) { in xen_blkif_disconnect()
302 ring->blk_rings.common.sring = NULL; in xen_blkif_disconnect()
Dblkback.c1092 rp = blk_rings->common.sring->req_prod; in __do_block_io_op()
/linux-6.1.9/drivers/block/
Dxen-blkfront.c1292 xenbus_teardown_ring((void **)&rinfo->ring.sring, info->nr_ring_pages, in blkif_free_ring()
1529 rp = READ_ONCE(rinfo->ring.sring->rsp_prod); in blkif_interrupt()
1658 rinfo->ring.sring->rsp_event = i + 1; in blkif_interrupt()
1683 struct blkif_sring *sring; in setup_blkring() local
1688 err = xenbus_setup_ring(dev, GFP_NOIO, (void **)&sring, in setup_blkring()
1693 XEN_FRONT_RING_INIT(&rinfo->ring, sring, ring_size); in setup_blkring()