Home
last modified time | relevance | path

Searched refs:phyAccess (Results 1 – 3 of 3) sorted by relevance

/device/soc/hisilicon/common/platform/hieth-sf/src/
Deth_phy.c24 bool HiethGetPhyStat(struct HiethNetdevLocal *ld, EthPhyAccess *phyAccess, uint32_t *state) in HiethGetPhyStat() argument
30 phyState = HiethMdioRead(ld, phyAccess->phyAddr, PHY_BMSR); in HiethGetPhyStat()
37 phyState = HiethMdioRead(ld, phyAccess->phyAddr, PHY_BMSR); in HiethGetPhyStat()
53 int32_t MiiphyLink(struct HiethNetdevLocal *ld, EthPhyAccess *phyAccess) in MiiphyLink() argument
57 reg = HiethMdioRead(ld, phyAccess->phyAddr, PHY_BMSR); in MiiphyLink()
76 static int32_t MiiphyIs1000baseX(struct HiethNetdevLocal *ld, EthPhyAccess *phyAccess) in MiiphyIs1000baseX() argument
80 reg = HiethMdioRead(ld, phyAccess->phyAddr, PHY_EXSR); in MiiphyIs1000baseX()
92 int32_t MiiphySpeed(struct HiethNetdevLocal *ld, EthPhyAccess *phyAccess) in MiiphySpeed() argument
97 val = HiethMdioRead(ld, phyAccess->phyAddr, PHY_BMSR); in MiiphySpeed()
104 if (MiiphyIs1000baseX(ld, phyAccess)) { in MiiphySpeed()
[all …]
Dctrl.c39 static void HiethFephyUseDefaultTrim(struct HiethNetdevLocal *ld, const EthPhyAccess *phyAccess) in HiethFephyUseDefaultTrim() argument
46 val = FephyExpandedRead(ld, phyAccess->phyAddr, REG_DEF_ATE); in HiethFephyUseDefaultTrim()
56 void HiethFephyTrim(struct HiethNetdevLocal *ld, const EthPhyAccess *phyAccess) in HiethFephyTrim() argument
67 HiethFephyUseDefaultTrim(ld, phyAccess); in HiethFephyTrim()
70 val = FephyExpandedRead(ld, phyAccess->phyAddr, REG_LD_AM); in HiethFephyTrim()
72 FephyExpandedWrite(ld, phyAccess->phyAddr, REG_LD_AM, val); in HiethFephyTrim()
74 val = FephyExpandedRead(ld, phyAccess->phyAddr, REG_LDO_AM); in HiethFephyTrim()
76 FephyExpandedWrite(ld, phyAccess->phyAddr, REG_LDO_AM, val); in HiethFephyTrim()
78 val = FephyExpandedRead(ld, phyAccess->phyAddr, REG_R_TUNING); in HiethFephyTrim()
80 FephyExpandedWrite(ld, phyAccess->phyAddr, REG_R_TUNING, val); in HiethFephyTrim()
[all …]
/device/soc/hisilicon/common/platform/hieth-sf/include/internal/
Deth_phy.h105 bool HiethGetPhyStat(struct HiethNetdevLocal *pld, EthPhyAccess *phyAccess, uint32_t *state);
106 int32_t MiiphyLink(struct HiethNetdevLocal *pld, EthPhyAccess *phyAccess);
107 int32_t MiiphySpeed(struct HiethNetdevLocal *pld, EthPhyAccess *phyAccess);
108 int32_t MiiphyDuplex(struct HiethNetdevLocal *pld, EthPhyAccess *phyAccess);