/linux-6.12.1/drivers/net/ethernet/wangxun/libwx/ |
D | wx_hw.c | 793 if (wx->mac_table[i].state & WX_MAC_STATE_MODIFIED) { in wx_sync_mac_table() 794 if (wx->mac_table[i].state & WX_MAC_STATE_IN_USE) { in wx_sync_mac_table() 796 wx->mac_table[i].addr, in wx_sync_mac_table() 797 wx->mac_table[i].pools, in wx_sync_mac_table() 802 wx->mac_table[i].state &= ~(WX_MAC_STATE_MODIFIED); in wx_sync_mac_table() 810 memcpy(&wx->mac_table[0].addr, addr, ETH_ALEN); in wx_mac_set_default_filter() 811 wx->mac_table[0].pools = 1ULL; in wx_mac_set_default_filter() 812 wx->mac_table[0].state = (WX_MAC_STATE_DEFAULT | WX_MAC_STATE_IN_USE); in wx_mac_set_default_filter() 813 wx_set_rar(wx, 0, wx->mac_table[0].addr, in wx_mac_set_default_filter() 814 wx->mac_table[0].pools, in wx_mac_set_default_filter() [all …]
|
D | wx_type.h | 1055 struct wx_mac_addr *mac_table; member
|
/linux-6.12.1/arch/powerpc/boot/ |
D | planetcore.c | 72 static u64 mac_table[4] = { variable 91 mac_table[i]; in planetcore_set_mac_addrs()
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 317 pf->mac_table = devm_kzalloc(pf->dev, sizeof(struct otx2_mac_table) in otx2_mcam_flow_init() 319 if (!pf->mac_table) in otx2_mcam_flow_init() 372 if (pf->mac_table[i].inuse) in otx2_do_add_macfilter() 374 ether_addr_copy(pf->mac_table[i].addr, mac); in otx2_do_add_macfilter() 375 pf->mac_table[i].inuse = true; in otx2_do_add_macfilter() 376 pf->mac_table[i].mcam_entry = in otx2_do_add_macfilter() 378 req->entry = pf->mac_table[i].mcam_entry; in otx2_do_add_macfilter() 415 if (!pf->mac_table[i].inuse) in otx2_get_mcamentry_for_mac() 418 if (ether_addr_equal(pf->mac_table[i].addr, mac)) { in otx2_get_mcamentry_for_mac() 419 *mcam_entry = pf->mac_table[i].mcam_entry; in otx2_get_mcamentry_for_mac() [all …]
|
D | otx2_common.h | 491 struct otx2_mac_table *mac_table; member
|
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.c | 962 &hdev->mac_table.uc_mac_list : &hdev->mac_table.mc_mac_list; in hclgevf_update_mac_list() 964 spin_lock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list() 973 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list() 978 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list() 984 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list() 992 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_update_mac_list() 1151 &hdev->mac_table.uc_mac_list : &hdev->mac_table.mc_mac_list; in hclgevf_sync_mac_list() 1153 spin_lock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_sync_mac_list() 1175 spin_unlock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_sync_mac_list() 1184 spin_lock_bh(&hdev->mac_table.mac_list_lock); in hclgevf_sync_mac_list() [all …]
|
D | hclgevf_main.h | 259 struct hclgevf_mac_table_cfg mac_table; member
|
/linux-6.12.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 4739 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_full_sync_mac_table() local 4743 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_full_sync_mac_table() 4744 mac_table->state &= ~IXGBE_MAC_STATE_MODIFIED; in ixgbe_full_sync_mac_table() 4746 if (mac_table->state & IXGBE_MAC_STATE_IN_USE) in ixgbe_full_sync_mac_table() 4748 mac_table->addr, in ixgbe_full_sync_mac_table() 4749 mac_table->pool, in ixgbe_full_sync_mac_table() 4759 struct ixgbe_mac_addr *mac_table = &adapter->mac_table[0]; in ixgbe_sync_mac_table() local 4763 for (i = 0; i < hw->mac.num_rar_entries; i++, mac_table++) { in ixgbe_sync_mac_table() 4764 if (!(mac_table->state & IXGBE_MAC_STATE_MODIFIED)) in ixgbe_sync_mac_table() 4767 mac_table->state &= ~IXGBE_MAC_STATE_MODIFIED; in ixgbe_sync_mac_table() [all …]
|
D | ixgbe.h | 794 struct ixgbe_mac_addr *mac_table; member
|
/linux-6.12.1/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 3643 kfree(adapter->mac_table); in igb_probe() 3896 kfree(adapter->mac_table); in igb_remove() 4068 adapter->mac_table = kcalloc(hw->mac.rar_entry_count, in igb_sw_init() 4071 if (!adapter->mac_table) in igb_sw_init() 7625 adapter->mac_table[i].state &= ~IGB_MAC_STATE_IN_USE; in igb_flush_mac_table() 7626 eth_zero_addr(adapter->mac_table[i].addr); in igb_flush_mac_table() 7627 adapter->mac_table[i].queue = 0; in igb_flush_mac_table() 7642 if (adapter->mac_table[i].state & IGB_MAC_STATE_DEFAULT) in igb_available_rars() 7646 if ((adapter->mac_table[i].state & IGB_MAC_STATE_IN_USE) && in igb_available_rars() 7647 (adapter->mac_table[i].queue != queue)) in igb_available_rars() [all …]
|
D | igb.h | 664 struct igb_mac_addr *mac_table; member
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/ |
D | port.c | 153 struct mlx4_mac_table *table = &info->mac_table; in mlx4_find_cached_mac() 185 struct mlx4_mac_table *table = &info->mac_table; in __mlx4_register_mac() 191 struct mlx4_mac_table *dup_table = &mlx4_priv(dev)->port[dup_port].mac_table; in __mlx4_register_mac() 386 struct mlx4_mac_table *dup_table = &mlx4_priv(dev)->port[dup_port].mac_table; in __mlx4_unregister_mac() 393 table = &info->mac_table; in __mlx4_unregister_mac() 477 struct mlx4_mac_table *table = &info->mac_table; in __mlx4_replace_mac() 482 struct mlx4_mac_table *dup_table = &mlx4_priv(dev)->port[dup_port].mac_table; in __mlx4_replace_mac() 844 struct mlx4_mac_table *t1 = &mlx4_priv(dev)->port[1].mac_table; in mlx4_bond_mac_table() 845 struct mlx4_mac_table *t2 = &mlx4_priv(dev)->port[2].mac_table; in mlx4_bond_mac_table() 898 struct mlx4_mac_table *t1 = &mlx4_priv(dev)->port[1].mac_table; in mlx4_unbond_mac_table() [all …]
|
D | mlx4.h | 842 struct mlx4_mac_table mac_table; member
|
D | main.c | 3105 mlx4_init_mac_table(dev, &info->mac_table); in mlx4_init_port_info()
|
/linux-6.12.1/drivers/net/ethernet/wangxun/txgbe/ |
D | txgbe_main.c | 117 memcpy(old_addr, &wx->mac_table[0].addr, netdev->addr_len); in txgbe_reset() 721 kfree(wx->mac_table); in txgbe_probe() 756 kfree(wx->mac_table); in txgbe_remove()
|
/linux-6.12.1/drivers/net/ethernet/wangxun/ngbe/ |
D | ngbe_main.c | 704 kfree(wx->mac_table); in ngbe_probe() 734 kfree(wx->mac_table); in ngbe_remove()
|
/linux-6.12.1/drivers/net/wireless/ti/wl1251/ |
D | acx.h | 348 u8 mac_table[ACX_MC_ADDRESS_GROUP_MAX_LEN]; member
|
D | acx.c | 396 memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN); in wl1251_acx_group_address_tbl()
|
/linux-6.12.1/drivers/net/wireless/ti/wlcore/ |
D | acx.h | 192 u8 mac_table[ADDRESS_GROUP_MAX_LEN]; member
|
D | acx.c | 231 memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN); in wl1271_acx_group_address_tbl()
|
/linux-6.12.1/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 1106 struct ksz_mac_table mac_table[STATIC_MAC_TABLE_ENTRIES]; member 2522 entry = &hw->ksz_switch->mac_table[i]; in sw_clr_sta_mac_table() 2540 entry = &hw->ksz_switch->mac_table[STP_ENTRY]; in sw_init_stp() 2568 entry = &hw->ksz_switch->mac_table[i]; in sw_block_addr()
|