Lines Matching refs:opts2
800 __le32 opts2; member
827 __le32 opts2; member
2146 u32 opts2; in rtl_tx_vlan_tag() local
2148 opts2 = TX_VLAN_TAG | swab16(skb_vlan_tag_get(skb)); in rtl_tx_vlan_tag()
2149 desc->opts2 |= cpu_to_le32(opts2); in rtl_tx_vlan_tag()
2155 u32 opts2 = le32_to_cpu(desc->opts2); in rtl_rx_vlan_tag() local
2157 if (opts2 & RX_VLAN_TAG) in rtl_rx_vlan_tag()
2159 swab16(opts2 & 0xffff)); in rtl_rx_vlan_tag()
2166 u32 opts1, opts2 = 0; in r8152_tx_csum() local
2204 opts2 |= min(mss, MSS_MAX) << MSS_SHIFT; in r8152_tx_csum()
2219 opts2 |= IPV4_CS; in r8152_tx_csum()
2224 opts2 |= IPV6_CS; in r8152_tx_csum()
2234 opts2 |= TCP_CS; in r8152_tx_csum()
2236 opts2 |= UDP_CS; in r8152_tx_csum()
2240 opts2 |= transport_offset << TCPHO_SHIFT; in r8152_tx_csum()
2243 desc->opts2 = cpu_to_le32(opts2); in r8152_tx_csum()
2349 u32 opts2, opts3; in r8152_rx_csum() local
2354 opts2 = le32_to_cpu(rx_desc->opts2); in r8152_rx_csum()
2357 if (opts2 & RD_IPV4_CS) { in r8152_rx_csum()
2360 else if ((opts2 & RD_UDP_CS) && !(opts3 & UDPF)) in r8152_rx_csum()
2362 else if ((opts2 & RD_TCP_CS) && !(opts3 & TCPF)) in r8152_rx_csum()
2364 } else if (opts2 & RD_IPV6_CS) { in r8152_rx_csum()
2365 if ((opts2 & RD_UDP_CS) && !(opts3 & UDPF)) in r8152_rx_csum()
2367 else if ((opts2 & RD_TCP_CS) && !(opts3 & TCPF)) in r8152_rx_csum()