Lines Matching full:th
45 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() local
51 th->check = 0; in tcp4_gso_segment()
64 struct tcphdr *th; in tcp_gso_segment() local
74 th = tcp_hdr(skb); in tcp_gso_segment()
75 thlen = th->doff * 4; in tcp_gso_segment()
76 if (thlen < sizeof(*th)) in tcp_gso_segment()
123 th = tcp_hdr(skb); in tcp_gso_segment()
124 seq = ntohl(th->seq); in tcp_gso_segment()
129 newcheck = ~csum_fold(csum_add(csum_unfold(th->check), delta)); in tcp_gso_segment()
132 th->fin = th->psh = 0; in tcp_gso_segment()
133 th->check = newcheck; in tcp_gso_segment()
136 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
138 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
147 th = tcp_hdr(skb); in tcp_gso_segment()
149 th->seq = htonl(seq); in tcp_gso_segment()
150 th->cwr = 0; in tcp_gso_segment()
178 th->check = ~csum_fold(csum_add(csum_unfold(th->check), delta)); in tcp_gso_segment()
180 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
182 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
191 struct tcphdr *th; in tcp_gro_receive() local
203 hlen = off + sizeof(*th); in tcp_gro_receive()
204 th = skb_gro_header(skb, hlen, off); in tcp_gro_receive()
205 if (unlikely(!th)) in tcp_gro_receive()
208 thlen = th->doff * 4; in tcp_gro_receive()
209 if (thlen < sizeof(*th)) in tcp_gro_receive()
214 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
215 if (unlikely(!th)) in tcp_gro_receive()
222 flags = tcp_flag_word(th); in tcp_gro_receive()
230 if (*(u32 *)&th->source ^ *(u32 *)&th2->source) { in tcp_gro_receive()
246 flush |= (__force int)(th->ack_seq ^ th2->ack_seq); in tcp_gro_receive()
247 for (i = sizeof(*th); i < thlen; i += 4) in tcp_gro_receive()
248 flush |= *(u32 *)((u8 *)th + i) ^ in tcp_gro_receive()
273 flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq); in tcp_gro_receive()
307 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() local
309 skb->csum_start = (unsigned char *)th - skb->head; in tcp_gro_complete()
315 if (th->cwr) in tcp_gro_complete()
340 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete() local
342 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr, in tcp4_gro_complete()