Searched refs:base_mac (Results 1 – 11 of 11) sorted by relevance
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_main.c | 125 if (memcmp(port->sw->base_mac, addr, ETH_ALEN - 1)) in prestera_is_valid_mac_addr() 333 memcpy(dev->dev_addr, sw->base_mac, dev->addr_len - 1); in prestera_port_create() 469 const char *base_mac; in prestera_switch_set_base_mac_addr() local 474 base_mac = of_get_mac_address(base_mac_np); in prestera_switch_set_base_mac_addr() 476 if (!IS_ERR(base_mac)) in prestera_switch_set_base_mac_addr() 477 ether_addr_copy(sw->base_mac, base_mac); in prestera_switch_set_base_mac_addr() 479 if (!is_valid_ether_addr(sw->base_mac)) { in prestera_switch_set_base_mac_addr() 480 eth_random_addr(sw->base_mac); in prestera_switch_set_base_mac_addr() 484 return prestera_hw_switch_mac_set(sw, sw->base_mac); in prestera_switch_set_base_mac_addr()
|
D | prestera.h | 161 char base_mac[ETH_ALEN]; member
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | minimal.c | 34 u8 base_mac[ETH_ALEN]; member 53 mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_m->base_mac); in mlxsw_m_base_mac_get() 168 0, mlxsw_m->base_mac, in mlxsw_m_port_create() 169 sizeof(mlxsw_m->base_mac)); in mlxsw_m_port_create()
|
D | spectrum.c | 287 mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_sp->base_mac); in mlxsw_sp_base_mac_get() 319 ether_addr_copy(addr, mlxsw_sp->base_mac); in mlxsw_sp_port_dev_addr_init() 1406 mlxsw_sp->base_mac, in mlxsw_sp_port_create() 1407 sizeof(mlxsw_sp->base_mac)); in mlxsw_sp_port_create() 1697 mlxsw_sp->base_mac, in mlxsw_sp_cpu_port_create() 1698 sizeof(mlxsw_sp->base_mac)); in mlxsw_sp_cpu_port_create() 2428 seed = jhash(mlxsw_sp->base_mac, sizeof(mlxsw_sp->base_mac), in mlxsw_sp_lag_init()
|
D | spectrum.h | 147 unsigned char base_mac[ETH_ALEN]; member
|
D | spectrum_router.c | 8006 seed = jhash(mlxsw_sp->base_mac, sizeof(mlxsw_sp->base_mac), 0); in mlxsw_sp_mp_hash_init()
|
D | reg.h | 70 MLXSW_ITEM_BUF(reg, spad, base_mac, 0x02, 6);
|
/drivers/net/ethernet/mscc/ |
D | ocelot_net.c | 613 ppid->id_len = sizeof(ocelot->base_mac); in ocelot_get_port_parent_id() 614 memcpy(&ppid->id, &ocelot->base_mac, ppid->id_len); in ocelot_get_port_parent_id() 1073 memcpy(dev->dev_addr, ocelot->base_mac, ETH_ALEN); in ocelot_probe_port()
|
D | ocelot_vsc7514.c | 530 eth_random_addr(ocelot->base_mac); in ocelot_chip_init() 531 ocelot->base_mac[5] &= 0xf0; in ocelot_chip_init()
|
/drivers/net/ethernet/ti/ |
D | cpsw_priv.h | 362 u8 base_mac[ETH_ALEN]; member
|
D | cpsw_new.c | 1129 ppid->id_len = sizeof(cpsw->base_mac); in cpsw_get_port_parent_id() 1130 memcpy(&ppid->id, &cpsw->base_mac, ppid->id_len); in cpsw_get_port_parent_id() 1952 eth_random_addr(cpsw->base_mac); in cpsw_probe()
|