/drivers/net/usb/ |
D | lg-vl600.c | 100 struct ethhdr *ethhdr; in vl600_rx_fixup() local 175 ethhdr = (struct ethhdr *) skb->data; in vl600_rx_fixup() 176 if (be16_to_cpup(ðhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup() 179 memcpy(ethhdr->h_source, in vl600_rx_fixup() 180 &buf->data[sizeof(*ethhdr) + 0x8], in vl600_rx_fixup() 182 memcpy(ethhdr->h_dest, in vl600_rx_fixup() 183 &buf->data[sizeof(*ethhdr) + 0x12], in vl600_rx_fixup() 186 eth_zero_addr(ethhdr->h_source); in vl600_rx_fixup() 187 memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN); in vl600_rx_fixup() 194 if ((buf->data[sizeof(*ethhdr)] & 0xf0) == 0x60) in vl600_rx_fixup() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/accel/ |
D | accel.h | 23 struct ethhdr *old_eth; in remove_metadata_hdr() 24 struct ethhdr *new_eth; in remove_metadata_hdr() 27 old_eth = (struct ethhdr *)skb->data; in remove_metadata_hdr() 28 new_eth = (struct ethhdr *)(skb->data + MLX5E_METADATA_ETHER_LEN); in remove_metadata_hdr()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | sta_rx.c | 39 struct ethhdr *eth; in mwifiex_discard_gratuitous_arp() 43 eth = (struct ethhdr *)skb->data; in mwifiex_discard_gratuitous_arp() 46 arp = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp() 54 ipv6 = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp() 55 icmpv6 = (void *)(skb->data + sizeof(struct ethhdr) + in mwifiex_discard_gratuitous_arp() 90 struct ethhdr *eth; in mwifiex_process_rx_packet() 127 eth = (struct ethhdr *) in mwifiex_process_rx_packet()
|
D | tdls.c | 903 if (len < (sizeof(struct ethhdr) + 3)) in mwifiex_process_tdls_action_frame() 905 if (*(buf + sizeof(struct ethhdr)) != WLAN_TDLS_SNAP_RFTYPE) in mwifiex_process_tdls_action_frame() 907 if (*(buf + sizeof(struct ethhdr) + 1) != WLAN_CATEGORY_TDLS) in mwifiex_process_tdls_action_frame() 911 action = *(buf + sizeof(struct ethhdr) + 2); in mwifiex_process_tdls_action_frame() 917 if (len < (sizeof(struct ethhdr) + TDLS_REQ_FIX_LEN)) in mwifiex_process_tdls_action_frame() 920 pos = buf + sizeof(struct ethhdr) + 4; in mwifiex_process_tdls_action_frame() 923 ies_len = len - sizeof(struct ethhdr) - TDLS_REQ_FIX_LEN; in mwifiex_process_tdls_action_frame() 928 if (len < (sizeof(struct ethhdr) + TDLS_RESP_FIX_LEN)) in mwifiex_process_tdls_action_frame() 931 pos = buf + sizeof(struct ethhdr) + 6; in mwifiex_process_tdls_action_frame() 933 ies_len = len - sizeof(struct ethhdr) - TDLS_RESP_FIX_LEN; in mwifiex_process_tdls_action_frame() [all …]
|
/drivers/staging/gdm724x/ |
D | gdm_lte.c | 97 struct ethhdr eth; in gdm_lte_emulate_arp() 118 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp() 123 memcpy(ð, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_arp() 164 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_arp() 217 struct ethhdr eth; in gdm_lte_emulate_ndp() 239 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_ndp() 246 memcpy(ð, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_ndp() 326 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_ndp() 339 struct ethhdr *eth; in gdm_lte_tx_nic_type() 351 eth = (struct ethhdr *)skb->data; in gdm_lte_tx_nic_type() [all …]
|
/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_encap.c | 299 struct ethhdr *mac_hdr) in opa_vnic_chk_mac_tbl() 337 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in opa_vnic_get_dlid() 366 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in opa_vnic_get_sc() 389 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in opa_vnic_get_vl()
|
/drivers/net/wireless/ath/ath6kl/ |
D | common.h | 49 sizeof(struct ethhdr) + \ 55 sizeof(struct ethhdr) + \
|
D | txrx.c | 46 struct ethhdr *eth_hdr; in ath6kl_ibss_map_epid() 52 eth_hdr = (struct ethhdr *) (datap + sizeof(struct wmi_data_hdr)); in ath6kl_ibss_map_epid() 109 struct ethhdr *datap = (struct ethhdr *) skb->data; in ath6kl_process_uapsdq() 212 struct ethhdr *datap = (struct ethhdr *) skb->data; in ath6kl_powersave_ap() 994 struct ethhdr *hdr; in aggr_slice_amsdu() 998 mac_hdr_len = sizeof(struct ethhdr); in aggr_slice_amsdu() 1003 hdr = (struct ethhdr *) framep; in aggr_slice_amsdu() 1316 struct ethhdr *datap = NULL; in ath6kl_rx() 1379 min_hdr_len = sizeof(struct ethhdr) + sizeof(struct wmi_data_hdr) + in ath6kl_rx() 1426 datap = (struct ethhdr *) (skb->data + offset); in ath6kl_rx() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_selftest.c | 98 #define MLX5E_TEST_PKT_SIZE (sizeof(struct ethhdr) + sizeof(struct iphdr) +\ 106 struct ethhdr *ethh; in mlx5e_test_get_udp_skb() 187 struct ethhdr *ethh; in mlx5e_test_loopback_validate() 195 ethh = (struct ethhdr *)skb_mac_header(skb); in mlx5e_test_loopback_validate()
|
/drivers/net/wireless/ath/ath10k/ |
D | wow.c | 95 struct ethhdr *old_hdr_pattern = (struct ethhdr *)hdr_8023_pattern; in ath10k_wow_convert_8023_to_80211() 96 struct ethhdr *old_hdr_mask = (struct ethhdr *)hdr_8023_bit_mask; in ath10k_wow_convert_8023_to_80211() 130 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211() 133 offsetof(struct ethhdr, h_source); in ath10k_wow_convert_8023_to_80211() 140 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
|
/drivers/scsi/qedf/ |
D | qedf_fip.c | 124 struct ethhdr *eth_hdr; in qedf_fip_send() 137 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_send() 170 struct ethhdr *eth_hdr; in qedf_fip_recv() 186 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_recv()
|
/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_tx.c | 211 struct ethhdr *eth; in libipw_classify() 214 eth = (struct ethhdr *)skb->data; in libipw_classify() 281 ether_type = ((struct ethhdr *)skb->data)->h_proto; in libipw_xmit() 331 skb_pull(skb, sizeof(struct ethhdr)); in libipw_xmit()
|
/drivers/net/ipvlan/ |
D | ipvlan_core.c | 228 struct ethhdr *ethh; in ipvlan_process_multicast() 523 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound() 610 struct ethhdr *eth = skb_eth_hdr(skb); in ipvlan_xmit_mode_l2() 660 if (unlikely(!pskb_may_pull(skb, sizeof(struct ethhdr)))) in ipvlan_queue_xmit() 682 struct ethhdr *eth = eth_hdr(skb); in ipvlan_external_frame() 725 struct ethhdr *eth = eth_hdr(skb); in ipvlan_handle_mode_l2()
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_tx.c | 262 struct ethhdr *eth; in ieee80211_classify() 264 eth = (struct ethhdr *)skb->data; in ieee80211_classify() 572 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in ieee80211_xmit() 587 sizeof(struct ethhdr) - SNAP_SIZE - sizeof(u16)); in ieee80211_xmit() 598 skb_pull(skb, sizeof(struct ethhdr)); in ieee80211_xmit()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_selftest.c | 52 struct ethhdr *ethh; in mlx4_en_test_loopback_xmit() 66 ethh = skb_put(skb, sizeof(struct ethhdr)); in mlx4_en_test_loopback_xmit()
|
/drivers/infiniband/core/ |
D | lag.c | 17 struct ethhdr *eth; in rdma_build_skb() 70 skb_push(skb, sizeof(struct ethhdr)); in rdma_build_skb()
|
/drivers/net/hamradio/ |
D | bpqether.c | 174 struct ethhdr *eth; in bpq_rcv() 183 if (!pskb_may_pull(skb, sizeof(struct ethhdr))) in bpq_rcv() 205 if (skb_cow(skb, sizeof(struct ethhdr))) in bpq_rcv()
|
/drivers/net/wireless/marvell/libertas/ |
D | rx.c | 64 struct ethhdr *p_ethhdr; in lbs_process_rxed_packet() 113 p_ethhdr = (struct ethhdr *) in lbs_process_rxed_packet()
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls_rxtx.c | 82 struct ethhdr *eth; in mlx5e_tls_add_metadata() 87 eth = (struct ethhdr *)skb_push(skb, sizeof(struct mlx5e_tls_metadata)); in mlx5e_tls_add_metadata() 175 pet = (struct mlx5e_tls_metadata *)(nskb->data + sizeof(struct ethhdr)); in mlx5e_tls_complete_sync_skb()
|
/drivers/staging/rtl8192e/ |
D | rtllib_tx.c | 236 struct ethhdr *eth; in rtllib_classify() 239 eth = (struct ethhdr *)skb->data; in rtllib_classify() 599 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in rtllib_xmit_inter() 653 sizeof(struct ethhdr) - SNAP_SIZE - in rtllib_xmit_inter() 661 skb_pull(skb, sizeof(struct ethhdr)); in rtllib_xmit_inter()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 769 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_prepare_flow_request() 770 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_prepare_flow_request() 884 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_is_flow_rule_dmacfilter() 885 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_is_flow_rule_dmacfilter() 970 struct ethhdr *eth_hdr; in otx2_add_flow_with_pfmac() 1002 struct ethhdr *eth_hdr; in otx2_add_flow() 1145 struct ethhdr *eth_hdr; in otx2_update_rem_pfmac() 1186 struct ethhdr *eth_hdr = &flow->flow_spec.h_u.ether_spec; in otx2_remove_flow() 1409 struct ethhdr *eth_hdr; in otx2_dmacflt_reinstall_flows()
|
/drivers/scsi/fnic/ |
D | fnic_fcs.c | 611 struct ethhdr *eh; in fnic_handle_fip_frame() 631 eh = (struct ethhdr *)skb->data; in fnic_handle_fip_frame() 667 struct ethhdr *eh; in fnic_import_rq_eth_pkt() 674 eh = (struct ethhdr *)skb->data; in fnic_import_rq_eth_pkt() 1026 struct ethhdr *eth_hdr; in fnic_eth_send() 1031 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send() 1080 struct ethhdr *eth_hdr; in fnic_send_frame() 1098 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame()
|
D | fnic_fip.h | 52 struct ethhdr eth;
|
/drivers/infiniband/hw/hfi1/ |
D | vnic_main.c | 126 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in hfi1_vnic_update_tx_counters() 155 struct ethhdr *mac_hdr = (struct ethhdr *)skb->data; in hfi1_vnic_update_rx_counters()
|
/drivers/net/wireless/ |
D | ray_cs.c | 952 __be16 proto = ((struct ethhdr *)data)->h_proto; in translate_frame() 996 memcpy_toio(ptx->mac.addr_1, ((struct ethhdr *)data)->h_dest, in ray_build_header() 998 memcpy_toio(ptx->mac.addr_2, ((struct ethhdr *)data)->h_source, in ray_build_header() 1006 ((struct ethhdr *)data)->h_dest, ADDRLEN); in ray_build_header() 1009 ((struct ethhdr *)data)->h_source, ADDRLEN); in ray_build_header() 1015 ((struct ethhdr *)data)->h_source, ADDRLEN); in ray_build_header() 1017 ((struct ethhdr *)data)->h_dest, ADDRLEN); in ray_build_header() 2282 struct ethhdr *peth; in untranslate() 2310 peth = (struct ethhdr *)(skb->data + delta); in untranslate() 2318 peth = (struct ethhdr *)(skb->data + delta); in untranslate() [all …]
|