Searched refs:swPortIndex (Results 1 – 5 of 5) sorted by relevance
/freebsd/sys/contrib/ncsw/Peripherals/FM/inc/ |
H A D | fm_common.h | 564 #define HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId) … argument 567 …swPortIndex = (uint8_t)((hardwarePortId)-BASE_OH_PORTID+FM_PCD_PORT_OH_BASE_INDX); … 570 …swPortIndex = (uint8_t)((hardwarePortId)-BASE_1G_RX_PORTID+FM_PCD_PORT_1G_RX_BASE_INDX); … 573 …swPortIndex = (uint8_t)((hardwarePortId)-BASE_10G_RX_PORTID+FM_PCD_PORT_10G_RX_BASE_INDX); … 576 …swPortIndex = (uint8_t)((hardwarePortId)-BASE_1G_TX_PORTID+FM_PCD_PORT_1G_TX_BASE_INDX); … 579 …swPortIndex = (uint8_t)((hardwarePortId)-BASE_10G_TX_PORTID+FM_PCD_PORT_10G_TX_BASE_INDX); … 583 #define SW_PORT_INDX_TO_HW_PORT_ID(hardwarePortId, swPortIndex) … argument 585 …if (((swPortIndex) >= FM_PCD_PORT_OH_BASE_INDX) && ((swPortIndex) < FM_PCD_PORT_1G_RX_BASE_INDX)) … 586 …hardwarePortId = (uint8_t)((swPortIndex)-FM_PCD_PORT_OH_BASE_INDX+BASE_OH_PORTID); … 587 …else if (((swPortIndex) >= FM_PCD_PORT_1G_RX_BASE_INDX) && ((swPortIndex) < FM_PCD_PORT_10G_RX_BAS… [all …]
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/ |
H A D | fm_plcr.c | 1074 uint16_t i, first, swPortIndex = 0; in FmPcdPlcrAllocProfiles() local 1131 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmPcdPlcrAllocProfiles() 1133 p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].numOfProfiles = numOfProfiles; in FmPcdPlcrAllocProfiles() 1134 p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].profilesBase = first; 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() 1159 i<(p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].profilesBase + in FmPcdPlcrFreeProfiles() 1160 p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].numOfProfiles); in FmPcdPlcrFreeProfiles() 1171 p_FmPcd->p_FmPcdPlcr->portsMapping[swPortIndex].numOfProfiles = 0; in FmPcdPlcrFreeProfiles() [all …]
|
H A D | fm_kg.c | 2043 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 D | fm_pcd.c | 618 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()
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/ |
H A D | fm_ncsw.c | 1470 uint8_t swPortIndex=0, hardwarePortId; in FmVSPAllocForPort() local 1531 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmVSPAllocForPort() 1533 p_Fm->p_FmSp->portsMapping[swPortIndex].numOfProfiles = numOfVSPs; in FmVSPAllocForPort() 1534 p_Fm->p_FmSp->portsMapping[swPortIndex].profilesBase = first; in FmVSPAllocForPort() 1550 uint8_t swPortIndex=0, hardwarePortId, first, numOfVSPs, i; in FmVSPFreeForPort() local 1559 HW_PORT_ID_TO_SW_PORT_INDX(swPortIndex, hardwarePortId); in FmVSPFreeForPort() 1561 numOfVSPs = (uint8_t)p_Fm->p_FmSp->portsMapping[swPortIndex].numOfProfiles; in FmVSPFreeForPort() 1562 first = (uint8_t)p_Fm->p_FmSp->portsMapping[swPortIndex].profilesBase; in FmVSPFreeForPort() 1569 p_Fm->p_FmSp->portsMapping[swPortIndex].numOfProfiles = 0; in FmVSPFreeForPort() 1570 p_Fm->p_FmSp->portsMapping[swPortIndex].profilesBase = 0; in FmVSPFreeForPort() [all …]
|