Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/wireless/ath/wil6210/
A Dtxrx_edma.c65 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()
82 size_t sz = sring->elem_size * sring->size; in wil_sring_alloc()
217 (sring->va + (sring->elem_size * sring->swhead)); in wil_get_next_rx_status_msg()
226 sring->swhead = (sring->swhead + 1) % sring->size; in wil_sring_advance_swhead()
228 sring->desc_rdy_pol = 1 - sring->desc_rdy_pol; in wil_sring_advance_swhead()
896 (sring->va + (sring->elem_size * sring->swhead)); in wil_sring_reap_rx_edma()
1112 wil_w(wil, sring->hwtail, (sring->swhead - 1) % sring->size); in wil_rx_handle_edma()
1147 (sring->va + (sring->elem_size * sring->swhead)); in wil_get_next_tx_status_msg()
[all …]
A Ddebugfs.c194 struct wil_status_ring *sring) in wil_print_sring() argument
219 x = wmi_addr(wil, sring->hwtail); in wil_print_sring()
228 sring->invalid_buff_id_cnt); in wil_print_sring()
230 if (sring->va && (sring->size <= (1 << WIL_RING_SIZE_ORDER_MAX))) { in wil_print_sring()
235 (u32 *)(sring->va + (sring->elem_size * i)); in wil_print_sring()
239 if (i == sring->swhead) in wil_print_sring()
1161 struct wil_status_ring *sring; in status_msg_show() local
1171 sring = &wil->srings[sring_idx]; in status_msg_show()
1172 tx = !sring->is_rx; in status_msg_show()
1174 if (!sring->va) { in status_msg_show()
[all …]
A 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()
A Dtxrx_edma.h597 struct wil_status_ring *sring);
A 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.3-rc2/include/xen/interface/io/
A 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.3-rc2/drivers/net/xen-netback/
A 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()
44 sring->req_event - sring->rsp_prod); in xenvif_read_io_ring()
46 sring->rsp_prod, in xenvif_read_io_ring()
50 sring->rsp_event - sring->rsp_prod); in xenvif_read_io_ring()
62 struct xen_netif_rx_sring *sring = rx_ring->sring; in xenvif_read_io_ring() local
67 sring->req_prod - sring->rsp_prod, in xenvif_read_io_ring()
71 sring->req_event - sring->rsp_prod); in xenvif_read_io_ring()
[all …]
A 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()
A 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()
A 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()
1480 if (queue->tx.sring) in xenvif_unmap_frontend_data_rings()
1482 queue->tx.sring); in xenvif_unmap_frontend_data_rings()
1483 if (queue->rx.sring) in xenvif_unmap_frontend_data_rings()
1485 queue->rx.sring); in xenvif_unmap_frontend_data_rings()
1644 req_prod = vif->ctrl.sring->req_prod; in xenvif_ctrl_action()
1663 vif->ctrl.sring->req_event = req_cons + 1; in xenvif_ctrl_action()
/linux-6.3-rc2/tools/io_uring/
A 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.3-rc2/drivers/gpu/drm/xen/
A 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.3-rc2/sound/xen/
A 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.3-rc2/drivers/scsi/
A 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.3-rc2/drivers/xen/
A Dpvcalls-front.c1123 kfree(bedata->ring.sring); in pvcalls_front_remove()
1138 struct xen_pvcalls_sring *sring; in pvcalls_front_probe() local
1181 sring = (struct xen_pvcalls_sring *) __get_free_page(GFP_KERNEL | in pvcalls_front_probe()
1183 if (!sring) in pvcalls_front_probe()
1185 SHARED_RING_INIT(sring); in pvcalls_front_probe()
1186 FRONT_RING_INIT(&bedata->ring, sring, XEN_PAGE_SIZE); in pvcalls_front_probe()
1208 virt_to_gfn((void *)sring), 0); in pvcalls_front_probe()
A Dpvcalls-back.c41 struct xen_pvcalls_sring *sring; member
967 (void **)&fedata->sring); in backend_connect()
971 BACK_RING_INIT(&fedata->ring, fedata->sring, XEN_PAGE_SIZE * 1); in backend_connect()
988 if (fedata->sring != NULL) in backend_connect()
989 xenbus_unmap_ring_vfree(dev, fedata->sring); in backend_connect()
1027 xenbus_unmap_ring_vfree(dev, fedata->sring); in backend_disconnect()
A 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.3-rc2/drivers/net/
A 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()
1838 xennet_end_access(queue->tx_ring_ref, queue->tx.sring); in xennet_disconnect_backend()
1839 xennet_end_access(queue->rx_ring_ref, queue->rx.sring); in xennet_disconnect_backend()
1843 queue->tx.sring = NULL; in xennet_disconnect_backend()
1844 queue->rx.sring = NULL; in xennet_disconnect_backend()
1977 queue->rx.sring = NULL; in setup_netfront()
1978 queue->tx.sring = NULL; in setup_netfront()
2009 xenbus_teardown_ring((void **)&queue->rx.sring, 1, &queue->rx_ring_ref); in setup_netfront()
[all …]
/linux-6.3-rc2/drivers/usb/host/
A 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.3-rc2/drivers/block/xen-blkback/
A 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()
A Dblkback.c1092 rp = blk_rings->common.sring->req_prod; in __do_block_io_op()
/linux-6.3-rc2/drivers/block/
A 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()

Completed in 82 milliseconds