Searched refs:sring (Results 1 – 5 of 5) sorted by relevance
/freebsd/sys/contrib/xen/io/ |
H A D | ring.h | 139 struct __name##_sring *sring; \ 147 struct __name##_sring *sring; \ 182 (_r)->sring = (_s); \ 191 (_r)->sring = (_s); \ 212 ((_r)->sring->rsp_prod - (_r)->rsp_cons) 216 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \ 224 ((((_r)->sring->req_prod - (_r)->req_cons) < \ 226 ((_r)->sring->req_prod - (_r)->req_cons) : \ 232 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 235 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) [all …]
|
/freebsd/sys/dev/xen/netback/ |
H A D | netback.c | 123 unsigned int req = (_r)->sring->req_prod - cons; \ 550 if ( !txb || !txb->sring || !rxb || !rxb->sring ) in xnb_dump_rings() 567 "sring", txb->sring, rxb->sring, in xnb_dump_rings() 568 "sring->req_prod", txb->sring->req_prod, rxb->sring->req_prod, in xnb_dump_rings() 569 "sring->req_event", txb->sring->req_event, rxb->sring->req_event, in xnb_dump_rings() 570 "sring->rsp_prod", txb->sring->rsp_prod, rxb->sring->rsp_prod, in xnb_dump_rings() 571 "sring->rsp_event", txb->sring->rsp_event, rxb->sring->rsp_event); in xnb_dump_rings() 1437 req_prod_local = txb->sring->req_prod; in xnb_intr() 1457 txb->sring->req_event = txb->req_cons + 1; in xnb_intr() 1459 } while (txb->sring->req_prod != req_prod_local) ; in xnb_intr() [all …]
|
/freebsd/sys/dev/xen/blkfront/ |
H A D | blkfront.c | 500 rp = sc->xbd_ring.sring->rsp_prod; in xbd_int() 549 sc->xbd_ring.sring->rsp_event = i + 1; in xbd_int() 752 blkif_sring_t *sring; in xbd_alloc_ring() local 757 sring = malloc(sc->xbd_ring_pages * PAGE_SIZE, M_XENBLOCKFRONT, in xbd_alloc_ring() 759 if (sring == NULL) { in xbd_alloc_ring() 763 SHARED_RING_INIT(sring); in xbd_alloc_ring() 764 FRONT_RING_INIT(&sc->xbd_ring, sring, sc->xbd_ring_pages * PAGE_SIZE); in xbd_alloc_ring() 766 for (i = 0, sring_page_addr = (uintptr_t)sring; in xbd_alloc_ring() 822 if (sc->xbd_ring.sring == NULL) in xbd_free_ring() 831 free(sc->xbd_ring.sring, M_XENBLOCKFRONT); in xbd_free_ring() [all …]
|
/freebsd/sys/dev/xen/netfront/ |
H A D | netfront.c | 747 free(rxq->ring.sring, M_DEVBUF); in destroy_rxq() 748 rxq->ring.sring = NULL; in destroy_rxq() 783 rxq->ring.sring = NULL; in setup_rxqs() 821 free(rxq->ring.sring, M_DEVBUF); in setup_rxqs() 850 free(txq->ring.sring, M_DEVBUF); in destroy_txq() 851 txq->ring.sring = NULL; in destroy_txq() 899 txq->ring.sring = NULL; in setup_txqs() 986 free(txq->ring.sring, M_DEVBUF); in setup_txqs() 1280 rp = rxq->ring.sring->rsp_prod; in xn_rxeof() 1379 prod = txq->ring.sring->rsp_prod; in xn_txeof() [all …]
|
/freebsd/sys/dev/xen/blkback/ |
H A D | blkback.c | 1771 rp = rings->common.sring->req_prod; in xbb_run_queue() 2768 blkif_sring_t *sring; in xbb_connect_ring() local 2769 sring = (blkif_sring_t *)xbb->ring_config.va; in xbb_connect_ring() 2770 BACK_RING_INIT(&xbb->rings.native, sring, in xbb_connect_ring()
|