Lines Matching defs:th
2659 struct tcphdr *th;
2666 if (!pskb_may_pull(skb, sizeof(*th)))
2669 th = tcp_hdr(skb);
2670 thlen = th->doff * 4;
2671 if (thlen < sizeof(*th))
2722 th = tcp_hdr(skb);
2723 seq = ntohl(th->seq);
2726 th->fin = th->psh = 0;
2728 th->check = ~csum_fold((__force __wsum)((__force u32)th->check +
2731 th->check =
2737 th = tcp_hdr(skb);
2739 th->seq = htonl(seq);
2740 th->cwr = 0;
2745 th->check = ~csum_fold((__force __wsum)((__force u32)th->check +
2748 th->check = csum_fold(csum_partial(skb_transport_header(skb),
2760 struct tcphdr *th;
2772 hlen = off + sizeof(*th);
2773 th = skb_gro_header_fast(skb, off);
2775 th = skb_gro_header_slow(skb, hlen, off);
2776 if (unlikely(!th))
2780 thlen = th->doff * 4;
2781 if (thlen < sizeof(*th))
2786 th = skb_gro_header_slow(skb, hlen, off);
2787 if (unlikely(!th))
2794 flags = tcp_flag_word(th);
2802 if (*(u32 *)&th->source ^ *(u32 *)&th2->source) {
2817 flush |= (__force int)(th->ack_seq ^ th2->ack_seq);
2818 for (i = sizeof(*th); i < thlen; i += 4)
2819 flush |= *(u32 *)((u8 *)th + i) ^
2825 flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq);
2854 struct tcphdr *th = tcp_hdr(skb);
2862 if (th->cwr)
3014 struct tcphdr *th)
3019 __sum16 old_checksum = th->check;
3020 th->check = 0;
3022 sg_init_one(&sg, th, sizeof(struct tcphdr));
3024 th->check = old_checksum;