Home
last modified time | relevance | path

Searched refs:eth_addr (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v4.19/drivers/net/ethernet/i825xx/
Dsni_82596.c83 u8 __iomem *eth_addr; in sni_82596_probe() local
110 eth_addr = ioremap_nocache(idprom->start, 0x10); in sni_82596_probe()
111 if (!eth_addr) in sni_82596_probe()
115 netdevice->dev_addr[0] = readb(eth_addr + 0x0b); in sni_82596_probe()
116 netdevice->dev_addr[1] = readb(eth_addr + 0x0a); in sni_82596_probe()
117 netdevice->dev_addr[2] = readb(eth_addr + 0x09); in sni_82596_probe()
118 netdevice->dev_addr[3] = readb(eth_addr + 0x08); in sni_82596_probe()
119 netdevice->dev_addr[4] = readb(eth_addr + 0x07); in sni_82596_probe()
120 netdevice->dev_addr[5] = readb(eth_addr + 0x06); in sni_82596_probe()
121 iounmap(eth_addr); in sni_82596_probe()
D82596.c255 char eth_addr[8]; member
714 memcpy(lp->sa_cmd.eth_addr, dev->dev_addr, ETH_ALEN); in init_i596_mem()
1131 char eth_addr[8]; in i82596_probe() local
1158 memcpy(eth_addr, (void *) 0xfffc1f2c, ETH_ALEN); /* YUCK! Get addr from NOVRAM */ in i82596_probe()
1172 eth_addr[i] = rtc[i * 4 + 7]; /* Stored in RTC RAM at offset 1 */ in i82596_probe()
1192 DEB(DEB_PROBE,printk(" %2.2X", dev->dev_addr[i] = eth_addr[i])); in i82596_probe()
Dlib82596.c228 char eth_addr[8]; member
609 memcpy(dma->sa_cmd.eth_addr, dev->dev_addr, ETH_ALEN); in init_i596_mem()
/Linux-v4.19/arch/um/drivers/
Dnet_user.c33 void tap_check_ips(char *gate_addr, unsigned char *eth_addr) in tap_check_ips() argument
40 (eth_addr[0] == tap_addr[0]) && in tap_check_ips()
41 (eth_addr[1] == tap_addr[1]) && in tap_check_ips()
42 (eth_addr[2] == tap_addr[2]) && in tap_check_ips()
43 (eth_addr[3] == tap_addr[3])) { in tap_check_ips()
/Linux-v4.19/drivers/net/ethernet/freescale/fman/
Dfman_tgec.h51 int tgec_add_hash_mac_address(struct fman_mac *tgec, enet_addr_t *eth_addr);
52 int tgec_del_hash_mac_address(struct fman_mac *tgec, enet_addr_t *eth_addr);
Dfman_memac.h58 int memac_add_hash_mac_address(struct fman_mac *memac, enet_addr_t *eth_addr);
59 int memac_del_hash_mac_address(struct fman_mac *memac, enet_addr_t *eth_addr);
Dfman_dtsec.h55 int dtsec_add_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr);
56 int dtsec_del_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr);
Dfman_tgec.c532 int tgec_add_hash_mac_address(struct fman_mac *tgec, enet_addr_t *eth_addr) in tgec_add_hash_mac_address() argument
542 addr = ENET_ADDR_TO_UINT64(*eth_addr); in tgec_add_hash_mac_address()
550 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in tgec_add_hash_mac_address()
612 int tgec_del_hash_mac_address(struct fman_mac *tgec, enet_addr_t *eth_addr) in tgec_del_hash_mac_address() argument
623 addr = ((*(u64 *)eth_addr) >> 16); in tgec_del_hash_mac_address()
626 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in tgec_del_hash_mac_address()
691 enet_addr_t eth_addr; in tgec_init() local
709 MAKE_ENET_ADDR_FROM_UINT64(tgec->addr, eth_addr); in tgec_init()
710 set_mac_address(tgec->regs, (u8 *)eth_addr); in tgec_init()
Dmac.h80 enet_addr_t *eth_addr);
82 enet_addr_t *eth_addr);
Dfman_memac.c488 static u32 get_mac_addr_hash_code(u64 eth_addr) in get_mac_addr_hash_code() argument
495 mask1 = eth_addr & (u64)0x01; in get_mac_addr_hash_code()
496 eth_addr >>= 1; in get_mac_addr_hash_code()
499 mask2 = eth_addr & (u64)0x01; in get_mac_addr_hash_code()
501 eth_addr >>= 1; in get_mac_addr_hash_code()
911 int memac_add_hash_mac_address(struct fman_mac *memac, enet_addr_t *eth_addr) in memac_add_hash_mac_address() argument
921 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_add_hash_mac_address()
972 int memac_del_hash_mac_address(struct fman_mac *memac, enet_addr_t *eth_addr) in memac_del_hash_mac_address() argument
983 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_del_hash_mac_address()
1032 enet_addr_t eth_addr; in memac_init() local
[all …]
Dfman_dtsec.c1056 int dtsec_add_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr) in dtsec_add_hash_mac_address() argument
1068 addr = ENET_ADDR_TO_UINT64(*eth_addr); in dtsec_add_hash_mac_address()
1078 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in dtsec_add_hash_mac_address()
1166 int dtsec_del_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr) in dtsec_del_hash_mac_address() argument
1179 addr = ENET_ADDR_TO_UINT64(*eth_addr); in dtsec_del_hash_mac_address()
1189 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in dtsec_del_hash_mac_address()
1396 enet_addr_t eth_addr; in dtsec_init() local
1413 MAKE_ENET_ADDR_FROM_UINT64(dtsec->addr, eth_addr); in dtsec_init()
1416 dtsec->max_speed, (u8 *)eth_addr, dtsec->exceptions, in dtsec_init()
/Linux-v4.19/drivers/net/ethernet/atheros/atl1e/
Datl1e_hw.c73 u8 eth_addr[ETH_ALEN]; in atl1e_get_permanent_address() local
99 *(u32 *) &eth_addr[2] = swab32(addr[0]); in atl1e_get_permanent_address()
100 *(u16 *) &eth_addr[0] = swab16(*(u16 *)&addr[1]); in atl1e_get_permanent_address()
102 if (is_valid_ether_addr(eth_addr)) { in atl1e_get_permanent_address()
103 memcpy(hw->perm_mac_addr, eth_addr, ETH_ALEN); in atl1e_get_permanent_address()
/Linux-v4.19/arch/um/include/shared/
Dnet_user.h36 extern void tap_check_ips(char *gate_addr, unsigned char *eth_addr);
/Linux-v4.19/drivers/net/ethernet/seeq/
Dsgiseeq.h25 volatile unsigned int eth_addr[6]; member
Dsgiseeq.c157 sregs->rw.eth_addr[i] = dev->dev_addr[i]; in __sgiseeq_set_mac_address()
/Linux-v4.19/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c66 static bool atl1c_read_current_addr(struct atl1c_hw *hw, u8 *eth_addr) in atl1c_read_current_addr() argument
73 *(u32 *) &eth_addr[2] = htonl(addr[0]); in atl1c_read_current_addr()
74 *(u16 *) &eth_addr[0] = htons((u16)addr[1]); in atl1c_read_current_addr()
76 return is_valid_ether_addr(eth_addr); in atl1c_read_current_addr()
/Linux-v4.19/drivers/net/ethernet/atheros/atlx/
Datl1.c440 u8 eth_addr[ETH_ALEN]; in atl1_get_permanent_address() local
473 *(u32 *) &eth_addr[2] = swab32(addr[0]); in atl1_get_permanent_address()
474 *(u16 *) &eth_addr[0] = swab16(*(u16 *) &addr[1]); in atl1_get_permanent_address()
475 if (is_valid_ether_addr(eth_addr)) { in atl1_get_permanent_address()
476 memcpy(hw->perm_mac_addr, eth_addr, ETH_ALEN); in atl1_get_permanent_address()
506 *(u32 *) &eth_addr[2] = swab32(addr[0]); in atl1_get_permanent_address()
507 *(u16 *) &eth_addr[0] = swab16(*(u16 *) &addr[1]); in atl1_get_permanent_address()
508 if (is_valid_ether_addr(eth_addr)) { in atl1_get_permanent_address()
509 memcpy(hw->perm_mac_addr, eth_addr, ETH_ALEN); in atl1_get_permanent_address()
521 *(u32 *) &eth_addr[2] = swab32(addr[0]); in atl1_get_permanent_address()
[all …]
/Linux-v4.19/drivers/net/
Dvxlan.c79 u8 eth_addr[ETH_ALEN]; member
294 send_eth = !is_zero_ether_addr(fdb->eth_addr); in vxlan_fdb_info()
308 if (send_eth && nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->eth_addr)) in vxlan_fdb_info()
396 static void vxlan_fdb_miss(struct vxlan_dev *vxlan, const u8 eth_addr[ETH_ALEN]) in vxlan_fdb_miss()
403 memcpy(f.eth_addr, eth_addr, ETH_ALEN); in vxlan_fdb_miss()
448 if (ether_addr_equal(mac, f->eth_addr)) { in __vxlan_find_mac()
654 memcpy(f->eth_addr, mac, ETH_ALEN); in vxlan_fdb_alloc()
724 if (!(is_multicast_ether_addr(f->eth_addr) || in vxlan_fdb_update()
725 is_zero_ether_addr(f->eth_addr))) { in vxlan_fdb_update()
732 (is_multicast_ether_addr(f->eth_addr) || in vxlan_fdb_update()
[all …]
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c587 u8 port, u8 *eth_addr) in t4_l2t_alloc_switching() argument
594 e = find_or_alloc_l2e(d, vlan, port, eth_addr); in t4_l2t_alloc_switching()
601 ether_addr_copy(e->dmac, eth_addr); in t4_l2t_alloc_switching()
/Linux-v4.19/net/bridge/
Dbr_forward.c298 maybe_deliver_addr(lport, skb, p->eth_addr, in br_multicast_flood()
Dbr_multicast.c735 memcpy(p->eth_addr, src, ETH_ALEN); in br_multicast_new_port_group()
737 memset(p->eth_addr, 0xff, ETH_ALEN); in br_multicast_new_port_group()
752 return ether_addr_equal(src, p->eth_addr); in br_port_group_equal()
Dbr_private.h206 unsigned char eth_addr[ETH_ALEN]; member
/Linux-v4.19/drivers/staging/ks7010/
Dks_hostif.c373 if (ether_addr_equal(&priv->eth_addr[0], eth_hdr->h_source)) { in hostif_data_indication()
482 ether_addr_copy(priv->eth_addr, priv->rxp); in hostif_mib_get_confirm()
484 ether_addr_copy(dev->dev_addr, priv->eth_addr); in hostif_mib_get_confirm()
485 netdev_info(dev, "MAC ADDRESS = %pM\n", priv->eth_addr); in hostif_mib_get_confirm()
1052 if (!ether_addr_equal(&priv->eth_addr[0], eth->h_source)) { in hostif_data_request()
2000 &priv->eth_addr[0], ETH_ALEN); in hostif_sme_execute()
Dks_wlan.h456 unsigned char eth_addr[ETH_ALEN]; member
Dks_wlan_net.c2492 ether_addr_copy(priv->eth_addr, mac_addr->sa_data); in ks_wlan_set_mac_address()
2496 netdev_info(dev, "ks_wlan: MAC ADDRESS = %pM\n", priv->eth_addr); in ks_wlan_set_mac_address()
2625 ether_addr_copy(priv->eth_addr, dummy_addr); in ks_wlan_net_start()
2626 ether_addr_copy(dev->dev_addr, priv->eth_addr); in ks_wlan_net_start()

12