Lines Matching refs:th

42 		struct tcphdr *th = tcp_hdr(skb);  in tcp4_gso_segment()  local
48 th->check = 0; in tcp4_gso_segment()
61 struct tcphdr *th; in tcp_gso_segment() local
71 th = tcp_hdr(skb); in tcp_gso_segment()
72 thlen = th->doff * 4; in tcp_gso_segment()
73 if (thlen < sizeof(*th)) in tcp_gso_segment()
120 th = tcp_hdr(skb); in tcp_gso_segment()
121 seq = ntohl(th->seq); in tcp_gso_segment()
126 newcheck = ~csum_fold(csum_add(csum_unfold(th->check), delta)); in tcp_gso_segment()
129 th->fin = th->psh = 0; in tcp_gso_segment()
130 th->check = newcheck; in tcp_gso_segment()
133 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
135 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
144 th = tcp_hdr(skb); in tcp_gso_segment()
146 th->seq = htonl(seq); in tcp_gso_segment()
147 th->cwr = 0; in tcp_gso_segment()
175 th->check = ~csum_fold(csum_add(csum_unfold(th->check), delta)); in tcp_gso_segment()
177 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
179 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
188 struct tcphdr *th; in tcp_gro_receive() local
200 hlen = off + sizeof(*th); in tcp_gro_receive()
201 th = skb_gro_header(skb, hlen, off); in tcp_gro_receive()
202 if (unlikely(!th)) in tcp_gro_receive()
205 thlen = th->doff * 4; in tcp_gro_receive()
206 if (thlen < sizeof(*th)) in tcp_gro_receive()
211 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
212 if (unlikely(!th)) in tcp_gro_receive()
219 flags = tcp_flag_word(th); in tcp_gro_receive()
227 if (*(u32 *)&th->source ^ *(u32 *)&th2->source) { in tcp_gro_receive()
243 flush |= (__force int)(th->ack_seq ^ th2->ack_seq); in tcp_gro_receive()
244 for (i = sizeof(*th); i < thlen; i += 4) in tcp_gro_receive()
245 flush |= *(u32 *)((u8 *)th + i) ^ in tcp_gro_receive()
270 flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq); in tcp_gro_receive()
304 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() local
306 skb->csum_start = (unsigned char *)th - skb->head; in tcp_gro_complete()
312 if (th->cwr) in tcp_gro_complete()
337 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete() local
339 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr, in tcp4_gro_complete()