Lines Matching refs:p_QmDriverParams

166 …if ((p_Qm->p_QmDriverParams->partFqidBase + p_Qm->p_QmDriverParams->partNumOfFqids) > QM_MAX_NUM_O…  in CheckQmParameters()
175 phyAddr = XX_VirtToPhys(UINT_TO_PTR(p_Qm->p_QmDriverParams->swPortalsBaseAddress)); in CheckQmParameters()
179 if (!p_Qm->p_QmDriverParams->rtFramesDepth) in CheckQmParameters()
181 if (p_Qm->p_QmDriverParams->rtFramesDepth > ((16*MEGABYTE)*3)) in CheckQmParameters()
183 if (!p_Qm->p_QmDriverParams->totalNumOfFqids) in CheckQmParameters()
185 if (p_Qm->p_QmDriverParams->totalNumOfFqids > (16*MEGABYTE)) in CheckQmParameters()
677 p_Qm->p_QmDriverParams = (t_QmDriverParams *)XX_Malloc(sizeof(t_QmDriverParams)); in QM_Config()
678 if (!p_Qm->p_QmDriverParams) in QM_Config()
684 memset(p_Qm->p_QmDriverParams, 0, sizeof(t_QmDriverParams)); in QM_Config()
687 p_Qm->p_QmDriverParams->partFqidBase = p_QmParam->partFqidBase; in QM_Config()
688 p_Qm->p_QmDriverParams->partNumOfFqids = p_QmParam->partNumOfFqids; in QM_Config()
699 p_Qm->p_QmDriverParams->liodn = p_QmParam->liodn; in QM_Config()
700 p_Qm->p_QmDriverParams->rtFramesDepth = DEFAULT_rtFramesDepth; in QM_Config()
701 p_Qm->p_QmDriverParams->fqdMemPartitionId = p_QmParam->fqdMemPartitionId; in QM_Config()
702 p_Qm->p_QmDriverParams->pfdrMemPartitionId = p_QmParam->pfdrMemPartitionId; in QM_Config()
703 p_Qm->p_QmDriverParams->swPortalsBaseAddress = p_QmParam->swPortalsBaseAddress; in QM_Config()
704 p_Qm->p_QmDriverParams->totalNumOfFqids = p_QmParam->totalNumOfFqids; in QM_Config()
705 p_Qm->p_QmDriverParams->pfdrThreshold = DEFAULT_pfdrThreshold; in QM_Config()
706 p_Qm->p_QmDriverParams->sfdrThreshold = DEFAULT_sfdrThreshold; in QM_Config()
707 p_Qm->p_QmDriverParams->pfdrBaseConstant = DEFAULT_pfdrBaseConstant; in QM_Config()
709 p_Qm->p_QmDriverParams->dcPortalsParams[i].sendToSw = in QM_Config()
732 XX_Free(p_Qm->p_QmDriverParams); in QM_Config()
744 t_QmDriverParams *p_QmDriverParams; in QM_Init() local
748 SANITY_CHECK_RETURN_ERROR(p_Qm->p_QmDriverParams, E_INVALID_HANDLE); in QM_Init()
752 p_QmDriverParams = p_Qm->p_QmDriverParams; in QM_Init()
754 if (p_QmDriverParams->partNumOfFqids) in QM_Init()
756 …if (MM_Init(&p_Qm->h_FqidMm, p_QmDriverParams->partFqidBase, p_QmDriverParams->partNumOfFqids) != … in QM_Init()
758 …if (MM_Init(&p_Qm->h_RsrvFqidMm, p_QmDriverParams->partFqidBase, p_QmDriverParams->partNumOfFqids)… in QM_Init()
771 phyAddr = XX_VirtToPhys(UINT_TO_PTR(p_QmDriverParams->swPortalsBaseAddress)); in QM_Init()
774 WRITE_UINT32(p_Qm->p_QmRegs->liodnr, (uint16_t)p_QmDriverParams->liodn); in QM_Init()
777 dsSize = (uint32_t)(p_QmDriverParams->totalNumOfFqids * FQD_ENTRY_SIZE); in QM_Init()
786 p_Qm->p_FqdBase = XX_MallocSmart(dsSize, (int)p_QmDriverParams->fqdMemPartitionId, dsSize); in QM_Init()
803 dsSize = (uint32_t)(p_QmDriverParams->rtFramesDepth * (PFDR_ENTRY_SIZE/3)); in QM_Init()
813 … p_Qm->p_PfdrBase = XX_MallocSmart(dsSize, (int)p_QmDriverParams->pfdrMemPartitionId, dsSize); in QM_Init()
826 … WRITE_UINT32(p_Qm->p_QmRegs->pfdr_fp_lwit, (p_Qm->p_QmDriverParams->pfdrThreshold & 0xffffff)); in QM_Init()
827 WRITE_UINT32(p_Qm->p_QmRegs->pfdr_cfg, p_Qm->p_QmDriverParams->pfdrBaseConstant); in QM_Init()
828 WRITE_UINT32(p_Qm->p_QmRegs->sfdr_cfg, (p_Qm->p_QmDriverParams->sfdrThreshold & 0x3ff)); in QM_Init()
849 if(p_Qm->p_QmDriverParams->dcPortalsParams[i].sendToSw) in QM_Init()
851 p_Qm->p_QmDriverParams->dcPortalsParams[i].swPortalId); in QM_Init()
925 XX_Free(p_Qm->p_QmDriverParams); in QM_Init()
926 p_Qm->p_QmDriverParams = NULL; in QM_Init()
951 if (p_Qm->p_QmDriverParams) in QM_Free()
952 XX_Free(p_Qm->p_QmDriverParams); in QM_Free()
964 SANITY_CHECK_RETURN_ERROR(p_Qm->p_QmDriverParams, E_INVALID_HANDLE); in QM_ConfigRTFramesDepth()
966 p_Qm->p_QmDriverParams->rtFramesDepth = rtFramesDepth; in QM_ConfigRTFramesDepth()
976 SANITY_CHECK_RETURN_ERROR(p_Qm->p_QmDriverParams, E_INVALID_HANDLE); in QM_ConfigPfdrThreshold()
978 p_Qm->p_QmDriverParams->pfdrThreshold = threshold; in QM_ConfigPfdrThreshold()
988 SANITY_CHECK_RETURN_ERROR(p_Qm->p_QmDriverParams, E_INVALID_HANDLE); in QM_ConfigSfdrReservationThreshold()
990 p_Qm->p_QmDriverParams->sfdrThreshold = threshold; in QM_ConfigSfdrReservationThreshold()
1021 SANITY_CHECK_RETURN_VALUE(!p_Qm->p_QmDriverParams, E_INVALID_STATE, 0); in QM_GetCounter()
1097 SANITY_CHECK_RETURN_ERROR(!p_Qm->p_QmDriverParams, E_INVALID_HANDLE); in QM_SetException()
1122 SANITY_CHECK_RETURN_ERROR(!p_Qm->p_QmDriverParams, E_INVALID_HANDLE); in QM_ReserveQueues()
1143 SANITY_CHECK_RETURN_ERROR(!p_Qm->p_QmDriverParams, E_INVALID_HANDLE); in QM_GetErrorInformation()
1196 SANITY_CHECK_RETURN_ERROR(!p_Qm->p_QmDriverParams, E_INVALID_STATE); in QM_DumpRegs()