Lines Matching refs:hw

35     handle->hw.func   = s_netcPciBases[NETC_SWT_PCIE_FUNC_OFFSET + (uint32_t)sw];  in SWT_GetBaseResource()
36 handle->hw.base = s_netcSWBases[sw]; in SWT_GetBaseResource()
37 handle->hw.common = (NETC_SW_ENETC_Type *)((uintptr_t)handle->hw.base); in SWT_GetBaseResource()
38 …handle->hw.global = (ENETC_GLOBAL_Type *)((uintptr_t)handle->hw.base + NETC_SWT_GLOBAL_BASE_OFFSET… in SWT_GetBaseResource()
41 handle->hw.ports[i].port = in SWT_GetBaseResource()
42 … (NETC_PORT_Type *)((uintptr_t)handle->hw.base + (i + 1U) * NETC_SWT_PORT_GROUP_BASE_OFFSET); in SWT_GetBaseResource()
43 … handle->hw.ports[i].eth = (NETC_ETH_LINK_Type *)((uintptr_t)handle->hw.ports[i].port + 0x1000U); in SWT_GetBaseResource()
45 handle->hw.msixTable = (netc_msix_entry_t *)((uint32_t)FSL_FEATURE_NETC_MSIX_TABLE_BASE + in SWT_GetBaseResource()
61 uint32_t *msixTable = (uint32_t *)(uintptr_t)handle->hw.msixTable; in SWT_MSIXSetEntryTable()
66 …(uint8_t)(((handle->hw.base->SCAPR0 & NETC_SW_SCAPR0_NUM_MSIX_MASK) >> NETC_SW_SCAPR0_NUM_MSIX_SHI… in SWT_MSIXSetEntryTable()
92 handle->hw.base->NUM_CBDR_INT[0].CBDRMSIVR = in SWT_MSIXSetEntryTable()
94 handle->hw.base->NUM_CBDR_INT[1].CBDRMSIVR = in SWT_MSIXSetEntryTable()
96 …handle->hw.common->TCMSIVR = (uint32_t)config->timeCaptureEntryIdx & NETC_SW_ENETC_TCMSIVR_VECTOR_… in SWT_MSIXSetEntryTable()
99 handle->hw.func->PCI_CFC_MSIX_MSG_CTL = ENETC_PCI_TYPE0_PCI_CFC_MSIX_MSG_CTL_MSIX_EN_MASK; in SWT_MSIXSetEntryTable()
104 handle->hw.func->PCI_CFC_MSIX_MSG_CTL = ENETC_PCI_TYPE0_PCI_CFC_MSIX_MSG_CTL_FUNC_MASK_MASK; in SWT_MSIXSetEntryTable()
114 … handle->hw.func->PCI_CFC_MSIX_MSG_CTL |= ENETC_PCI_TYPE0_PCI_CFC_MSIX_MSG_CTL_FUNC_MASK_MASK; in SWT_MsixSetGlobalMask()
118 …handle->hw.func->PCI_CFC_MSIX_MSG_CTL &= (uint16_t)(~ENETC_VF_PCI_TYPE0_PCI_CFC_MSIX_MSG_CTL_FUNC_… in SWT_MsixSetGlobalMask()
130 handle->hw.msixTable[entryIdx].control = (uint32_t)mask; in SWT_MsixSetEntryMask()
152 …funcEnable = ((handle->hw.func->PCI_CFC_MSIX_MSG_CTL & ENETC_PCI_TYPE0_PCI_CFC_MSIX_MSG_CTL_MSIX_E… in SWT_MsixGetPendingStatus()
158 …*status = *(uint64_t *)((uintptr_t)handle->hw.msixTable + NETC_MSIX_TABLE_PBA_OFFSET + 8U * pbaIdx… in SWT_MsixGetPendingStatus()
282 handle->hw.func->PCI_CFH_CMD |= in SWT_Init()
285 for (uint32_t i = 0U; (i < 5U) && (!NETC_PortIsPseudo(handle->hw.ports[i].port)); i++) in SWT_Init()
287 handle->hw.ports[i].port->POR |= (NETC_PORT_POR_TXDIS_MASK | NETC_PORT_POR_RXDIS_MASK); in SWT_Init()
288 NETC_PortSoftwareResetEthMac(handle->hw.ports[i].eth); in SWT_Init()
291 handle->hw.func->PCI_CFC_PCIE_DEV_CTL |= ENETC_PCI_TYPE0_PCI_CFC_PCIE_DEV_CTL_INIT_FLR_MASK; in SWT_Init()
292 …while ((handle->hw.func->PCI_CFC_PCIE_DEV_CTL & ENETC_PCI_TYPE0_PCI_CFC_PCIE_DEV_CTL_INIT_FLR_MASK… in SWT_Init()
296 handle->hw.func->PCI_CFH_CMD |= in SWT_Init()
320 handle->hw.base->FDBHTMCR = NETC_SW_FDBHTMCR_DYN_LIMIT(config->dynFDBLimit); in SWT_Init()
358 port = handle->hw.ports[i].port; in SWT_Init()
384 (void)NETC_PortConfigEthMac(handle->hw.ports[i].eth, &config->ports[i].ethMac); in SWT_Init()
393 *(volatile uint32_t *)((uintptr_t)handle->hw.ports[i].eth + 0x1020U) = 0x00010104; in SWT_Init()
394 *(volatile uint32_t *)((uintptr_t)handle->hw.ports[i].eth + 0x1420U) = 0x00010104; in SWT_Init()
409 handle->hw.ports[i].port->POR &= ~(NETC_PORT_POR_TXDIS_MASK | NETC_PORT_POR_RXDIS_MASK); in SWT_Init()
416 handle->hw.ports[i].port->POR |= (NETC_PORT_POR_TXDIS_MASK | NETC_PORT_POR_RXDIS_MASK); in SWT_Init()
431 if (!NETC_PortIsPseudo(handle->hw.ports[i].port) && in SWT_Deinit()
432 … (0U == (handle->hw.ports[i].port->POR & (NETC_PORT_POR_TXDIS_MASK | NETC_PORT_POR_RXDIS_MASK)))) in SWT_Deinit()
434 NETC_PortEthMacGracefulStop(handle->hw.ports[i].port); in SWT_Deinit()
455 miiMode = NETC_PortGetMIIMode(handle->hw.ports[ethPort].eth); in SWT_SetEthPortMII()
456 return NETC_PortSetMII(handle->hw.ports[ethPort].eth, miiMode, speed, duplex); in SWT_SetEthPortMII()
462 if (!NETC_PortIsPseudo(handle->hw.ports[portIdx].port)) in SWT_PortStop()
465 NETC_PORT_Type *base = handle->hw.ports[portIdx].port; in SWT_PortStop()
530 NETC_PortEthMacGracefulStop(handle->hw.ports[portIdx].port); in SWT_PortStop()
536 … handle->hw.ports[portIdx].port->POR |= (NETC_PORT_POR_TXDIS_MASK | NETC_PORT_POR_RXDIS_MASK); in SWT_PortStop()
545 NETC_PORT_Type *base = handle->hw.ports[portIdx].port; in SWT_SetPortMaxFrameSize()
552 return NETC_PortSetMaxFrameSize(handle->hw.ports[portIdx].eth, size); in SWT_SetPortMaxFrameSize()
559 handle->hw.base->IMDCR0 = in SWT_RxMirrorConfig()
569 handle->hw.base->IMDCR1 = in SWT_RxMirrorConfig()
605 if ((!NETC_EnetcHasManagement(epHandle->hw.base)) || (getSiNum(epHandle->cfg.si) != 0U)) in SWT_ManagementTxRxConfig()
614 …mgmtRxBdRingIdx = (uint8_t)(((epHandle->hw.base->NUM_SI[0].PSICFGR0 & NETC_ENETC_PSICFGR0_NUM_RX_B… in SWT_ManagementTxRxConfig()
617 if (NETC_SIConfigRxBDR(epHandle->hw.si, mgmtRxBdRingIdx, rxRingConfig) != kStatus_Success) in SWT_ManagementTxRxConfig()
629 epHandle->hw.base->SMHRBDRMR[i] = NETC_ENETC_SMHRBDRMR_RXBDR(mgmtRxBdRingIdx); in SWT_ManagementTxRxConfig()
679 NETC_SIRxRingEnable(epHandle->hw.si, mgmtRxBdRingIdx, true); in SWT_ManagementTxRxConfig()
684 if (NETC_SIConfigTxBDR(epHandle->hw.si, 0, &txRxConfig->mgmtTxBdrConfig) != kStatus_Success) in SWT_ManagementTxRxConfig()
882 NETC_SISetRxConsumer(handle->epHandle->hw.si, rxBdRingIdx, index); in SWT_GetTimestampRefResp()
1036 if (0U == (handle->hw.base->NUM_CBDR[i].CBDRSR & NETC_SW_CBDRSR_BUSY_MASK)) in SWT_GetIdleCmdBDRing()
1038 cdbrHandle->base = (netc_cbdr_hw_t *)(uintptr_t)&handle->hw.base->NUM_CBDR[i].CBDRMR; in SWT_GetIdleCmdBDRing()
1050 …return NETC_CmdBDRInit((netc_cbdr_hw_t *)(uintptr_t)&handle->hw.base->NUM_CBDR[ring].CBDRMR, confi… in SWT_CmdBDRInit()
1056 return NETC_CmdBDRDeinit((netc_cbdr_hw_t *)(uintptr_t)&handle->hw.base->NUM_CBDR[ring].CBDRMR); in SWT_CmdBDRDeinit()
1155 handle->hw.base->VFHTDECR0 = in SWT_BridgeInit()
1161 handle->hw.base->VFHTDECR1 = NETC_SW_VFHTDECR1_BASE_ETEID(config->dVFCfg.baseETEID) | in SWT_BridgeInit()
1164 handle->hw.base->VFHTDECR2 = in SWT_BridgeInit()
1178 NETC_PORT_Type *base = handle->hw.ports[portIdx].port; in SWT_BridgeConfigPort()
1207 NETC_PORT_Type *base = handle->hw.ports[portIdx].port; in SWT_BridgeConfigPortDefaultVid()
2175 NETC_PORT_Type *base = handle->hw.ports[portIdx].port; in SWT_TxTrafficClassConfig()
2206 handle->hw.ports[portIdx].port->PTGSCR |= NETC_PORT_PTGSCR_TGE_MASK; in SWT_TxPortTGSEnable()
2223 handle->hw.ports[portIdx].port->PTGSCR &= ~NETC_PORT_PTGSCR_TGE_MASK; in SWT_TxPortTGSEnable()
2237 … if (0U != (handle->hw.ports[config->entryID].port->PTGAGLSR & NETC_PORT_PTGAGLSR_CFG_PEND_MASK)) in SWT_TxTGSConfigAdminGcl()
2249 if (0U != (handle->hw.ports[config->entryID].port->PTGAGLSR & NETC_PORT_PTGAGLSR_TG_MASK)) in SWT_TxTGSConfigAdminGcl()
2573 handle->hw.base->MAP_PCP[i].QOSVLANMPR[j] = in SWT_TxEPPQosToVlanConfig()
2583 handle->hw.base->PCP2PCPMPR[i] = in SWT_TxEPPQosToVlanConfig()
2781 … uint32_t entryNumMax = handle->hw.common->ISQGITCAPR & NETC_SW_ENETC_ISQGITCAPR_NUM_ENTRIES_MASK; in SWT_FRERAddISEQGTableEntry()
2813 … uint32_t entryNumMax = handle->hw.common->ISQGITCAPR & NETC_SW_ENETC_ISQGITCAPR_NUM_ENTRIES_MASK; in SWT_FRERUpdateISEQGTableEntry()
2845 … uint32_t entryNumMax = handle->hw.common->ISQGITCAPR & NETC_SW_ENETC_ISQGITCAPR_NUM_ENTRIES_MASK; in SWT_FRERDelISEQGTableEntry()
2876 … uint32_t entryNumMax = handle->hw.common->ISQGITCAPR & NETC_SW_ENETC_ISQGITCAPR_NUM_ENTRIES_MASK; in SWT_FRERGetISEQGState()
2911 uint32_t entryNumMax = handle->hw.common->ESQRTCAPR & NETC_SW_ENETC_ESQRTCAPR_NUM_ENTRIES_MASK; in SWT_FRERConfigESEQRTableEntry()
2947 uint32_t entryNumMax = handle->hw.common->ESQRTCAPR & NETC_SW_ENETC_ESQRTCAPR_NUM_ENTRIES_MASK; in SWT_FRERQueryESEQRTableEntry()
2997 uint32_t entryNumMax = handle->hw.base->BPCAPR & NETC_SW_BPCAPR_NUM_BP_MASK; in SWT_UpdateBPTableEntry()
3029 uint32_t entryNumMax = handle->hw.base->BPCAPR & NETC_SW_BPCAPR_NUM_BP_MASK; in SWT_GetBPEntryState()
3064 …uint32_t entryNumMax = (handle->hw.base->BPCAPR & NETC_SW_BPCAPR_NUM_SPB_MASK) >> NETC_SW_BPCAPR_N… in SWT_UpdateSBPTableEntry()
3096 …uint32_t entryNumMax = (handle->hw.base->BPCAPR & NETC_SW_BPCAPR_NUM_SPB_MASK) >> NETC_SW_BPCAPR_N… in SWT_GetSBPEntryState()