Lines Matching refs:opts2
644 __le32 opts2; member
671 __le32 opts2; member
1641 u32 opts2; in rtl_tx_vlan_tag() local
1643 opts2 = TX_VLAN_TAG | swab16(skb_vlan_tag_get(skb)); in rtl_tx_vlan_tag()
1644 desc->opts2 |= cpu_to_le32(opts2); in rtl_tx_vlan_tag()
1650 u32 opts2 = le32_to_cpu(desc->opts2); in rtl_rx_vlan_tag() local
1652 if (opts2 & RX_VLAN_TAG) in rtl_rx_vlan_tag()
1654 swab16(opts2 & 0xffff)); in rtl_rx_vlan_tag()
1661 u32 opts1, opts2 = 0; in r8152_tx_csum() local
1696 opts2 |= min(mss, MSS_MAX) << MSS_SHIFT; in r8152_tx_csum()
1710 opts2 |= IPV4_CS; in r8152_tx_csum()
1715 opts2 |= IPV6_CS; in r8152_tx_csum()
1725 opts2 |= TCP_CS; in r8152_tx_csum()
1727 opts2 |= UDP_CS; in r8152_tx_csum()
1731 opts2 |= transport_offset << TCPHO_SHIFT; in r8152_tx_csum()
1734 desc->opts2 = cpu_to_le32(opts2); in r8152_tx_csum()
1843 u32 opts2, opts3; in r8152_rx_csum() local
1848 opts2 = le32_to_cpu(rx_desc->opts2); in r8152_rx_csum()
1851 if (opts2 & RD_IPV4_CS) { in r8152_rx_csum()
1854 else if ((opts2 & RD_UDP_CS) && !(opts3 & UDPF)) in r8152_rx_csum()
1856 else if ((opts2 & RD_TCP_CS) && !(opts3 & TCPF)) in r8152_rx_csum()
1858 } else if (opts2 & RD_IPV6_CS) { in r8152_rx_csum()
1859 if ((opts2 & RD_UDP_CS) && !(opts3 & UDPF)) in r8152_rx_csum()
1861 else if ((opts2 & RD_TCP_CS) && !(opts3 & TCPF)) in r8152_rx_csum()