Home
last modified time | relevance | path

Searched refs:phy_reg (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/dev/e1000/
H A De1000_ich8lan.c203 u16 phy_reg = 0; in e1000_phy_is_accessible_pchlan() local
210 ret_val = hw->phy.ops.read_reg_locked(hw, PHY_ID1, &phy_reg); in e1000_phy_is_accessible_pchlan()
211 if (ret_val || (phy_reg == 0xFFFF)) in e1000_phy_is_accessible_pchlan()
213 phy_id = (u32)(phy_reg << 16); in e1000_phy_is_accessible_pchlan()
215 ret_val = hw->phy.ops.read_reg_locked(hw, PHY_ID2, &phy_reg); in e1000_phy_is_accessible_pchlan()
216 if (ret_val || (phy_reg == 0xFFFF)) { in e1000_phy_is_accessible_pchlan()
220 phy_id |= (u32)(phy_reg & PHY_REVISION_MASK); in e1000_phy_is_accessible_pchlan()
229 hw->phy.revision = (u32)(phy_reg & ~PHY_REVISION_MASK); in e1000_phy_is_accessible_pchlan()
252 hw->phy.ops.read_reg_locked(hw, CV_SMB_CTRL, &phy_reg); in e1000_phy_is_accessible_pchlan()
253 phy_reg &= ~CV_SMB_CTRL_FORCE_SMBUS; in e1000_phy_is_accessible_pchlan()
[all …]
H A De1000_phy.h93 s32 e1000_enable_phy_wakeup_reg_access_bm(struct e1000_hw *hw, u16 *phy_reg);
94 s32 e1000_disable_phy_wakeup_reg_access_bm(struct e1000_hw *hw, u16 *phy_reg);
H A De1000_phy.c3333 s32 e1000_enable_phy_wakeup_reg_access_bm(struct e1000_hw *hw, u16 *phy_reg) in e1000_enable_phy_wakeup_reg_access_bm() argument
3340 if (!phy_reg) in e1000_enable_phy_wakeup_reg_access_bm()
3353 ret_val = e1000_read_phy_reg_mdic(hw, BM_WUC_ENABLE_REG, phy_reg); in e1000_enable_phy_wakeup_reg_access_bm()
3363 temp = *phy_reg; in e1000_enable_phy_wakeup_reg_access_bm()
3391 s32 e1000_disable_phy_wakeup_reg_access_bm(struct e1000_hw *hw, u16 *phy_reg) in e1000_disable_phy_wakeup_reg_access_bm() argument
3397 if (!phy_reg) in e1000_disable_phy_wakeup_reg_access_bm()
3408 ret_val = e1000_write_phy_reg_mdic(hw, BM_WUC_ENABLE_REG, *phy_reg); in e1000_disable_phy_wakeup_reg_access_bm()
3447 u16 phy_reg = 0; in e1000_access_phy_wakeup_reg_bm() local
3459 ret_val = e1000_enable_phy_wakeup_reg_access_bm(hw, &phy_reg); in e1000_access_phy_wakeup_reg_bm()
3491 ret_val = e1000_disable_phy_wakeup_reg_access_bm(hw, &phy_reg); in e1000_access_phy_wakeup_reg_bm()
/freebsd/sys/dev/igc/
H A Digc_phy.h28 s32 igc_enable_phy_wakeup_reg_access_bm(struct igc_hw *hw, u16 *phy_reg);
29 s32 igc_disable_phy_wakeup_reg_access_bm(struct igc_hw *hw, u16 *phy_reg);
/freebsd/sys/dev/fdt/
H A Dfdt_common.c383 pcell_t phy_handle, phy_reg; in fdt_get_phyaddr() local
393 if (OF_getencprop(phy_node, "reg", (void *)&phy_reg, in fdt_get_phyaddr()
394 sizeof(phy_reg)) <= 0) in fdt_get_phyaddr()
397 *phy_addr = phy_reg; in fdt_get_phyaddr()
/freebsd/sys/dev/dc/
H A Dif_dc.c655 int i, rval, phy_reg = 0; in dc_miibus_readreg() local
717 phy_reg = DC_AL_BMCR; in dc_miibus_readreg()
720 phy_reg = DC_AL_BMSR; in dc_miibus_readreg()
723 phy_reg = DC_AL_VENID; in dc_miibus_readreg()
726 phy_reg = DC_AL_DEVID; in dc_miibus_readreg()
729 phy_reg = DC_AL_ANAR; in dc_miibus_readreg()
732 phy_reg = DC_AL_LPAR; in dc_miibus_readreg()
735 phy_reg = DC_AL_ANER; in dc_miibus_readreg()
743 rval = CSR_READ_4(sc, phy_reg) & 0x0000FFFF; in dc_miibus_readreg()
750 phy_reg = CSR_READ_4(sc, DC_NETCFG); in dc_miibus_readreg()
[all …]
/freebsd/sys/dev/xilinx/
H A Dif_xae.c155 pcell_t phy_handle, phy_reg; in xae_get_phyaddr() local
163 if (OF_getencprop(phy_node, "reg", (void *)&phy_reg, in xae_get_phyaddr()
164 sizeof(phy_reg)) <= 0) in xae_get_phyaddr()
167 *phy_addr = phy_reg; in xae_get_phyaddr()
/freebsd/sys/dev/axgbe/
H A Dxgbe-phy-v2.c1055 int phy_reg; in xgbe_get_phy_id() local
1057 phy_reg = xgbe_phy_mii_read(pdata, phy_data->mdio_addr, 0x02); in xgbe_get_phy_id()
1058 if (phy_reg < 0) in xgbe_get_phy_id()
1061 phy_id1 = (phy_reg & 0xffff); in xgbe_get_phy_id()
1062 phy_data->phy_id = (phy_reg & 0xffff) << 16; in xgbe_get_phy_id()
1064 phy_reg = xgbe_phy_mii_read(pdata, phy_data->mdio_addr, 0x03); in xgbe_get_phy_id()
1065 if (phy_reg < 0) in xgbe_get_phy_id()
1068 phy_id2 = (phy_reg & 0xffff); in xgbe_get_phy_id()
1069 phy_data->phy_id |= (phy_reg & 0xffff); in xgbe_get_phy_id()