Lines Matching refs:rrd

1777 	struct rx_return_desc *rrd, u16 offset)  in atl1_clean_alloc_flag()  argument
1781 while (rfd_ring->next_to_clean != (rrd->buf_indx + offset)) { in atl1_clean_alloc_flag()
1790 struct rx_return_desc *rrd) in atl1_update_rfd_index() argument
1794 num_buf = (rrd->xsz.xsum_sz.pkt_size + adapter->rx_buffer_len - 1) / in atl1_update_rfd_index()
1796 if (rrd->num_buf == num_buf) in atl1_update_rfd_index()
1798 atl1_clean_alloc_flag(adapter, rrd, num_buf); in atl1_update_rfd_index()
1802 struct rx_return_desc *rrd, struct sk_buff *skb) in atl1_rx_checksum() argument
1819 if (unlikely(rrd->pkt_flg & PACKET_FLAG_ERR)) { in atl1_rx_checksum()
1820 if (rrd->err_flg & (ERR_FLAG_CRC | ERR_FLAG_TRUNC | in atl1_rx_checksum()
1831 if (!(rrd->pkt_flg & PACKET_FLAG_IPV4)) in atl1_rx_checksum()
1836 if (likely(!(rrd->err_flg & in atl1_rx_checksum()
1926 struct rx_return_desc *rrd; in atl1_intr_rx() local
1934 rrd = ATL1_RRD_DESC(rrd_ring, rrd_next_to_clean); in atl1_intr_rx()
1936 if (likely(rrd->xsz.valid)) { /* packet valid */ in atl1_intr_rx()
1939 if (likely(rrd->num_buf == 1)) in atl1_intr_rx()
1949 rrd->num_buf); in atl1_intr_rx()
1952 rrd->xsz.xsum_sz.pkt_size); in atl1_intr_rx()
1955 rrd->pkt_flg); in atl1_intr_rx()
1958 rrd->err_flg); in atl1_intr_rx()
1961 rrd->vlan_tag); in atl1_intr_rx()
1975 if (rrd->num_buf > 1) in atl1_intr_rx()
1976 atl1_update_rfd_index(adapter, rrd); in atl1_intr_rx()
1979 rrd->xsz.valid = 0; in atl1_intr_rx()
1990 atl1_clean_alloc_flag(adapter, rrd, 0); in atl1_intr_rx()
1992 buffer_info = &rfd_ring->buffer_info[rrd->buf_indx]; in atl1_intr_rx()
2001 if (unlikely(rrd->pkt_flg & PACKET_FLAG_ERR)) { in atl1_intr_rx()
2002 if (!(rrd->err_flg & in atl1_intr_rx()
2007 rrd->xsz.valid = 0; in atl1_intr_rx()
2017 length = le16_to_cpu(rrd->xsz.xsum_sz.pkt_size); in atl1_intr_rx()
2022 atl1_rx_checksum(adapter, rrd, skb); in atl1_intr_rx()
2025 if (adapter->vlgrp && (rrd->pkt_flg & PACKET_FLAG_VLAN_INS)) { in atl1_intr_rx()
2026 u16 vlan_tag = (rrd->vlan_tag >> 4) | in atl1_intr_rx()
2027 ((rrd->vlan_tag & 7) << 13) | in atl1_intr_rx()
2028 ((rrd->vlan_tag & 8) << 9); in atl1_intr_rx()
2036 rrd->xsz.valid = 0; in atl1_intr_rx()