Home
last modified time | relevance | path

Searched refs:tcph (Results 1 – 14 of 14) sorted by relevance

/drivers/infiniband/hw/i40iw/
Di40iw_cm.c382 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 …]
Di40iw_utils.c1364 struct tcphdr *tcph = (struct tcphdr *)buf->tcph; in i40iw_ieq_get_qp() local
1376 loc_port = ntohs(tcph->dest); in i40iw_ieq_get_qp()
1377 rem_port = ntohs(tcph->source); in i40iw_ieq_get_qp()
1395 struct tcphdr *tcph; in i40iw_ieq_update_tcpip_info() local
1403 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in i40iw_ieq_update_tcpip_info()
1407 tcph->seq = htonl(seqnum); in i40iw_ieq_update_tcpip_info()
1420 struct tcphdr *tcph; in i40iw_puda_get_tcpip_info() local
1436 buf->tcph = buf->iph + iphlen; in i40iw_puda_get_tcpip_info()
1437 tcph = (struct tcphdr *)buf->tcph; in i40iw_puda_get_tcpip_info()
1454 buf->tcphlen = (tcph->doff) << 2; in i40iw_puda_get_tcpip_info()
[all …]
Di40iw_puda.h86 u8 *tcph; member
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c209 struct tcphdr *tcph; in mlx5e_ipsec_set_metadata() local
214 tcph = inner_tcp_hdr(skb); in mlx5e_ipsec_set_metadata()
222 ntohs(tcph->source), ntohs(tcph->dest), in mlx5e_ipsec_set_metadata()
223 ntohl(tcph->seq), ntohl(esph->seq_no)); in mlx5e_ipsec_set_metadata()
226 mdata->content.tx.seq = htons(ntohl(tcph->seq) & 0xFFFF); in mlx5e_ipsec_set_metadata()
/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx.c1697 static void iwl_compute_pseudo_hdr_csum(void *iph, struct tcphdr *tcph, in iwl_compute_pseudo_hdr_csum() argument
1703 tcph->check = ~csum_ipv6_magic(&iphv6->saddr, &iphv6->daddr, in iwl_compute_pseudo_hdr_csum()
1704 len + tcph->doff * 4, in iwl_compute_pseudo_hdr_csum()
1710 tcph->check = ~csum_tcpudp_magic(iphv4->saddr, iphv4->daddr, in iwl_compute_pseudo_hdr_csum()
1711 len + tcph->doff * 4, in iwl_compute_pseudo_hdr_csum()
1783 struct tcphdr *tcph; in iwl_fill_data_tbs_amsdu() local
1807 tcph = (void *)(iph + ip_hdrlen); in iwl_fill_data_tbs_amsdu()
1816 iwl_compute_pseudo_hdr_csum(iph, tcph, in iwl_fill_data_tbs_amsdu()
1821 skb_put_data(csum_skb, tcph, tcp_hdrlen(skb)); in iwl_fill_data_tbs_amsdu()
1884 tcph->check = csum_fold(csum); in iwl_fill_data_tbs_amsdu()
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.c1012 const struct tcphdr *tcph; in chtls_pass_accept_rpl() local
1056 tcph = (struct tcphdr *)((u8 *)(req + 1) + in chtls_pass_accept_rpl()
1058 if (tcph->ece && tcph->cwr) in chtls_pass_accept_rpl()
1299 struct tcphdr *tcph; in chtls_pass_accept_request() local
1354 tcph = (struct tcphdr *)(iph + 1); in chtls_pass_accept_request()
1358 tcph = (struct tcphdr *)(ip6h + 1); in chtls_pass_accept_request()
1373 tcp_rsk(oreq)->rcv_isn = ntohl(tcph->seq); in chtls_pass_accept_request()
1374 chtls_set_req_port(oreq, tcph->source, tcph->dest); in chtls_pass_accept_request()
1391 th_ecn = tcph->ece && tcph->cwr; in chtls_pass_accept_request()
/drivers/net/ethernet/ibm/
Dibmveth.c1211 struct tcphdr *tcph; in ibmveth_rx_mss_helper() local
1240 tcph = (struct tcphdr *)(skb->data + offset); in ibmveth_rx_mss_helper()
1244 skb_shinfo(skb)->gso_size = ntohs(tcph->check); in ibmveth_rx_mss_helper()
1245 tcph->check = 0; in ibmveth_rx_mss_helper()
1249 hdr_len = offset + tcph->doff * 4; in ibmveth_rx_mss_helper()
1302 struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); in ibmveth_rx_csum_helper() local
1308 tcph->check = ~csum_tcpudp_magic(iph->saddr, in ibmveth_rx_csum_helper()
1311 tcph->check = ~csum_ipv6_magic(&iph6->saddr, in ibmveth_rx_csum_helper()
/drivers/infiniband/hw/cxgb4/
Dcm.c2461 const struct tcphdr *tcph; in accept_cr() local
2465 tcph = (const void *)(req + 1) + ETH_HDR_LEN_G(hlen) + in accept_cr()
2468 tcph = (const void *)(req + 1) + in accept_cr()
2470 if (tcph->ece && tcph->cwr) in accept_cr()
4066 struct tcphdr *tcph; in rx_pkt() local
4131 tcph = (struct tcphdr *)(iph + 1); in rx_pkt()
4133 skb_set_transport_header(skb, (void *)tcph - (void *)rss); in rx_pkt()
4137 ntohl(iph->daddr), ntohs(tcph->dest), ntohl(iph->saddr), in rx_pkt()
4138 ntohs(tcph->source), iph->tos); in rx_pkt()
4141 iph->daddr, iph->saddr, tcph->dest, in rx_pkt()
[all …]
/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c1131 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/
Dqed_iwarp.c1679 struct tcphdr *tcph; in qed_iwarp_parse_rx_pkt() local
1756 tcph = (struct tcphdr *)((u8 *)iph + ip_hlen); in qed_iwarp_parse_rx_pkt()
1758 if (!tcph->syn) { in qed_iwarp_parse_rx_pkt()
1761 iph->ihl, tcph->source, tcph->dest); in qed_iwarp_parse_rx_pkt()
1765 cm_info->local_port = ntohs(tcph->dest); in qed_iwarp_parse_rx_pkt()
1766 cm_info->remote_port = ntohs(tcph->source); in qed_iwarp_parse_rx_pkt()
/drivers/net/ethernet/neterion/
Ds2io.c8213 (lro->tcph->source != tcp->source) || in check_for_socket_match()
8214 (lro->tcph->dest != tcp->dest)) in check_for_socket_match()
8231 lro->tcph = tcp; in initiate_new_session()
8255 struct tcphdr *tcp = lro->tcph; in update_L3L4_header()
8366 struct tcphdr *tcph; in s2io_club_tcp_session() local
8379 tcph = (struct tcphdr *)*tcp; in s2io_club_tcp_session()
8380 *tcp_len = get_l4_pyld_length(ip, tcph); in s2io_club_tcp_session()
8384 if (check_for_socket_match(l_lro, ip, tcph)) in s2io_club_tcp_session()
8389 if ((*lro)->tcp_next_seq != ntohl(tcph->seq)) { in s2io_club_tcp_session()
8394 ntohl(tcph->seq)); in s2io_club_tcp_session()
[all …]
Ds2io.h677 struct tcphdr *tcph; member
/drivers/net/vmxnet3/
Dvmxnet3_drv.c964 struct tcphdr *tcph = inner_tcp_hdr(skb); in vmxnet3_prepare_inner_tso() local
969 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, in vmxnet3_prepare_inner_tso()
974 tcph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, 0, in vmxnet3_prepare_inner_tso()
983 struct tcphdr *tcph = tcp_hdr(skb); in vmxnet3_prepare_tso() local
989 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, in vmxnet3_prepare_tso()
/drivers/net/ethernet/broadcom/
Dtg3.c7929 struct tcphdr *tcph = NULL; in tg3_start_xmit() local
7997 tcph = tcp_hdr(skb); in tg3_start_xmit()
7998 tcp_csum = tcph->check; in tg3_start_xmit()
8003 tcph->check = 0; in tg3_start_xmit()
8006 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, in tg3_start_xmit()
8127 tcph->check = tcp_csum; in tg3_start_xmit()