Home
last modified time | relevance | path

Searched refs:GET_UINT32 (Results 1 – 24 of 24) sorted by relevance

/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/
H A Dtgec_mii_acc.c60 cfgStatusReg = GET_UINT32(p_MiiAccess->mdio_cfg_status); in TGEC_MII_WritePhyReg()
66 while ((GET_UINT32(p_MiiAccess->mdio_cfg_status)) & MIIMIND_BUSY) in TGEC_MII_WritePhyReg()
75 while ((GET_UINT32(p_MiiAccess->mdio_cfg_status)) & MIIMIND_BUSY) in TGEC_MII_WritePhyReg()
82 while ((GET_UINT32(p_MiiAccess->mdio_data)) & MIIDATA_BUSY) in TGEC_MII_WritePhyReg()
104 cfgStatusReg = GET_UINT32(p_MiiAccess->mdio_cfg_status); in TGEC_MII_ReadPhyReg()
110 while ((GET_UINT32(p_MiiAccess->mdio_cfg_status)) & MIIMIND_BUSY) in TGEC_MII_ReadPhyReg()
119 while ((GET_UINT32(p_MiiAccess->mdio_cfg_status)) & MIIMIND_BUSY) in TGEC_MII_ReadPhyReg()
126 while ((GET_UINT32(p_MiiAccess->mdio_data)) & MIIDATA_BUSY) in TGEC_MII_ReadPhyReg()
129 *p_Data = (uint16_t)GET_UINT32(p_MiiAccess->mdio_data); in TGEC_MII_ReadPhyReg()
131 cfgStatusReg = GET_UINT32(p_MiiAccess->mdio_cfg_status); in TGEC_MII_ReadPhyReg()
H A Ddtsec.c252 tpkt1 = GET_UINT32(p_DtsecMemMap->tpkt); in DtsecIsr()
255 tmpReg1 = GET_UINT32(*(uint32_t*)((uint8_t*)p_DtsecMemMap + 0x32c)); in DtsecIsr()
267 tpkt2 = GET_UINT32(p_DtsecMemMap->tpkt); in DtsecIsr()
268 tmpReg2 = GET_UINT32(*(uint32_t*)((uint8_t*)p_DtsecMemMap + 0x32c)); in DtsecIsr()
281 WRITE_UINT32(p_DtsecMemMap->rctrl, GET_UINT32(p_DtsecMemMap->rctrl) | RCTRL_GRS); in DtsecIsr()
286 if (GET_UINT32(p_DtsecMemMap->ievent) & DTSEC_IMASK_GRSCEN) in DtsecIsr()
290 if (GET_UINT32(p_DtsecMemMap->ievent) & DTSEC_IMASK_GRSCEN) in DtsecIsr()
329 event = GET_UINT32(p_DtsecMemMap->ievent); in DtsecMdioIsr()
334 event &= GET_UINT32(p_DtsecMemMap->imask); in DtsecMdioIsr()
H A Dmemac.c912 tmpReg = GET_UINT32(p_Memac->p_MemMap->command_config); in MemacInit()
/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/
H A Dfm_pcd.c1627 … !(GET_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_gcr) & FM_PCD_PLCR_GCR_STEN)) in FM_PCD_GetCounter()
1703 return GET_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_pds); in FM_PCD_GetCounter()
1705 return GET_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_l2rrs); in FM_PCD_GetCounter()
1707 return GET_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_l3rrs); in FM_PCD_GetCounter()
1709 return GET_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_l4rrs); in FM_PCD_GetCounter()
1711 return GET_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_srrs); in FM_PCD_GetCounter()
1713 return GET_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_l2rres); in FM_PCD_GetCounter()
1715 return GET_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_l3rres); in FM_PCD_GetCounter()
1717 return GET_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_l4rres); in FM_PCD_GetCounter()
1719 return GET_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_srres); in FM_PCD_GetCounter()
[all …]
H A Dfm_plcr.c331 while (GET_UINT32(p_FmPcdPlcrRegs->fmpl_par) & FM_PCD_PLCR_PAR_GO) ; in WritePar()
617 event = GET_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_evr); in EventsCB()
618 mask = GET_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_ier); in EventsCB()
623 force = GET_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_ifr); in EventsCB()
644 event = GET_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_eevr); in ErrorExceptionsCB()
645 mask = GET_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_eier); in ErrorExceptionsCB()
650 force = GET_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_eifr); in ErrorExceptionsCB()
660 captureReg = GET_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_upcr); in ErrorExceptionsCB()
840 WRITE_UINT32(p_Regs->fmpl_gcr, GET_UINT32(p_Regs->fmpl_gcr) | FM_PCD_PLCR_GCR_EN); in PlcrEnable()
847 WRITE_UINT32(p_Regs->fmpl_gcr, GET_UINT32(p_Regs->fmpl_gcr) & ~FM_PCD_PLCR_GCR_EN); in PlcrDisable()
[all …]
H A Dfm_manip.c1075 WRITE_UINT32(*p_Last, GET_UINT32(*p_Last) | HMCD_LAST); in BuildHmct()
1409 tmpReg32 |= GET_UINT32(((t_AdOfTypeContLookup *)p_Ad)->pcAndOffsets); in UpdateManipIc()
1496 (GET_UINT32(p_Ad->matchTblPtr) | tmpReg32)); in UpdateInitMvIntFrameHeaderFromFrameToBufferPrefix()
1503 tmpReg32 = GET_UINT32(p_Ad->matchTblPtr); in UpdateInitMvIntFrameHeaderFromFrameToBufferPrefix()
1538 tmpReg32 = GET_UINT32(p_Ad->pcAndOffsets); in UpdateModifyCapwapFragmenation()
1625 tmpReg32 = GET_UINT32(p_Ad->pcAndOffsets); in UpdateInitCapwapFragmentation()
1794 tmpReg32 = GET_UINT32(p_ReassmTbl->mode); in UpdateInitCapwapReasm()
1805 tmpReg32 = GET_UINT32(p_ReassmTbl->mode); in UpdateInitCapwapReasm()
1809 tmpReg32 = GET_UINT32(p_ReassmTbl->intStatsTblPtr); in UpdateInitCapwapReasm()
2962 tmpReg32 = GET_UINT32(p_Ad->ccAdBase); in UpdateIndxStats()
[all …]
H A Dfm_prs.c165 WRITE_UINT32(p_LoadTarget[i], GET_UINT32(p_TmpCode[i])); in PrsInit()
393 WRITE_UINT32(p_LoadTarget[i], GET_UINT32(p_TmpCode[i])); in FM_PCD_PrsLoadSw()
H A Dfm_replic.c251 tmp = GET_UINT32(p_CurrReplicAd->plcrProfile); in FillReplicAdOfTypeResult()
260 tmp = GET_UINT32(p_CurrReplicAd->nia); in FillReplicAdOfTypeResult()
H A Dfm_kg.c2866 … tmpReg32 = GET_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_mode); in FmPcdKgCcGetSetParams()
2900 … tmpReg32 = GET_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_mode); in FmPcdKgCcGetSetParams()
2926 tmpReg32 = GET_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_mode); in FmPcdKgCcGetSetParams()
3151 …if (!(GET_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_mode) & KG_SCH_MODE_EN)) in FM_PCD_KgSchemeGetCounter()
3153 spc = GET_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_spc); in FM_PCD_KgSchemeGetCounter()
3184 …if (!(GET_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_mode) & KG_SCH_MODE_EN)) in FM_PCD_KgSchemeSetCounter()
H A Dfm_cc.c556 tmpReg32 = GET_UINT32(p_AdTmp->nia); in SetRequiredAction1()
2331 tmp = GET_UINT32(p_AdResult->plcrProfile); in FillAdOfTypeResult()
4306 p_KeyStatistics->byteCount = GET_UINT32(*p_StatsCounters); in MatchTableGetKeyStatistics()
4313 p_KeyStatistics->frameCount += GET_UINT32(*p_StatsCounters); in MatchTableGetKeyStatistics()
4317 GET_UINT32(*p_StatsCounters); in MatchTableGetKeyStatistics()
6978 frameCount = GET_UINT32(*(uint32_t *)(PTR_MOVE(p_StatsCounters, in FM_PCD_MatchTableGetKeyCounter()
/freebsd/sys/contrib/ncsw/etc/
H A Dmemcpy.c176 WRITE_UINT32(*p_Dst32, GET_UINT32(*p_Src32)); in IO2IOCpy32()
188 lastWord = GET_UINT32(*p_Src32); in IO2IOCpy32()
192 currWord = GET_UINT32(*p_Src32); in IO2IOCpy32()
333 *p_Dst32 = GET_UINT32(*p_Src32); in IO2MemCpy32()
345 lastWord = GET_UINT32(*p_Src32); in IO2MemCpy32()
349 currWord = GET_UINT32(*p_Src32); in IO2MemCpy32()
/freebsd/sys/contrib/ncsw/Peripherals/FM/MACSEC/
H A Dfm_macsec_master.c77 events = GET_UINT32(p_FmMacsec->p_FmMacsecRegs->evr); in MacsecEventIsr()
78 events |= GET_UINT32(p_FmMacsec->p_FmMacsecRegs->ever); in MacsecEventIsr()
96 errors = GET_UINT32(p_FmMacsec->p_FmMacsecRegs->err); in MacsecErrorIsr()
97 errors |= GET_UINT32(p_FmMacsec->p_FmMacsecRegs->erer); in MacsecErrorIsr()
112 tmpReg = GET_UINT32(p_FmMacsec->p_FmMacsecRegs->meec); in MacsecErrorIsr()
358 *p_MacsecRevision = GET_UINT32(p_FmMacsec->p_FmMacsecRegs->ip_rev1); in MacsecGetRevision()
371 tmpReg = GET_UINT32(p_FmMacsec->p_FmMacsecRegs->cfg); in MacsecEnable()
386 tmpReg = GET_UINT32(p_FmMacsec->p_FmMacsecRegs->cfg); in MacsecDisable()
572 tmpReg = GET_UINT32(p_FmMacsec->p_FmMacsecRegs->cfg); in FmMacsecSetPTP()
598 tmpReg = GET_UINT32(p_FmMacsec->p_FmMacsecRegs->rxsccfg); in FmMacsecCreateRxSc()
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/Port/
H A Dfm_port.c905 if (!(GET_UINT32(*p_Reg) & BMI_COUNTERS_EN)) in BmiPortCheckAndGetCounterType()
1107 WRITE_UINT32(*p_BmiCfgReg, GET_UINT32(*p_BmiCfgReg) | macsecEn); in FmPortCheckNApplyMacsec()
1321 p_FmPort->savedBmiNia = GET_UINT32(*p_BmiNia) & BMI_RFNE_FDCS_MASK; in SetPcd()
1437 while (GET_UINT32(p_FmPort->p_FmPortPrsRegs->pcac) & PRS_CAC_ACTIVE) in SetPcd()
1649 GET_UINT32(*p_BmiPrsStartOffset) + p_FmPort->internalBufferOffset); in SetPcd()
1708 if ((GET_UINT32(*p_BmiNia) & GET_NO_PCD_NIA_BMI_AC_ENQ_FRAME()) in DeletePcd()
1723 while (GET_UINT32(p_FmPort->p_FmPortPrsRegs->pcac) & PRS_CAC_ACTIVE) in DeletePcd()
1773 if ((GET_UINT32(*p_BmiNia) & ~BMI_RFNE_FDCS_MASK) in AttachPCD()
1830 GET_UINT32(p_FmPort->port.qmi_regs->fmqm_pndn); in AttachPCD()
1905 tmpReg = GET_UINT32(*p_BmiCfgReg) & ~BMI_CMD_ATTR_MACCMD_MASK; in FmPortSetMacsecCmd()
[all …]
H A Dfm_port.h750 #define BD_STATUS_AND_LENGTH(bd) GET_UINT32(*(volatile uint32_t*)(bd))
971 physAddr |= GET_UINT32(p_Bd->buff.low); in BdBufferGet()
H A Dfm_port_im.c126 uint32_t tmpReg = GET_UINT32(p_FmPort->im.p_FmPortImPram->mode); in FmPortImEnable()
133 uint32_t tmpReg = GET_UINT32(p_FmPort->im.p_FmPortImPram->mode); in FmPortImDisable()
/freebsd/sys/contrib/ncsw/Peripherals/BM/
H A Dbm.c334 return GET_UINT32(p_Bm->p_BmRegs->content[bpid]); in BmGetCounter()
336 return GET_UINT32(p_Bm->p_BmRegs->sdcnt[bpid]); in BmGetCounter()
338 return GET_UINT32(p_Bm->p_BmRegs->hdcnt[bpid]); in BmGetCounter()
340 return GET_UINT32(p_Bm->p_BmRegs->fbpr_fpc); in BmGetCounter()
403 tmpReg = GET_UINT32(p_Bm->p_BmRegs->ip_rev_1); in BmGetRevision()
693 tmpReg = GET_UINT32(p_Bm->p_BmRegs->err_isr); in BM_ErrorIsr()
694 tmpReg &= GET_UINT32(p_Bm->p_BmRegs->err_ier); in BM_ErrorIsr()
739 tmpReg = GET_UINT32(p_Bm->p_BmRegs->err_ier); in BM_SetException()
H A Dbman_low.c94 return GET_UINT32(*tmp); in __bm_in()
119 return GET_UINT32(*tmp); in __bm_cl_in()
/freebsd/sys/contrib/ncsw/inc/
H A Ddebug_ext.h194 physAddr, GET_UINT32(*(uint32_t*)addr), "", dumpSubStr); \
219 … physAddr, GET_UINT32((st)->phrase[dumpArrIdx]), "", dumpSubStr, dumpArrIdx); \
H A Dtypes_freebsd.h54 #define GET_UINT32(arg) in32(&(arg)) macro
H A Dncsw_ext.h75 SwapUint32(GET_UINT32(arg))
/freebsd/sys/contrib/ncsw/Peripherals/QM/
H A Dqm.c204 rslt = MCR_get_rslt(GET_UINT32(p_Qm->p_QmRegs->mcr)); in QmInitPfdr()
222 rslt = MCR_get_rslt(GET_UINT32(p_Qm->p_QmRegs->mcr)); in QmInitPfdr()
329 return GET_UINT32(p_Qm->p_QmRegs->sfdr_in_use); in QmGetCounter()
331 return (p_Qm->numOfPfdr - GET_UINT32(p_Qm->p_QmRegs->pfdr_fpc)); in QmGetCounter()
333 … return (GET_UINT32(p_Qm->p_QmRegs->pfdr_fpc) - GET_UINT32(p_Qm->p_QmRegs->pfdr_cfg)); in QmGetCounter()
391 tmpReg = GET_UINT32(p_Qm->p_QmRegs->ip_rev_1); in QmGetRevision()
722 while ((tmpReg = GET_UINT32(*tmp)) != WORKAROUND_TMP_VAL) ; in QM_Config()
830 p_Qm->numOfPfdr = GET_UINT32(p_Qm->p_QmRegs->pfdr_fpc); in QM_Init()
1053 tmpReg = GET_UINT32(p_Qm->p_QmRegs->err_isr); in QM_ErrorIsr()
1054 tmpReg &= GET_UINT32(p_Qm->p_QmRegs->err_ier); in QM_ErrorIsr()
[all …]
H A Dqman_low.h106 return GET_UINT32(*tmp); in __qm_in()
131 return GET_UINT32(*tmp); in __qm_cl_in()
/freebsd/sys/contrib/ncsw/Peripherals/FM/
H A Dfm_ncsw.c86 return (bool)!!(GET_UINT32(p_Iram->iready) & IRAM_READY); in IsFmanCtrlCodeLoaded()
408 while (GET_UINT32(p_Iram->iadd) != IRAM_IADD_AIE) ; in ClearIRam()
415 while (GET_UINT32(p_Iram->idata) != 0xffffffff) ; in ClearIRam()
432 while (GET_UINT32(p_Iram->iadd) != IRAM_IADD_AIE) ; in LoadFmanCtrlCode()
443 while (GET_UINT32(p_Iram->iadd) != (p_Fm->firmware.size-4)) ; in LoadFmanCtrlCode()
446 while (GET_UINT32(p_Iram->idata) != p_Fm->firmware.p_Code[(p_Fm->firmware.size / 4)-1]) ; in LoadFmanCtrlCode()
451 while (GET_UINT32(p_Iram->iadd) != IRAM_IADD_AIE) ; in LoadFmanCtrlCode()
454 tmp = GET_UINT32(p_Iram->idata); in LoadFmanCtrlCode()
484 while (GET_UINT32(p_Iram->iadd) != 0) ; in FwNotResetErratumBugzilla6173WA()
488 while (GET_UINT32(p_Iram->iadd) != 0) ; in FwNotResetErratumBugzilla6173WA()
[all …]
/freebsd/sys/contrib/ncsw/inc/flib/common/
H A Dgeneral.h46 #define ioread32be(addr) GET_UINT32(*addr)