Home
last modified time | relevance | path

Searched refs:mac_lock (Results 1 - 25 of 84) sorted by relevance

1234

/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/
H A 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...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch-ethtool.c65 mutex_lock(&port_priv->mac_lock); in dpaa2_switch_get_link_ksettings()
70 mutex_unlock(&port_priv->mac_lock); in dpaa2_switch_get_link_ksettings()
74 mutex_unlock(&port_priv->mac_lock); in dpaa2_switch_get_link_ksettings()
109 mutex_lock(&port_priv->mac_lock); in dpaa2_switch_set_link_ksettings()
114 mutex_unlock(&port_priv->mac_lock); in dpaa2_switch_set_link_ksettings()
118 mutex_unlock(&port_priv->mac_lock); in dpaa2_switch_set_link_ksettings()
206 mutex_lock(&port_priv->mac_lock); in dpaa2_switch_ethtool_get_stats()
211 mutex_unlock(&port_priv->mac_lock); in dpaa2_switch_ethtool_get_stats()
H A Ddpaa2-ethtool.c90 mutex_lock(&priv->mac_lock); in dpaa2_eth_nway_reset()
95 mutex_unlock(&priv->mac_lock); in dpaa2_eth_nway_reset()
107 mutex_lock(&priv->mac_lock); in dpaa2_eth_get_link_ksettings()
112 mutex_unlock(&priv->mac_lock); in dpaa2_eth_get_link_ksettings()
116 mutex_unlock(&priv->mac_lock); in dpaa2_eth_get_link_ksettings()
133 mutex_lock(&priv->mac_lock); in dpaa2_eth_set_link_ksettings()
139 mutex_unlock(&priv->mac_lock); in dpaa2_eth_set_link_ksettings()
150 mutex_lock(&priv->mac_lock); in dpaa2_eth_get_pauseparam()
154 mutex_unlock(&priv->mac_lock); in dpaa2_eth_get_pauseparam()
158 mutex_unlock(&priv->mac_lock); in dpaa2_eth_get_pauseparam()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/
H A Dsmsc911x.c100 spinlock_t mac_lock; member
474 * and smsc911x_mac_write, so assumes mac_lock is held */
492 /* Fetches a MAC register value. Assumes mac_lock is acquired */
520 /* Set a mac register, mac_lock must be acquired before calling */
560 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_mii_read()
584 spin_unlock_irqrestore(&pdata->mac_lock, flags); in smsc911x_mii_read()
597 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_mii_write()
625 spin_unlock_irqrestore(&pdata->mac_lock, flags); in smsc911x_mii_write()
872 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_phy_loopbacktest()
875 spin_unlock_irqrestore(&pdata->mac_lock, flag in smsc911x_phy_loopbacktest()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/smsc/
H A Dsmsc911x.c99 spinlock_t mac_lock; member
473 * and smsc911x_mac_write, so assumes mac_lock is held */
491 /* Fetches a MAC register value. Assumes mac_lock is acquired */
519 /* Set a mac register, mac_lock must be acquired before calling */
560 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_mii_read()
584 spin_unlock_irqrestore(&pdata->mac_lock, flags); in smsc911x_mii_read()
599 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_mii_write()
627 spin_unlock_irqrestore(&pdata->mac_lock, flags); in smsc911x_mii_write()
875 spin_lock_irqsave(&pdata->mac_lock, flags); in smsc911x_phy_loopbacktest()
878 spin_unlock_irqrestore(&pdata->mac_lock, flag in smsc911x_phy_loopbacktest()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A 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...]
H A Defx_common.c161 mutex_lock(&efx->mac_lock); in efx_mac_work()
164 mutex_unlock(&efx->mac_lock); in efx_mac_work()
194 mutex_lock(&efx->mac_lock); in efx_set_mac_address()
196 mutex_unlock(&efx->mac_lock); in efx_set_mac_address()
307 mutex_lock(&efx->mac_lock); in efx_change_mtu()
310 mutex_unlock(&efx->mac_lock); in efx_change_mtu()
334 /* If the mac_lock is already held then it is likely a port in efx_monitor()
338 if (mutex_trylock(&efx->mac_lock)) { in efx_monitor()
341 mutex_unlock(&efx->mac_lock); in efx_monitor()
487 mutex_lock(&efx->mac_lock); in efx_start_port()
[all...]
H A Dethtool_common.c194 mutex_lock(&efx->mac_lock); in efx_ethtool_set_pauseparam()
239 mutex_unlock(&efx->mac_lock); in efx_ethtool_set_pauseparam()
567 mutex_lock(&efx->mac_lock); in efx_ethtool_get_link_ksettings()
569 mutex_unlock(&efx->mac_lock); in efx_ethtool_get_link_ksettings()
598 mutex_lock(&efx->mac_lock); in efx_ethtool_set_link_ksettings()
600 mutex_unlock(&efx->mac_lock); in efx_ethtool_set_link_ksettings()
610 mutex_lock(&efx->mac_lock); in efx_ethtool_get_fecparam()
612 mutex_unlock(&efx->mac_lock); in efx_ethtool_get_fecparam()
623 mutex_lock(&efx->mac_lock); in efx_ethtool_set_fecparam()
625 mutex_unlock(&efx->mac_lock); in efx_ethtool_set_fecparam()
[all...]
H A Def100_netdev.c172 mutex_lock(&efx->mac_lock); in ef100_net_open()
175 mutex_unlock(&efx->mac_lock); in ef100_net_open()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
H A 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...]
H A Defx.c980 * Callers must hold the mac_lock
987 WARN_ON(!mutex_is_locked(&efx->mac_lock)); in __ef4_reconfigure_port()
1012 mutex_lock(&efx->mac_lock); in ef4_reconfigure_port()
1014 mutex_unlock(&efx->mac_lock); in ef4_reconfigure_port()
1026 mutex_lock(&efx->mac_lock); in ef4_mac_work()
1029 mutex_unlock(&efx->mac_lock); in ef4_mac_work()
1058 mutex_lock(&efx->mac_lock); in ef4_init_port()
1075 mutex_unlock(&efx->mac_lock); in ef4_init_port()
1081 mutex_unlock(&efx->mac_lock); in ef4_init_port()
1090 mutex_lock(&efx->mac_lock); in ef4_start_port()
[all...]
H A 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()
682 mutex_lock(&efx->mac_lock); in ef4_ethtool_set_pauseparam()
727 mutex_unlock(&efx->mac_lock); in ef4_ethtool_set_pauseparam()
1287 mutex_lock(&efx->mac_lock); in ef4_ethtool_get_module_eeprom()
1289 mutex_unlock(&efx->mac_lock); in ef4_ethtool_get_module_eeprom()
1303 mutex_lock(&efx->mac_lock); in ef4_ethtool_get_module_info()
1305 mutex_unlock(&efx->mac_lock); in ef4_ethtool_get_module_info()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/
H A Dselftest.c266 mutex_lock(&efx->mac_lock); in ef4_test_phy()
268 mutex_unlock(&efx->mac_lock); in ef4_test_phy()
603 mutex_lock(&efx->mac_lock); in ef4_wait_for_link()
605 mutex_unlock(&efx->mac_lock); in ef4_wait_for_link()
608 mutex_lock(&efx->mac_lock); in ef4_wait_for_link()
612 mutex_unlock(&efx->mac_lock); in ef4_wait_for_link()
652 mutex_lock(&efx->mac_lock); in ef4_test_loopbacks()
655 mutex_unlock(&efx->mac_lock); in ef4_test_loopbacks()
758 mutex_lock(&efx->mac_lock); in ef4_selftest()
762 mutex_unlock(&efx->mac_lock); in ef4_selftest()
[all...]
H A Defx.c970 * Callers must hold the mac_lock
977 WARN_ON(!mutex_is_locked(&efx->mac_lock)); in __ef4_reconfigure_port()
1002 mutex_lock(&efx->mac_lock); in ef4_reconfigure_port()
1004 mutex_unlock(&efx->mac_lock); in ef4_reconfigure_port()
1016 mutex_lock(&efx->mac_lock); in ef4_mac_work()
1019 mutex_unlock(&efx->mac_lock); in ef4_mac_work()
1048 mutex_lock(&efx->mac_lock); in ef4_init_port()
1065 mutex_unlock(&efx->mac_lock); in ef4_init_port()
1071 mutex_unlock(&efx->mac_lock); in ef4_init_port()
1080 mutex_lock(&efx->mac_lock); in ef4_start_port()
[all...]
H A 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()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dselftest.c263 mutex_lock(&efx->mac_lock); in efx_test_phy()
265 mutex_unlock(&efx->mac_lock); in efx_test_phy()
596 mutex_lock(&efx->mac_lock); in efx_wait_for_link()
598 mutex_unlock(&efx->mac_lock); in efx_wait_for_link()
601 mutex_lock(&efx->mac_lock); in efx_wait_for_link()
605 mutex_unlock(&efx->mac_lock); in efx_wait_for_link()
645 mutex_lock(&efx->mac_lock); in efx_test_loopbacks()
648 mutex_unlock(&efx->mac_lock); in efx_test_loopbacks()
751 mutex_lock(&efx->mac_lock); in efx_selftest()
755 mutex_unlock(&efx->mac_lock); in efx_selftest()
[all...]
H A Defx_common.c158 mutex_lock(&efx->mac_lock); in efx_mac_work()
161 mutex_unlock(&efx->mac_lock); in efx_mac_work()
191 mutex_lock(&efx->mac_lock); in efx_set_mac_address()
193 mutex_unlock(&efx->mac_lock); in efx_set_mac_address()
304 mutex_lock(&efx->mac_lock); in efx_change_mtu()
307 mutex_unlock(&efx->mac_lock); in efx_change_mtu()
331 /* If the mac_lock is already held then it is likely a port in efx_monitor()
335 if (mutex_trylock(&efx->mac_lock)) { in efx_monitor()
338 mutex_unlock(&efx->mac_lock); in efx_monitor()
484 mutex_lock(&efx->mac_lock); in efx_start_port()
[all...]
H A Dethtool_common.c195 mutex_lock(&efx->mac_lock); in efx_ethtool_set_pauseparam()
240 mutex_unlock(&efx->mac_lock); in efx_ethtool_set_pauseparam()
568 mutex_lock(&efx->mac_lock); in efx_ethtool_get_link_ksettings()
570 mutex_unlock(&efx->mac_lock); in efx_ethtool_get_link_ksettings()
599 mutex_lock(&efx->mac_lock); in efx_ethtool_set_link_ksettings()
601 mutex_unlock(&efx->mac_lock); in efx_ethtool_set_link_ksettings()
611 mutex_lock(&efx->mac_lock); in efx_ethtool_get_fecparam()
613 mutex_unlock(&efx->mac_lock); in efx_ethtool_get_fecparam()
624 mutex_lock(&efx->mac_lock); in efx_ethtool_set_fecparam()
626 mutex_unlock(&efx->mac_lock); in efx_ethtool_set_fecparam()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
H A Dselftest.c264 mutex_lock(&efx->mac_lock); in efx_test_phy()
266 mutex_unlock(&efx->mac_lock); in efx_test_phy()
601 mutex_lock(&efx->mac_lock); in efx_wait_for_link()
603 mutex_unlock(&efx->mac_lock); in efx_wait_for_link()
606 mutex_lock(&efx->mac_lock); in efx_wait_for_link()
610 mutex_unlock(&efx->mac_lock); in efx_wait_for_link()
650 mutex_lock(&efx->mac_lock); in efx_test_loopbacks()
653 mutex_unlock(&efx->mac_lock); in efx_test_loopbacks()
756 mutex_lock(&efx->mac_lock); in efx_siena_selftest()
760 mutex_unlock(&efx->mac_lock); in efx_siena_selftest()
[all...]
H A 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()
335 /* If the mac_lock is already held then it is likely a port in efx_monitor()
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()
[all...]
H A 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...]
/kernel/linux/linux-5.10/drivers/net/mdio/
H A 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()
365 spin_lock_init(&pdata->mac_lock); in xgene_mdio_probe()
/kernel/linux/linux-6.6/drivers/net/mdio/
H A Dmdio-xgene.c34 spin_lock(&pdata->mac_lock); in xgene_mdio_rd_mac()
45 spin_unlock(&pdata->mac_lock); in xgene_mdio_rd_mac()
62 spin_lock(&pdata->mac_lock); in xgene_mdio_wr_mac()
74 spin_unlock(&pdata->mac_lock); in xgene_mdio_wr_mac()
364 spin_lock_init(&pdata->mac_lock); in xgene_mdio_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/
H A 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb/
H A 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()

Completed in 28 milliseconds

1234