/freebsd/sys/contrib/ncsw/Peripherals/FM/MACSEC/ |
H A D | fm_macsec_master.c | 79 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->evr,events); in MacsecEventIsr() 98 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->err,errors); in MacsecErrorIsr() 121 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->meec,tmpReg); in MacsecErrorIsr() 151 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->cfg, tmpReg); in MacsecInit() 157 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->mfl, tmpReg); in MacsecInit() 159 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->tpnet, p_FmMacsecDriverParam->pnExhThr); in MacsecInit() 163 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->erer, p_FmMacsec->exceptions); in MacsecInit() 373 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->cfg,tmpReg); in MacsecEnable() 388 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->cfg,tmpReg); in MacsecDisable() 416 WRITE_UINT32(p_FmMacsec->p_FmMacsecRegs->erer, p_FmMacsec->exceptions); in MacsecSetException() [all …]
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/ |
H A D | tgec_mii_acc.c | 64 WRITE_UINT32(p_MiiAccess->mdio_cfg_status, cfgStatusReg); in TGEC_MII_WritePhyReg() 69 WRITE_UINT32(p_MiiAccess->mdio_command, phyAddr); in TGEC_MII_WritePhyReg() 71 WRITE_UINT32(p_MiiAccess->mdio_regaddr, reg); in TGEC_MII_WritePhyReg() 78 WRITE_UINT32(p_MiiAccess->mdio_data, data); in TGEC_MII_WritePhyReg() 108 WRITE_UINT32(p_MiiAccess->mdio_cfg_status, cfgStatusReg); in TGEC_MII_ReadPhyReg() 113 WRITE_UINT32(p_MiiAccess->mdio_command, phyAddr); in TGEC_MII_ReadPhyReg() 115 WRITE_UINT32(p_MiiAccess->mdio_regaddr, reg); in TGEC_MII_ReadPhyReg() 122 WRITE_UINT32(p_MiiAccess->mdio_command, (uint32_t)(phyAddr | MIIMCOM_READ_CYCLE)); in TGEC_MII_ReadPhyReg()
|
H A D | dtsec.c | 281 WRITE_UINT32(p_DtsecMemMap->rctrl, GET_UINT32(p_DtsecMemMap->rctrl) | RCTRL_GRS); in DtsecIsr() 291 WRITE_UINT32(p_DtsecMemMap->ievent, DTSEC_IMASK_GRSCEN); in DtsecIsr() 336 WRITE_UINT32(p_DtsecMemMap->ievent, event); in DtsecMdioIsr()
|
H A D | memac.c | 914 WRITE_UINT32(p_Memac->p_MemMap->command_config, tmpReg); in MemacInit()
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/ |
H A D | fm_plcr.c | 329 WRITE_UINT32(p_FmPcdPlcrRegs->fmpl_par, par); in WritePar() 625 WRITE_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_ifr, force & ~event); in EventsCB() 628 WRITE_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_evr, event); in EventsCB() 652 WRITE_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_eifr, force & ~event); in ErrorExceptionsCB() 654 WRITE_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_eevr, event); in ErrorExceptionsCB() 666 WRITE_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_upcr, PLCR_ERR_UNINIT_CAP); in ErrorExceptionsCB() 758 WRITE_UINT32(p_Regs->fmpl_gcr, tmpReg32); in PlcrInit() 762 WRITE_UINT32(p_Regs->fmpl_eevr, (FM_PCD_PLCR_DOUBLE_ECC | FM_PCD_PLCR_INIT_ENTRY_ERROR)); in PlcrInit() 773 WRITE_UINT32(p_Regs->fmpl_eier, tmpReg32); in PlcrInit() 777 …WRITE_UINT32(p_Regs->fmpl_evr, (FM_PCD_PLCR_PRAM_SELF_INIT_COMPLETE | FM_PCD_PLCR_ATOMIC_ACTION_CO… in PlcrInit() [all …]
|
H A D | fm_manip.c | 515 WRITE_UINT32(*p_TmpHmct, tmpReg); in BuildHmct() 542 WRITE_UINT32(*p_TmpHmct, tmpReg); in BuildHmct() 600 WRITE_UINT32(*p_TmpHmct, tmpReg); in BuildHmct() 619 WRITE_UINT32(*p_TmpHmct, tmpReg); in BuildHmct() 643 WRITE_UINT32(*p_TmpHmct, tmpReg); in BuildHmct() 655 WRITE_UINT32( in BuildHmct() 678 WRITE_UINT32(*p_TmpHmct, tmpReg); in BuildHmct() 698 WRITE_UINT32(*p_TmpHmct, tmpReg); in BuildHmct() 741 WRITE_UINT32(*p_TmpHmct, tmpReg); in BuildHmct() 760 WRITE_UINT32(*((uint32_t*)p_TmpData + (i+1)/8-1), in BuildHmct() [all …]
|
H A D | fm_pcd.c | 1805 WRITE_UINT32(p_FmPcd->p_FmPcdKg->p_FmPcdKgRegs->fmkg_eeer, tmpReg); in FM_PCD_SetException() 1813 WRITE_UINT32(p_FmPcd->p_FmPcdKg->p_FmPcdKgRegs->fmkg_eeer, tmpReg); in FM_PCD_SetException() 1821 WRITE_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_perer, tmpReg); in FM_PCD_SetException() 1829 WRITE_UINT32(p_FmPcd->p_FmPcdPrs->p_FmPcdPrsRegs->fmpr_pever, tmpReg); in FM_PCD_SetException() 1837 WRITE_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_eier, tmpReg); in FM_PCD_SetException() 1845 WRITE_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_eier, tmpReg); in FM_PCD_SetException() 1853 WRITE_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_ier, tmpReg); in FM_PCD_SetException() 1861 WRITE_UINT32(p_FmPcd->p_FmPcdPlcr->p_FmPcdPlcrRegs->fmpl_ier, tmpReg); in FM_PCD_SetException() 1926 WRITE_UINT32(p_FmPcd->p_FmPcdKg->p_FmPcdKgRegs->fmkg_feer, FM_EX_KG_DOUBLE_ECC); in FM_PCD_ForceIntr() 1931 WRITE_UINT32(p_FmPcd->p_FmPcdKg->p_FmPcdKgRegs->fmkg_feer, FM_EX_KG_KEYSIZE_OVERFLOW); in FM_PCD_ForceIntr() [all …]
|
H A D | fm_replic.c | 192 WRITE_UINT32(p_SourceTd->matchTblPtr, in LinkSourceToMember() 216 WRITE_UINT32(p_CurrReplicAd->res, offset); in LinkMemberToMember() 254 WRITE_UINT32(p_CurrReplicAd->plcrProfile,(tmp & ~FRM_REPLIC_NL_BIT)); in FillReplicAdOfTypeResult() 257 WRITE_UINT32(p_CurrReplicAd->plcrProfile, (tmp |FRM_REPLIC_NL_BIT)); in FillReplicAdOfTypeResult() 261 WRITE_UINT32(p_CurrReplicAd->nia, in FillReplicAdOfTypeResult() 276 WRITE_UINT32(p_SourceTd->ccAdBase, FM_PCD_AD_CONT_LOOKUP_TYPE); in BuildSourceTd() 277 WRITE_UINT32(p_SourceTd->pcAndOffsets, FRM_REPLIC_SOURCE_TD_OPCODE); in BuildSourceTd() 624 WRITE_UINT32(p_AdResult->fqid, FM_PCD_AD_BYPASS_TYPE | in FrmReplicGroupUpdateAd()
|
H A D | fm_kg.c | 2347 …WRITE_UINT32(p_FmPcdKgPortRegs->kgcpe[j % CLS_PLAN_NUM_PER_GRP],p_Set->vectors[j - p_Set->baseEntr… in KgSetClsPlan() 2868 …WRITE_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_mode, tmpReg32 | NIA_BMI_AC… in FmPcdKgCcGetSetParams() 2903 …WRITE_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_mode, tmpReg32 | NIA_FM_CTL… in FmPcdKgCcGetSetParams() 2915 WRITE_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_om, value); in FmPcdKgCcGetSetParams() 2929 WRITE_UINT32(p_FmPcd->p_FmPcdKg->p_IndirectAccessRegs->schemeRegs.kgse_mode, tmpReg32); in FmPcdKgCcGetSetParams() 3054 WRITE_UINT32(p_MemRegs->kgse_ppc, schemeRegs.kgse_ppc); in FM_PCD_KgSchemeSet() 3055 WRITE_UINT32(p_MemRegs->kgse_ccbs, schemeRegs.kgse_ccbs); in FM_PCD_KgSchemeSet() 3056 WRITE_UINT32(p_MemRegs->kgse_mode, schemeRegs.kgse_mode); in FM_PCD_KgSchemeSet() 3057 WRITE_UINT32(p_MemRegs->kgse_mv, schemeRegs.kgse_mv); in FM_PCD_KgSchemeSet() 3058 WRITE_UINT32(p_MemRegs->kgse_dv0, schemeRegs.kgse_dv0); in FM_PCD_KgSchemeSet() [all …]
|
H A D | fm_prs.c | 165 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() 400 … WRITE_UINT32(*(p_FmPcd->p_FmPcdPrs->p_SwPrsCode+PRS_SW_DATA/4+i), p_SwPrs->swPrsDataParams[i]); in FM_PCD_PrsLoadSw() 403 WRITE_UINT32(*(p_FmPcd->p_FmPcdPrs->p_SwPrsCode+(PRS_SW_DATA-FM_PCD_PRS_SW_TAIL_SIZE)/4), 0); in FM_PCD_PrsLoadSw()
|
H A D | fm_cc.c | 221 WRITE_UINT32(p_StatsAd->statsTableAddr, tmp); in SetStatsCounters() 246 WRITE_UINT32(p_StatsAd->profileTableAddr, tmp); in UpdateStatsAd() 259 WRITE_UINT32(p_StatsAd->nextActionIndx, tmp); in UpdateStatsAd() 355 WRITE_UINT32(p_AdContLookup->ccAdBase, tmpReg32); in FillAdOfTypeContLookup() 364 WRITE_UINT32(p_AdContLookup->matchTblPtr, tmpReg32); in FillAdOfTypeContLookup() 370 WRITE_UINT32(p_AdContLookup->pcAndOffsets, tmpReg32); in FillAdOfTypeContLookup() 564 WRITE_UINT32(p_AdTmp->nia, tmpReg32); in SetRequiredAction1() 2313 WRITE_UINT32( in FillAdOfTypeResult() 2327 }WRITE_UINT32(p_AdResult->fqid, tmp); in FillAdOfTypeResult() 2334 WRITE_UINT32(p_AdResult->plcrProfile, tmp); in FillAdOfTypeResult() [all …]
|
/freebsd/sys/contrib/ncsw/Peripherals/QM/ |
H A D | qm.c | 209 WRITE_UINT32(p_Qm->p_QmRegs->mcp0, pfdr_start); in QmInitPfdr() 213 WRITE_UINT32(p_Qm->p_QmRegs->mcp1, (pfdr_start + num - 16)); in QmInitPfdr() 214 WRITE_UINT32(p_Qm->p_QmRegs->mcp1, (pfdr_start + num - 1)); in QmInitPfdr() 217 WRITE_UINT32(p_Qm->p_QmRegs->mcr, MCR_INIT_PFDR); in QmInitPfdr() 227 WRITE_UINT32(p_Qm->p_QmRegs->mcr, 0); in QmInitPfdr() 249 WRITE_UINT32(p_Qm->p_QmRegs->wq_cs_cfg[wqClass], in QmSetWqScheduling() 459 WRITE_UINT32(p_Qm->p_QmRegs->swpConfRegs[p_PortalParams->portalId].lio_cfg, lioReg); in QmGetSetPortalParams() 460 WRITE_UINT32(p_Qm->p_QmRegs->swpConfRegs[p_PortalParams->portalId].io_cfg, ioReg); in QmGetSetPortalParams() 721 WRITE_UINT32(*tmp, tmpReg); in QM_Config() 772 WRITE_UINT32(p_Qm->p_QmRegs->qcsp_bare, ((uint32_t)(phyAddr >> 32) & 0x000000ff)); in QM_Init() [all …]
|
H A D | qman_low.h | 111 WRITE_UINT32(*tmp, val); in __qm_out() 136 WRITE_UINT32(*tmp, val); in __qm_cl_out()
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/Port/ |
H A D | fm_port.c | 764 WRITE_UINT32(p_FmPort->port.bmi_regs->tx.fmbm_tcfqid, 0xFFFFFF); in InitLowLevelDriver() 765 WRITE_UINT32(p_FmPort->port.bmi_regs->tx.fmbm_tfene, in InitLowLevelDriver() 1107 WRITE_UINT32(*p_BmiCfgReg, GET_UINT32(*p_BmiCfgReg) | macsecEn); in FmPortCheckNApplyMacsec() 1263 WRITE_UINT32(*p_BmiCcBase, ccTreePhysOffset); in SetPcd() 1344 WRITE_UINT32(*p_BmiPrsNia, (uint32_t)(NIA_ENG_PLCR | tmpReg)); in SetPcd() 1390 WRITE_UINT32(*p_BmiPrsNia, in SetPcd() 1414 WRITE_UINT32(*p_BmiPrsNia, NIA_ENG_KG | tmpReg); in SetPcd() 1418 WRITE_UINT32(*p_BmiPrsNia, in SetPcd() 1428 WRITE_UINT32(*p_BmiPrsStartOffset, in SetPcd() 1435 WRITE_UINT32(p_FmPort->p_FmPortPrsRegs->pcac, PRS_CAC_STOP); in SetPcd() [all …]
|
H A D | fm_port_im.c | 127 WRITE_UINT32(p_FmPort->im.p_FmPortImPram->mode, (uint32_t)(tmpReg & ~IM_MODE_GRC_STP)); in FmPortImEnable() 134 WRITE_UINT32(p_FmPort->im.p_FmPortImPram->mode, (uint32_t)(tmpReg | IM_MODE_GRC_STP)); in FmPortImDisable() 353 WRITE_UINT32(p_FmPort->im.p_FmPortImPram->mode, IM_MODE_GBL | IM_MODE_SET_BO(2)); in FmPortImInit() 355 WRITE_UINT32(p_FmPort->im.p_FmPortImPram->mode, IM_MODE_SET_BO(2)); in FmPortImInit() 357 WRITE_UINT32(p_FmPort->im.p_FmPortImPram->rxQdPtr, in FmPortImInit() 370 WRITE_UINT32(p_FmPort->p_FmPortBmiRegs->rxPortBmiRegs.fmbm_rfqid, in FmPortImInit() 418 WRITE_UINT32(p_FmPort->im.p_FmPortImPram->mode, IM_MODE_GBL | IM_MODE_SET_BO(2)); in FmPortImInit() 420 WRITE_UINT32(p_FmPort->im.p_FmPortImPram->mode, IM_MODE_SET_BO(2)); in FmPortImInit() 422 WRITE_UINT32(p_FmPort->im.p_FmPortImPram->txQdPtr, in FmPortImInit() 432 WRITE_UINT32(p_FmPort->p_FmPortBmiRegs->txPortBmiRegs.fmbm_tcfqid, in FmPortImInit()
|
H A D | fm_port.h | 748 #define BD_STATUS_AND_LENGTH_SET(bd, val) WRITE_UINT32(*(volatile uint32_t*)(bd), (val)) 979 WRITE_UINT32(fmPhysAddr->low,(uint32_t)value); in SET_ADDR()
|
/freebsd/sys/contrib/ncsw/Peripherals/BM/ |
H A D | bm.c | 225 WRITE_UINT32(p_Bm->p_BmRegs->swdet[bpid], GenerateThresh(swdet, 0)); in BmSetPool() 226 WRITE_UINT32(p_Bm->p_BmRegs->swdxt[bpid], GenerateThresh(swdxt, 1)); in BmSetPool() 227 WRITE_UINT32(p_Bm->p_BmRegs->hwdet[bpid], GenerateThresh(hwdet, 0)); in BmSetPool() 228 WRITE_UINT32(p_Bm->p_BmRegs->hwdxt[bpid], GenerateThresh(hwdxt, 1)); in BmSetPool() 534 WRITE_UINT32(p_Bm->p_BmRegs->liodnr, (uint16_t)p_Bm->p_BmDriverParams->liodn); in BM_Init() 553 WRITE_UINT32(p_Bm->p_BmRegs->fbpr_bare, ((uint32_t)(phyAddr >> 32) & 0xffff)); in BM_Init() 554 WRITE_UINT32(p_Bm->p_BmRegs->fbpr_bar, (uint32_t)phyAddr); in BM_Init() 555 WRITE_UINT32(p_Bm->p_BmRegs->fbpr_ar, (exp - 1)); in BM_Init() 557 WRITE_UINT32(p_Bm->p_BmRegs->fbpr_fp_lwit, p_Bm->p_BmDriverParams->fbprThreshold); in BM_Init() 558 WRITE_UINT32(p_Bm->p_BmRegs->err_isr, p_Bm->exceptions); in BM_Init() [all …]
|
H A D | bman_low.c | 99 WRITE_UINT32(*tmp, val); in __bm_out() 124 WRITE_UINT32(*tmp, val); in __bm_cl_out()
|
/freebsd/sys/contrib/ncsw/etc/ |
H A D | memcpy.c | 176 WRITE_UINT32(*p_Dst32, GET_UINT32(*p_Src32)); in IO2IOCpy32() 193 WRITE_UINT32(*p_Dst32, (lastWord << leftAlign) | (currWord >> rightAlign)); in IO2IOCpy32() 255 WRITE_UINT32(*p_Dst32, *p_Src32); in Mem2IOCpy32() 271 WRITE_UINT32(*p_Dst32, (lastWord << leftAlign) | (currWord >> rightAlign)); in Mem2IOCpy32() 504 WRITE_UINT32(*p_Dst32, val32); in IOMemSet32()
|
/freebsd/sys/contrib/ncsw/inc/ |
H A D | ncsw_ext.h | 56 WRITE_UINT32(arg,((uint32_t)(data08)<<24)|((uint32_t)(data24)&0x00FFFFFF)) 58 WRITE_UINT32(arg,((uint32_t)(data24)<< 8)|((uint32_t)(data08)&0x000000FF)) 66 WRITE_UINT32((arg), SwapUint32(data))
|
H A D | types_freebsd.h | 101 #define WRITE_UINT32 _WRITE_UINT32 macro
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/ |
H A D | fm_ncsw.c | 407 WRITE_UINT32(p_Iram->iadd, IRAM_IADD_AIE); in ClearIRam() 411 WRITE_UINT32(p_Iram->idata, 0xffffffff); in ClearIRam() 413 WRITE_UINT32(p_Iram->iadd, iram_size - 4); in ClearIRam() 431 WRITE_UINT32(p_Iram->iadd, IRAM_IADD_AIE); in LoadFmanCtrlCode() 435 WRITE_UINT32(p_Iram->idata, p_Fm->firmware.p_Code[i]); in LoadFmanCtrlCode() 440 WRITE_UINT32(p_Iram->idata, 0xffffffff); in LoadFmanCtrlCode() 442 WRITE_UINT32(p_Iram->iadd,p_Fm->firmware.size-4); in LoadFmanCtrlCode() 450 WRITE_UINT32(p_Iram->iadd, IRAM_IADD_AIE); in LoadFmanCtrlCode() 460 WRITE_UINT32(p_Iram->iadd, 0x0); in LoadFmanCtrlCode() 464 WRITE_UINT32(p_Iram->iready, IRAM_READY); in LoadFmanCtrlCode() [all …]
|
/freebsd/sys/contrib/ncsw/inc/flib/common/ |
H A D | general.h | 45 #define iowrite32be(val, addr) WRITE_UINT32(*addr, val)
|