Home
last modified time | relevance | path

Searched refs:mdio_lock (Results 1 – 21 of 21) sorted by relevance

/drivers/net/phy/
Dmdio-mux.c55 mutex_lock_nested(&pb->mii_bus->mdio_lock, SINGLE_DEPTH_NESTING); in mdio_mux_read()
64 mutex_unlock(&pb->mii_bus->mdio_lock); in mdio_mux_read()
80 mutex_lock_nested(&pb->mii_bus->mdio_lock, SINGLE_DEPTH_NESTING); in mdio_mux_write()
89 mutex_unlock(&pb->mii_bus->mdio_lock); in mdio_mux_write()
Dmdio_bus.c160 mutex_init(&bus->mdio_lock); in mdiobus_register()
267 mutex_lock(&bus->mdio_lock); in mdiobus_read()
269 mutex_unlock(&bus->mdio_lock); in mdiobus_read()
292 mutex_lock(&bus->mdio_lock); in mdiobus_write()
294 mutex_unlock(&bus->mdio_lock); in mdiobus_write()
/drivers/net/ethernet/atheros/alx/
Dhw.c175 spin_lock(&hw->mdio_lock); in alx_read_phy_reg()
177 spin_unlock(&hw->mdio_lock); in alx_read_phy_reg()
186 spin_lock(&hw->mdio_lock); in alx_write_phy_reg()
188 spin_unlock(&hw->mdio_lock); in alx_write_phy_reg()
197 spin_lock(&hw->mdio_lock); in alx_read_phy_ext()
199 spin_unlock(&hw->mdio_lock); in alx_read_phy_ext()
208 spin_lock(&hw->mdio_lock); in alx_write_phy_ext()
210 spin_unlock(&hw->mdio_lock); in alx_write_phy_ext()
219 spin_lock(&hw->mdio_lock); in alx_read_phy_dbg()
221 spin_unlock(&hw->mdio_lock); in alx_read_phy_dbg()
[all …]
Dhw.h422 spinlock_t mdio_lock; member
Dmain.c1388 spin_lock_init(&alx->hw.mdio_lock); in alx_probe()
/drivers/staging/octeon/
Dethernet-rgmii.c65 mutex_lock(&priv->phydev->bus->mdio_lock); in cvm_oct_rgmii_poll()
130 mutex_unlock(&priv->phydev->bus->mdio_lock); in cvm_oct_rgmii_poll()
170 mutex_unlock(&priv->phydev->bus->mdio_lock); in cvm_oct_rgmii_poll()
/drivers/net/ethernet/freescale/
Dxgmac_mdio.c180 mutex_lock(&bus->mdio_lock); in xgmac_mdio_reset()
187 mutex_unlock(&bus->mdio_lock); in xgmac_mdio_reset()
Dfsl_pq_mdio.c166 mutex_lock(&bus->mdio_lock); in fsl_pq_mdio_reset()
178 mutex_unlock(&bus->mdio_lock); in fsl_pq_mdio_reset()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c139 spin_lock_irqsave(&adapter->mdio_lock, flags); in atl1e_phy_config()
141 spin_unlock_irqrestore(&adapter->mdio_lock, flags); in atl1e_phy_config()
223 spin_lock_irqsave(&adapter->mdio_lock, flags); in atl1e_link_chg_task()
225 spin_unlock_irqrestore(&adapter->mdio_lock, flags); in atl1e_link_chg_task()
234 spin_lock(&adapter->mdio_lock); in atl1e_link_chg_event()
237 spin_unlock(&adapter->mdio_lock); in atl1e_link_chg_event()
463 spin_lock_irqsave(&adapter->mdio_lock, flags); in atl1e_mii_ioctl()
497 spin_unlock_irqrestore(&adapter->mdio_lock, flags); in atl1e_mii_ioctl()
618 spin_lock_init(&adapter->mdio_lock); in atl1e_sw_init()
1203 spin_lock(&adapter->mdio_lock); in atl1e_clear_phy_int()
[all …]
Datl1e.h445 spinlock_t mdio_lock; member
/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c233 spin_lock_irqsave(&adapter->mdio_lock, flags); in atl1c_phy_config()
235 spin_unlock_irqrestore(&adapter->mdio_lock, flags); in atl1c_phy_config()
255 spin_lock_irqsave(&adapter->mdio_lock, flags); in atl1c_check_link_status()
259 spin_unlock_irqrestore(&adapter->mdio_lock, flags); in atl1c_check_link_status()
275 spin_lock_irqsave(&adapter->mdio_lock, flags); in atl1c_check_link_status()
277 spin_unlock_irqrestore(&adapter->mdio_lock, flags); in atl1c_check_link_status()
308 spin_lock(&adapter->mdio_lock); in atl1c_link_chg_event()
311 spin_unlock(&adapter->mdio_lock); in atl1c_link_chg_event()
590 spin_lock_irqsave(&adapter->mdio_lock, flags); in atl1c_mii_ioctl()
624 spin_unlock_irqrestore(&adapter->mdio_lock, flags); in atl1c_mii_ioctl()
[all …]
Datl1c.h542 spinlock_t mdio_lock; member
/drivers/net/ethernet/xscale/
Dixp4xx_eth.c252 static spinlock_t mdio_lock; variable
482 spin_lock_irqsave(&mdio_lock, flags); in ixp4xx_mdio_read()
484 spin_unlock_irqrestore(&mdio_lock, flags); in ixp4xx_mdio_read()
498 spin_lock_irqsave(&mdio_lock, flags); in ixp4xx_mdio_write()
500 spin_unlock_irqrestore(&mdio_lock, flags); in ixp4xx_mdio_write()
528 spin_lock_init(&mdio_lock); in ixp4xx_mdio_register()
/drivers/net/ethernet/sfc/
Dfalcon.c727 mutex_lock(&nic_data->mdio_lock); in falcon_mdio_write()
763 mutex_unlock(&nic_data->mdio_lock); in falcon_mdio_write()
776 mutex_lock(&nic_data->mdio_lock); in falcon_mdio_read()
815 mutex_unlock(&nic_data->mdio_lock); in falcon_mdio_read()
843 mutex_init(&nic_data->mdio_lock); in falcon_probe_port()
Dnic.h131 struct mutex mdio_lock; member
/drivers/net/ethernet/chelsio/cxgb3/
Dadapter.h264 struct mutex mdio_lock; member
Dt3_hw.c217 mutex_lock(&adapter->mdio_lock); in t3_mi1_read()
224 mutex_unlock(&adapter->mdio_lock); in t3_mi1_read()
236 mutex_lock(&adapter->mdio_lock); in t3_mi1_write()
242 mutex_unlock(&adapter->mdio_lock); in t3_mi1_write()
279 mutex_lock(&adapter->mdio_lock); in mi1_ext_read()
288 mutex_unlock(&adapter->mdio_lock); in mi1_ext_read()
299 mutex_lock(&adapter->mdio_lock); in mi1_ext_write()
307 mutex_unlock(&adapter->mdio_lock); in mi1_ext_write()
Dcxgb3_main.c3258 mutex_init(&adapter->mdio_lock); in init_one()
/drivers/net/ethernet/ibm/emac/
Dcore.h201 struct mutex mdio_lock; member
Dcore.c791 mutex_lock(&dev->mdio_lock); in __emac_mdio_read()
851 mutex_unlock(&dev->mdio_lock); in __emac_mdio_read()
863 mutex_lock(&dev->mdio_lock); in __emac_mdio_write()
914 mutex_unlock(&dev->mdio_lock); in __emac_mdio_write()
2758 mutex_init(&dev->mdio_lock); in emac_probe()
/drivers/net/ethernet/intel/
De100.c630 spinlock_t mdio_lock; member
957 spin_lock_irqsave(&nic->mdio_lock, flags); in mdio_ctrl_hw()
965 spin_unlock_irqrestore(&nic->mdio_lock, flags); in mdio_ctrl_hw()
975 spin_unlock_irqrestore(&nic->mdio_lock, flags); in mdio_ctrl_hw()
2919 spin_lock_init(&nic->mdio_lock); in e100_probe()