Searched refs:eth (Results 1 - 25 of 63) sorted by relevance

123

/drivers/net/ethernet/sgi/
H A DMakefile6 obj-$(CONFIG_SGI_IOC3_ETH) += ioc3-eth.o
H A Dmeth.c111 mace->eth.mac_addr = macaddr;
118 while ((___rval = mace->eth.phy_data) & MDIO_BUSY) { \
126 mace->eth.phy_regs = (priv->phy_addr << 5) | (phyreg & 0x1f);
128 mace->eth.phy_trans_go = 1;
197 mace->eth.mac_ctrl = priv->mac_ctrl;
206 mace->eth.mac_ctrl = priv->mac_ctrl;
220 mace->eth.tx_ring_base = priv->tx_ring_dma;
241 mace->eth.rx_fifo = priv->rx_ring_dmas[i];
279 mace->eth.mac_ctrl = SGI_MAC_RESET;
281 mace->eth
[all...]
/drivers/infiniband/hw/mlx4/
H A Dah.c83 rdma_get_mcast_mac(&in6, ah->av.eth.mac);
85 memcpy(ah->av.eth.mac, ah_attr->dmac, ETH_ALEN);
90 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24));
91 ah->av.eth.gid_index = ah_attr->grh.sgid_index;
92 ah->av.eth.vlan = cpu_to_be16(vlan_tag);
94 ah->av.eth.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET;
95 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET &&
96 !(1 << ah->av.eth.stat_rate & dev->caps.stat_rate_support))
97 --ah->av.eth.stat_rate;
106 memcpy(ah->av.eth
[all...]
/drivers/infiniband/hw/ocrdma/
H A Docrdma_ah.c45 struct ocrdma_eth_vlan eth; local
49 memset(&eth, 0, sizeof(eth));
57 eth.eth_type = cpu_to_be16(0x8100);
58 eth.roce_eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE);
60 eth.vlan_tag = cpu_to_be16(vlan_tag);
64 eth.eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE);
68 memcpy(&eth.smac[0], &dev->nic_info.mac_addr[0], ETH_ALEN);
69 status = ocrdma_resolve_dmac(dev, attr, &eth.dmac[0]);
83 memcpy(&ah->av->eth_hdr, &eth, eth_s
[all...]
/drivers/net/wireless/mwifiex/
H A Dsta_rx.c39 struct ethhdr *eth; local
43 eth = (struct ethhdr *)skb->data;
44 switch (ntohs(eth->h_proto)) {
90 struct ethhdr *eth; local
115 eth = (struct ethhdr *)
123 memcpy(eth->h_source, rx_pkt_hdr->eth803_hdr.h_source,
124 sizeof(eth->h_source));
125 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest,
126 sizeof(eth->h_dest));
130 hdr_chop = (u8 *) eth
[all...]
/drivers/scsi/fnic/
H A Dfnic_fip.h60 struct ethhdr eth; member in struct:fip_vlan
/drivers/infiniband/core/
H A Dud_header.c86 { STRUCT_FIELD(eth, dmac_h),
90 { STRUCT_FIELD(eth, dmac_l),
94 { STRUCT_FIELD(eth, smac_h),
98 { STRUCT_FIELD(eth, smac_l),
102 { STRUCT_FIELD(eth, type),
253 header->eth.type = cpu_to_be16(ETH_P_8021Q);
301 &header->eth, buf + len);
/drivers/media/dvb-core/
H A Ddvb_net.c168 * stolen from eth.c out of the linux kernel, hacked for dvb-device
174 struct ethhdr *eth; local
179 eth = eth_hdr(skb);
181 if (*eth->h_dest & 1) {
182 if(ether_addr_equal(eth->h_dest,dev->broadcast))
188 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN)
189 return eth->h_proto;
594 /* Leave space for Ethernet or bridged SNDU header (eth hdr plus one MAC addr). */
814 u8 *eth; local
867 eth
[all...]
/drivers/staging/gdm724x/
H A Dgdm_lte.c105 struct ethhdr eth; local
127 memcpy(&eth, skb_in->data, sizeof(struct ethhdr));
128 mac_header_data = &eth;
225 struct ethhdr eth; local
254 memcpy(&eth, skb_in->data, sizeof(struct ethhdr));
255 if (ntohs(eth.h_proto) != ETH_P_IPV6)
257 mac_header_data = &eth;
349 struct ethhdr *eth; local
361 eth = (struct ethhdr *)skb->data;
362 if (ntohs(eth
579 struct ethhdr eth; local
[all...]
/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c846 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN);
847 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk,
849 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN);
850 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk,
852 if (spec->eth.ether_type_enable) {
853 rule_hw->eth
[all...]
/drivers/net/plip/
H A Dplip.c543 struct ethhdr *eth; local
548 eth = eth_hdr(skb);
550 if(is_multicast_ether_addr(eth->h_dest))
552 if(ether_addr_equal_64bits(eth->h_dest, dev->broadcast))
563 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN)
564 return eth->h_proto;
995 plip_rewrite_address(const struct net_device *dev, struct ethhdr *eth) argument
1005 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN);
1006 memset(eth->h_dest, 0xfc, 2);
1007 memcpy(eth
1034 struct ethhdr *eth; local
[all...]
/drivers/net/
H A Dmacvlan.c200 const struct ethhdr *eth, bool local)
208 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast))
236 const struct ethhdr *eth = eth_hdr(skb); local
251 hash = mc_hash(vlan, eth->h_dest);
259 nskb, vlan, eth,
405 const struct ethhdr *eth = eth_hdr(skb); local
414 if (is_multicast_ether_addr(eth->h_dest)) {
418 eth = eth_hdr(skb);
419 macvlan_forward_source(skb, port, eth->h_source);
420 src = macvlan_hash_lookup(port, eth
198 macvlan_broadcast_one(struct sk_buff *skb, const struct macvlan_dev *vlan, const struct ethhdr *eth, bool local) argument
476 const struct ethhdr *eth = (void *)skb->data; local
[all...]
H A Drionet.c172 struct ethhdr *eth = (struct ethhdr *)skb->data; local
183 if (is_multicast_ether_addr(eth->h_dest))
194 if (is_multicast_ether_addr(eth->h_dest)) {
206 } else if (RIONET_MAC_MATCH(eth->h_dest)) {
207 destid = RIONET_GET_DESTID(eth->h_dest);
/drivers/usb/gadget/legacy/
H A Dg_ffs.c134 int (*eth)(struct usb_configuration *c); member in struct:gfs_configuration
139 .eth = bind_rndis_config,
145 .eth = eth_bind_config,
494 if (gc->eth) {
495 ret = gc->eth(c);
/drivers/net/wireless/ath/wil6210/
H A Dtxrx.c363 struct ethhdr *eth = data; local
364 u16 *s = (u16 *)eth->h_source;
365 u16 *d = (u16 *)eth->h_dest;
586 struct ethhdr *eth = (void *)skb->data; local
590 if (is_unicast_ether_addr(eth->h_dest))
737 struct ethhdr *eth = (void *)skb->data; local
738 int cid = wil_find_cid(wil, eth->h_dest);
753 __func__, eth->h_dest, i);
769 struct ethhdr *eth = (void *)skb->data; local
772 memcpy(eth
1031 struct ethhdr *eth = (void *)skb->data; local
[all...]
/drivers/net/ethernet/
H A DMakefile54 obj-$(CONFIG_NET_NETX) += netx-eth.o
H A DKconfig133 will be called netx-eth.
/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c388 struct ethhdr eth; member in struct:fip_sol
405 memcpy(sol->eth.h_dest, fcf ? fcf->fcf_mac : fcoe_all_fcfs, ETH_ALEN);
406 memcpy(sol->eth.h_source, fip->ctl_src_addr, ETH_ALEN);
407 sol->eth.h_proto = htons(ETH_P_FIP);
540 struct ethhdr eth; member in struct:fip_kal
561 memcpy(kal->eth.h_dest, fcf->fcf_mac, ETH_ALEN);
562 memcpy(kal->eth.h_source, sa, ETH_ALEN);
563 kal->eth.h_proto = htons(ETH_P_FIP);
612 struct ethhdr eth; member in struct:fip_encaps_head
630 if (fcoe_ctlr_vn_lookup(fip, d_id, cap->eth
1992 struct ethhdr eth; member in struct:fip_frame
[all...]
/drivers/net/hamradio/
H A Dbpqether.c183 struct ethhdr *eth; local
208 eth = eth_hdr(skb);
211 !ether_addr_equal(eth->h_source, bpq->acpt_addr))
/drivers/net/wireless/ipw2x00/
H A Dlibipw_tx.c225 struct ethhdr *eth; local
228 eth = (struct ethhdr *)skb->data;
229 if (eth->h_proto != htons(ETH_P_IP))
/drivers/usb/gadget/function/
H A Df_subset.c465 struct f_gether *eth; local
467 eth = func_to_geth(f);
468 kfree(eth);
/drivers/net/ethernet/brocade/bna/
H A Dbfa_defs_cna.h108 struct bfa_port_eth_stats eth; member in union:bfa_port_stats_u
/drivers/net/wireless/brcm80211/brcmfmac/
H A Dfweh.c62 * @eth: standard ether header.
67 struct ethhdr eth; member in struct:brcmf_event
463 memcpy(event->ifaddr, event_packet->eth.h_dest, ETH_ALEN);
/drivers/isdn/i4l/
H A Disdn_net.c1354 /* This is simply a copy from std. eth.c EXCEPT we pull ETH_HLEN
1366 struct ethhdr *eth; local
1371 eth = eth_hdr(skb);
1373 if (*eth->h_dest & 1) {
1374 if (ether_addr_equal(eth->h_dest, dev->broadcast))
1385 if (!ether_addr_equal(eth->h_dest, dev->dev_addr))
1388 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN)
1389 return eth->h_proto;
1963 struct ethhdr *eth = (struct ethhdr *) skb->data; local
1969 if (eth
[all...]
/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_tx.c278 struct ethhdr *eth; local
280 eth = (struct ethhdr *)skb->data;
281 if (eth->h_proto != htons(ETH_P_IP))

Completed in 667 milliseconds

123