Home
last modified time | relevance | path

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

/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()
/drivers/net/netdevsim/
A Dbus.c69 u8 eth_addr[ETH_ALEN] = {}; in new_port_store() local
79 &eth_addr[0], &eth_addr[1], &eth_addr[2], &eth_addr[3], in new_port_store()
80 &eth_addr[4], &eth_addr[5]); in new_port_store()
83 if (!is_valid_ether_addr(eth_addr)) { in new_port_store()
97 addr_set ? eth_addr : NULL); in new_port_store()
/drivers/net/ethernet/freescale/fman/
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 Dmac.h46 enet_addr_t *eth_addr);
48 enet_addr_t *eth_addr);
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()
/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()
/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()
/drivers/net/vxlan/
A Dvxlan_core.c301 memcpy(fdb_info->eth_addr, fdb->key.eth_addr, ETH_ALEN); in vxlan_fdb_switchdev_notifier_info()
374 memcpy(f.key.eth_addr, eth_addr, ETH_ALEN); in vxlan_fdb_miss()
386 memcpy(key.eth_addr, mac, sizeof(key.eth_addr)); in vxlan_find_mac_rcu()
448 u8 eth_addr[ETH_ALEN + 2] = { 0 }; in vxlan_fdb_find_uc() local
457 ether_addr_copy(eth_addr, mac); in vxlan_fdb_find_uc()
461 f = vxlan_find_mac_rcu(vxlan, eth_addr, vni); in vxlan_fdb_find_uc()
788 memcpy(f->key.eth_addr, mac, ETH_ALEN); in vxlan_fdb_alloc()
1013 is_zero_ether_addr(f->key.eth_addr))) { in vxlan_fdb_update_existing()
1030 is_zero_ether_addr(f->key.eth_addr))) { in vxlan_fdb_update_existing()
2841 f->key.eth_addr); in vxlan_cleanup()
[all …]
A Dvxlan_private.h28 u8 eth_addr[ETH_ALEN]; member
/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()
/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()
/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()
/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 …]
/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()
/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_switchdev.c3039 ether_addr_copy(info.eth_addr, mac); in mlxsw_sp_fdb_vxlan_call_notifiers()
3436 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3445 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3450 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3593 if (is_zero_ether_addr(vxlan_fdb_info->eth_addr)) { in mlxsw_sp_switchdev_vxlan_fdb_add()
3612 if (br_fdb_find_port(br_dev, vxlan_fdb_info->eth_addr, vid) != dev) in mlxsw_sp_switchdev_vxlan_fdb_add()
3624 vxlan_fdb_info->eth_addr, vid, dev, true, in mlxsw_sp_switchdev_vxlan_fdb_add()
3665 if (is_zero_ether_addr(vxlan_fdb_info->eth_addr)) { in mlxsw_sp_switchdev_vxlan_fdb_del()
3671 mlxsw_sp_port_fdb_tunnel_uc_op(mlxsw_sp, vxlan_fdb_info->eth_addr, in mlxsw_sp_switchdev_vxlan_fdb_del()
3676 vxlan_fdb_info->eth_addr, vid, dev, false, in mlxsw_sp_switchdev_vxlan_fdb_del()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
A Dqlcnic.h192 u8 eth_addr[ETH_ALEN]; member
A Dqlcnic_io.c495 memcpy(&first_desc->eth_addr, skb->data, ETH_ALEN); in qlcnic_tx_pkt()

Completed in 78 milliseconds