Home
last modified time | relevance | path

Searched refs:rx_ring_offset (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/silan/
H A Dsc92031.c727 unsigned rx_ring_offset; in _sc92031_rx_tasklet() local
756 rx_ring_offset = (priv->rx_ring_tail - priv->rx_ring_dma_addr) % RX_BUF_LEN; in _sc92031_rx_tasklet()
763 rx_status = le32_to_cpup((__le32 *)(rx_ring + rx_ring_offset)); in _sc92031_rx_tasklet()
770 rx_ring_offset = (rx_ring_offset + 4) % RX_BUF_LEN; in _sc92031_rx_tasklet()
796 if ((rx_ring_offset + pkt_size) > RX_BUF_LEN) { in _sc92031_rx_tasklet()
797 skb_put_data(skb, rx_ring + rx_ring_offset, in _sc92031_rx_tasklet()
798 RX_BUF_LEN - rx_ring_offset); in _sc92031_rx_tasklet()
800 pkt_size - (RX_BUF_LEN - rx_ring_offset)); in _sc92031_rx_tasklet()
802 skb_put_data(skb, rx_ring + rx_ring_offset, pkt_size); in _sc92031_rx_tasklet()
815 rx_ring_offset = (rx_ring_offset + rx_size_align) % RX_BUF_LEN; in _sc92031_rx_tasklet()