Lines Matching refs:rrd
1759 struct rx_return_desc *rrd, u16 offset) in atl1_clean_alloc_flag() argument
1763 while (rfd_ring->next_to_clean != (rrd->buf_indx + offset)) { in atl1_clean_alloc_flag()
1772 struct rx_return_desc *rrd) in atl1_update_rfd_index() argument
1776 num_buf = (rrd->xsz.xsum_sz.pkt_size + adapter->rx_buffer_len - 1) / in atl1_update_rfd_index()
1778 if (rrd->num_buf == num_buf) in atl1_update_rfd_index()
1780 atl1_clean_alloc_flag(adapter, rrd, num_buf); in atl1_update_rfd_index()
1784 struct rx_return_desc *rrd, struct sk_buff *skb) in atl1_rx_checksum() argument
1801 if (unlikely(rrd->pkt_flg & PACKET_FLAG_ERR)) { in atl1_rx_checksum()
1802 if (rrd->err_flg & (ERR_FLAG_CRC | ERR_FLAG_TRUNC | in atl1_rx_checksum()
1813 if (!(rrd->pkt_flg & PACKET_FLAG_IPV4)) in atl1_rx_checksum()
1818 if (likely(!(rrd->err_flg & in atl1_rx_checksum()
1908 struct rx_return_desc *rrd; in atl1_intr_rx() local
1916 rrd = ATL1_RRD_DESC(rrd_ring, rrd_next_to_clean); in atl1_intr_rx()
1918 if (likely(rrd->xsz.valid)) { /* packet valid */ in atl1_intr_rx()
1921 if (likely(rrd->num_buf == 1)) in atl1_intr_rx()
1931 rrd->num_buf); in atl1_intr_rx()
1934 rrd->xsz.xsum_sz.pkt_size); in atl1_intr_rx()
1937 rrd->pkt_flg); in atl1_intr_rx()
1940 rrd->err_flg); in atl1_intr_rx()
1943 rrd->vlan_tag); in atl1_intr_rx()
1957 if (rrd->num_buf > 1) in atl1_intr_rx()
1958 atl1_update_rfd_index(adapter, rrd); in atl1_intr_rx()
1961 rrd->xsz.valid = 0; in atl1_intr_rx()
1972 atl1_clean_alloc_flag(adapter, rrd, 0); in atl1_intr_rx()
1974 buffer_info = &rfd_ring->buffer_info[rrd->buf_indx]; in atl1_intr_rx()
1983 if (unlikely(rrd->pkt_flg & PACKET_FLAG_ERR)) { in atl1_intr_rx()
1984 if (!(rrd->err_flg & in atl1_intr_rx()
1989 rrd->xsz.valid = 0; in atl1_intr_rx()
1999 length = le16_to_cpu(rrd->xsz.xsum_sz.pkt_size); in atl1_intr_rx()
2004 atl1_rx_checksum(adapter, rrd, skb); in atl1_intr_rx()
2007 if (rrd->pkt_flg & PACKET_FLAG_VLAN_INS) { in atl1_intr_rx()
2008 u16 vlan_tag = (rrd->vlan_tag >> 4) | in atl1_intr_rx()
2009 ((rrd->vlan_tag & 7) << 13) | in atl1_intr_rx()
2010 ((rrd->vlan_tag & 8) << 9); in atl1_intr_rx()
2019 rrd->xsz.valid = 0; in atl1_intr_rx()