Home
last modified time | relevance | path

Searched refs:ethh (Results 1 – 7 of 7) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c52 struct ethhdr *ethh; in mlx4_en_test_loopback_xmit() local
66 ethh = (struct ethhdr *)skb_put(skb, sizeof(struct ethhdr)); in mlx4_en_test_loopback_xmit()
68 memcpy(ethh->h_dest, priv->dev->dev_addr, ETH_ALEN); in mlx4_en_test_loopback_xmit()
69 eth_zero_addr(ethh->h_source); in mlx4_en_test_loopback_xmit()
70 ethh->h_proto = htons(ETH_P_ARP); in mlx4_en_test_loopback_xmit()
Den_rx.c809 struct ethhdr *ethh; in mlx4_en_process_rx_cq() local
815 dma_sync_single_for_cpu(priv->ddev, dma, sizeof(*ethh), in mlx4_en_process_rx_cq()
817 ethh = (struct ethhdr *)(page_address(frags[0].page) + in mlx4_en_process_rx_cq()
820 if (is_multicast_ether_addr(ethh->h_dest)) { in mlx4_en_process_rx_cq()
826 mac_hash = ethh->h_source[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_process_rx_cq()
831 ethh->h_source)) { in mlx4_en_process_rx_cq()
Den_tx.c864 struct ethhdr *ethh; in mlx4_en_xmit() local
869 ethh = (struct ethhdr *)skb->data; in mlx4_en_xmit()
870 tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest); in mlx4_en_xmit()
871 tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2)); in mlx4_en_xmit()
/linux-4.1.27/drivers/staging/gdm72xx/
Dgdm_qos.c257 struct ethhdr *ethh = (struct ethhdr *)(skb->data + HCI_HEADER_SIZE); in gdm_qos_send_hci_pkt() local
258 struct iphdr *iph = (struct iphdr *)((char *)ethh + ETH_HLEN); in gdm_qos_send_hci_pkt()
266 if (ethh->h_proto == cpu_to_be16(ETH_P_IP)) { in gdm_qos_send_hci_pkt()
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_net.c318 struct ethhdr *ethh = NULL; in dvb_net_ule() local
708 ethh = (struct ethhdr *)priv->ule_skb->data; in dvb_net_ule()
711 memcpy(ethh->h_dest, dest_addr, ETH_ALEN); in dvb_net_ule()
712 memset(ethh->h_source, 0, ETH_ALEN); in dvb_net_ule()
715 memset( ethh, 0, ETH_ALEN*2 ); in dvb_net_ule()
717 ethh->h_proto = htons(priv->ule_sndu_type); in dvb_net_ule()
/linux-4.1.27/drivers/net/ipvlan/
Dipvlan_core.c415 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound() local
419 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound()
431 skb_pull(skb, sizeof(*ethh)); in ipvlan_process_outbound()
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_cm.c441 struct ethhdr *ethh; in form_cm_frame() local
453 ethh = (struct ethhdr *)buf; in form_cm_frame()
471 memcpy(ethh->h_dest, cm_node->rem_mac, ETH_ALEN); in form_cm_frame()
472 memcpy(ethh->h_source, cm_node->loc_mac, ETH_ALEN); in form_cm_frame()
473 ethh->h_proto = htons(0x0800); in form_cm_frame()