| /OK3568_Linux_fs/kernel/drivers/net/ethernet/i825xx/ |
| H A 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()
|
| H A 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() 1131 char eth_addr[8]; in i82596_probe() local 1158 memcpy(eth_addr, absolute_pointer(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()
|
| /OK3568_Linux_fs/u-boot/include/configs/ |
| H A D | tam3517-common.h | 291 unsigned char eth_addr[4][8]; member 310 for (i = 0 ; i < ARRAY_SIZE((info)->eth_addr); i++) { \ 312 (info)->eth_addr[i][5], \ 313 (info)->eth_addr[i][4], \ 314 (info)->eth_addr[i][3], \ 315 (info)->eth_addr[i][2], \ 316 (info)->eth_addr[i][1], \ 317 (info)->eth_addr[i][0]); \
|
| /OK3568_Linux_fs/kernel/arch/um/drivers/ |
| H A D | net_user.c | 33 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()
|
| /OK3568_Linux_fs/u-boot/board/technexion/twister/ |
| H A D | twister.c | 91 char *eth_addr; in misc_init_r() local 97 eth_addr = env_get("ethaddr"); in misc_init_r() 98 if (eth_addr) in misc_init_r()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/fman/ |
| H A 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, (u8 *)eth_addr); in tgec_init()
|
| H A D | fman_memac.c | 488 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() 906 int memac_add_hash_mac_address(struct fman_mac *memac, enet_addr_t *eth_addr) in memac_add_hash_mac_address() argument 916 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_add_hash_mac_address() 967 int memac_del_hash_mac_address(struct fman_mac *memac, enet_addr_t *eth_addr) in memac_del_hash_mac_address() argument 978 addr = ENET_ADDR_TO_UINT64(*eth_addr); in memac_del_hash_mac_address() 1027 enet_addr_t eth_addr; in memac_init() local [all …]
|
| H A 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);
|
| H A 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);
|
| H A 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);
|
| H A D | mac.h | 80 enet_addr_t *eth_addr); 82 enet_addr_t *eth_addr);
|
| H A 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, (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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/bnxt/ |
| H A 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)) || \
|
| H A D | bnxt_tc.c | 152 u16 *eth_addr, u16 *eth_addr_mask) in bnxt_fill_l2_rewrite_fields() argument 157 if (unlikely(bnxt_eth_addr_key_mask_invalid(eth_addr, eth_addr_mask))) in bnxt_fill_l2_rewrite_fields() 164 p = eth_addr; in bnxt_fill_l2_rewrite_fields() 173 p = ð_addr[ETH_ALEN / 2]; in bnxt_fill_l2_rewrite_fields() 183 struct flow_action_entry *act, int act_idx, u8 *eth_addr, in bnxt_tc_parse_pedit() argument 206 bnxt_set_l2_key_mask(val, mask, ð_addr[offset], in bnxt_tc_parse_pedit() 294 u16 eth_addr[ETH_ALEN] = { 0 }; in bnxt_tc_parse_actions() local 334 (u8 *)eth_addr, in bnxt_tc_parse_actions() 345 rc = bnxt_fill_l2_rewrite_fields(actions, eth_addr, in bnxt_tc_parse_actions()
|
| /OK3568_Linux_fs/u-boot/board/logicpd/zoom1/ |
| H A D | zoom1.c | 130 uchar eth_addr[6]; in board_eth_init() local 133 if (!eth_env_get_enetaddr(STR_ENV_ETHADDR, eth_addr)) { in board_eth_init()
|
| /OK3568_Linux_fs/u-boot/board/teejet/mt_ventoux/ |
| H A D | mt_ventoux.c | 255 char *eth_addr; in misc_init_r() local 264 eth_addr = env_get("ethaddr"); in misc_init_r() 265 if (!eth_addr) in misc_init_r()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/atheros/atl1e/ |
| H A 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()
|
| /OK3568_Linux_fs/u-boot/board/ti/evm/ |
| H A D | evm.c | 307 uchar eth_addr[6]; in board_eth_init() local 311 if (!eth_env_get_enetaddr(STR_ENV_ETHADDR, eth_addr)) { in board_eth_init()
|
| /OK3568_Linux_fs/kernel/drivers/net/ |
| H A D | vxlan.c | 78 u8 eth_addr[ETH_ALEN]; member 294 send_eth = !is_zero_ether_addr(fdb->eth_addr); in vxlan_fdb_info() 309 if (send_eth && nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->eth_addr)) in vxlan_fdb_info() 402 memcpy(fdb_info->eth_addr, fdb->eth_addr, ETH_ALEN); in vxlan_fdb_switchdev_notifier_info() 468 static void vxlan_fdb_miss(struct vxlan_dev *vxlan, const u8 eth_addr[ETH_ALEN]) in vxlan_fdb_miss() 475 memcpy(f.eth_addr, eth_addr, ETH_ALEN); in vxlan_fdb_miss() 525 if (ether_addr_equal(mac, f->eth_addr)) { in __vxlan_find_mac() 572 u8 eth_addr[ETH_ALEN + 2] = { 0 }; in vxlan_fdb_find_uc() local 581 ether_addr_copy(eth_addr, mac); in vxlan_fdb_find_uc() 585 f = __vxlan_find_mac(vxlan, eth_addr, vni); in vxlan_fdb_find_uc() [all …]
|
| /OK3568_Linux_fs/kernel/arch/um/include/shared/ |
| H A D | net_user.h | 36 extern void tap_check_ips(char *gate_addr, unsigned char *eth_addr);
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/seeq/ |
| H A D | sgiseeq.h | 25 volatile unsigned int eth_addr[6]; member
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/atheros/atl1c/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_switchdev.c | 2378 ether_addr_copy(info.eth_addr, mac); in mlxsw_sp_fdb_vxlan_call_notifiers() 2771 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2780 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2785 vxlan_fdb_info.eth_addr, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2928 if (ether_addr_equal(vxlan_fdb_info->eth_addr, all_zeros_mac)) { in mlxsw_sp_switchdev_vxlan_fdb_add() 2947 if (br_fdb_find_port(br_dev, vxlan_fdb_info->eth_addr, vid) != dev) in mlxsw_sp_switchdev_vxlan_fdb_add() 2950 err = mlxsw_sp_port_fdb_tunnel_uc_op(mlxsw_sp, vxlan_fdb_info->eth_addr, in mlxsw_sp_switchdev_vxlan_fdb_add() 2959 vxlan_fdb_info->eth_addr, vid, dev, true); in mlxsw_sp_switchdev_vxlan_fdb_add() 2998 if (ether_addr_equal(vxlan_fdb_info->eth_addr, all_zeros_mac)) { in mlxsw_sp_switchdev_vxlan_fdb_del() 3004 mlxsw_sp_port_fdb_tunnel_uc_op(mlxsw_sp, vxlan_fdb_info->eth_addr, in mlxsw_sp_switchdev_vxlan_fdb_del() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/atheros/atlx/ |
| H A 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 …]
|
| /OK3568_Linux_fs/u-boot/board/renesas/blanche/ |
| H A D | blanche.c | 417 uchar eth_addr[6]; in board_eth_init() local 421 if (!eth_env_get_enetaddr(STR_ENV_ETHADDR, eth_addr)) { in board_eth_init()
|