Searched refs:phy_val (Results 1 - 4 of 4) sorted by relevance
/linux-4.1.27/drivers/net/ethernet/atheros/alx/ |
H A D | hw.c | 240 u16 phy_val; alx_get_phy_config() local 252 alx_read_phy_reg(hw, ALX_MII_DBG_ADDR, &phy_val); alx_get_phy_config() 253 if (ALX_PHY_INITED == phy_val) alx_get_phy_config() 494 u16 phy_val; alx_reset_phy() local 528 alx_read_phy_dbg(hw, ALX_MIIDBG_GREENCFG2, &phy_val); alx_reset_phy() 530 phy_val & ~ALX_GREENCFG2_GATE_DFSE_EN); alx_reset_phy() 540 &phy_val); alx_reset_phy() 542 phy_val | ALX_CLDCTRL3_BP_CABLE1TH_DET_GT); alx_reset_phy() 544 alx_read_phy_dbg(hw, ALX_MIIDBG_GREENCFG2, &phy_val); alx_reset_phy() 546 phy_val | ALX_GREENCFG2_BP_GREEN); alx_reset_phy() 549 &phy_val); alx_reset_phy() 551 phy_val | ALX_CLDCTRL5_BP_VD_HLFBIAS); alx_reset_phy() 780 u16 phy_val, len, agc; alx_post_phy_link() local 790 &phy_val); alx_post_phy_link() 791 len = ALX_GET_FIELD(phy_val, ALX_CLDCTRL6_CAB_LEN); alx_post_phy_link() 792 alx_read_phy_dbg(hw, ALX_MIIDBG_AGC, &phy_val); alx_post_phy_link() 793 agc = ALX_GET_FIELD(phy_val, ALX_AGC_2_VGA); alx_post_phy_link() 804 &phy_val); alx_post_phy_link() 806 phy_val | ALX_AFE_10BT_100M_TH); alx_post_phy_link() 811 ALX_MIIEXT_AFE, &phy_val); alx_post_phy_link() 813 phy_val & ~ALX_AFE_10BT_100M_TH); alx_post_phy_link() 827 &phy_val); alx_post_phy_link() 828 ALX_SET_FIELD(phy_val, ALX_MSE20DB_TH, alx_post_phy_link() 831 phy_val); alx_post_phy_link() 836 &phy_val); alx_post_phy_link() 838 phy_val & ~ALX_AFE_10BT_100M_TH); alx_post_phy_link() 843 alx_read_phy_dbg(hw, ALX_MIIDBG_MSE20DB, &phy_val); alx_post_phy_link() 844 ALX_SET_FIELD(phy_val, ALX_MSE20DB_TH, alx_post_phy_link() 846 alx_write_phy_dbg(hw, ALX_MIIDBG_MSE20DB, phy_val); alx_post_phy_link()
|
/linux-4.1.27/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_hw.c | 832 u16 phy_val; atl1c_post_phy_linkchg() local 843 &phy_val); atl1c_post_phy_linkchg() 844 phy_val = FIELD_GETX(phy_val, CLDCTRL6_CAB_LEN); atl1c_post_phy_linkchg() 845 phy_val = phy_val > CLDCTRL6_CAB_LEN_SHORT ? atl1c_post_phy_linkchg() 847 atl1c_write_phy_dbg(hw, MIIDBG_AZ_ANADECT, phy_val); atl1c_post_phy_linkchg()
|
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_hw.c | 424 u16 phy_val; atl1e_phy_init() local 453 phy_val = 0x02ef; atl1e_phy_init() 455 /* phy_val = hw->emi_ca ? 0x02ef : 0x02df; */ atl1e_phy_init() 456 ret_val = atl1e_write_phy_reg(hw, MII_DBG_DATA, phy_val); atl1e_phy_init()
|
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/ |
H A D | atl2.c | 2680 u16 phy_val; atl2_phy_init() local 2692 atl2_read_phy_reg(hw, MII_DBG_DATA, &phy_val); atl2_phy_init() 2695 if (phy_val & 0x1000) { atl2_phy_init() 2696 phy_val &= ~0x1000; atl2_phy_init() 2697 atl2_write_phy_reg(hw, MII_DBG_DATA, phy_val); atl2_phy_init() 2790 u16 phy_val; atl2_force_ps() local 2793 atl2_read_phy_reg(hw, MII_DBG_DATA, &phy_val); atl2_force_ps() 2794 atl2_write_phy_reg(hw, MII_DBG_DATA, phy_val | 0x1000); atl2_force_ps()
|
Completed in 273 milliseconds