Lines Matching refs:txb

184 	netif_tx_back_ring_t	txb;  member
349 BACK_RING_INIT(&xnb_unit_pvt.txb, xnb_unit_pvt.txs, PAGE_SIZE); in setup_pvt_data()
395 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_emptyring()
396 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_emptyring()
419 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_1req()
420 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_1req()
456 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_2req()
457 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_2req()
499 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_3req()
500 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_3req()
509 XNB_ASSERT(RING_GET_REQUEST(&xnb_unit_pvt.txb, pkt.cdr + 1) == req); in xnb_ring2pkt_3req()
547 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_extra()
548 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_extra()
561 XNB_ASSERT(RING_GET_REQUEST(&xnb_unit_pvt.txb, pkt.cdr) == req); in xnb_ring2pkt_extra()
583 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_partial()
584 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_partial()
612 xnb_unit_pvt.txb.rsp_prod_pvt = rsize - 2; in xnb_ring2pkt_wraps()
613 xnb_unit_pvt.txb.req_cons = rsize - 2; in xnb_ring2pkt_wraps()
635 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_wraps()
636 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_wraps()
640 XNB_ASSERT(RING_GET_REQUEST(&xnb_unit_pvt.txb, pkt.cdr + 1) == req); in xnb_ring2pkt_wraps()
650 netif_tx_back_ring_t txb_backup = xnb_unit_pvt.txb; in xnb_txpkt2rsp_emptypkt()
655 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_emptypkt()
656 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_emptypkt()
658 memcmp(&txb_backup, &xnb_unit_pvt.txb, sizeof(txb_backup)) == 0); in xnb_txpkt2rsp_emptypkt()
682 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_1req()
683 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_1req()
684 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_1req()
686 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_1req()
687 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_1req()
690 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_1req()
722 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_extra()
723 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_extra()
724 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_extra()
726 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_extra()
729 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_extra()
731 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_extra()
735 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_extra()
781 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_long()
782 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_long()
783 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_long()
785 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_long()
788 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_long()
790 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_long()
795 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_long()
799 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_long()
805 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_long()
842 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_invalid()
843 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_invalid()
844 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_invalid()
847 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_invalid()
850 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_invalid()
852 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_invalid()
856 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_invalid()
880 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_error()
881 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_error()
882 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_error()
884 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 1); in xnb_txpkt2rsp_error()
885 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_error()
888 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_error()
915 xnb_unit_pvt.txb.rsp_prod_pvt = rsize - 2; in xnb_txpkt2rsp_wraps()
916 xnb_unit_pvt.txb.req_cons = rsize - 2; in xnb_txpkt2rsp_wraps()
941 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_wraps()
943 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_wraps()
946 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_wraps()
947 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_wraps()
973 return xnb_ring2pkt(pkt, &xnb_unit_pvt.txb, in xnb_get1pkt()
974 xnb_unit_pvt.txb.req_cons); in xnb_get1pkt()
988 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_pkt2mbufc_empty()
1101 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2gnttab_empty()
1105 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_txpkt2gnttab_empty()
1132 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2gnttab_short()
1136 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_txpkt2gnttab_short()
1180 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2gnttab_2req()
1184 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_txpkt2gnttab_2req()
1217 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2gnttab_2cluster()
1225 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_txpkt2gnttab_2cluster()
1292 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_update_mbufc_short()
1296 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_update_mbufc_short()
1336 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_update_mbufc_2req()
1340 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_update_mbufc_2req()
1375 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_update_mbufc_2cluster()
1379 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_update_mbufc_2cluster()