• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/contrib/ncsw/Peripherals/FM/

Lines Matching defs:macId

1185 t_Error Fm10GTxEccWorkaround(t_Handle h_Fm, uint8_t macId)
1200 msg.msgBody[0] = macId;
1204 sizeof(msg.msgId)+sizeof(macId),
1215 SANITY_CHECK_RETURN_ERROR((macId == 0), E_NOT_SUPPORTED);
1219 macId,
1223 macId,
1951 uint8_t hardwarePortId = p_PortParams->hardwarePortId, macId;
2116 HW_PORT_ID_TO_SW_PORT_ID(macId, hardwarePortId);
2122 ASSERT_COND(macId < FM_MAX_NUM_OF_10G_MACS);
2123 if (p_PortParams->maxFrameLength >= p_Fm->p_FmStateStruct->macMaxFrameLengths10G[macId])
2124 p_Fm->p_FmStateStruct->portMaxFrameLengths10G[macId] = p_PortParams->maxFrameLength;
2133 ASSERT_COND(macId < FM_MAX_NUM_OF_1G_MACS);
2134 if (p_PortParams->maxFrameLength >= p_Fm->p_FmStateStruct->macMaxFrameLengths1G[macId])
2135 p_Fm->p_FmStateStruct->portMaxFrameLengths1G[macId] = p_PortParams->maxFrameLength;
2151 uint8_t numOfTasks, numOfDmas, macId;
2243 HW_PORT_ID_TO_SW_PORT_ID(macId, hardwarePortId);
2249 ASSERT_COND(macId < FM_MAX_NUM_OF_10G_MACS);
2250 p_Fm->p_FmStateStruct->portMaxFrameLengths10G[macId] = 0;
2257 ASSERT_COND(macId < FM_MAX_NUM_OF_1G_MACS);
2258 p_Fm->p_FmStateStruct->portMaxFrameLengths1G[macId] = 0;
2363 t_Error FmResetMac(t_Handle h_Fm, e_FmMacType type, uint8_t macId)
2386 macParams.id = macId;
2408 err = (t_Error)fman_reset_mac(fpm_rg, macId, !!(type == e_FM_MAC_10G));
2418 t_Error FmSetMacMaxFrame(t_Handle h_Fm, e_FmMacType type, uint8_t macId, uint16_t mtu)
2430 macMaxFrameLengthParams.macParams.id = macId;
2455 if ((!p_Fm->p_FmStateStruct->portMaxFrameLengths10G[macId])
2456 || (p_Fm->p_FmStateStruct->portMaxFrameLengths10G[macId] &&
2457 (mtu <= p_Fm->p_FmStateStruct->portMaxFrameLengths10G[macId])))
2458 p_Fm->p_FmStateStruct->macMaxFrameLengths10G[macId] = mtu;
2467 if ((!p_Fm->p_FmStateStruct->portMaxFrameLengths1G[macId])
2468 || (p_Fm->p_FmStateStruct->portMaxFrameLengths1G[macId] &&
2469 (mtu <= p_Fm->p_FmStateStruct->portMaxFrameLengths1G[macId])))
2470 p_Fm->p_FmStateStruct->macMaxFrameLengths1G[macId] = mtu;
5196 int macId;
5203 HW_PORT_ID_TO_SW_PORT_ID(macId, hardwarePortId);