Lines Matching refs:phycmd
88 uint32_t phycmd = 0U; in smsc_phy_regread() local
100 phycmd = 0U; in smsc_phy_regread()
101 phycmd |= PHY_ADDR << 11; in smsc_phy_regread()
102 phycmd |= (regoffset & 0x1F) << 6; in smsc_phy_regread()
103 phycmd |= MAC_MII_ACC_READ; in smsc_phy_regread()
104 phycmd |= MAC_MII_ACC_MIIBZY; /* Operation start */ in smsc_phy_regread()
106 if (smsc_mac_regwrite(SMSC9220_MAC_MII_ACC, phycmd)) { in smsc_phy_regread()
133 uint32_t phycmd = 0U; in smsc_phy_regwrite() local
148 phycmd |= PHY_ADDR << 11; in smsc_phy_regwrite()
149 phycmd |= (regoffset & 0x1F) << 6; in smsc_phy_regwrite()
150 phycmd |= MAC_MII_ACC_WRITE; in smsc_phy_regwrite()
151 phycmd |= MAC_MII_ACC_MIIBZY; /* Operation start */ in smsc_phy_regwrite()
153 if (smsc_mac_regwrite(SMSC9220_MAC_MII_ACC, phycmd) < 0) { in smsc_phy_regwrite()
160 if (smsc_mac_regread(SMSC9220_MAC_MII_ACC, &phycmd)) { in smsc_phy_regwrite()
163 } while (time_out != 0U && (phycmd & MAC_MII_ACC_MIIBZY)); in smsc_phy_regwrite()