Lines Matching full:txb
185 netif_tx_back_ring_t txb; member
350 BACK_RING_INIT(&xnb_unit_pvt.txb, xnb_unit_pvt.txs, PAGE_SIZE); in setup_pvt_data()
396 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_emptyring()
397 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_emptyring()
420 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_1req()
421 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_1req()
457 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_2req()
458 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_2req()
500 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_3req()
501 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_3req()
510 XNB_ASSERT(RING_GET_REQUEST(&xnb_unit_pvt.txb, pkt.cdr + 1) == req); in xnb_ring2pkt_3req()
548 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_extra()
549 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_extra()
562 XNB_ASSERT(RING_GET_REQUEST(&xnb_unit_pvt.txb, pkt.cdr) == req); in xnb_ring2pkt_extra()
584 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_partial()
585 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_partial()
613 xnb_unit_pvt.txb.rsp_prod_pvt = rsize - 2; in xnb_ring2pkt_wraps()
614 xnb_unit_pvt.txb.req_cons = rsize - 2; in xnb_ring2pkt_wraps()
636 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_ring2pkt_wraps()
637 xnb_unit_pvt.txb.req_cons); in xnb_ring2pkt_wraps()
641 XNB_ASSERT(RING_GET_REQUEST(&xnb_unit_pvt.txb, pkt.cdr + 1) == req); in xnb_ring2pkt_wraps()
651 netif_tx_back_ring_t txb_backup = xnb_unit_pvt.txb; in xnb_txpkt2rsp_emptypkt()
656 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_emptypkt()
657 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_emptypkt()
659 memcmp(&txb_backup, &xnb_unit_pvt.txb, sizeof(txb_backup)) == 0); in xnb_txpkt2rsp_emptypkt()
683 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_1req()
684 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_1req()
685 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_1req()
687 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_1req()
688 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_1req()
691 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_1req()
723 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_extra()
724 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_extra()
725 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_extra()
727 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_extra()
730 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_extra()
732 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_extra()
736 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_extra()
782 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_long()
783 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_long()
784 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_long()
786 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_long()
789 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_long()
791 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_long()
796 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_long()
800 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_long()
806 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_long()
843 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_invalid()
844 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_invalid()
845 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_invalid()
848 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_invalid()
851 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_invalid()
853 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_invalid()
857 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_invalid()
881 num_consumed = xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, in xnb_txpkt2rsp_error()
882 xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_error()
883 xnb_unit_pvt.txb.req_cons += num_consumed; in xnb_txpkt2rsp_error()
885 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 1); in xnb_txpkt2rsp_error()
886 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, xnb_unit_pvt.txf.rsp_cons); in xnb_txpkt2rsp_error()
889 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_error()
916 xnb_unit_pvt.txb.rsp_prod_pvt = rsize - 2; in xnb_txpkt2rsp_wraps()
917 xnb_unit_pvt.txb.req_cons = rsize - 2; in xnb_txpkt2rsp_wraps()
942 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2rsp_wraps()
944 xnb_txpkt2rsp(&pkt, &xnb_unit_pvt.txb, 0); in xnb_txpkt2rsp_wraps()
947 xnb_unit_pvt.txb.rsp_prod_pvt == xnb_unit_pvt.txs->req_prod); in xnb_txpkt2rsp_wraps()
948 rsp = RING_GET_RESPONSE(&xnb_unit_pvt.txb, in xnb_txpkt2rsp_wraps()
974 return xnb_ring2pkt(pkt, &xnb_unit_pvt.txb, in xnb_get1pkt()
975 xnb_unit_pvt.txb.req_cons); in xnb_get1pkt()
989 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_pkt2mbufc_empty()
1102 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2gnttab_empty()
1106 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_txpkt2gnttab_empty()
1133 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2gnttab_short()
1137 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_txpkt2gnttab_short()
1181 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2gnttab_2req()
1185 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_txpkt2gnttab_2req()
1218 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_txpkt2gnttab_2cluster()
1226 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_txpkt2gnttab_2cluster()
1293 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_update_mbufc_short()
1297 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_update_mbufc_short()
1337 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_update_mbufc_2req()
1341 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_update_mbufc_2req()
1376 xnb_ring2pkt(&pkt, &xnb_unit_pvt.txb, xnb_unit_pvt.txb.req_cons); in xnb_update_mbufc_2cluster()
1380 &xnb_unit_pvt.txb, DOMID_FIRST_RESERVED); in xnb_update_mbufc_2cluster()