Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/i825xx/
A Dsni_82596.c80 u8 __iomem *eth_addr; in sni_82596_probe() local
108 eth_addr = ioremap(idprom->start, 0x10); in sni_82596_probe()
109 if (!eth_addr) in sni_82596_probe()
113 mac[0] = readb(eth_addr + 0x0b); in sni_82596_probe()
114 mac[1] = readb(eth_addr + 0x0a); in sni_82596_probe()
115 mac[2] = readb(eth_addr + 0x09); in sni_82596_probe()
116 mac[3] = readb(eth_addr + 0x08); in sni_82596_probe()
117 mac[4] = readb(eth_addr + 0x07); in sni_82596_probe()
118 mac[5] = readb(eth_addr + 0x06); in sni_82596_probe()
120 iounmap(eth_addr); in sni_82596_probe()
A D82596.c254 char eth_addr[8]; member
713 memcpy(lp->sa_cmd.eth_addr, dev->dev_addr, ETH_ALEN); in init_i596_mem()
1127 char eth_addr[8]; in i82596_probe() local
1146 memcpy(eth_addr, absolute_pointer(0xfffc1f2c), ETH_ALEN); /* YUCK! Get addr from NOVRAM */ in i82596_probe()
1160 eth_addr[i] = rtc[i * 4 + 7]; /* Stored in RTC RAM at offset 1 */ in i82596_probe()
1180 DEB(DEB_PROBE,printk(" %2.2X", eth_addr[i])); in i82596_probe()
1181 eth_hw_addr_set(dev, eth_addr); in i82596_probe()
A Dlib82596.c227 char eth_addr[8]; member
636 memcpy(dma->sa_cmd.eth_addr, dev->dev_addr, ETH_ALEN); in init_i596_mem()
/linux/arch/um/drivers/
A 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/drivers/net/ethernet/broadcom/bnxt/
A 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)) || \
A 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/drivers/net/ethernet/freescale/fman/
A Dmac.h48 enet_addr_t *eth_addr);
50 enet_addr_t *eth_addr);
A Dfman_tgec.c487 enet_addr_t *eth_addr) in tgec_add_hash_mac_address() argument
494 addr = ENET_ADDR_TO_UINT64(*eth_addr); in tgec_add_hash_mac_address()
502 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in tgec_add_hash_mac_address()
559 enet_addr_t *eth_addr) in tgec_del_hash_mac_address() argument
567 addr = ((*(u64 *)eth_addr) >> 16); in tgec_del_hash_mac_address()
570 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in tgec_del_hash_mac_address()
620 enet_addr_t eth_addr; in tgec_init() local
636 MAKE_ENET_ADDR_FROM_UINT64(tgec->addr, eth_addr); in tgec_init()
637 set_mac_address(tgec->regs, (const u8 *)eth_addr); in tgec_init()
A Dfman_memac.c399 static u32 get_mac_addr_hash_code(u64 eth_addr) in get_mac_addr_hash_code() argument
406 mask1 = eth_addr & (u64)0x01; in get_mac_addr_hash_code()
407 eth_addr >>= 1; in get_mac_addr_hash_code()
410 mask2 = eth_addr & (u64)0x01; in get_mac_addr_hash_code()
412 eth_addr >>= 1; in get_mac_addr_hash_code()
794 enet_addr_t *eth_addr) in memac_add_hash_mac_address() argument
801 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_add_hash_mac_address()
850 enet_addr_t *eth_addr) in memac_del_hash_mac_address() argument
858 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_del_hash_mac_address()
903 enet_addr_t eth_addr; in memac_init() local
[all …]
A Dfman_dtsec.c359 enet_addr_t eth_addr; in init() local
443 MAKE_ENET_ADDR_FROM_UINT64(addr, eth_addr); in init()
444 set_mac_address(regs, (const u8 *)eth_addr); in init()
1012 enet_addr_t *eth_addr) in dtsec_add_hash_mac_address() argument
1021 addr = ENET_ADDR_TO_UINT64(*eth_addr); in dtsec_add_hash_mac_address()
1031 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in dtsec_add_hash_mac_address()
1114 enet_addr_t *eth_addr) in dtsec_del_hash_mac_address() argument
1124 addr = ENET_ADDR_TO_UINT64(*eth_addr); in dtsec_del_hash_mac_address()
1134 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in dtsec_del_hash_mac_address()
/linux/drivers/net/ethernet/atheros/atl1e/
A 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/arch/um/include/shared/
A Dnet_user.h35 extern void tap_check_ips(char *gate_addr, unsigned char *eth_addr);
/linux/drivers/net/ethernet/seeq/
A Dsgiseeq.h25 volatile unsigned int eth_addr[6]; member
A Dsgiseeq.c162 sregs->rw.eth_addr[i] = dev->dev_addr[i]; in __sgiseeq_set_mac_address()
/linux/drivers/net/vxlan/
A Dvxlan_core.c188 send_eth = !is_zero_ether_addr(fdb->eth_addr); in vxlan_fdb_info()
295 memcpy(fdb_info->eth_addr, fdb->eth_addr, ETH_ALEN); in vxlan_fdb_switchdev_notifier_info()
368 memcpy(f.eth_addr, eth_addr, ETH_ALEN); in vxlan_fdb_miss()
418 if (ether_addr_equal(mac, f->eth_addr)) { in __vxlan_find_mac()
465 u8 eth_addr[ETH_ALEN + 2] = { 0 }; in vxlan_fdb_find_uc() local
474 ether_addr_copy(eth_addr, mac); in vxlan_fdb_find_uc()
478 f = __vxlan_find_mac(vxlan, eth_addr, vni); in vxlan_fdb_find_uc()
809 memcpy(f->eth_addr, mac, ETH_ALEN); in vxlan_fdb_alloc()
1025 is_zero_ether_addr(f->eth_addr))) { in vxlan_fdb_update_existing()
1042 is_zero_ether_addr(f->eth_addr))) { in vxlan_fdb_update_existing()
[all …]
A Dvxlan_private.h34 u8 eth_addr[ETH_ALEN]; member
/linux/drivers/net/dsa/microchip/
A Dksz9477_acl.c1207 u8 *eth_addr, bool is_src) in ksz9477_acl_matching_rule_cfg_l2() argument
1214 if (eth_addr) in ksz9477_acl_matching_rule_cfg_l2()
1222 if (eth_addr) { in ksz9477_acl_matching_rule_cfg_l2()
1228 eth_addr[i]); in ksz9477_acl_matching_rule_cfg_l2()
/linux/drivers/net/ethernet/atheros/atl1c/
A 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/drivers/net/ethernet/atheros/atlx/
A 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()
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()
504 if (is_valid_ether_addr(eth_addr)) { in atl1_get_permanent_address()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
A 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/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_switchdev.c3013 ether_addr_copy(info.eth_addr, mac); in mlxsw_sp_fdb_vxlan_call_notifiers()
3410 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3419 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3424 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3567 if (is_zero_ether_addr(vxlan_fdb_info->eth_addr)) { in mlxsw_sp_switchdev_vxlan_fdb_add()
3586 if (br_fdb_find_port(br_dev, vxlan_fdb_info->eth_addr, vid) != dev) in mlxsw_sp_switchdev_vxlan_fdb_add()
3598 vxlan_fdb_info->eth_addr, vid, dev, true, in mlxsw_sp_switchdev_vxlan_fdb_add()
3639 if (is_zero_ether_addr(vxlan_fdb_info->eth_addr)) { in mlxsw_sp_switchdev_vxlan_fdb_del()
3645 mlxsw_sp_port_fdb_tunnel_uc_op(mlxsw_sp, vxlan_fdb_info->eth_addr, in mlxsw_sp_switchdev_vxlan_fdb_del()
3650 vxlan_fdb_info->eth_addr, vid, dev, false, in mlxsw_sp_switchdev_vxlan_fdb_del()
[all …]
/linux/net/bridge/
A Dbr_forward.c319 maybe_deliver_addr(lport, skb, p->eth_addr, in br_multicast_flood()
A Dbr_multicast.c290 return ether_addr_equal(src, p->eth_addr); in br_port_group_equal()
309 sg_ip, pg->eth_addr, in __fwd_add_star_excl()
507 sg->eth_addr, in br_multicast_sg_add_exclude_ports()
536 src->pg->eth_addr, MCAST_INCLUDE, false, in br_multicast_fwd_src_add()
576 if (!br_port_group_equal(p, pg->key.port, pg->eth_addr)) in br_multicast_fwd_src_remove()
1448 memcpy(p->eth_addr, src, ETH_ALEN); in br_multicast_new_port_group()
1450 eth_broadcast_addr(p->eth_addr); in br_multicast_new_port_group()
/linux/include/net/
A Dvxlan.h493 u8 eth_addr[ETH_ALEN]; member
/linux/drivers/net/ethernet/qlogic/qlcnic/
A Dqlcnic.h192 u8 eth_addr[ETH_ALEN]; member

Completed in 100 milliseconds

12