Lines Matching refs:rdata

1188 	struct xgbe_ring_data *rdata;  in xgbe_free_tx_data()  local
1199 rdata = XGBE_GET_DESC_DATA(ring, j); in xgbe_free_tx_data()
1200 desc_if->unmap_rdata(pdata, rdata); in xgbe_free_tx_data()
1211 struct xgbe_ring_data *rdata; in xgbe_free_rx_data() local
1222 rdata = XGBE_GET_DESC_DATA(ring, j); in xgbe_free_rx_data()
1223 desc_if->unmap_rdata(pdata, rdata); in xgbe_free_rx_data()
2523 struct xgbe_ring_data *rdata; in xgbe_rx_refresh() local
2526 rdata = XGBE_GET_DESC_DATA(ring, ring->dirty); in xgbe_rx_refresh()
2529 desc_if->unmap_rdata(pdata, rdata); in xgbe_rx_refresh()
2531 if (desc_if->map_rx_buffer(pdata, ring, rdata)) in xgbe_rx_refresh()
2534 hw_if->rx_desc_reset(pdata, rdata, ring->dirty); in xgbe_rx_refresh()
2544 rdata = XGBE_GET_DESC_DATA(ring, ring->dirty - 1); in xgbe_rx_refresh()
2546 lower_32_bits(rdata->rdesc_dma)); in xgbe_rx_refresh()
2551 struct xgbe_ring_data *rdata, in xgbe_create_skb() argument
2557 skb = napi_alloc_skb(napi, rdata->rx.hdr.dma_len); in xgbe_create_skb()
2564 dma_sync_single_range_for_cpu(pdata->dev, rdata->rx.hdr.dma_base, in xgbe_create_skb()
2565 rdata->rx.hdr.dma_off, in xgbe_create_skb()
2566 rdata->rx.hdr.dma_len, DMA_FROM_DEVICE); in xgbe_create_skb()
2568 packet = page_address(rdata->rx.hdr.pa.pages) + in xgbe_create_skb()
2569 rdata->rx.hdr.pa.pages_offset; in xgbe_create_skb()
2576 static unsigned int xgbe_rx_buf1_len(struct xgbe_ring_data *rdata, in xgbe_rx_buf1_len() argument
2584 if (rdata->rx.hdr_len) in xgbe_rx_buf1_len()
2585 return rdata->rx.hdr_len; in xgbe_rx_buf1_len()
2591 return rdata->rx.hdr.dma_len; in xgbe_rx_buf1_len()
2596 return min_t(unsigned int, rdata->rx.hdr.dma_len, rdata->rx.len); in xgbe_rx_buf1_len()
2599 static unsigned int xgbe_rx_buf2_len(struct xgbe_ring_data *rdata, in xgbe_rx_buf2_len() argument
2605 return rdata->rx.buf.dma_len; in xgbe_rx_buf2_len()
2610 return rdata->rx.len - len; in xgbe_rx_buf2_len()
2619 struct xgbe_ring_data *rdata; in xgbe_tx_poll() local
2642 rdata = XGBE_GET_DESC_DATA(ring, ring->dirty); in xgbe_tx_poll()
2643 rdesc = rdata->rdesc; in xgbe_tx_poll()
2656 tx_packets += rdata->tx.packets; in xgbe_tx_poll()
2657 tx_bytes += rdata->tx.bytes; in xgbe_tx_poll()
2661 desc_if->unmap_rdata(pdata, rdata); in xgbe_tx_poll()
2662 hw_if->tx_desc_reset(rdata); in xgbe_tx_poll()
2689 struct xgbe_ring_data *rdata; in xgbe_rx_poll() local
2711 rdata = XGBE_GET_DESC_DATA(ring, ring->cur); in xgbe_rx_poll()
2717 if (!received && rdata->state_saved) { in xgbe_rx_poll()
2718 skb = rdata->state.skb; in xgbe_rx_poll()
2719 error = rdata->state.error; in xgbe_rx_poll()
2720 len = rdata->state.len; in xgbe_rx_poll()
2729 rdata = XGBE_GET_DESC_DATA(ring, ring->cur); in xgbe_rx_poll()
2763 buf1_len = xgbe_rx_buf1_len(rdata, packet); in xgbe_rx_poll()
2765 buf2_len = xgbe_rx_buf2_len(rdata, packet, len); in xgbe_rx_poll()
2769 skb = xgbe_create_skb(pdata, napi, rdata, in xgbe_rx_poll()
2779 rdata->rx.buf.dma_base, in xgbe_rx_poll()
2780 rdata->rx.buf.dma_off, in xgbe_rx_poll()
2781 rdata->rx.buf.dma_len, in xgbe_rx_poll()
2785 rdata->rx.buf.pa.pages, in xgbe_rx_poll()
2786 rdata->rx.buf.pa.pages_offset, in xgbe_rx_poll()
2788 rdata->rx.buf.dma_len); in xgbe_rx_poll()
2789 rdata->rx.buf.pa.pages = NULL; in xgbe_rx_poll()
2862 rdata = XGBE_GET_DESC_DATA(ring, ring->cur); in xgbe_rx_poll()
2863 rdata->state_saved = 1; in xgbe_rx_poll()
2864 rdata->state.skb = skb; in xgbe_rx_poll()
2865 rdata->state.len = len; in xgbe_rx_poll()
2866 rdata->state.error = error; in xgbe_rx_poll()
2946 struct xgbe_ring_data *rdata; in xgbe_dump_tx_desc() local
2950 rdata = XGBE_GET_DESC_DATA(ring, idx); in xgbe_dump_tx_desc()
2951 rdesc = rdata->rdesc; in xgbe_dump_tx_desc()
2966 struct xgbe_ring_data *rdata; in xgbe_dump_rx_desc() local
2969 rdata = XGBE_GET_DESC_DATA(ring, idx); in xgbe_dump_rx_desc()
2970 rdesc = rdata->rdesc; in xgbe_dump_rx_desc()