/drivers/net/ethernet/i825xx/ |
D | sni_82596.c | 80 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()
|
D | 82596.c | 255 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", dev->dev_addr[i] = eth_addr[i])); in i82596_probe()
|
D | lib82596.c | 228 char eth_addr[8]; member 637 memcpy(dma->sa_cmd.eth_addr, dev->dev_addr, ETH_ALEN); in init_i596_mem()
|
/drivers/net/ethernet/freescale/fman/ |
D | fman_tgec.c | 528 int tgec_add_hash_mac_address(struct fman_mac *tgec, enet_addr_t *eth_addr) in tgec_add_hash_mac_address() argument 538 addr = ENET_ADDR_TO_UINT64(*eth_addr); in tgec_add_hash_mac_address() 546 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in tgec_add_hash_mac_address() 608 int tgec_del_hash_mac_address(struct fman_mac *tgec, enet_addr_t *eth_addr) in tgec_del_hash_mac_address() argument 619 addr = ((*(u64 *)eth_addr) >> 16); in tgec_del_hash_mac_address() 622 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in tgec_del_hash_mac_address() 687 enet_addr_t eth_addr; in tgec_init() local 706 MAKE_ENET_ADDR_FROM_UINT64(tgec->addr, eth_addr); in tgec_init() 707 set_mac_address(tgec->regs, (const u8 *)eth_addr); in tgec_init()
|
D | fman_memac.c | 492 static u32 get_mac_addr_hash_code(u64 eth_addr) in get_mac_addr_hash_code() argument 499 mask1 = eth_addr & (u64)0x01; in get_mac_addr_hash_code() 500 eth_addr >>= 1; in get_mac_addr_hash_code() 503 mask2 = eth_addr & (u64)0x01; in get_mac_addr_hash_code() 505 eth_addr >>= 1; in get_mac_addr_hash_code() 910 int memac_add_hash_mac_address(struct fman_mac *memac, enet_addr_t *eth_addr) in memac_add_hash_mac_address() argument 920 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_add_hash_mac_address() 971 int memac_del_hash_mac_address(struct fman_mac *memac, enet_addr_t *eth_addr) in memac_del_hash_mac_address() argument 982 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_del_hash_mac_address() 1031 enet_addr_t eth_addr; in memac_init() local [all …]
|
D | fman_tgec.h | 51 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);
|
D | fman_memac.h | 58 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);
|
D | fman_dtsec.h | 55 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);
|
D | mac.h | 80 enet_addr_t *eth_addr); 82 enet_addr_t *eth_addr);
|
D | fman_dtsec.c | 386 enet_addr_t eth_addr; in init() local 518 MAKE_ENET_ADDR_FROM_UINT64(addr, eth_addr); in init() 519 set_mac_address(regs, (const u8 *)eth_addr); in init() 1051 int dtsec_add_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr) in dtsec_add_hash_mac_address() argument 1063 addr = ENET_ADDR_TO_UINT64(*eth_addr); in dtsec_add_hash_mac_address() 1073 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in dtsec_add_hash_mac_address() 1161 int dtsec_del_hash_mac_address(struct fman_mac *dtsec, enet_addr_t *eth_addr) in dtsec_del_hash_mac_address() argument 1174 addr = ENET_ADDR_TO_UINT64(*eth_addr); in dtsec_del_hash_mac_address() 1184 crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN); in dtsec_del_hash_mac_address()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.h | 65 #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)) || \
|
D | bnxt_tc.c | 153 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 = ð_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, ð_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/ |
D | atl1e_hw.c | 60 u8 eth_addr[ETH_ALEN]; in atl1e_get_permanent_address() local 86 *(u32 *) ð_addr[2] = swab32(addr[0]); in atl1e_get_permanent_address() 87 *(u16 *) ð_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/ |
D | vxlan_core.c | 79 u8 eth_addr[ETH_ALEN]; member 295 send_eth = !is_zero_ether_addr(fdb->eth_addr); in vxlan_fdb_info() 310 if (send_eth && nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->eth_addr)) in vxlan_fdb_info() 403 memcpy(fdb_info->eth_addr, fdb->eth_addr, ETH_ALEN); in vxlan_fdb_switchdev_notifier_info() 469 static void vxlan_fdb_miss(struct vxlan_dev *vxlan, const u8 eth_addr[ETH_ALEN]) in vxlan_fdb_miss() 476 memcpy(f.eth_addr, eth_addr, ETH_ALEN); in vxlan_fdb_miss() 526 if (ether_addr_equal(mac, f->eth_addr)) { in __vxlan_find_mac() 573 u8 eth_addr[ETH_ALEN + 2] = { 0 }; in vxlan_fdb_find_uc() local 582 ether_addr_copy(eth_addr, mac); in vxlan_fdb_find_uc() 586 f = __vxlan_find_mac(vxlan, eth_addr, vni); in vxlan_fdb_find_uc() [all …]
|
/drivers/net/ethernet/seeq/ |
D | sgiseeq.h | 25 volatile unsigned int eth_addr[6]; member
|
D | sgiseeq.c | 162 sregs->rw.eth_addr[i] = dev->dev_addr[i]; in __sgiseeq_set_mac_address()
|
/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_hw.c | 53 static bool atl1c_read_current_addr(struct atl1c_hw *hw, u8 *eth_addr) in atl1c_read_current_addr() argument 60 *(u32 *) ð_addr[2] = htonl(addr[0]); in atl1c_read_current_addr() 61 *(u16 *) ð_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/mellanox/mlxsw/ |
D | spectrum_switchdev.c | 2497 ether_addr_copy(info.eth_addr, mac); in mlxsw_sp_fdb_vxlan_call_notifiers() 2890 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2899 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2904 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 3048 if (ether_addr_equal(vxlan_fdb_info->eth_addr, all_zeros_mac)) { in mlxsw_sp_switchdev_vxlan_fdb_add() 3067 if (br_fdb_find_port(br_dev, vxlan_fdb_info->eth_addr, vid) != dev) in mlxsw_sp_switchdev_vxlan_fdb_add() 3070 err = mlxsw_sp_port_fdb_tunnel_uc_op(mlxsw_sp, vxlan_fdb_info->eth_addr, in mlxsw_sp_switchdev_vxlan_fdb_add() 3079 vxlan_fdb_info->eth_addr, vid, dev, true); in mlxsw_sp_switchdev_vxlan_fdb_add() 3118 if (ether_addr_equal(vxlan_fdb_info->eth_addr, all_zeros_mac)) { in mlxsw_sp_switchdev_vxlan_fdb_del() 3124 mlxsw_sp_port_fdb_tunnel_uc_op(mlxsw_sp, vxlan_fdb_info->eth_addr, in mlxsw_sp_switchdev_vxlan_fdb_del() [all …]
|
/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 421 u8 eth_addr[ETH_ALEN]; in atl1_get_permanent_address() local 454 *(u32 *) ð_addr[2] = swab32(addr[0]); in atl1_get_permanent_address() 455 *(u16 *) ð_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 *) ð_addr[2] = swab32(addr[0]); in atl1_get_permanent_address() 488 *(u16 *) ð_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 *) ð_addr[2] = swab32(addr[0]); in atl1_get_permanent_address() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 578 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/staging/ks7010/ |
D | ks_hostif.c | 439 if (ether_addr_equal(&priv->eth_addr[0], eth_hdr->h_source)) { in hostif_data_indication() 542 ether_addr_copy(priv->eth_addr, priv->rxp); in hostif_mib_get_confirm() 544 ether_addr_copy(dev->dev_addr, priv->eth_addr); in hostif_mib_get_confirm() 545 netdev_info(dev, "MAC ADDRESS = %pM\n", priv->eth_addr); in hostif_mib_get_confirm() 1108 if (!ether_addr_equal(&priv->eth_addr[0], eth->h_source)) { in hostif_data_request() 2059 &priv->eth_addr[0], ETH_ALEN); in hostif_sme_execute()
|
D | ks_wlan.h | 456 unsigned char eth_addr[ETH_ALEN]; member
|
D | ks_wlan_net.c | 2496 ether_addr_copy(priv->eth_addr, mac_addr->sa_data); in ks_wlan_set_mac_address() 2500 netdev_info(dev, "ks_wlan: MAC ADDRESS = %pM\n", priv->eth_addr); in ks_wlan_set_mac_address() 2629 ether_addr_copy(priv->eth_addr, dummy_addr); in ks_wlan_net_start() 2630 ether_addr_copy(dev->dev_addr, priv->eth_addr); in ks_wlan_net_start()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic.h | 192 u8 eth_addr[ETH_ALEN]; member
|
D | qlcnic_io.c | 495 memcpy(&first_desc->eth_addr, skb->data, ETH_ALEN); in qlcnic_tx_pkt()
|