| /drivers/input/gameport/ |
| A D | lightning.c | 34 struct l4 { struct 39 static struct l4 l4_ports[8]; argument 59 struct l4 *l4 = gameport->port_data; in l4_cooked_read() local 92 struct l4 *l4 = gameport->port_data; in l4_open() local 181 struct l4 *l4 = gameport->port_data; in l4_calibrate() local 202 struct l4 *l4; in l4_create_ports() local 209 l4 = &l4_ports[idx]; in l4_create_ports() 215 l4->gameport = NULL; in l4_create_ports() 219 l4->port = idx; in l4_create_ports() 221 port->port_data = l4; in l4_create_ports() [all …]
|
| /drivers/infiniband/hw/hfi1/ |
| A D | trace_ibhdrs.h | 87 u8 *l4, u8 *rc, u8 *sc, 127 __field(u8, l4) 163 &__entry->l4, 229 __entry->l4, 244 __entry->l4, 263 __entry->l4, 286 __field(u8, l4) 323 &__entry->l4, 393 __entry->l4, 407 __entry->l4, [all …]
|
| A D | trace.c | 28 u8 l4 = hfi1_16B_get_l4(hdr); in __get_16b_hdr_len() local 30 if (l4 == OPA_16B_L4_FM) { in __get_16b_hdr_len() 35 if (l4 == OPA_16B_L4_IB_LOCAL) in __get_16b_hdr_len() 61 const char *hfi1_trace_get_packet_l4_str(u8 l4) in hfi1_trace_get_packet_l4_str() argument 63 if (l4) in hfi1_trace_get_packet_l4_str() 170 u8 *l4, u8 *rc, u8 *sc, in hfi1_trace_parse_16b_hdr() argument 177 *l4 = hfi1_16B_get_l4(hdr); in hfi1_trace_parse_16b_hdr() 192 u8 age, bool becn, bool fecn, u8 l4, in hfi1_trace_fmt_lrh() argument 230 if (l4 == OPA_16B_L4_FM) in hfi1_trace_fmt_rest() 250 u8 opcode, u8 l4, u32 dest_qpn, u32 src_qpn, in parse_everbs_hdrs() argument [all …]
|
| A D | ud.c | 344 u8 l4, sc5; in hfi1_make_ud_req_16B() local 390 l4 = OPA_16B_L4_IB_GLOBAL; in hfi1_make_ud_req_16B() 393 l4 = OPA_16B_L4_IB_LOCAL; in hfi1_make_ud_req_16B() 410 l4 = OPA_16B_L4_FM; in hfi1_make_ud_req_16B() 598 u8 l4; in return_cnp_16B() local 620 l4 = OPA_16B_L4_IB_GLOBAL; in return_cnp_16B() 624 l4 = OPA_16B_L4_IB_LOCAL; in return_cnp_16B() 827 u8 l4 = 0; in hfi1_ud_rcv() local 838 l4 = hfi1_16B_get_l4(packet->hdr); in hfi1_ud_rcv() 849 if (likely(l4 != OPA_16B_L4_FM)) { in hfi1_ud_rcv() [all …]
|
| A D | ruc.c | 242 u8 l4 = OPA_16B_L4_IB_LOCAL; in hfi1_make_ruc_header_16B() local 262 l4 = OPA_16B_L4_IB_GLOBAL; in hfi1_make_ruc_header_16B() 302 pkey, becn, 0, l4, priv->s_sc); in hfi1_make_ruc_header_16B()
|
| A D | driver.c | 1538 u8 l4; in hfi1_setup_bypass_packet() local 1543 l4 = hfi1_16B_get_l4(packet->hdr); in hfi1_setup_bypass_packet() 1544 if (l4 == OPA_16B_L4_IB_LOCAL) { in hfi1_setup_bypass_packet() 1553 } else if (l4 == OPA_16B_L4_IB_GLOBAL) { in hfi1_setup_bypass_packet() 1571 } else if (l4 == OPA_16B_L4_FM) { in hfi1_setup_bypass_packet()
|
| A D | hfi.h | 529 u8 l4; in hfi1_get_rc_ohdr() local 532 l4 = hfi1_16B_get_l4(hdr_16b); in hfi1_get_rc_ohdr() 533 if (l4 == OPA_16B_L4_IB_LOCAL) in hfi1_get_rc_ohdr() 2606 bool becn, bool fecn, u8 l4, in hfi1_make_16b_hdr() argument 2625 lrh2 = (lrh2 & ~OPA_16B_L4_MASK) | l4; in hfi1_make_16b_hdr()
|
| A D | verbs.c | 1222 u8 l4 = 0; in hfi1_verbs_send() local 1228 l4 = hfi1_16B_get_l4(hdr); in hfi1_verbs_send() 1229 if (l4 == OPA_16B_L4_IB_LOCAL) in hfi1_verbs_send() 1231 else if (l4 == OPA_16B_L4_IB_GLOBAL) in hfi1_verbs_send() 1248 if (likely(l4 != OPA_16B_L4_FM)) in hfi1_verbs_send()
|
| /drivers/net/ethernet/huawei/hinic/ |
| A D | hinic_tx.c | 200 union hinic_l4 *l4, in get_inner_l3_l4_type() argument 216 if (exthdr != l4->hdr) { in get_inner_l3_l4_type() 241 *l4_len = l4->tcp->doff * 4; in get_inner_l4_info() 280 union hinic_l4 l4; in offload_tso() local 295 l4.hdr = skb_transport_header(skb); in offload_tso() 325 l4.hdr = skb_transport_header(skb); in offload_tso() 361 union hinic_l4 l4; in offload_csum() local 384 l4.hdr = skb_transport_header(skb); in offload_csum() 385 if (l4.hdr != exthdr) in offload_csum() 410 l4.hdr = skb_transport_header(skb); in offload_csum() [all …]
|
| /drivers/net/ethernet/huawei/hinic3/ |
| A D | hinic3_tx.c | 177 TRANSPORT_OFFSET(l4->hdr, skb); in get_inner_l4_info() 182 *offset = TRANSPORT_OFFSET(l4->hdr, skb); in get_inner_l4_info() 206 union hinic3_l4 l4; in hinic3_tx_csum() local 212 l4.hdr = skb_transport_header(skb); in hinic3_tx_csum() 213 if (l4.hdr != exthdr) in hinic3_tx_csum() 235 union hinic3_l4 *l4, in get_inner_l3_l4_type() argument 248 if (exthdr != l4->hdr) { in get_inner_l3_l4_type() 293 union hinic3_l4 l4; in hinic3_tso() local 311 l4.hdr = skb_transport_header(skb); in hinic3_tso() 320 l4.hdr = skb_inner_transport_header(skb); in hinic3_tso() [all …]
|
| /drivers/net/ethernet/intel/iavf/ |
| A D | iavf_txrx.c | 1743 } l4; in iavf_tso() local 1759 l4.hdr = skb_transport_header(skb); in iavf_tso() 1777 l4.udp->len = 0; in iavf_tso() 1780 l4_offset = l4.hdr - skb->data; in iavf_tso() 1802 l4_offset = l4.hdr - skb->data; in iavf_tso() 1807 csum_replace_by_diff(&l4.udp->check, in iavf_tso() 1812 csum_replace_by_diff(&l4.tcp->check, in iavf_tso() 1859 } l4; in iavf_tx_enable_csum() local 1869 l4.hdr = skb_transport_header(skb); in iavf_tx_enable_csum() 1888 if (l4.hdr != exthdr) in iavf_tx_enable_csum() [all …]
|
| /drivers/net/ethernet/intel/ice/ |
| A D | ice_txrx.c | 1880 } l4; in ice_tx_csum() local 1893 l4.hdr = skb_checksum_start(skb); in ice_tx_csum() 1896 l4.hdr = skb_transport_header(skb); in ice_tx_csum() 1957 tunnel |= ((l4.hdr - ip.hdr) / 4) << in ice_tx_csum() 2008 if (l4.hdr != exthdr) in ice_tx_csum() 2016 l3_len = l4.hdr - ip.hdr; in ice_tx_csum() 2048 l4_len = l4.tcp->doff; in ice_tx_csum() 2128 } l4; in ice_tso() local 2151 l4.hdr = skb_checksum_start(skb); in ice_tso() 2169 l4.udp->len = 0; in ice_tso() [all …]
|
| A D | ice_virtchnl_fdir.c | 926 enum virtchnl_proto_hdr_type l4 = VIRTCHNL_PROTO_HDR_NONE; in ice_vc_fdir_parse_pattern() local 1056 l4 == VIRTCHNL_PROTO_HDR_UDP) in ice_vc_fdir_parse_pattern() 1059 l4 == VIRTCHNL_PROTO_HDR_UDP) in ice_vc_fdir_parse_pattern() 1062 l4 == VIRTCHNL_PROTO_HDR_NONE) in ice_vc_fdir_parse_pattern() 1065 l4 == VIRTCHNL_PROTO_HDR_NONE) in ice_vc_fdir_parse_pattern() 1068 if (l4 == VIRTCHNL_PROTO_HDR_UDP) in ice_vc_fdir_parse_pattern()
|
| /drivers/net/ethernet/intel/idpf/ |
| A D | idpf_singleq_txrx.c | 29 } l4; in idpf_tx_singleq_csum() local 39 l4.hdr = skb_transport_header(skb); in idpf_tx_singleq_csum() 79 l4.hdr = skb_inner_network_header(skb); in idpf_tx_singleq_csum() 93 (l4.hdr - ip.hdr) / 4); in idpf_tx_singleq_csum() 100 (ip.hdr - l4.hdr) / 2); in idpf_tx_singleq_csum() 112 l4.hdr = skb_inner_transport_header(skb); in idpf_tx_singleq_csum() 146 l3_len = l4.hdr - ip.hdr; in idpf_tx_singleq_csum() 154 l4_len = l4.tcp->doff; in idpf_tx_singleq_csum()
|
| A D | idpf_txrx.c | 2574 } l4; in idpf_tso() local 2588 l4.hdr = skb_transport_header(skb); in idpf_tso() 2606 csum_replace_by_diff(&l4.tcp->check, in idpf_tso() 2608 off->tso_hdr_len = __tcp_hdrlen(l4.tcp) + l4_start; in idpf_tso() 2611 csum_replace_by_diff(&l4.udp->check, in idpf_tso() 2615 l4.udp->len = htons(shinfo->gso_size + sizeof(struct udphdr)); in idpf_tso()
|
| /drivers/net/ethernet/mscc/ |
| A D | ocelot_ptp.c | 437 bool l2, bool l4) in ocelot_setup_ptp_traps() argument 452 if (l4) { in ocelot_setup_ptp_traps() 470 if (l4) in ocelot_setup_ptp_traps() 543 bool l2 = false, l4 = false; in ocelot_hwstamp_set() local 558 l4 = true; in ocelot_hwstamp_set() 569 l4 = true; in ocelot_hwstamp_set() 575 err = ocelot_setup_ptp_traps(ocelot, port, l2, l4); in ocelot_hwstamp_set()
|
| /drivers/net/ethernet/intel/i40e/ |
| A D | i40e_txrx.c | 3093 } l4; in i40e_tso() local 3114 l4.hdr = skb_checksum_start(skb); in i40e_tso() 3135 l4.udp->len = 0; in i40e_tso() 3138 l4_offset = l4.hdr - skb->data; in i40e_tso() 3160 l4_offset = l4.hdr - skb->data; in i40e_tso() 3259 } l4; in i40e_tx_enable_csum() local 3273 l4.hdr = skb_checksum_start(skb); in i40e_tx_enable_csum() 3276 l4.hdr = skb_transport_header(skb); in i40e_tx_enable_csum() 3336 tunnel |= ((l4.hdr - ip.hdr) / 4) << in i40e_tx_enable_csum() 3343 tunnel |= ((ip.hdr - l4.hdr) / 2) << in i40e_tx_enable_csum() [all …]
|
| /drivers/net/ethernet/broadcom/bnxt/ |
| A D | bnxt_tc.h | 61 struct bnxt_tc_l4_key l4; member 100 struct bnxt_tc_l4_key l4; member
|
| A D | bnxt_tc.c | 266 actions->nat.l4.ports.sport = htons(val); in bnxt_tc_parse_pedit() 270 actions->nat.l4.ports.sport, in bnxt_tc_parse_pedit() 271 actions->nat.l4.ports.dport); in bnxt_tc_parse_pedit() 630 if (actions->nat.l4.ports.sport) in bnxt_hwrm_cfa_flow_alloc() 632 actions->nat.l4.ports.sport; in bnxt_hwrm_cfa_flow_alloc() 640 if (actions->nat.l4.ports.dport) in bnxt_hwrm_cfa_flow_alloc() 642 actions->nat.l4.ports.dport; in bnxt_hwrm_cfa_flow_alloc() 657 if (actions->nat.l4.ports.sport) in bnxt_hwrm_cfa_flow_alloc() 659 actions->nat.l4.ports.sport; in bnxt_hwrm_cfa_flow_alloc() 668 if (actions->nat.l4.ports.dport) in bnxt_hwrm_cfa_flow_alloc() [all …]
|
| /drivers/net/ethernet/hisilicon/hns3/ |
| A D | hns3_enet.c | 1180 union l4_hdr_info l4; in hns3_set_tso() local 1192 l4.hdr = skb_transport_header(skb); in hns3_set_tso() 1217 l4_offset = l4.hdr - skb->data; in hns3_set_tso() 1312 union l4_hdr_info l4; in hns3_tunnel_csum_bug() local 1320 l4.hdr = skb_transport_header(skb); in hns3_tunnel_csum_bug() 1337 union l4_hdr_info l4; in hns3_set_outer_l2l3l4() local 1347 l3_len = l4.hdr - l3.hdr; in hns3_set_outer_l2l3l4() 1352 l4_len = il2_hdr - l4.hdr; in hns3_set_outer_l2l3l4() 1406 l4.tcp->doff); in hns3_set_l4_csum_length() 1450 union l4_hdr_info l4; in hns3_set_l2l3l4() local [all …]
|
| /drivers/net/ethernet/intel/igbvf/ |
| A D | netdev.c | 2005 } l4; in igbvf_tso() local 2020 l4.hdr = skb_checksum_start(skb); in igbvf_tso() 2044 l4_offset = l4.hdr - skb->data; in igbvf_tso() 2047 *hdr_len = (l4.tcp->doff * 4) + l4_offset; in igbvf_tso() 2051 csum_replace_by_diff(&l4.tcp->check, (__force __wsum)htonl(paylen)); in igbvf_tso() 2058 vlan_macip_lens = l4.hdr - ip.hdr; in igbvf_tso()
|
| /drivers/net/ethernet/netronome/nfp/flower/ |
| A D | offload.c | 84 struct nfp_flower_tp_ports l4; member 629 memset(&merge->l4, 0xff, in nfp_flower_update_merge_with_actions() 679 ports = (u8 *)&merge->l4.port_src; in nfp_flower_update_merge_with_actions() 737 memcpy(&merge->l4, mask, match_size); in nfp_flower_populate_merge_match()
|
| /drivers/net/ethernet/intel/ixgbevf/ |
| A D | ixgbevf_main.c | 3787 } l4; in ixgbevf_tso() local 3806 l4.hdr = skb_checksum_start(skb); in ixgbevf_tso() 3837 l4_offset = l4.hdr - skb->data; in ixgbevf_tso() 3840 *hdr_len = (l4.tcp->doff * 4) + l4_offset; in ixgbevf_tso() 3844 csum_replace_by_diff(&l4.tcp->check, (__force __wsum)htonl(paylen)); in ixgbevf_tso() 3859 vlan_macip_lens = l4.hdr - ip.hdr; in ixgbevf_tso()
|
| /drivers/net/ethernet/intel/igc/ |
| A D | igc_main.c | 1460 } l4; in igc_tso() local 1475 l4.hdr = skb_checksum_start(skb); in igc_tso() 1504 l4_offset = l4.hdr - skb->data; in igc_tso() 1510 *hdr_len = (l4.tcp->doff * 4) + l4_offset; in igc_tso() 1511 csum_replace_by_diff(&l4.tcp->check, in igc_tso() 1515 *hdr_len = sizeof(*l4.udp) + l4_offset; in igc_tso() 1516 csum_replace_by_diff(&l4.udp->check, in igc_tso() 1529 vlan_macip_lens = l4.hdr - ip.hdr; in igc_tso()
|
| /drivers/net/ethernet/intel/igb/ |
| A D | igb_main.c | 6067 } l4; in igb_tso() local 6082 l4.hdr = skb_checksum_start(skb); in igb_tso() 6112 l4_offset = l4.hdr - skb->data; in igb_tso() 6118 *hdr_len = (l4.tcp->doff * 4) + l4_offset; in igb_tso() 6119 csum_replace_by_diff(&l4.tcp->check, in igb_tso() 6123 *hdr_len = sizeof(*l4.udp) + l4_offset; in igb_tso() 6124 csum_replace_by_diff(&l4.udp->check, in igb_tso() 6137 vlan_macip_lens = l4.hdr - ip.hdr; in igb_tso()
|