Lines Matching full:csum
303 u32 csum, ehsum; in ioc3_tcpudp_checksum() local
330 /* Same as tx - compute csum of pseudo header */ in ioc3_tcpudp_checksum()
331 csum = hwsum + in ioc3_tcpudp_checksum()
344 csum += 0xffff ^ ehsum; in ioc3_tcpudp_checksum()
351 csum += 0xffff ^ (u16)((cp[1] << 8) | cp[0]); in ioc3_tcpudp_checksum()
352 csum += 0xffff ^ (u16)((cp[3] << 8) | cp[2]); in ioc3_tcpudp_checksum()
354 csum += 0xffff ^ (u16)((cp[0] << 8) | cp[1]); in ioc3_tcpudp_checksum()
355 csum += 0xffff ^ (u16)((cp[2] << 8) | cp[3]); in ioc3_tcpudp_checksum()
358 csum = (csum & 0xffff) + (csum >> 16); in ioc3_tcpudp_checksum()
359 csum = (csum & 0xffff) + (csum >> 16); in ioc3_tcpudp_checksum()
361 if (csum == 0xffff) in ioc3_tcpudp_checksum()
997 u32 csum, ehsum; in ioc3_start_xmit() local
1011 csum = csum_tcpudp_nofold(ih->saddr, ih->daddr, in ioc3_start_xmit()
1015 csum = (csum & 0xffff) + (csum >> 16); /* Fold again */ in ioc3_start_xmit()
1016 csum = (csum & 0xffff) + (csum >> 16); in ioc3_start_xmit()
1021 udp_hdr(skb)->check = csum; in ioc3_start_xmit()
1025 tcp_hdr(skb)->check = csum; in ioc3_start_xmit()