Lines Matching full:th
41 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() local
47 th->check = 0; in tcp4_gso_segment()
60 struct tcphdr *th; in tcp_gso_segment() local
70 th = tcp_hdr(skb); in tcp_gso_segment()
71 thlen = th->doff * 4; in tcp_gso_segment()
72 if (thlen < sizeof(*th)) in tcp_gso_segment()
116 th = tcp_hdr(skb); in tcp_gso_segment()
117 seq = ntohl(th->seq); in tcp_gso_segment()
122 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
126 th->fin = th->psh = 0; in tcp_gso_segment()
127 th->check = newcheck; in tcp_gso_segment()
130 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
132 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
141 th = tcp_hdr(skb); in tcp_gso_segment()
143 th->seq = htonl(seq); in tcp_gso_segment()
144 th->cwr = 0; in tcp_gso_segment()
171 th->check = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
174 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
176 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
185 struct tcphdr *th; in tcp_gro_receive() local
197 hlen = off + sizeof(*th); in tcp_gro_receive()
198 th = skb_gro_header(skb, hlen, off); in tcp_gro_receive()
199 if (unlikely(!th)) in tcp_gro_receive()
202 thlen = th->doff * 4; in tcp_gro_receive()
203 if (thlen < sizeof(*th)) in tcp_gro_receive()
208 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
209 if (unlikely(!th)) in tcp_gro_receive()
216 flags = tcp_flag_word(th); in tcp_gro_receive()
224 if (*(u32 *)&th->source ^ *(u32 *)&th2->source) { in tcp_gro_receive()
240 flush |= (__force int)(th->ack_seq ^ th2->ack_seq); in tcp_gro_receive()
241 for (i = sizeof(*th); i < thlen; i += 4) in tcp_gro_receive()
242 flush |= *(u32 *)((u8 *)th + i) ^ in tcp_gro_receive()
267 flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq); in tcp_gro_receive()
301 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() local
303 skb->csum_start = (unsigned char *)th - skb->head; in tcp_gro_complete()
309 if (th->cwr) in tcp_gro_complete()
336 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete() local
338 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr, in tcp4_gro_complete()