Lines Matching refs:thdr
339 struct tcphdr *thdr = NULL; in dwmac_rk_get_skb() local
378 thdr = (struct tcphdr *)skb_put(skb, sizeof(*thdr)); in dwmac_rk_get_skb()
391 if (!thdr) { in dwmac_rk_get_skb()
396 thdr->source = htons(attr->sport); in dwmac_rk_get_skb()
397 thdr->dest = htons(attr->dport); in dwmac_rk_get_skb()
398 thdr->doff = sizeof(struct tcphdr) / 4; in dwmac_rk_get_skb()
399 thdr->check = 0; in dwmac_rk_get_skb()
422 iplen += sizeof(*thdr); in dwmac_rk_get_skb()
449 if (!thdr) { in dwmac_rk_get_skb()
454 thdr->check = ~tcp_v4_check(skb->len, ihdr->saddr, in dwmac_rk_get_skb()
475 struct tcphdr *thdr; in dwmac_rk_loopback_validate() local
498 thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in dwmac_rk_loopback_validate()
499 if (thdr->dest != htons(lb_priv->packet->dport)) in dwmac_rk_loopback_validate()
502 shdr = (struct dwmac_rk_hdr *)((u8 *)thdr + sizeof(*thdr)); in dwmac_rk_loopback_validate()