Home
last modified time | relevance | path

Searched refs:tmpReg16 (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/
H A Dmemac.c85 uint16_t tmpReg16; in SetupSgmiiInternalPhy() local
94 tmpReg16 = PHY_SGMII_IF_MODE_AN | PHY_SGMII_IF_MODE_SGMII; in SetupSgmiiInternalPhy()
96 tmpReg16 = PHY_SGMII_CR_PHY_RESET | PHY_SGMII_IF_SPEED_GIGABIT | PHY_SGMII_IF_MODE_SGMII; in SetupSgmiiInternalPhy()
99 MEMAC_MII_WritePhyReg(p_Memac, phyAddr, 0x14, tmpReg16); in SetupSgmiiInternalPhy()
102 tmpReg16 = PHY_SGMII_DEV_ABILITY_SGMII; in SetupSgmiiInternalPhy()
103 MEMAC_MII_WritePhyReg(p_Memac, phyAddr, 0x4, tmpReg16); in SetupSgmiiInternalPhy()
120 tmpReg16 = PHY_SGMII_CR_DEF_VAL | PHY_SGMII_CR_RESET_AN; in SetupSgmiiInternalPhy()
121 MEMAC_MII_WritePhyReg(p_Memac, phyAddr, 0x0, tmpReg16); in SetupSgmiiInternalPhy()
131 uint16_t tmpReg16; in SetupSgmiiInternalPhyBaseX() local
141 tmpReg16 = PHY_SGMII_IF_MODE_1000X; in SetupSgmiiInternalPhyBaseX()
[all …]
H A Ddtsec.c1114 uint16_t tmpReg16; in DtsecRestartAutoneg() local
1119 DTSEC_MII_ReadPhyReg(p_Dtsec, p_Dtsec->tbi_phy_addr, 0, &tmpReg16); in DtsecRestartAutoneg()
1121 tmpReg16 &= ~( PHY_CR_SPEED0 | PHY_CR_SPEED1 ); in DtsecRestartAutoneg()
1122 tmpReg16 |= (PHY_CR_ANE | PHY_CR_RESET_AN | PHY_CR_FULLDUPLEX | PHY_CR_SPEED1); in DtsecRestartAutoneg()
1124 DTSEC_MII_WritePhyReg(p_Dtsec, p_Dtsec->tbi_phy_addr, 0, tmpReg16); in DtsecRestartAutoneg()
1252 uint16_t tmpReg16; in DtsecInit() local
1255 tmpReg16 = PHY_TBICON_CLK_SEL | PHY_TBICON_SRESET; in DtsecInit()
1256 DTSEC_MII_WritePhyReg(p_Dtsec, (uint8_t)p_DtsecDriverParam->tbipa, 17, tmpReg16); in DtsecInit()
1258 tmpReg16 = PHY_TBICON_CLK_SEL; in DtsecInit()
1259 DTSEC_MII_WritePhyReg(p_Dtsec, (uint8_t)p_DtsecDriverParam->tbipa, 17, tmpReg16); in DtsecInit()
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/Port/
H A Dfm_port_im.c312 uint16_t tmpReg16; in FmPortImInit() local
381 tmpReg16 = (uint16_t)(p_FmPort->fmanCtrlEventId & IM_RXQD_FPMEVT_SEL_MASK); in FmPortImInit()
386 tmpReg16 |= IM_RXQD_BSYINTM; in FmPortImInit()
391 tmpReg16 |= IM_RXQD_RXFINTM; in FmPortImInit()
394 WRITE_UINT16(p_FmPort->im.p_FmPortImPram->rxQd.gen, tmpReg16); in FmPortImInit()
576 uint16_t tmpReg16; in FM_PORT_SetIMExceptions() local
597tmpReg16 = (uint16_t)((p_FmPort->fmanCtrlEventId & IM_RXQD_FPMEVT_SEL_MASK) | IM_RXQD_BSYINTM); in FM_PORT_SetIMExceptions()
602tmpReg16 = (uint16_t)(GET_UINT16(p_FmPort->im.p_FmPortImPram->rxQd.gen) | IM_RXQD_BSYINTM); in FM_PORT_SetIMExceptions()
606 WRITE_UINT16(p_FmPort->im.p_FmPortImPram->rxQd.gen, tmpReg16); in FM_PORT_SetIMExceptions()
622tmpReg16 = (uint16_t)(GET_UINT16(p_FmPort->im.p_FmPortImPram->rxQd.gen) & ~IM_RXQD_BSYINTM); in FM_PORT_SetIMExceptions()
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/
H A Dfm_manip.c3267 uint16_t tmpReg16 = 0; in InsrtHdrByTempl() local
3414 tmpReg32 = tmpReg16 = tmpReg8 = 0; in InsrtHdrByTempl()
3421 memcpy(&tmpReg16, &p_Template[VLAN_TAG_FIELD_OFFSET_FROM_ETH], 2*(sizeof(uint8_t))); in InsrtHdrByTempl()
3422 if ((tmpReg16 != 0x9100) && (tmpReg16!= 0x9200) && (tmpReg16 != 0x8100)) in InsrtHdrByTempl()