Home
last modified time | relevance | path

Searched refs:base_mac (Results 1 - 25 of 29) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
H A Dprestera_main.c125 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()
[all...]
H A Dprestera.h161 char base_mac[ETH_ALEN]; member
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_netdev.c207 ppid->id_len = sizeof(sparx5->base_mac); in sparx5_get_port_parent_id()
208 memcpy(&ppid->id, &sparx5->base_mac, ppid->id_len); in sparx5_get_port_parent_id()
283 eth_hw_addr_gen(ndev, sparx5->base_mac, portno + 1); in sparx5_create_netdev()
H A Dsparx5_main.c843 if (of_get_mac_address(np, sparx5->base_mac)) { in mchp_sparx5_probe()
845 eth_random_addr(sparx5->base_mac); in mchp_sparx5_probe()
846 sparx5->base_mac[5] = 0; in mchp_sparx5_probe()
H A Dsparx5_main.h259 u8 base_mac[ETH_ALEN]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dminimal.c34 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()
H A Dspectrum.c287 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()
H A Dspectrum.h147 unsigned char base_mac[ETH_ALEN]; member
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/
H A Dprestera_main.c458 if (memcmp(port->sw->base_mac, addr, ETH_ALEN - 1)) in prestera_is_valid_mac_addr()
661 eth_hw_addr_gen(dev, sw->base_mac, port->fp_id); in prestera_port_create()
665 if (memcmp(dev->dev_addr, sw->base_mac, ETH_ALEN - 1)) { in prestera_port_create()
667 dev_addr_mod(dev, 0, sw->base_mac, ETH_ALEN - 1); in prestera_port_create()
860 ret = of_get_mac_address(sw->np, sw->base_mac); in prestera_switch_set_base_mac_addr()
861 if (!is_valid_ether_addr(sw->base_mac) || ret) { in prestera_switch_set_base_mac_addr()
862 eth_random_addr(sw->base_mac); in prestera_switch_set_base_mac_addr()
866 return prestera_hw_switch_mac_set(sw, sw->base_mac); in prestera_switch_set_base_mac_addr()
H A Dprestera.h296 char base_mac[ETH_ALEN]; member
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dminimal.c38 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()
240 0, mlxsw_m->base_mac, in mlxsw_m_port_create()
241 sizeof(mlxsw_m->base_mac)); in mlxsw_m_port_create()
H A Dspectrum.c369 mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_sp->base_mac); in mlxsw_sp_base_mac_get()
400 eth_hw_addr_gen(mlxsw_sp_port->dev, mlxsw_sp->base_mac, in mlxsw_sp_port_dev_addr_init()
1645 splittable, lanes, mlxsw_sp->base_mac, in mlxsw_sp_port_create()
1646 sizeof(mlxsw_sp->base_mac)); in mlxsw_sp_port_create()
1941 mlxsw_sp->base_mac, in mlxsw_sp_cpu_port_create()
1942 sizeof(mlxsw_sp->base_mac)); in mlxsw_sp_cpu_port_create()
2704 seed = jhash(mlxsw_sp->base_mac, sizeof(mlxsw_sp->base_mac), in mlxsw_sp_lag_init()
H A Dspectrum.h165 unsigned char base_mac[ETH_ALEN]; member
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_main.c447 ppid->id_len = sizeof(lan966x->base_mac); in lan966x_port_get_parent_id()
448 memcpy(&ppid->id, &lan966x->base_mac, ppid->id_len); in lan966x_port_get_parent_id()
823 eth_hw_addr_gen(dev, lan966x->base_mac, p + 1); in lan966x_probe_port()
1094 ether_addr_copy(lan966x->base_mac, mac_addr); in lan966x_probe()
1097 eth_random_addr(lan966x->base_mac); in lan966x_probe()
1098 lan966x->base_mac[5] &= 0xf0; in lan966x_probe()
H A Dlan966x_main.h327 u8 base_mac[ETH_ALEN]; member
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/
H A Docelot_vsc7514.c43 eth_random_addr(ocelot->base_mac); in ocelot_chip_init()
44 ocelot->base_mac[5] &= 0xf0; in ocelot_chip_init()
H A Docelot_net.c175 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()
1813 eth_hw_addr_gen(dev, ocelot->base_mac, port); in ocelot_probe_port()
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
H A Docelot_net.c613 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()
H A Docelot_vsc7514.c530 eth_random_addr(ocelot->base_mac); in ocelot_chip_init()
531 ocelot->base_mac[5] &= 0xf0; in ocelot_chip_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
H A Dcpsw_priv.h362 u8 base_mac[ETH_ALEN]; member
H A Dcpsw_new.c1129 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/ti/
H A Dcpsw_priv.h364 u8 base_mac[ETH_ALEN]; member
H A Dcpsw_new.c1118 ppid->id_len = sizeof(cpsw->base_mac); in cpsw_get_port_parent_id()
1119 memcpy(&ppid->id, &cpsw->base_mac, ppid->id_len); in cpsw_get_port_parent_id()
1938 eth_random_addr(cpsw->base_mac); in cpsw_probe()
/kernel/linux/linux-5.10/include/soc/mscc/
H A Docelot.h616 u8 base_mac[ETH_ALEN]; member
/kernel/linux/linux-6.6/include/soc/mscc/
H A Docelot.h823 u8 base_mac[ETH_ALEN]; member

Completed in 47 milliseconds

12