Lines Matching refs:RX_BUF_LEN
61 #define RX_BUF_LEN (8192 << RX_BUF_LEN_IDX) macro
747 rx_ring_head &= (dma_addr_t)(RX_BUF_LEN - 1); in _sc92031_rx_tasklet()
748 rx_ring_head |= priv->rx_ring_dma_addr & ~(dma_addr_t)(RX_BUF_LEN - 1); in _sc92031_rx_tasklet()
750 rx_ring_head += RX_BUF_LEN; in _sc92031_rx_tasklet()
755 rx_len = RX_BUF_LEN - (priv->rx_ring_tail - rx_ring_head); in _sc92031_rx_tasklet()
760 if (unlikely(rx_len > RX_BUF_LEN)) { in _sc92031_rx_tasklet()
767 rx_ring_offset = (priv->rx_ring_tail - priv->rx_ring_dma_addr) % RX_BUF_LEN; in _sc92031_rx_tasklet()
781 rx_ring_offset = (rx_ring_offset + 4) % RX_BUF_LEN; in _sc92031_rx_tasklet()
809 if ((rx_ring_offset + pkt_size) > RX_BUF_LEN) { in _sc92031_rx_tasklet()
810 memcpy(skb_put(skb, RX_BUF_LEN - rx_ring_offset), in _sc92031_rx_tasklet()
811 rx_ring + rx_ring_offset, RX_BUF_LEN - rx_ring_offset); in _sc92031_rx_tasklet()
812 memcpy(skb_put(skb, pkt_size - (RX_BUF_LEN - rx_ring_offset)), in _sc92031_rx_tasklet()
813 rx_ring, pkt_size - (RX_BUF_LEN - rx_ring_offset)); in _sc92031_rx_tasklet()
828 rx_ring_offset = (rx_ring_offset + rx_size_align) % RX_BUF_LEN; in _sc92031_rx_tasklet()
1014 priv->rx_ring = pci_alloc_consistent(pdev, RX_BUF_LEN, in sc92031_open()
1056 pci_free_consistent(pdev, RX_BUF_LEN, priv->rx_ring, in sc92031_open()
1083 pci_free_consistent(pdev, RX_BUF_LEN, priv->rx_ring, in sc92031_stop()