Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/net/ethernet/i825xx/
Dsni_82596.c80 u8 __iomem *eth_addr; in sni_82596_probe() local
107 eth_addr = ioremap(idprom->start, 0x10); in sni_82596_probe()
108 if (!eth_addr) in sni_82596_probe()
112 netdevice->dev_addr[0] = readb(eth_addr + 0x0b); in sni_82596_probe()
113 netdevice->dev_addr[1] = readb(eth_addr + 0x0a); in sni_82596_probe()
114 netdevice->dev_addr[2] = readb(eth_addr + 0x09); in sni_82596_probe()
115 netdevice->dev_addr[3] = readb(eth_addr + 0x08); in sni_82596_probe()
116 netdevice->dev_addr[4] = readb(eth_addr + 0x07); in sni_82596_probe()
117 netdevice->dev_addr[5] = readb(eth_addr + 0x06); in sni_82596_probe()
118 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()
1128 char eth_addr[8]; in i82596_probe() local
1147 memcpy(eth_addr, absolute_pointer(0xfffc1f2c), ETH_ALEN); /* YUCK! Get addr from NOVRAM */ in i82596_probe()
1161 eth_addr[i] = rtc[i * 4 + 7]; /* Stored in RTC RAM at offset 1 */ in i82596_probe()
1181 DEB(DEB_PROBE,printk(" %2.2X", eth_addr[i])); in i82596_probe()
1182 eth_hw_addr_set(dev, eth_addr); in i82596_probe()
Dlib82596.c228 char eth_addr[8]; member
637 memcpy(dma->sa_cmd.eth_addr, dev->dev_addr, ETH_ALEN); in init_i596_mem()
/Linux-v6.1/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-v6.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.h65 #define bnxt_eth_addr_key_mask_invalid(eth_addr, eth_addr_mask) \ argument
66 ((is_wildcard(&(eth_addr)[0], ETH_ALEN) && \
67 is_wildcard(&(eth_addr)[ETH_ALEN / 2], ETH_ALEN)) || \
Dbnxt_tc.c153 u16 *eth_addr, u16 *eth_addr_mask) in bnxt_fill_l2_rewrite_fields() argument
158 if (unlikely(bnxt_eth_addr_key_mask_invalid(eth_addr, eth_addr_mask))) in bnxt_fill_l2_rewrite_fields()
165 p = eth_addr; in bnxt_fill_l2_rewrite_fields()
174 p = &eth_addr[ETH_ALEN / 2]; in bnxt_fill_l2_rewrite_fields()
184 struct flow_action_entry *act, int act_idx, u8 *eth_addr, in bnxt_tc_parse_pedit() argument
207 bnxt_set_l2_key_mask(val, mask, &eth_addr[offset], in bnxt_tc_parse_pedit()
295 u16 eth_addr[ETH_ALEN] = { 0 }; in bnxt_tc_parse_actions() local
335 (u8 *)eth_addr, in bnxt_tc_parse_actions()
346 rc = bnxt_fill_l2_rewrite_fields(actions, eth_addr, in bnxt_tc_parse_actions()
/Linux-v6.1/drivers/net/ethernet/freescale/fman/
Dfman_tgec.c486 enet_addr_t *eth_addr) in tgec_add_hash_mac_address() argument
496 addr = ENET_ADDR_TO_UINT64(*eth_addr); in tgec_add_hash_mac_address()
504 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in tgec_add_hash_mac_address()
567 enet_addr_t *eth_addr) in tgec_del_hash_mac_address() argument
578 addr = ((*(u64 *)eth_addr) >> 16); in tgec_del_hash_mac_address()
581 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in tgec_del_hash_mac_address()
641 enet_addr_t eth_addr; in tgec_init() local
660 MAKE_ENET_ADDR_FROM_UINT64(tgec->addr, eth_addr); in tgec_init()
661 set_mac_address(tgec->regs, (const u8 *)eth_addr); in tgec_init()
Dfman_memac.c466 static u32 get_mac_addr_hash_code(u64 eth_addr) in get_mac_addr_hash_code() argument
473 mask1 = eth_addr & (u64)0x01; in get_mac_addr_hash_code()
474 eth_addr >>= 1; in get_mac_addr_hash_code()
477 mask2 = eth_addr & (u64)0x01; in get_mac_addr_hash_code()
479 eth_addr >>= 1; in get_mac_addr_hash_code()
863 enet_addr_t *eth_addr) in memac_add_hash_mac_address() argument
873 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_add_hash_mac_address()
925 enet_addr_t *eth_addr) in memac_del_hash_mac_address() argument
936 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_del_hash_mac_address()
985 enet_addr_t eth_addr; in memac_init() local
[all …]
Dmac.h56 enet_addr_t *eth_addr);
58 enet_addr_t *eth_addr);
Dfman_dtsec.c360 enet_addr_t eth_addr; in init() local
492 MAKE_ENET_ADDR_FROM_UINT64(addr, eth_addr); in init()
493 set_mac_address(regs, (const u8 *)eth_addr); in init()
969 enet_addr_t *eth_addr) in dtsec_add_hash_mac_address() argument
981 addr = ENET_ADDR_TO_UINT64(*eth_addr); in dtsec_add_hash_mac_address()
991 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in dtsec_add_hash_mac_address()
1080 enet_addr_t *eth_addr) in dtsec_del_hash_mac_address() argument
1093 addr = ENET_ADDR_TO_UINT64(*eth_addr); in dtsec_del_hash_mac_address()
1103 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in dtsec_del_hash_mac_address()
/Linux-v6.1/drivers/net/ethernet/atheros/atl1e/
Datl1e_hw.c60 u8 eth_addr[ETH_ALEN]; in atl1e_get_permanent_address() local
86 *(u32 *) &eth_addr[2] = swab32(addr[0]); in atl1e_get_permanent_address()
87 *(u16 *) &eth_addr[0] = swab16(*(u16 *)&addr[1]); in atl1e_get_permanent_address()
89 if (is_valid_ether_addr(eth_addr)) { in atl1e_get_permanent_address()
90 memcpy(hw->perm_mac_addr, eth_addr, ETH_ALEN); in atl1e_get_permanent_address()
/Linux-v6.1/arch/um/include/shared/
Dnet_user.h35 extern void tap_check_ips(char *gate_addr, unsigned char *eth_addr);
/Linux-v6.1/drivers/net/ethernet/seeq/
Dsgiseeq.h25 volatile unsigned int eth_addr[6]; member
/Linux-v6.1/drivers/net/vxlan/
Dvxlan_core.c235 send_eth = !is_zero_ether_addr(fdb->eth_addr); in vxlan_fdb_info()
250 if (send_eth && nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->eth_addr)) in vxlan_fdb_info()
343 memcpy(fdb_info->eth_addr, fdb->eth_addr, ETH_ALEN); in vxlan_fdb_switchdev_notifier_info()
409 static void vxlan_fdb_miss(struct vxlan_dev *vxlan, const u8 eth_addr[ETH_ALEN]) in vxlan_fdb_miss()
416 memcpy(f.eth_addr, eth_addr, ETH_ALEN); in vxlan_fdb_miss()
466 if (ether_addr_equal(mac, f->eth_addr)) { in __vxlan_find_mac()
513 u8 eth_addr[ETH_ALEN + 2] = { 0 }; in vxlan_fdb_find_uc() local
522 ether_addr_copy(eth_addr, mac); in vxlan_fdb_find_uc()
526 f = __vxlan_find_mac(vxlan, eth_addr, vni); in vxlan_fdb_find_uc()
782 memcpy(f->eth_addr, mac, ETH_ALEN); in vxlan_fdb_alloc()
[all …]
Dvxlan_private.h34 u8 eth_addr[ETH_ALEN]; member
/Linux-v6.1/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c53 static bool atl1c_read_current_addr(struct atl1c_hw *hw, u8 *eth_addr) in atl1c_read_current_addr() argument
60 *(u32 *) &eth_addr[2] = htonl(addr[0]); in atl1c_read_current_addr()
61 *(u16 *) &eth_addr[0] = htons((u16)addr[1]); in atl1c_read_current_addr()
63 return is_valid_ether_addr(eth_addr); in atl1c_read_current_addr()
/Linux-v6.1/drivers/net/ethernet/atheros/atlx/
Datl1.c421 u8 eth_addr[ETH_ALEN]; in atl1_get_permanent_address() local
454 *(u32 *) &eth_addr[2] = swab32(addr[0]); in atl1_get_permanent_address()
455 *(u16 *) &eth_addr[0] = swab16(*(u16 *) &addr[1]); in atl1_get_permanent_address()
456 if (is_valid_ether_addr(eth_addr)) { in atl1_get_permanent_address()
457 memcpy(hw->perm_mac_addr, eth_addr, ETH_ALEN); in atl1_get_permanent_address()
487 *(u32 *) &eth_addr[2] = swab32(addr[0]); in atl1_get_permanent_address()
488 *(u16 *) &eth_addr[0] = swab16(*(u16 *) &addr[1]); in atl1_get_permanent_address()
489 if (is_valid_ether_addr(eth_addr)) { in atl1_get_permanent_address()
490 memcpy(hw->perm_mac_addr, eth_addr, ETH_ALEN); in atl1_get_permanent_address()
502 *(u32 *) &eth_addr[2] = swab32(addr[0]); in atl1_get_permanent_address()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c2870 ether_addr_copy(info.eth_addr, mac); in mlxsw_sp_fdb_vxlan_call_notifiers()
3257 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3266 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3271 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3415 if (ether_addr_equal(vxlan_fdb_info->eth_addr, all_zeros_mac)) { in mlxsw_sp_switchdev_vxlan_fdb_add()
3434 if (br_fdb_find_port(br_dev, vxlan_fdb_info->eth_addr, vid) != dev) in mlxsw_sp_switchdev_vxlan_fdb_add()
3437 err = mlxsw_sp_port_fdb_tunnel_uc_op(mlxsw_sp, vxlan_fdb_info->eth_addr, in mlxsw_sp_switchdev_vxlan_fdb_add()
3446 vxlan_fdb_info->eth_addr, vid, dev, true); in mlxsw_sp_switchdev_vxlan_fdb_add()
3487 if (ether_addr_equal(vxlan_fdb_info->eth_addr, all_zeros_mac)) { in mlxsw_sp_switchdev_vxlan_fdb_del()
3493 mlxsw_sp_port_fdb_tunnel_uc_op(mlxsw_sp, vxlan_fdb_info->eth_addr, in mlxsw_sp_switchdev_vxlan_fdb_del()
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c578 u8 port, u8 *eth_addr) in t4_l2t_alloc_switching() argument
585 e = find_or_alloc_l2e(d, vlan, port, eth_addr); in t4_l2t_alloc_switching()
592 ether_addr_copy(e->dmac, eth_addr); in t4_l2t_alloc_switching()
/Linux-v6.1/drivers/staging/ks7010/
Dks_hostif.c435 if (ether_addr_equal(&priv->eth_addr[0], eth_hdr->h_source)) { in hostif_data_indication()
538 ether_addr_copy(priv->eth_addr, priv->rxp); in hostif_mib_get_confirm()
540 eth_hw_addr_set(dev, priv->eth_addr); in hostif_mib_get_confirm()
541 netdev_info(dev, "MAC ADDRESS = %pM\n", priv->eth_addr); in hostif_mib_get_confirm()
1104 if (!ether_addr_equal(&priv->eth_addr[0], eth->h_source)) { in hostif_data_request()
2055 &priv->eth_addr[0], ETH_ALEN); in hostif_sme_execute()
Dks_wlan.h456 unsigned char eth_addr[ETH_ALEN]; member
Dks_wlan_net.c2494 ether_addr_copy(priv->eth_addr, mac_addr->sa_data); in ks_wlan_set_mac_address()
2498 netdev_info(dev, "ks_wlan: MAC ADDRESS = %pM\n", priv->eth_addr); in ks_wlan_set_mac_address()
2627 ether_addr_copy(priv->eth_addr, dummy_addr); in ks_wlan_net_start()
2628 eth_hw_addr_set(dev, priv->eth_addr); in ks_wlan_net_start()
/Linux-v6.1/net/bridge/
Dbr_forward.c308 maybe_deliver_addr(lport, skb, p->eth_addr, in br_multicast_flood()
Dbr_multicast.c265 return ether_addr_equal(src, p->eth_addr); in br_port_group_equal()
284 sg_ip, pg->eth_addr, in __fwd_add_star_excl()
482 sg->eth_addr, in br_multicast_sg_add_exclude_ports()
511 src->pg->eth_addr, MCAST_INCLUDE, false, in br_multicast_fwd_src_add()
551 if (!br_port_group_equal(p, pg->key.port, pg->eth_addr)) in br_multicast_fwd_src_remove()
1312 memcpy(p->eth_addr, src, ETH_ALEN); in br_multicast_new_port_group()
1314 eth_broadcast_addr(p->eth_addr); in br_multicast_new_port_group()
/Linux-v6.1/include/net/
Dvxlan.h479 u8 eth_addr[ETH_ALEN]; member

12