Lines Matching refs:tx

252 	netif_tx_front_ring_t tx;
325 /* Access macros for acquiring freeing slots in xn_free_{tx,rx}_idxs[]. */
535 err = xs_printf(xst, node, "tx-ring-ref","%u",
538 message = "writing tx ring-ref";
610 info->tx.sring = NULL;
615 xenbus_dev_fatal(dev, error, "allocating tx ring page");
619 FRONT_RING_INIT(&info->tx, txs, PAGE_SIZE);
755 return (RING_FREE_REQUESTS(&np->tx) > (MAX_TX_REQ_FRAGS + 2));
1125 prod = np->tx.sring->rsp_prod;
1128 for (i = np->tx.rsp_cons; i != prod; i++) {
1129 txr = RING_GET_RESPONSE(&np->tx, i);
1169 np->tx.rsp_cons = prod;
1180 np->tx.sring->rsp_event =
1181 prod + ((np->tx.sring->req_prod - prod) >> 1) + 1;
1184 } while (prod != np->tx.sring->rsp_prod);
1187 ((np->tx.sring->req_prod - prod) < NET_TX_RING_SIZE)) {
1208 if (RING_HAS_UNCONSUMED_RESPONSES(&np->tx)) {
1564 netif_tx_request_t *tx;
1569 tx = RING_GET_REQUEST(&sc->tx, sc->tx.req_prod_pvt);
1579 tx->id = id;
1585 tx->gref = sc->grant_tx_ref[id] = ref;
1586 tx->offset = mtod(m, vm_offset_t) & (PAGE_SIZE - 1);
1587 tx->flags = 0;
1597 tx->size = m->m_pkthdr.len;
1613 tx->flags |= (NETTXF_csum_blank
1620 RING_GET_REQUEST(&sc->tx,
1621 ++sc->tx.req_prod_pvt);
1623 tx->flags |= NETTXF_extra_info;
1636 tx->size = m->m_len;
1639 tx->flags |= NETTXF_more_data;
1641 sc->tx.req_prod_pvt++;
1677 RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&sc->tx, notify);
1681 if (RING_FULL(&sc->tx)) {
1836 IPRINTK("Xen requires tx checksum offload"
2057 /* Initialise {tx,rx}_skbs to be a free chain containing every entry. */
2069 /* A grant for every tx ring slot */
2072 IPRINTK("#### netfront can't alloc tx grant refs\n");
2177 free_ring(&info->tx_ring_ref, &info->tx.sring);