Searched refs:phy_val (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/net/ethernet/atheros/alx/ |
H A D | hw.c | 240 u16 phy_val; in alx_get_phy_config() local 252 alx_read_phy_reg(hw, ALX_MII_DBG_ADDR, &phy_val); in alx_get_phy_config() 253 if (ALX_PHY_INITED == phy_val) in alx_get_phy_config() 494 u16 phy_val; in alx_reset_phy() local 528 alx_read_phy_dbg(hw, ALX_MIIDBG_GREENCFG2, &phy_val); in alx_reset_phy() 530 phy_val & ~ALX_GREENCFG2_GATE_DFSE_EN); in alx_reset_phy() 540 &phy_val); in alx_reset_phy() 542 phy_val | ALX_CLDCTRL3_BP_CABLE1TH_DET_GT); in alx_reset_phy() 544 alx_read_phy_dbg(hw, ALX_MIIDBG_GREENCFG2, &phy_val); in alx_reset_phy() 546 phy_val | ALX_GREENCFG2_BP_GREEN); in alx_reset_phy() [all …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_hw.c | 845 u16 phy_val; in atl1c_post_phy_linkchg() local 856 &phy_val); in atl1c_post_phy_linkchg() 857 phy_val = FIELD_GETX(phy_val, CLDCTRL6_CAB_LEN); in atl1c_post_phy_linkchg() 858 phy_val = phy_val > CLDCTRL6_CAB_LEN_SHORT ? in atl1c_post_phy_linkchg() 860 atl1c_write_phy_dbg(hw, MIIDBG_AZ_ANADECT, phy_val); in atl1c_post_phy_linkchg()
|
/openbmc/u-boot/drivers/net/ |
H A D | mtk_eth.c | 543 u16 phy_addr, phy_val; in mt7530_setup() local 577 phy_val = priv->mii_read(priv, phy_addr, MII_BMCR); in mt7530_setup() 578 phy_val |= BMCR_PDOWN; in mt7530_setup() 579 priv->mii_write(priv, phy_addr, MII_BMCR, phy_val); in mt7530_setup() 628 phy_val = priv->mii_read(priv, phy_addr, MII_BMCR); in mt7530_setup() 629 phy_val &= ~BMCR_PDOWN; in mt7530_setup() 630 priv->mii_write(priv, phy_addr, MII_BMCR, phy_val); in mt7530_setup()
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_hw.c | 411 u16 phy_val; in atl1e_phy_init() local 440 phy_val = 0x02ef; in atl1e_phy_init() 443 ret_val = atl1e_write_phy_reg(hw, MII_DBG_DATA, phy_val); in atl1e_phy_init()
|
/openbmc/linux/drivers/net/ethernet/atheros/atlx/ |
H A D | atl2.c | 2624 u16 phy_val; in atl2_phy_init() local 2636 atl2_read_phy_reg(hw, MII_DBG_DATA, &phy_val); in atl2_phy_init() 2639 if (phy_val & 0x1000) { in atl2_phy_init() 2640 phy_val &= ~0x1000; in atl2_phy_init() 2641 atl2_write_phy_reg(hw, MII_DBG_DATA, phy_val); in atl2_phy_init() 2734 u16 phy_val; in atl2_force_ps() local 2737 atl2_read_phy_reg(hw, MII_DBG_DATA, &phy_val); in atl2_force_ps() 2738 atl2_write_phy_reg(hw, MII_DBG_DATA, phy_val | 0x1000); in atl2_force_ps()
|