/drivers/infiniband/hw/irdma/ |
D | cm.c | 310 struct tcphdr *tcph; in irdma_form_ah_cm_frame() local 338 pktsize = sizeof(*tcph) + opts_len + hdr_len + pd_len; in irdma_form_ah_cm_frame() 343 sqbuf->tcphlen = sizeof(*tcph) + opts_len; in irdma_form_ah_cm_frame() 346 tcph = (struct tcphdr *)buf; in irdma_form_ah_cm_frame() 347 buf += sizeof(*tcph); in irdma_form_ah_cm_frame() 349 tcph->source = htons(cm_node->loc_port); in irdma_form_ah_cm_frame() 350 tcph->dest = htons(cm_node->rem_port); in irdma_form_ah_cm_frame() 351 tcph->seq = htonl(cm_node->tcp_cntxt.loc_seq_num); in irdma_form_ah_cm_frame() 355 tcph->ack_seq = htonl(cm_node->tcp_cntxt.loc_ack_num); in irdma_form_ah_cm_frame() 356 tcph->ack = 1; in irdma_form_ah_cm_frame() [all …]
|
D | utils.c | 1414 struct tcphdr *tcph = (struct tcphdr *)buf->tcph; in irdma_ieq_get_qp() local 1424 loc_port = ntohs(tcph->dest); in irdma_ieq_get_qp() 1425 rem_port = ntohs(tcph->source); in irdma_ieq_get_qp() 1445 struct tcphdr *tcph = (struct tcphdr *)buf->tcph; in irdma_send_ieq_ack() local 1448 cm_node->tcp_cntxt.loc_seq_num = ntohl(tcph->ack_seq); in irdma_send_ieq_ack() 1507 struct tcphdr *tcph; in irdma_gen1_ieq_update_tcpip_info() local 1515 tcph = (struct tcphdr *)(addr + buf->maclen + iphlen); in irdma_gen1_ieq_update_tcpip_info() 1518 tcph->seq = htonl(seqnum); in irdma_gen1_ieq_update_tcpip_info() 1530 struct tcphdr *tcph; in irdma_ieq_update_tcpip_info() local 1537 tcph = (struct tcphdr *)addr; in irdma_ieq_update_tcpip_info() [all …]
|
D | puda.h | 63 u8 *tcph; member
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_rxtx.c | 254 struct tcphdr *tcph; in mlx5e_ipsec_set_metadata() local 259 tcph = inner_tcp_hdr(skb); in mlx5e_ipsec_set_metadata() 267 ntohs(tcph->source), ntohs(tcph->dest), in mlx5e_ipsec_set_metadata() 268 ntohl(tcph->seq), ntohl(esph->seq_no)); in mlx5e_ipsec_set_metadata() 271 mdata->content.tx.seq = htons(ntohl(tcph->seq) & 0xFFFF); in mlx5e_ipsec_set_metadata()
|
/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_cm.c | 1012 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() 1300 struct tcphdr *tcph; in chtls_pass_accept_request() local 1355 tcph = (struct tcphdr *)(iph + 1); in chtls_pass_accept_request() 1359 tcph = (struct tcphdr *)(ip6h + 1); in chtls_pass_accept_request() 1374 tcp_rsk(oreq)->rcv_isn = ntohl(tcph->seq); in chtls_pass_accept_request() 1375 chtls_set_req_port(oreq, tcph->source, tcph->dest); in chtls_pass_accept_request() 1392 th_ecn = tcph->ece && tcph->cwr; in chtls_pass_accept_request()
|
/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1211 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() 1304 struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); in ibmveth_rx_csum_helper() local 1306 if (tcph->check == 0x0000) { in ibmveth_rx_csum_helper() 1310 tcph->check = in ibmveth_rx_csum_helper() 1314 tcph->check = in ibmveth_rx_csum_helper()
|
/drivers/infiniband/hw/cxgb4/ |
D | cm.c | 2461 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() 4069 struct tcphdr *tcph; in rx_pkt() local 4134 tcph = (struct tcphdr *)(iph + 1); in rx_pkt() 4136 skb_set_transport_header(skb, (void *)tcph - (void *)rss); in rx_pkt() 4140 ntohl(iph->daddr), ntohs(tcph->dest), ntohl(iph->saddr), in rx_pkt() 4141 ntohs(tcph->source), iph->tos); in rx_pkt() 4144 iph->daddr, iph->saddr, tcph->dest, in rx_pkt() [all …]
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_fdir.c | 398 struct tcphdr *tcph = (struct tcphdr *)hdr->buffer; in iavf_fill_fdir_tcp_hdr() local 403 tcph->source = fltr->ip_data.src_port; in iavf_fill_fdir_tcp_hdr() 408 tcph->dest = fltr->ip_data.dst_port; in iavf_fill_fdir_tcp_hdr()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_virtchnl_fdir.c | 1112 struct tcphdr *tcph; in ice_vc_fdir_parse_pattern() local 1156 tcph = (struct tcphdr *)hdr->buffer; in ice_vc_fdir_parse_pattern() 1164 input->ip.v4.src_port = tcph->source; in ice_vc_fdir_parse_pattern() 1165 input->ip.v4.dst_port = tcph->dest; in ice_vc_fdir_parse_pattern() 1167 input->ip.v6.src_port = tcph->source; in ice_vc_fdir_parse_pattern() 1168 input->ip.v6.dst_port = tcph->dest; in ice_vc_fdir_parse_pattern()
|
/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 | 1677 struct tcphdr *tcph; in qed_iwarp_parse_rx_pkt() local 1754 tcph = (struct tcphdr *)((u8 *)iph + ip_hlen); in qed_iwarp_parse_rx_pkt() 1756 if (!tcph->syn) { in qed_iwarp_parse_rx_pkt() 1759 iph->ihl, tcph->source, tcph->dest); in qed_iwarp_parse_rx_pkt() 1763 cm_info->local_port = ntohs(tcph->dest); in qed_iwarp_parse_rx_pkt() 1764 cm_info->remote_port = ntohs(tcph->source); in qed_iwarp_parse_rx_pkt()
|
/drivers/net/ethernet/neterion/ |
D | s2io.c | 8224 (lro->tcph->source != tcp->source) || in check_for_socket_match() 8225 (lro->tcph->dest != tcp->dest)) in check_for_socket_match() 8242 lro->tcph = tcp; in initiate_new_session() 8266 struct tcphdr *tcp = lro->tcph; in update_L3L4_header() 8377 struct tcphdr *tcph; in s2io_club_tcp_session() local 8390 tcph = (struct tcphdr *)*tcp; in s2io_club_tcp_session() 8391 *tcp_len = get_l4_pyld_length(ip, tcph); in s2io_club_tcp_session() 8395 if (check_for_socket_match(l_lro, ip, tcph)) in s2io_club_tcp_session() 8400 if ((*lro)->tcp_next_seq != ntohl(tcph->seq)) { in s2io_club_tcp_session() 8405 ntohl(tcph->seq)); in s2io_club_tcp_session() [all …]
|
D | s2io.h | 677 struct tcphdr *tcph; member
|
/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 970 struct tcphdr *tcph = inner_tcp_hdr(skb); in vmxnet3_prepare_inner_tso() local 975 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, in vmxnet3_prepare_inner_tso() 980 tcph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, 0, in vmxnet3_prepare_inner_tso() 989 struct tcphdr *tcph = tcp_hdr(skb); in vmxnet3_prepare_tso() local 995 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, 0, in vmxnet3_prepare_tso()
|
/drivers/net/ethernet/broadcom/ |
D | tg3.c | 7919 struct tcphdr *tcph = NULL; in tg3_start_xmit() local 7987 tcph = tcp_hdr(skb); in tg3_start_xmit() 7988 tcp_csum = tcph->check; in tg3_start_xmit() 7993 tcph->check = 0; in tg3_start_xmit() 7996 tcph->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, in tg3_start_xmit() 8118 tcph->check = tcp_csum; in tg3_start_xmit()
|