| /bsp/frdm-k64f/board/ |
| A D | fsl_phy.c | 65 status_t PHY_Init(ENET_Type *base, uint32_t phyAddr, uint32_t srcClock_Hz) in PHY_Init() argument 82 PHY_Read(base, phyAddr, PHY_ID1_REG, &idReg); in PHY_Init() 97 result = PHY_Write(base, phyAddr, PHY_AUTONEG_ADVERTISE_REG, in PHY_Init() 102 result = PHY_Write(base, phyAddr, PHY_BASICCONTROL_REG, in PHY_Init() 171 ENET_StartSMIRead(base, phyAddr, phyReg, kENET_MiiReadValidFrame); in PHY_Read() 208 result = PHY_Read(base, phyAddr, PHY_BASICCONTROL_REG, &data); in PHY_EnableLoopback() 217 result = PHY_Read(base, phyAddr, PHY_CONTROL2_REG, &data); in PHY_EnableLoopback() 230 result = PHY_Read(base, phyAddr, PHY_BASICCONTROL_REG, &data); in PHY_EnableLoopback() 239 result = PHY_Read(base, phyAddr, PHY_CONTROL2_REG, &data); in PHY_EnableLoopback() 257 result = PHY_Read(base, phyAddr, PHY_BASICSTATUS_REG, &data); in PHY_GetLinkStatus() [all …]
|
| A D | fsl_phy.h | 141 status_t PHY_Init(ENET_Type *base, uint32_t phyAddr, uint32_t srcClock_Hz); 154 status_t PHY_Write(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t data); 167 status_t PHY_Read(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t *dataPtr); 181 status_t PHY_EnableLoopback(ENET_Type *base, uint32_t phyAddr, phy_loop_t mode, bool enable); 194 status_t PHY_GetLinkStatus(ENET_Type *base, uint32_t phyAddr, bool *status); 206 status_t PHY_GetLinkSpeedDuplex(ENET_Type *base, uint32_t phyAddr, phy_speed_t *speed, phy_duplex_t…
|
| A D | drv_emac.c | 160 uint32_t phyAddr = 0; in k64_emac_init() local 188 if (PHY_GetLinkStatus(ENET, phyAddr, &link) == kStatus_Success) in k64_emac_init() 194 PHY_GetLinkSpeedDuplex(ENET, phyAddr, &phy_speed, &phy_duplex); in k64_emac_init()
|
| /bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/ |
| A D | fsl_phy.c | 69 status_t PHY_Init(ENET_Type *base, uint32_t phyAddr, uint32_t srcClock_Hz) in PHY_Init() argument 89 PHY_Read(base, phyAddr, PHY_ID1_REG, &idReg); in PHY_Init() 100 PHY_Write(base, phyAddr, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_Init() 103 PHY_Read(base, phyAddr, PHY_BASICCONTROL_REG, ®); in PHY_Init() 119 PHY_Read(base, phyAddr, PHY_SEPCIAL_CONTROL_REG, ®); in PHY_Init() 161 ENET_StartSMIWrite(base, phyAddr, phyReg, data); in PHY_Write() 179 ENET_StartSMIRead(base, phyAddr, phyReg, kENET_MiiReadValidFrame); in PHY_Read() 202 ENET_StartSMIRead(base, phyAddr, phyReg); in PHY_Read() 210 status_t PHY_GetLinkStatus(ENET_Type *base, uint32_t phyAddr, bool *status) in PHY_GetLinkStatus() argument 216 result = PHY_Read(base, phyAddr, PHY_BASICSTATUS_REG, ®); in PHY_GetLinkStatus() [all …]
|
| A D | fsl_phy.h | 122 status_t PHY_Init(ENET_Type *base, uint32_t phyAddr, uint32_t srcClock_Hz); 135 status_t PHY_Write(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t data); 148 status_t PHY_Read(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t *dataPtr); 161 status_t PHY_GetLinkStatus(ENET_Type *base, uint32_t phyAddr, bool *status); 173 status_t PHY_GetLinkSpeedDuplex(ENET_Type *base, uint32_t phyAddr, phy_speed_t *speed, phy_duplex_t…
|
| A D | drv_emac.c | 82 uint32_t phyAddr; member 280 status = PHY_Init(lpc_emac_device.base, lpc_emac_device.phyAddr, 0); in lpc_emac_phy_init() 295 PHY_GetLinkStatus(lpc_emac_device.base, lpc_emac_device.phyAddr, &link); in lpc_emac_phy_init() 304 PHY_GetLinkStatus(lpc_emac_device.base, lpc_emac_device.phyAddr, &link); in lpc_emac_phy_init() 307 PHY_GetLinkSpeedDuplex(lpc_emac_device.base, lpc_emac_device.phyAddr, speed, duplex); in lpc_emac_phy_init() 514 lpc_emac_device.phyAddr = 0; in lpc_emac_hw_init() 556 status_t PHY_Read(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t *dataPtr); in phy_dump() 565 result = PHY_Read(lpc_emac_device.base, lpc_emac_device.phyAddr, i, ®); in phy_dump()
|
| /bsp/rm48x50/HALCoGen/include/ |
| A D | mdio.h | 33 extern uint32 MDIOPhyRegRead(uint32 baseAddr, uint32 phyAddr, 35 extern void MDIOPhyRegWrite(uint32 baseAddr, uint32 phyAddr,
|
| /bsp/CME_M7/StdPeriph_Driver/inc/ |
| A D | cmem7_eth.h | 208 uint32_t ETH_PhyRead(uint32_t phyAddr, uint32_t phyReg); 217 void ETH_PhyWrite(uint32_t phyAddr, uint32_t phyReg, uint32_t data);
|
| /bsp/frdm-k64f/device/MK64F12/ |
| A D | fsl_enet.c | 702 void ENET_StartSMIWrite(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, enet_mii_write_t operat… in ENET_StartSMIWrite() argument 707 …mmfr = ENET_MMFR_ST(1) | ENET_MMFR_OP(operation) | ENET_MMFR_PA(phyAddr) | ENET_MMFR_RA(phyReg) | … in ENET_StartSMIWrite() 712 void ENET_StartSMIRead(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, enet_mii_read_t operatio… in ENET_StartSMIRead() argument 717 …mmfr = ENET_MMFR_ST(1) | ENET_MMFR_OP(operation) | ENET_MMFR_PA(phyAddr) | ENET_MMFR_RA(phyReg) | … in ENET_StartSMIRead() 722 void ENET_StartExtC45SMIWrite(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t data) in ENET_StartExtC45SMIWrite() argument 731 …mmfr = ENET_MMFR_ST(0) | ENET_MMFR_OP(kENET_MiiAddrWrite_C45) | ENET_MMFR_PA(phyAddr) | ENET_MMFR_… in ENET_StartExtC45SMIWrite() 736 …mmfr = ENET_MMFR_ST(0) | ENET_MMFR_OP(kENET_MiiWriteFrame_C45) | ENET_MMFR_PA(phyAddr) | ENET_MMFR… in ENET_StartExtC45SMIWrite() 741 void ENET_StartExtC45SMIRead(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg) in ENET_StartExtC45SMIRead() argument 750 …mmfr = ENET_MMFR_ST(0) | ENET_MMFR_OP(kENET_MiiAddrWrite_C45) | ENET_MMFR_PA(phyAddr) | ENET_MMFR_… in ENET_StartExtC45SMIRead() 755 …mmfr = ENET_MMFR_ST(0) | ENET_MMFR_OP(kENET_MiiReadFrame_C45) | ENET_MMFR_PA(phyAddr) | ENET_MMFR_… in ENET_StartExtC45SMIRead()
|
| A D | fsl_enet.h | 686 void ENET_StartSMIRead(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, enet_mii_read_t operatio… 697 void ENET_StartSMIWrite(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, enet_mii_write_t operat… 709 void ENET_StartExtC45SMIRead(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg); 721 void ENET_StartExtC45SMIWrite(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t data);
|
| /bsp/CME_M7/StdPeriph_Driver/src/ |
| A D | cmem7_eth.c | 370 uint32_t ETH_PhyRead(uint32_t phyAddr, uint32_t phyReg) { in ETH_PhyRead() argument 371 ETH->GMII_ADDR_b.PA = phyAddr; in ETH_PhyRead() 381 void ETH_PhyWrite(uint32_t phyAddr, uint32_t phyReg, uint32_t data) { in ETH_PhyWrite() argument 382 ETH->GMII_ADDR_b.PA = phyAddr; in ETH_PhyWrite()
|