Lines Matching refs:th
40 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() local
46 th->check = 0; in tcp4_gso_segment()
59 struct tcphdr *th; in tcp_gso_segment() local
69 th = tcp_hdr(skb); in tcp_gso_segment()
70 thlen = th->doff * 4; in tcp_gso_segment()
71 if (thlen < sizeof(*th)) in tcp_gso_segment()
125 th = tcp_hdr(skb); in tcp_gso_segment()
126 seq = ntohl(th->seq); in tcp_gso_segment()
131 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
135 th->fin = th->psh = 0; in tcp_gso_segment()
136 th->check = newcheck; in tcp_gso_segment()
139 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
148 th = tcp_hdr(skb); in tcp_gso_segment()
150 th->seq = htonl(seq); in tcp_gso_segment()
151 th->cwr = 0; in tcp_gso_segment()
170 th->check = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
173 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
182 struct tcphdr *th; in tcp_gro_receive() local
194 hlen = off + sizeof(*th); in tcp_gro_receive()
195 th = skb_gro_header_fast(skb, off); in tcp_gro_receive()
197 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
198 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()
248 flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq); in tcp_gro_receive()
276 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() local
278 skb->csum_start = (unsigned char *)th - skb->head; in tcp_gro_complete()
284 if (th->cwr) in tcp_gro_complete()
307 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete() local
309 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr, in tcp4_gro_complete()