Home
last modified time | relevance | path

Searched refs:mac_lock (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_mac.c79 lockdep_assert_held(&lan966x->mac_lock); in __lan966x_mac_learn_locked()
103 spin_lock(&lan966x->mac_lock); in __lan966x_mac_learn()
105 spin_unlock(&lan966x->mac_lock); in __lan966x_mac_learn()
149 lockdep_assert_held(&lan966x->mac_lock); in lan966x_mac_forget_locked()
168 spin_lock(&lan966x->mac_lock); in lan966x_mac_forget()
170 spin_unlock(&lan966x->mac_lock); in lan966x_mac_forget()
199 spin_lock_init(&lan966x->mac_lock); in lan966x_mac_init()
278 spin_lock(&lan966x->mac_lock); in lan966x_mac_add_entry()
280 spin_unlock(&lan966x->mac_lock); in lan966x_mac_add_entry()
292 spin_unlock(&lan966x->mac_lock); in lan966x_mac_add_entry()
[all …]
/linux-6.1.9/drivers/net/ethernet/sfc/siena/
Defx_common.c162 mutex_lock(&efx->mac_lock); in efx_mac_work()
165 mutex_unlock(&efx->mac_lock); in efx_mac_work()
195 mutex_lock(&efx->mac_lock); in efx_siena_set_mac_address()
197 mutex_unlock(&efx->mac_lock); in efx_siena_set_mac_address()
308 mutex_lock(&efx->mac_lock); in efx_siena_change_mtu()
311 mutex_unlock(&efx->mac_lock); in efx_siena_change_mtu()
339 if (mutex_trylock(&efx->mac_lock)) { in efx_monitor()
342 mutex_unlock(&efx->mac_lock); in efx_monitor()
488 mutex_lock(&efx->mac_lock); in efx_start_port()
494 mutex_unlock(&efx->mac_lock); in efx_start_port()
[all …]
Dselftest.c259 mutex_lock(&efx->mac_lock); in efx_test_phy()
261 mutex_unlock(&efx->mac_lock); in efx_test_phy()
589 mutex_lock(&efx->mac_lock); in efx_wait_for_link()
591 mutex_unlock(&efx->mac_lock); in efx_wait_for_link()
594 mutex_lock(&efx->mac_lock); in efx_wait_for_link()
598 mutex_unlock(&efx->mac_lock); in efx_wait_for_link()
638 mutex_lock(&efx->mac_lock); in efx_test_loopbacks()
641 mutex_unlock(&efx->mac_lock); in efx_test_loopbacks()
744 mutex_lock(&efx->mac_lock); in efx_siena_selftest()
748 mutex_unlock(&efx->mac_lock); in efx_siena_selftest()
[all …]
Dethtool_common.c146 mutex_lock(&efx->mac_lock); in efx_siena_ethtool_set_pauseparam()
191 mutex_unlock(&efx->mac_lock); in efx_siena_ethtool_set_pauseparam()
567 mutex_lock(&efx->mac_lock); in efx_siena_ethtool_get_link_ksettings()
569 mutex_unlock(&efx->mac_lock); in efx_siena_ethtool_get_link_ksettings()
599 mutex_lock(&efx->mac_lock); in efx_siena_ethtool_set_link_ksettings()
601 mutex_unlock(&efx->mac_lock); in efx_siena_ethtool_set_link_ksettings()
611 mutex_lock(&efx->mac_lock); in efx_siena_ethtool_get_fecparam()
613 mutex_unlock(&efx->mac_lock); in efx_siena_ethtool_get_fecparam()
624 mutex_lock(&efx->mac_lock); in efx_siena_ethtool_set_fecparam()
626 mutex_unlock(&efx->mac_lock); in efx_siena_ethtool_set_fecparam()
[all …]
Defx.c154 mutex_lock(&efx->mac_lock); in efx_init_port()
163 mutex_unlock(&efx->mac_lock); in efx_init_port()
167 mutex_unlock(&efx->mac_lock); in efx_init_port()
1174 mutex_lock(&efx->mac_lock); in efx_pm_thaw()
1176 mutex_unlock(&efx->mac_lock); in efx_pm_thaw()
/linux-6.1.9/drivers/net/ethernet/sfc/
Defx_common.c163 mutex_lock(&efx->mac_lock); in efx_mac_work()
166 mutex_unlock(&efx->mac_lock); in efx_mac_work()
196 mutex_lock(&efx->mac_lock); in efx_set_mac_address()
198 mutex_unlock(&efx->mac_lock); in efx_set_mac_address()
309 mutex_lock(&efx->mac_lock); in efx_change_mtu()
312 mutex_unlock(&efx->mac_lock); in efx_change_mtu()
340 if (mutex_trylock(&efx->mac_lock)) { in efx_monitor()
343 mutex_unlock(&efx->mac_lock); in efx_monitor()
489 mutex_lock(&efx->mac_lock); in efx_start_port()
495 mutex_unlock(&efx->mac_lock); in efx_start_port()
[all …]
Dselftest.c259 mutex_lock(&efx->mac_lock); in efx_test_phy()
261 mutex_unlock(&efx->mac_lock); in efx_test_phy()
589 mutex_lock(&efx->mac_lock); in efx_wait_for_link()
591 mutex_unlock(&efx->mac_lock); in efx_wait_for_link()
594 mutex_lock(&efx->mac_lock); in efx_wait_for_link()
598 mutex_unlock(&efx->mac_lock); in efx_wait_for_link()
638 mutex_lock(&efx->mac_lock); in efx_test_loopbacks()
641 mutex_unlock(&efx->mac_lock); in efx_test_loopbacks()
744 mutex_lock(&efx->mac_lock); in efx_selftest()
748 mutex_unlock(&efx->mac_lock); in efx_selftest()
[all …]
Dethtool_common.c203 mutex_lock(&efx->mac_lock); in efx_ethtool_set_pauseparam()
248 mutex_unlock(&efx->mac_lock); in efx_ethtool_set_pauseparam()
605 mutex_lock(&efx->mac_lock); in efx_ethtool_get_link_ksettings()
607 mutex_unlock(&efx->mac_lock); in efx_ethtool_get_link_ksettings()
636 mutex_lock(&efx->mac_lock); in efx_ethtool_set_link_ksettings()
638 mutex_unlock(&efx->mac_lock); in efx_ethtool_set_link_ksettings()
648 mutex_lock(&efx->mac_lock); in efx_ethtool_get_fecparam()
650 mutex_unlock(&efx->mac_lock); in efx_ethtool_get_fecparam()
661 mutex_lock(&efx->mac_lock); in efx_ethtool_set_fecparam()
663 mutex_unlock(&efx->mac_lock); in efx_ethtool_set_fecparam()
[all …]
Defx.c143 mutex_lock(&efx->mac_lock); in efx_init_port()
152 mutex_unlock(&efx->mac_lock); in efx_init_port()
156 mutex_unlock(&efx->mac_lock); in efx_init_port()
1205 mutex_lock(&efx->mac_lock); in efx_pm_thaw()
1207 mutex_unlock(&efx->mac_lock); in efx_pm_thaw()
Def100_netdev.c175 mutex_lock(&efx->mac_lock); in ef100_net_open()
178 mutex_unlock(&efx->mac_lock); in ef100_net_open()
Def10_sriov.c576 mutex_lock(&vf->efx->mac_lock); in efx_ef10_sriov_set_vf_vlan()
650 mutex_unlock(&vf->efx->mac_lock); in efx_ef10_sriov_set_vf_vlan()
662 mutex_unlock(&vf->efx->mac_lock); in efx_ef10_sriov_set_vf_vlan()
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/
Dselftest.c261 mutex_lock(&efx->mac_lock); in ef4_test_phy()
263 mutex_unlock(&efx->mac_lock); in ef4_test_phy()
591 mutex_lock(&efx->mac_lock); in ef4_wait_for_link()
593 mutex_unlock(&efx->mac_lock); in ef4_wait_for_link()
596 mutex_lock(&efx->mac_lock); in ef4_wait_for_link()
600 mutex_unlock(&efx->mac_lock); in ef4_wait_for_link()
640 mutex_lock(&efx->mac_lock); in ef4_test_loopbacks()
643 mutex_unlock(&efx->mac_lock); in ef4_test_loopbacks()
746 mutex_lock(&efx->mac_lock); in ef4_selftest()
750 mutex_unlock(&efx->mac_lock); in ef4_selftest()
[all …]
Defx.c978 WARN_ON(!mutex_is_locked(&efx->mac_lock)); in __ef4_reconfigure_port()
1003 mutex_lock(&efx->mac_lock); in ef4_reconfigure_port()
1005 mutex_unlock(&efx->mac_lock); in ef4_reconfigure_port()
1017 mutex_lock(&efx->mac_lock); in ef4_mac_work()
1020 mutex_unlock(&efx->mac_lock); in ef4_mac_work()
1049 mutex_lock(&efx->mac_lock); in ef4_init_port()
1066 mutex_unlock(&efx->mac_lock); in ef4_init_port()
1072 mutex_unlock(&efx->mac_lock); in ef4_init_port()
1081 mutex_lock(&efx->mac_lock); in ef4_start_port()
1087 mutex_unlock(&efx->mac_lock); in ef4_start_port()
[all …]
Dethtool.c122 mutex_lock(&efx->mac_lock); in ef4_ethtool_get_link_ksettings()
124 mutex_unlock(&efx->mac_lock); in ef4_ethtool_get_link_ksettings()
154 mutex_lock(&efx->mac_lock); in ef4_ethtool_set_link_ksettings()
156 mutex_unlock(&efx->mac_lock); in ef4_ethtool_set_link_ksettings()
692 mutex_lock(&efx->mac_lock); in ef4_ethtool_set_pauseparam()
737 mutex_unlock(&efx->mac_lock); in ef4_ethtool_set_pauseparam()
1297 mutex_lock(&efx->mac_lock); in ef4_ethtool_get_module_eeprom()
1299 mutex_unlock(&efx->mac_lock); in ef4_ethtool_get_module_eeprom()
1313 mutex_lock(&efx->mac_lock); in ef4_ethtool_get_module_info()
1315 mutex_unlock(&efx->mac_lock); in ef4_ethtool_get_module_info()
Dmdio_10g.c316 mutex_lock(&efx->mac_lock); in ef4_mdio_test_alive()
330 mutex_unlock(&efx->mac_lock); in ef4_mdio_test_alive()
/linux-6.1.9/drivers/net/ethernet/smsc/
Dsmsc911x.c100 spinlock_t mac_lock; member
561 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_mii_read()
585 spin_unlock_irqrestore(&pdata->mac_lock, flags); in smsc911x_mii_read()
600 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_mii_write()
628 spin_unlock_irqrestore(&pdata->mac_lock, flags); in smsc911x_mii_write()
876 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_phy_loopbacktest()
879 spin_unlock_irqrestore(&pdata->mac_lock, flags); in smsc911x_phy_loopbacktest()
888 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_phy_loopbacktest()
890 spin_unlock_irqrestore(&pdata->mac_lock, flags); in smsc911x_phy_loopbacktest()
896 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_phy_loopbacktest()
[all …]
Dsmsc911x.h58 lockdep_assert_held(&pdata->mac_lock)
/linux-6.1.9/drivers/net/mdio/
Dmdio-xgene.c36 spin_lock(&pdata->mac_lock); in xgene_mdio_rd_mac()
47 spin_unlock(&pdata->mac_lock); in xgene_mdio_rd_mac()
64 spin_lock(&pdata->mac_lock); in xgene_mdio_wr_mac()
76 spin_unlock(&pdata->mac_lock); in xgene_mdio_wr_mac()
366 spin_lock_init(&pdata->mac_lock); in xgene_mdio_probe()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb/
Dvsc7326.c40 spin_lock_bh(&adapter->mac_lock); in vsc_read()
60 spin_unlock_bh(&adapter->mac_lock); in vsc_read()
65 spin_lock_bh(&adapter->mac_lock); in vsc_write()
71 spin_unlock_bh(&adapter->mac_lock); in vsc_write()
/linux-6.1.9/include/linux/mdio/
Dmdio-xgene.h97 spinlock_t mac_lock; /* mac lock */ member
/linux-6.1.9/drivers/net/wireless/mediatek/mt7601u/
Dtx.c112 spin_lock_bh(&dev->mac_lock); in mt7601u_tx_status()
114 spin_unlock_bh(&dev->mac_lock); in mt7601u_tx_status()
/linux-6.1.9/drivers/net/wireless/quantenna/qtnfmac/
Dcore.h106 struct mutex mac_lock; /* lock during wmac speicific ops */ member
Dcore.c366 mutex_lock(&mac->mac_lock); in qtnf_mac_scan_finish()
373 mutex_unlock(&mac->mac_lock); in qtnf_mac_scan_finish()
437 mutex_init(&mac->mac_lock); in qtnf_core_mac_alloc()
/linux-6.1.9/drivers/net/ethernet/apm/xgene/
Dxgene_enet_hw.c274 spin_lock(&pdata->mac_lock); in xgene_enet_wr_mac()
287 spin_unlock(&pdata->mac_lock); in xgene_enet_wr_mac()
333 spin_lock(&pdata->mac_lock); in xgene_enet_rd_mac()
345 spin_unlock(&pdata->mac_lock); in xgene_enet_rd_mac()
Dxgene_enet_main.h219 spinlock_t mac_lock; /* mac lock */ member

12