Searched refs:tmp_reg16 (Results 1 – 2 of 2) sorted by relevance
/drivers/net/ethernet/freescale/fman/ |
D | fman_memac.c | 491 u16 tmp_reg16; in setup_sgmii_internal_phy() local 497 tmp_reg16 = IF_MODE_SGMII_EN; in setup_sgmii_internal_phy() 500 tmp_reg16 |= IF_MODE_USE_SGMII_AN; in setup_sgmii_internal_phy() 507 tmp_reg16 |= IF_MODE_SGMII_SPEED_100M; in setup_sgmii_internal_phy() 511 tmp_reg16 |= IF_MODE_SGMII_SPEED_1G; in setup_sgmii_internal_phy() 515 tmp_reg16 |= IF_MODE_SGMII_DUPLEX_HALF; in setup_sgmii_internal_phy() 517 phy_write(memac->pcsphy, MDIO_SGMII_IF_MODE, tmp_reg16); in setup_sgmii_internal_phy() 520 tmp_reg16 = MDIO_SGMII_DEV_ABIL_SGMII_MODE; in setup_sgmii_internal_phy() 521 phy_write(memac->pcsphy, MDIO_SGMII_DEV_ABIL_SGMII, tmp_reg16); in setup_sgmii_internal_phy() 540 tmp_reg16 = SGMII_CR_DEF_VAL | SGMII_CR_RESTART_AN; in setup_sgmii_internal_phy() [all …]
|
D | fman_dtsec.c | 1216 u16 tmp_reg16; in dtsec_restart_autoneg() local 1221 tmp_reg16 = phy_read(dtsec->tbiphy, MII_BMCR); in dtsec_restart_autoneg() 1223 tmp_reg16 &= ~(BMCR_SPEED100 | BMCR_SPEED1000); in dtsec_restart_autoneg() 1224 tmp_reg16 |= (BMCR_ANENABLE | BMCR_ANRESTART | in dtsec_restart_autoneg() 1227 phy_write(dtsec->tbiphy, MII_BMCR, tmp_reg16); in dtsec_restart_autoneg() 1341 u16 tmp_reg16; in dtsec_init() local 1344 tmp_reg16 = TBICON_CLK_SELECT | TBICON_SOFT_RESET; in dtsec_init() 1345 phy_write(dtsec->tbiphy, MII_TBICON, tmp_reg16); in dtsec_init() 1347 tmp_reg16 = TBICON_CLK_SELECT; in dtsec_init() 1348 phy_write(dtsec->tbiphy, MII_TBICON, tmp_reg16); in dtsec_init() [all …]
|