/drivers/infiniband/hw/i40iw/ |
D | i40iw_cm.c | 382 struct tcphdr *tcph; in i40iw_form_cm_frame() local 411 packetsize = sizeof(*iph) + sizeof(*tcph); in i40iw_form_cm_frame() 413 packetsize = sizeof(*ip6h) + sizeof(*tcph); in i40iw_form_cm_frame() 420 sqbuf->tcphlen = sizeof(*tcph) + opts_len; in i40iw_form_cm_frame() 431 tcph = (struct tcphdr *)buf; in i40iw_form_cm_frame() 432 buf += sizeof(*tcph); in i40iw_form_cm_frame() 461 tcph = (struct tcphdr *)buf; in i40iw_form_cm_frame() 462 buf += sizeof(*tcph); in i40iw_form_cm_frame() 488 tcph->source = htons(cm_node->loc_port); in i40iw_form_cm_frame() 489 tcph->dest = htons(cm_node->rem_port); in i40iw_form_cm_frame() [all …]
|
D | i40iw_utils.c | 1405 struct tcphdr *tcph = (struct tcphdr *)buf->tcph; in i40iw_ieq_get_qp() local 1417 loc_port = ntohs(tcph->dest); in i40iw_ieq_get_qp() 1418 rem_port = ntohs(tcph->source); in i40iw_ieq_get_qp() 1436 struct tcphdr *tcph; in i40iw_ieq_update_tcpip_info() local 1444 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in i40iw_ieq_update_tcpip_info() 1448 tcph->seq = htonl(seqnum); in i40iw_ieq_update_tcpip_info() 1461 struct tcphdr *tcph; in i40iw_puda_get_tcpip_info() local 1477 buf->tcph = buf->iph + iphlen; in i40iw_puda_get_tcpip_info() 1478 tcph = (struct tcphdr *)buf->tcph; in i40iw_puda_get_tcpip_info() 1495 buf->tcphlen = (tcph->doff) << 2; in i40iw_puda_get_tcpip_info() [all …]
|
D | i40iw_puda.h | 86 u8 *tcph; member
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_rxtx.c | 207 struct tcphdr *tcph; in mlx5e_ipsec_set_metadata() local 212 tcph = inner_tcp_hdr(skb); in mlx5e_ipsec_set_metadata() 220 ntohs(tcph->source), ntohs(tcph->dest), in mlx5e_ipsec_set_metadata() 221 ntohl(tcph->seq), ntohl(esph->seq_no)); in mlx5e_ipsec_set_metadata() 224 mdata->content.tx.seq = htons(ntohl(tcph->seq) & 0xFFFF); in mlx5e_ipsec_set_metadata()
|
/drivers/crypto/chelsio/chtls/ |
D | chtls_cm.c | 912 const struct tcphdr *tcph; in chtls_pass_accept_rpl() local 956 tcph = (struct tcphdr *)((u8 *)(req + 1) + in chtls_pass_accept_rpl() 958 if (tcph->ece && tcph->cwr) in chtls_pass_accept_rpl() 1143 struct tcphdr *tcph; in chtls_pass_accept_request() local 1206 tcph = (struct tcphdr *)(iph + 1); in chtls_pass_accept_request() 1210 tcp_rsk(oreq)->rcv_isn = ntohl(tcph->seq); in chtls_pass_accept_request() 1211 chtls_set_req_port(oreq, tcph->source, tcph->dest); in chtls_pass_accept_request() 1220 th_ecn = tcph->ece && tcph->cwr; in chtls_pass_accept_request()
|
/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | tx.c | 2080 static void iwl_compute_pseudo_hdr_csum(void *iph, struct tcphdr *tcph, in iwl_compute_pseudo_hdr_csum() argument 2086 tcph->check = ~csum_ipv6_magic(&iphv6->saddr, &iphv6->daddr, in iwl_compute_pseudo_hdr_csum() 2087 len + tcph->doff * 4, in iwl_compute_pseudo_hdr_csum() 2093 tcph->check = ~csum_tcpudp_magic(iphv4->saddr, iphv4->daddr, in iwl_compute_pseudo_hdr_csum() 2094 len + tcph->doff * 4, in iwl_compute_pseudo_hdr_csum() 2168 struct tcphdr *tcph; in iwl_fill_data_tbs_amsdu() local 2192 tcph = (void *)(iph + ip_hdrlen); in iwl_fill_data_tbs_amsdu() 2201 iwl_compute_pseudo_hdr_csum(iph, tcph, in iwl_fill_data_tbs_amsdu() 2206 skb_put_data(csum_skb, tcph, tcp_hdrlen(skb)); in iwl_fill_data_tbs_amsdu() 2269 tcph->check = csum_fold(csum); in iwl_fill_data_tbs_amsdu()
|
/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1185 struct tcphdr *tcph; in ibmveth_rx_mss_helper() local 1214 tcph = (struct tcphdr *)(skb->data + offset); in ibmveth_rx_mss_helper() 1218 skb_shinfo(skb)->gso_size = ntohs(tcph->check); in ibmveth_rx_mss_helper() 1219 tcph->check = 0; in ibmveth_rx_mss_helper() 1223 hdr_len = offset + tcph->doff * 4; in ibmveth_rx_mss_helper() 1276 struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); in ibmveth_rx_csum_helper() local 1282 tcph->check = ~csum_tcpudp_magic(iph->saddr, in ibmveth_rx_csum_helper() 1285 tcph->check = ~csum_ipv6_magic(&iph6->saddr, in ibmveth_rx_csum_helper()
|
/drivers/infiniband/hw/cxgb4/ |
D | cm.c | 2458 const struct tcphdr *tcph; in accept_cr() local 2462 tcph = (const void *)(req + 1) + ETH_HDR_LEN_G(hlen) + in accept_cr() 2465 tcph = (const void *)(req + 1) + in accept_cr() 2467 if (tcph->ece && tcph->cwr) in accept_cr() 4059 struct tcphdr *tcph; in rx_pkt() local 4124 tcph = (struct tcphdr *)(iph + 1); in rx_pkt() 4126 skb_set_transport_header(skb, (void *)tcph - (void *)rss); in rx_pkt() 4130 ntohl(iph->daddr), ntohs(tcph->dest), ntohl(iph->saddr), in rx_pkt() 4131 ntohs(tcph->source), iph->tos); in rx_pkt() 4134 iph->daddr, iph->saddr, tcph->dest, in rx_pkt() [all …]
|
/drivers/target/iscsi/cxgbit/ |
D | cxgbit_cm.c | 1131 const struct tcphdr *tcph; in cxgbit_pass_accept_rpl() local 1191 tcph = (struct tcphdr *)((u8 *)(req + 1) + in cxgbit_pass_accept_rpl() 1194 tcph = (struct tcphdr *)((u8 *)(req + 1) + in cxgbit_pass_accept_rpl() 1197 if (tcph->ece && tcph->cwr) in cxgbit_pass_accept_rpl()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_iwarp.c | 1681 struct tcphdr *tcph; in qed_iwarp_parse_rx_pkt() local 1758 tcph = (struct tcphdr *)((u8 *)iph + ip_hlen); in qed_iwarp_parse_rx_pkt() 1760 if (!tcph->syn) { in qed_iwarp_parse_rx_pkt() 1763 iph->ihl, tcph->source, tcph->dest); in qed_iwarp_parse_rx_pkt() 1767 cm_info->local_port = ntohs(tcph->dest); in qed_iwarp_parse_rx_pkt() 1768 cm_info->remote_port = ntohs(tcph->source); in qed_iwarp_parse_rx_pkt()
|
/drivers/net/ethernet/neterion/ |
D | s2io.c | 8212 (lro->tcph->source != tcp->source) || in check_for_socket_match() 8213 (lro->tcph->dest != tcp->dest)) in check_for_socket_match() 8230 lro->tcph = tcp; in initiate_new_session() 8254 struct tcphdr *tcp = lro->tcph; in update_L3L4_header() 8365 struct tcphdr *tcph; in s2io_club_tcp_session() local 8378 tcph = (struct tcphdr *)*tcp; in s2io_club_tcp_session() 8379 *tcp_len = get_l4_pyld_length(ip, tcph); in s2io_club_tcp_session() 8383 if (check_for_socket_match(l_lro, ip, tcph)) in s2io_club_tcp_session() 8388 if ((*lro)->tcp_next_seq != ntohl(tcph->seq)) { in s2io_club_tcp_session() 8393 ntohl(tcph->seq)); in s2io_club_tcp_session() [all …]
|
D | s2io.h | 677 struct tcphdr *tcph; member
|
/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 936 struct tcphdr *tcph = tcp_hdr(skb); in vmxnet3_prepare_tso() local 942 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, in vmxnet3_prepare_tso() 947 tcph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, 0, in vmxnet3_prepare_tso()
|
/drivers/net/ethernet/broadcom/ |
D | tg3.c | 7926 struct tcphdr *tcph = NULL; in tg3_start_xmit() local 7994 tcph = tcp_hdr(skb); in tg3_start_xmit() 7995 tcp_csum = tcph->check; in tg3_start_xmit() 8000 tcph->check = 0; in tg3_start_xmit() 8003 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, in tg3_start_xmit() 8124 tcph->check = tcp_csum; in tg3_start_xmit()
|