| /drivers/net/ethernet/microchip/sparx5/ |
| A D | sparx5_netdev.c | 215 ppid->id_len = sizeof(sparx5->base_mac); in sparx5_get_port_parent_id() 216 memcpy(&ppid->id, &sparx5->base_mac, ppid->id_len); in sparx5_get_port_parent_id() 291 eth_hw_addr_gen(ndev, sparx5->base_mac, portno + 1); in sparx5_create_netdev()
|
| A D | sparx5_main.c | 951 if (of_get_mac_address(np, sparx5->base_mac)) { in mchp_sparx5_probe() 953 eth_random_addr(sparx5->base_mac); in mchp_sparx5_probe() 954 sparx5->base_mac[5] = 0; in mchp_sparx5_probe()
|
| A D | sparx5_main.h | 394 u8 base_mac[ETH_ALEN]; member
|
| /drivers/net/ethernet/marvell/prestera/ |
| A D | prestera_main.c | 458 if (memcmp(port->sw->base_mac, addr, ETH_ALEN - 1)) in prestera_is_valid_mac_addr() 662 eth_hw_addr_gen(dev, sw->base_mac, port->fp_id); in prestera_port_create() 666 if (memcmp(dev->dev_addr, sw->base_mac, ETH_ALEN - 1)) { in prestera_port_create() 668 dev_addr_mod(dev, 0, sw->base_mac, ETH_ALEN - 1); in prestera_port_create() 861 ret = of_get_mac_address(sw->np, sw->base_mac); in prestera_switch_set_base_mac_addr() 862 if (!is_valid_ether_addr(sw->base_mac) || ret) { in prestera_switch_set_base_mac_addr() 863 eth_random_addr(sw->base_mac); in prestera_switch_set_base_mac_addr() 867 return prestera_hw_switch_mac_set(sw, sw->base_mac); in prestera_switch_set_base_mac_addr()
|
| A D | prestera.h | 296 char base_mac[ETH_ALEN]; member
|
| /drivers/net/ethernet/mellanox/mlxsw/ |
| A D | minimal.c | 38 u8 base_mac[ETH_ALEN]; member 62 mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_m->base_mac); in mlxsw_m_base_mac_get() 255 0, mlxsw_m->base_mac, in mlxsw_m_port_create() 256 sizeof(mlxsw_m->base_mac)); in mlxsw_m_port_create()
|
| A D | spectrum.c | 267 mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_sp->base_mac); in mlxsw_sp_base_mac_get() 298 eth_hw_addr_gen(mlxsw_sp_port->dev, mlxsw_sp->base_mac, in mlxsw_sp_port_dev_addr_init() 1496 splittable, lanes, mlxsw_sp->base_mac, in mlxsw_sp_port_create() 1497 sizeof(mlxsw_sp->base_mac)); in mlxsw_sp_port_create() 1788 mlxsw_sp->base_mac, in mlxsw_sp_cpu_port_create() 1789 sizeof(mlxsw_sp->base_mac)); in mlxsw_sp_cpu_port_create() 2599 seed = jhash(mlxsw_sp->base_mac, sizeof(mlxsw_sp->base_mac), in mlxsw_sp_lag_init()
|
| A D | spectrum.h | 161 unsigned char base_mac[ETH_ALEN]; member
|
| A D | spectrum_router.c | 11413 seed = jhash(mlxsw_sp->base_mac, sizeof(mlxsw_sp->base_mac), 0); in mlxsw_sp_mp_hash_init()
|
| A D | reg.h | 70 MLXSW_ITEM_BUF(reg, spad, base_mac, 0x02, 6);
|
| /drivers/net/ethernet/microchip/lan966x/ |
| A D | lan966x_main.c | 453 ppid->id_len = sizeof(lan966x->base_mac); in lan966x_port_get_parent_id() 454 memcpy(&ppid->id, &lan966x->base_mac, ppid->id_len); in lan966x_port_get_parent_id() 828 eth_hw_addr_gen(dev, lan966x->base_mac, p + 1); in lan966x_probe_port() 1097 ether_addr_copy(lan966x->base_mac, mac_addr); in lan966x_probe() 1100 eth_random_addr(lan966x->base_mac); in lan966x_probe() 1101 lan966x->base_mac[5] &= 0xf0; in lan966x_probe()
|
| A D | lan966x_main.h | 280 u8 base_mac[ETH_ALEN]; member
|
| /drivers/net/ethernet/mscc/ |
| A D | ocelot_vsc7514.c | 43 eth_random_addr(ocelot->base_mac); in ocelot_chip_init() 44 ocelot->base_mac[5] &= 0xf0; in ocelot_chip_init()
|
| A D | ocelot_net.c | 175 int id_len = sizeof(ocelot->base_mac); in ocelot_port_devlink_init() 180 memcpy(attrs.switch_id.id, &ocelot->base_mac, id_len); in ocelot_port_devlink_init() 1834 eth_hw_addr_gen(dev, ocelot->base_mac, port); in ocelot_probe_port()
|
| /drivers/net/ethernet/ti/ |
| A D | cpsw_priv.h | 364 u8 base_mac[ETH_ALEN]; member
|
| A D | cpsw_new.c | 1124 ppid->id_len = sizeof(cpsw->base_mac); in cpsw_get_port_parent_id() 1125 memcpy(&ppid->id, &cpsw->base_mac, ppid->id_len); in cpsw_get_port_parent_id() 1949 eth_random_addr(cpsw->base_mac); in cpsw_probe()
|