Home
last modified time | relevance | path

Searched refs:swPortIndex (Results 1 – 5 of 5) sorted by relevance

/f-stack/freebsd/contrib/ncsw/Peripherals/FM/inc/
H A Dfm_common.h564 #define HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId) … argument
567swPortIndex = (uint8_t)((hardwarePortId)-BASE_OH_PORTID+FM_PCD_PORT_OH_BASE_INDX); …
570swPortIndex = (uint8_t)((hardwarePortId)-BASE_1G_RX_PORTID+FM_PCD_PORT_1G_RX_BASE_INDX); …
573swPortIndex = (uint8_t)((hardwarePortId)-BASE_10G_RX_PORTID+FM_PCD_PORT_10G_RX_BASE_INDX); …
576swPortIndex = (uint8_t)((hardwarePortId)-BASE_1G_TX_PORTID+FM_PCD_PORT_1G_TX_BASE_INDX); …
579swPortIndex = (uint8_t)((hardwarePortId)-BASE_10G_TX_PORTID+FM_PCD_PORT_10G_TX_BASE_INDX); …
585 …if (((swPortIndex) >= FM_PCD_PORT_OH_BASE_INDX) && ((swPortIndex) < FM_PCD_PORT_1G_RX_BASE_INDX)) …
587 …else if (((swPortIndex) >= FM_PCD_PORT_1G_RX_BASE_INDX) && ((swPortIndex) < FM_PCD_PORT_10G_RX_BAS…
589 …else if (((swPortIndex) >= FM_PCD_PORT_10G_RX_BASE_INDX) && ((swPortIndex) < FM_MAX_NUM_OF_PORTS))…
591 …else if (((swPortIndex) >= FM_PCD_PORT_1G_TX_BASE_INDX) && ((swPortIndex) < FM_PCD_PORT_10G_TX_BAS…
[all …]
/f-stack/freebsd/contrib/ncsw/Peripherals/FM/Pcd/
H A Dfm_plcr.c1074 uint16_t i, first, swPortIndex = 0; in FmPcdPlcrAllocProfiles() local
1131 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmPcdPlcrAllocProfiles()
1144 uint16_t i, swPortIndex = 0; in FmPcdPlcrFreeProfiles() local
1151 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmPcdPlcrFreeProfiles()
1158 for (i=p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].profilesBase; in FmPcdPlcrFreeProfiles()
1171 p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].numOfProfiles = 0; in FmPcdPlcrFreeProfiles()
1172 p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].profilesBase = 0; in FmPcdPlcrFreeProfiles()
1385 uint16_t swPortIndex = 0; in FmPcdPlcrGetPortProfilesBase() local
1387 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmPcdPlcrGetPortProfilesBase()
1395 uint16_t swPortIndex = 0; in FmPcdPlcrGetPortNumOfProfiles() local
[all …]
H A Dfm_kg.c2043 uint8_t swPortIndex = 0; in FmPcdKgBuildBindPortToSchemes() local
2066 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, p_BindPort->hardwarePortId); in FmPcdKgBuildBindPortToSchemes()
2071 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].h_FmPort); in FmPcdKgBuildBindPortToSchemes()
2072 …if (p_Scheme->relativeProfileId+j >= p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].numOfProfiles) in FmPcdKgBuildBindPortToSchemes()
2074 …rIsProfileValid(p_FmPcd, (uint16_t)(p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].profilesBase +… in FmPcdKgBuildBindPortToSchemes()
H A Dfm_pcd.c618 uint16_t swPortIndex = 0; in FmPcdPortRegister() local
621 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmPcdPortRegister()
622 p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].h_FmPort = h_FmPort; in FmPcdPortRegister()
/f-stack/freebsd/contrib/ncsw/Peripherals/FM/
H A Dfm_ncsw.c1470 uint8_t swPortIndex=0, hardwarePortId; in FmVSPAllocForPort() local
1531 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmVSPAllocForPort()
1534 p_Fm->p_FmSp->portsMapping[swPortIndex].profilesBase = first; in FmVSPAllocForPort()
1559 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmVSPFreeForPort()
1569 p_Fm->p_FmSp->portsMapping[swPortIndex].numOfProfiles = 0; in FmVSPFreeForPort()
1570 p_Fm->p_FmSp->portsMapping[swPortIndex].profilesBase = 0; in FmVSPFreeForPort()
2923 uint8_t swPortIndex=0, hardwarePortId; in FmVSPCheckRelativeProfile() local
2933 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmVSPCheckRelativeProfile()
2938 if (!p_FmPcdSp->portsMapping[swPortIndex].numOfProfiles) in FmVSPCheckRelativeProfile()
2954 uint8_t swPortIndex=0, hardwarePortId; in FmVSPGetAbsoluteProfileId() local
[all …]