static int RLOG_MODULE_ID=4096;
/* header include files -- defines (.h) */
-#include "envopt.h" /* environment options */
-#include "envdep.h" /* environment dependent */
-#include "envind.h" /* environment independent */
-#include "gen.h" /* general layer */
-#include "ssi.h" /* system service interface */
-#include "cm_hash.h" /* common hash list */
-#include "cm_llist.h" /* common linked list library */
-#include "cm_err.h" /* common error */
-#include "cm_lte.h" /* common LTE */
+#include "common_def.h"
#include "lrg.h"
#include "rgr.h"
#include "tfu.h"
#include "rl_common.h"
/* header/extern include files (.x) */
-#include "gen.x" /* general layer typedefs */
-#include "ssi.x" /* system services typedefs */
-#include "cm5.x" /* common timers */
-#include "cm_hash.x" /* common hash list */
-#include "cm_lib.x" /* common library */
-#include "cm_llist.x" /* common linked list */
-#include "cm_mblk.x" /* memory management */
-#include "cm_tkns.x" /* common tokens */
-#include "cm_lte.x" /* common tokens */
#include "tfu.x" /* TFU types */
#include "lrg.x" /* layer management typedefs for MAC */
#include "rgr.x" /* layer management typedefs for MAC */
#endif
/* local defines */
/************** LRG Interface ****************/
-/**
- * @brief Layer Manager Configuration request handler.
- *
- * @details
- *
- * Function : HandleSchGenCfgReq
- *
- * This function handles the configuration
- * request received at scheduler instance from the Layer Manager.
- * -# Based on the cfg->hdr.elmId.elmnt value it invokes one of the
- * functions rgHdlGenCfg() or rgHdlSapCfg().
- * -# Invokes RgMiLrgSchCfgCfm() to send back the confirmation to the LM.
- *
- * @param[in] Pst *pst, the post structure
- * @param[in] RgMngmt *cfg, the configuration parameter's structure
- * @return S16
- * -# ROK
- **/
-#ifdef ANSI
-PUBLIC S16 HandleSchGenCfgReq
-(
-Pst *pst, /* post structure */
-RgMngmt *cfg /* config structure */
-)
-#else
-PUBLIC S16 HandleSchGenCfgReq(pst, cfg)
-Pst *pst; /* post structure */
-RgMngmt *cfg; /* config structure */
-#endif
-{
- U16 ret = LCM_PRIM_OK;
- U16 reason = LCM_REASON_NOT_APPL;
- RgMngmt cfm;
- Pst cfmPst;
-#ifdef DEBUGP
- Inst inst = (pst->dstInst - SCH_INST_START);
-#endif
-
- TRC3(HandleSchGenCfgReq)
-
-
- if(pst->dstInst < SCH_INST_START)
- {
- RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "Invalid inst ID");
- RLOG_ARG2(L_DEBUG,DBG_INSTID,inst, "HandleSchGenCfgReq(): "
- "pst->dstInst=%d SCH_INST_START=%d", pst->dstInst,SCH_INST_START);
- RETVALUE(ROK);
- }
- printf("\nReceived scheduler gen config");
- /* Fill the post structure for sending the confirmation */
- SchFillCfmPst(pst, &cfmPst, cfg);
-
- /* Initialize the cfg cfm structure
- if (SGetSBuf(cfmPst.region, cfmPst.pool, (Data **)&cfm, sizeof(RgMngmt))
- != ROK)
- {
- RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "Memory Unavailable for Confirmation");
- RETVALUE(ROK);
- } */
- cmMemset((U8 *)&cfm, 0, sizeof(RgMngmt));
-
-#ifdef LMINT3
- cfm.hdr.transId =
- cfg->hdr.transId;
-#endif
-
- cfm.hdr.elmId.elmnt = cfg->hdr.elmId.elmnt;
- switch(cfg->hdr.elmId.elmnt)
- {
- case STSCHINST:
- reason = SchInstCfg(&cfg->t.cfg,pst->dstInst );
- break;
- default:
- ret = LCM_PRIM_NOK;
- reason = LCM_REASON_INVALID_ELMNT;
- RLOG_ARG1(L_ERROR,DBG_INSTID,inst, "Invalid Elmnt=%d", cfg->hdr.elmId.elmnt);
- break;
- }
-
- if (reason != LCM_REASON_NOT_APPL)
- {
- ret = LCM_PRIM_NOK;
- }
-
- cfm.cfm.status = ret;
- cfm.cfm.reason = reason;
-
- SchSendCfgCfm(&cfmPst, &cfm);
- /* SPutSBuf(pst->region, pst->pool, (Data *)cfg, sizeof(RgMngmt)); */
-
- RETVALUE(ROK);
-}/*-- HandleSchGenCfgReq --*/
-
\f
/**
* @brief Layer Manager Control request handler.
* -# ROK
**/
#ifdef ANSI
-PUBLIC S16 RgMiLrgSchCntrlReq
+S16 RgMiLrgSchCntrlReq
(
Pst *pst, /* post structure */
RgMngmt *cntrl /* control structure */
)
#else
-PUBLIC S16 RgMiLrgSchCntrlReq(pst, cntrl)
+S16 RgMiLrgSchCntrlReq(pst, cntrl)
Pst *pst; /* post structure */
RgMngmt *cntrl; /* control structure */
#endif
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "Memory Unavailable for Confirmation");
SPutSBuf(pst->region, pst->pool, (Data *)cntrl, sizeof(RgMngmt));
- RETVALUE(ROK);
+ return ROK;
} */
cmMemset((U8 *)&cfm, 0, sizeof(RgMngmt));
RgMiLrgSchCntrlCfm(&cfmPst, &cfm);
RLOG_ARG0(L_ERROR,DBG_INSTID,inst, "Gen Cfg not done.");
/* SPutSBuf(pst->region, pst->pool, (Data *)cntrl, sizeof(RgMngmt)); */
- RETVALUE(ROK);
+ return ROK;
}
/* General Config done, process the Control request */
break;
}
/* SPutSBuf(pst->region, pst->pool, (Data *)cntrl, sizeof(RgMngmt)); */
- RETVALUE(ret);
+ return (ret);
}/*-- RgMiLrgSchCntrlReq --*/
#ifdef LTE_L2_MEAS
* -# ROK
**/
#ifdef ANSI
-PUBLIC S16 RgMiLrgSchL2MeasReq
+S16 RgMiLrgSchL2MeasReq
(
Pst *pst, /* post structure */
LrgSchMeasReqInfo *measInfo /* Meas Req Info */
)
#else
-PUBLIC S16 RgMiLrgSchL2MeasReq(pst, measInfo)
+S16 RgMiLrgSchL2MeasReq(pst, measInfo)
Pst *pst; /* post structure */
LrgSchMeasReqInfo *measInfo; /* Meas Req Info */
#endif
RLOG_ARG2(L_ERROR,DBG_INSTID,inst,
"Meas req Failed.Invalid Cell Id errType(%d) errCause(%d)",
err.errType, err.errCause);
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* Validate for Meas Types */
if ( (ret = rgSCHUtlValidateMeasReq(cell, measInfo, &err)) != ROK)
RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
"Meas req Failed.Invalid Measurement Type"
"errCasue(%d) errType(%d)", err.errType, err.errCause);
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* Iterate through all meas requests in l2mList in cellCb */
#if (ERRCLASS & ERRCLS_ADD_RES)
RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
"Meas req Failed.Dublicate TransId"
"errType(%d) errCause(%d)", err.errType, err.errCause);
- RETVALUE(RFAILED);
+ return RFAILED;
}
}
#endif
RLOG_ARG2(L_ERROR,DBG_CELLID,cell->cellId,
"Meas req Failed.errType(%d) errCause(%d)",
err.errType, err.errCause);
- RETVALUE(RFAILED);
+ return RFAILED;
}
- RETVALUE(ret);
+ return (ret);
} /* -- RRgMiLrgSchL2MeasReq-- */
/**
* -# ROK
**/
#ifdef ANSI
-PUBLIC S16 RgMiLrgSchL2MeasStopReq
+S16 RgMiLrgSchL2MeasStopReq
(
Pst *pst, /* post structure */
LrgSchMeasStopReqInfo *measInfo /* Meas Req Info */
)
#else
-PUBLIC S16 RgMiLrgSchL2MeasStopReq(pst, measInfo)
+S16 RgMiLrgSchL2MeasStopReq(pst, measInfo)
Pst *pst; /* post structure */
LrgSchMeasStopReqInfo *measInfo; /* Meas Req Info */
#endif
{
RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,
"Stop req Failed.Invalid Cell Id ");
- RETVALUE(RFAILED);
+ return RFAILED;
}
cmMemset((U8 *)&measCfm, 0, sizeof(LrgSchMeasCfmInfo));
node = cell->l2mList.first;
RgMiLrgSchL2MeasStopCfm(&(rgSchCb[cell->instIdx].rgSchInit.lmPst),
&measCfm);
}
- RETVALUE(ret);
+ return (ret);
}/*RgMiLrgSchL2MeasStopReq*/
/**
* @brief Layer Manager L2 Measurement request handler.
* -# ROK
**/
#ifdef ANSI
-PUBLIC S16 RgMiLrgSchL2MeasSendReq
+S16 RgMiLrgSchL2MeasSendReq
(
Pst *pst, /* post structure */
LrgSchMeasSndReqInfo *measInfo /* Meas Req Info */
)
#else
-PUBLIC S16 RgMiLrgSchL2MeasSendReq(pst, measInfo)
+S16 RgMiLrgSchL2MeasSendReq(pst, measInfo)
Pst *pst; /* post structure */
LrgSchMeasSndReqInfo *measInfo; /* Meas Req Info */
#endif
{
RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,
"Send req Failed.Invalid Cell Id");
- RETVALUE(RFAILED);
+ return RFAILED;
}
if(measInfo->measType & LRG_L2MEAS_AVG_PRB_PER_QCI_UL)
cell->sndL2Meas = TRUE;
}
- RETVALUE(ret);
+ return (ret);
}/*RgMiLrgSchL2MeasSendReq*/
#endif /* LTE_L2_MEAS */
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgUiRgrBndReq
+S16 RgUiRgrBndReq
(
Pst *pst,
SuId suId,
SpId spId
)
#else
-PUBLIC S16 RgUiRgrBndReq(pst, suId, spId)
+S16 RgUiRgrBndReq(pst, suId, spId)
Pst *pst;
SuId suId;
SpId spId;
#endif
ret = RgUiRgrBndCfm(&tmpPst, suId, CM_BND_NOK);
}
- RETVALUE(ret);
+ return (ret);
} /* RgUiRgrBndReq */
/**
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgUiRgrUbndReq
+S16 RgUiRgrUbndReq
(
Pst *pst,
SpId spId,
Reason reason
)
#else
-PUBLIC S16 RgUiRgrUbndReq(pst, spId, reason)
+S16 RgUiRgrUbndReq(pst, spId, reason)
Pst *pst;
SpId spId;
Reason reason;
(ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
"Invalid SAP State: RgUiRgrUbndReq failed\n");
#endif
- RETVALUE(RFAILED);
+ return RFAILED;
}
}
else
(ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
"Invalid SAP Id:RgUiRgrUbndReq failed\n");
#endif
- RETVALUE(RFAILED);
+ return RFAILED;
}
- RETVALUE(ROK);
+ return ROK;
} /* RgUiRgrUbndReq */
-/**
- * @brief API for configuration request from RRM towards MAC.
- *
- * @details
- *
- * Function: HandleSchCfgReq
- *
- * This API is invoked by RRM towards MAC to configure MAC.
- * These API validates the Pst, spId, suId and transfers the config request
- * specific information to corresponding ownership module (GOM) API.
- *
- *
- * @param[in] Pst *pst
- * @param[in] RgrCfgTransId transId
- * @param[in] RgrCfgReqInfo *cfgReqInfo
- * @return S16
- * -# ROK
- * -# RFAILED
- **/
-#ifdef ANSI
-PUBLIC S16 HandleSchCfgReq
-(
- Pst *pst,
- RgrCfgTransId transId,
- RgrCfgReqInfo *cfgReqInfo
- )
-#else
-PUBLIC S16 HandleSchCfgReq(pst, transId, cfgReqInfo)
- Pst *pst;
- RgrCfgTransId transId;
- RgrCfgReqInfo *cfgReqInfo;
-#endif
-{
-
- SpId spId = 0;
- S16 ret = ROK;
- U8 cfmStatus = 0x00ff;
- U8 prntTrans[RGR_CFG_TRANSID_SIZE+1];
- Inst instId = pst->dstInst-SCH_INST_START;
-
- TRC3(HandleSchCfgReq);
-
- cmMemcpy((U8 *)prntTrans, (U8 *)transId.trans, RGR_CFG_TRANSID_SIZE);
- prntTrans[RGR_CFG_TRANSID_SIZE] = '\0';
-
-
- if (cfgReqInfo == NULLP)
- {
- RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"Input Message Buffer is NULL");
- schSendCfgCfm(pst->region, pst->pool, transId, cfmStatus);
- RETVALUE(RFAILED);
- }
-#if 0
- if (spId < rgSchCb[instId].numSaps)
- {
- switch(rgSchCb[instId].rgrSap[spId].sapSta.sapState)
- {
- case LRG_BND: /* SAP is already bound */
- RLOG0(L_DEBUG,"SAP is already bound");
- break;
- default: /* Should never reach here */
-#if (ERRCLASS & ERRCLS_ADD_RES)
- RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG005,
- (ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
- "Invalid SAP State: HandleSchCfgReq failed\n");
-#endif
- SPutSBuf(pst->region, pst->pool, (Data *)cfgReqInfo,
- (Size)sizeof(*cfgReqInfo));
- schSendCfgCfm(pst->region, pst->pool, transId, cfmStatus);
- RETVALUE(RFAILED);
- }
- }
- else
- {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- RGSCHLOGERROR(instId, ERRCLS_INT_PAR, ERG006,
- (ErrVal)rgSchCb[instId].rgrSap[spId].sapCfg.spId,
- "Invalid SAP Id:HandleSchCfgReq failed\n");
-#endif
- SPutSBuf(pst->region, pst->pool, (Data *)cfgReqInfo,
- (Size)sizeof(*cfgReqInfo));
- schSendCfgCfm(pst->region, pst->pool, transId, cfmStatus);
- RETVALUE(RFAILED);
- }
-#endif
- /* Handle configuration */
- ret = rgSCHGomHndlCfg(pst, &rgSchCb[instId],
- transId, cfgReqInfo);
- if (ret != ROK)
- {
- RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"Configuration Request Handling Failed");
- RETVALUE(RFAILED);
- }
-
- RETVALUE(ROK);
-} /* HandleSchCfgReq */
-
#ifdef RGR_SI_SCH
/**
* @brief API for SI configuration request from RRM towards MAC.
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgUiRgrSiCfgReq
+S16 RgUiRgrSiCfgReq
(
Pst *pst,
SpId spId,
RgrSiCfgReqInfo *cfgReqInfo
)
#else
-PUBLIC S16 RgUiRgrSiCfgReq(pst, spId, transId, cfgReqInfo)
+S16 RgUiRgrSiCfgReq(pst, spId, transId, cfgReqInfo)
Pst *pst;
SpId spId;
RgrCfgTransId transId;
RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"Input Message Buffer "
"is NULL");
rgSCHUtlRgrSiCfgCfm(instId, spId, transId, cfmStatus);
- RETVALUE(RFAILED);
+ return RFAILED;
}
if (spId < rgSchCb[instId].numSaps)
SPutSBuf(pst->region, pst->pool, (Data *)cfgReqInfo,
(Size)sizeof(*cfgReqInfo));
rgSCHUtlRgrSiCfgCfm(instId, spId, transId, cfmStatus);
- RETVALUE(RFAILED);
+ return RFAILED;
}
}
else
SPutSBuf(pst->region, pst->pool, (Data *)cfgReqInfo,
(Size)sizeof(*cfgReqInfo));
rgSCHUtlRgrSiCfgCfm(instId, spId, transId, cfmStatus);
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* Handle configuration */
{
RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"RgUiRgrSiCfgReq:"
"Configuration Request Handling Failed");
- RETVALUE(RFAILED);
+ return RFAILED;
}
- RETVALUE(ROK);
+ return ROK;
} /* RgUiRgrSiCfgReq */
\f
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgUiRgrWarningSiCfgReq
+S16 RgUiRgrWarningSiCfgReq
(
Pst *pst,
SpId spId,
RgrWarningSiCfgReqInfo *warningSiCfgReqInfo
)
#else
-PUBLIC S16 RgUiRgrWarningSiCfgReq(pst, spId, transId, warningSiCfgReqInfo)
+S16 RgUiRgrWarningSiCfgReq(pst, spId, transId, warningSiCfgReqInfo)
Pst *pst;
SpId spId;
RgrCfgTransId transId;
RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"Input Message Buffer "
"is NULL");
rgSCHUtlRgrWarningSiCfgCfm(instId, spId, 0, transId, cfmStatus);
- RETVALUE(RFAILED);
+ return RFAILED;
}
if (spId < rgSchCb[instId].numSaps)
sizeof(RgrWarningSiCfgReqInfo));
rgSCHUtlRgrWarningSiCfgCfm(instId, spId, warningSiCfgReqInfo->siId,
transId, cfmStatus);
- RETVALUE(RFAILED);
+ return RFAILED;
}
}
else
sizeof(RgrWarningSiCfgReqInfo));
rgSCHUtlRgrWarningSiCfgCfm(instId, spId, warningSiCfgReqInfo->siId,
transId, cfmStatus);
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* Handle configuration */
{
RLOG_ARG0(L_ERROR,DBG_INSTID,instId,
"Configuration Request Handling Failed");
- RETVALUE(RFAILED);
+ return RFAILED;
}
- RETVALUE(ROK);
+ return ROK;
}
\f
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgUiRgrWarningSiStopReq
+S16 RgUiRgrWarningSiStopReq
(
Pst *pst,
SpId spId,
U8 siId
)
#else
-PUBLIC S16 RgUiRgrWarningSiStopReq(pst,spId, transId, siId)
+S16 RgUiRgrWarningSiStopReq(pst,spId, transId, siId)
Pst *pst;
SpId spId;
RgrCfgTransId transId;
(ErrVal)rgSchCb[instId].rgrSap[spId].sapSta.sapState,
"Invalid SAP State: RgUiRgrWarningSiStopReq failed\n");
#endif
- RETVALUE(RFAILED);
+ return RFAILED;
}
}
else
(ErrVal)rgSchCb[instId].rgrSap[spId].sapCfg.spId,
"Invalid SAP Id:RgUiRgrWarningSiStopReq failed\n");
#endif
- RETVALUE(RFAILED);
+ return RFAILED;
}
rgSCHGomHndlWarningSiStopReq(pst->region, pst->pool,
&rgSchCb[instId], siId, transId, spId);
- RETVALUE(ROK);
+ return ROK;
}
#endif /*RGR_SI_SCH */
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgUiRgrLoadInfReq
+S16 RgUiRgrLoadInfReq
(
Pst *pst,
SpId spId,
RgrLoadInfReqInfo *loadInfReq
)
#else
-PUBLIC S16 RgUiRgrLoadInfReq(pst, spId, transId, loadInfReq)
+S16 RgUiRgrLoadInfReq(pst, spId, transId, loadInfReq)
Pst *pst;
SpId spId;
RgrCfgTransId transId;
{
RLOG_ARG0(L_ERROR,DBG_INSTID,instId,"Input Message Buffer "
"is NULL");
- RETVALUE(RFAILED);
+ return RFAILED;
}
if (spId < rgSchCb[instId].numSaps)
#endif
SPutSBuf(pst->region, pst->pool, (Data *)loadInfReq,
(Size)sizeof(*loadInfReq));
- RETVALUE(RFAILED);
+ return RFAILED;
}
}
else
#endif
SPutSBuf(pst->region, pst->pool, (Data *)loadInfReq,
(Size)sizeof(*loadInfReq));
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* Handle configuration */
{
RLOG_ARG0(L_ERROR,DBG_INSTID,instId,
"Configuration Request Handling Failed");
- RETVALUE(RFAILED);
+ return RFAILED;
}
- RETVALUE(ROK);
+ return ROK;
} /* RgUiRgrLoadInfReq */
/* LTE_ADV_FLAG_REMOVED_END */
* -# ROK
**/
#ifdef ANSI
-PUBLIC S16 RgMacSchDedBoUpdtReq
+S16 RgMacSchDedBoUpdtReq
(
Pst* pst,
RgInfDedBoRpt *boRpt
)
#else
-PUBLIC S16 RgMacSchDedBoUpdtReq(pst, boRpt)
+S16 RgMacSchDedBoUpdtReq(pst, boRpt)
Pst* pst;
RgInfDedBoRpt *boRpt;
#endif
/* Handle Cell fetch failure */
RGSCHLOGERROR(inst, ERRCLS_INT_PAR,ERG009,(ErrVal)boRpt->cellId,
"rgMacSchDedBoUpdtReq(): Invalid cell Id");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
#ifdef LTE_ADV
if (cell != ue->cell)
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
if ((dlLc = rgSCHDbmGetDlDedLcCb(ue, boRpt->lcId)) != NULLP)
dlLc->setMaxDlPrio = boRpt->setMaxDlPrio;
/* Update the scheduler */
rgSCHUtlDlDedBoUpd(cell, ue, dlLc);
- RETVALUE(ROK);
+ return ROK;
}
}
- RETVALUE(RFAILED);
+ return RFAILED;
} /* end of rgMacSchDedBoUpdtReq */
* -# ROK
**/
#ifdef ANSI
-PUBLIC S16 RgMacSchCmnBoUpdtReq
+S16 RgMacSchCmnBoUpdtReq
(
Pst* pst,
RgInfCmnBoRpt *boRpt
)
#else
-PUBLIC S16 RgMacSchCmnBoUpdtReq(pst, boRpt)
+S16 RgMacSchCmnBoUpdtReq(pst, boRpt)
Pst* pst;
RgInfCmnBoRpt *boRpt;
#endif
{
RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,"RgMacSchCmnBoUpdtReq():"
"Invalid boRpt cell Id:%d",boRpt->cellId);
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* handle status response on CCCH */
rgSCHUtlHndlBcchPcchBoUpdt(cell, boRpt);
}
- RETVALUE(ROK);
+ return ROK;
} /* end of RgMacSchCmnBoUpdtReq */
/*Fix: start: Inform UE delete to scheduler*/
/**
* -# ROK
**/
#ifdef ANSI
-PUBLIC S16 RgMacSchUeDelInd
+S16 RgMacSchUeDelInd
(
Pst* pst,
RgInfUeDelInd *ueDelInd
)
#else
-PUBLIC S16 RgMacSchUeDelInd(pst, ueDelInd)
+S16 RgMacSchUeDelInd(pst, ueDelInd)
Pst* pst;
RgInfUeDelInd *ueDelInd;
#endif
if (rgSchCb[inst].rgrSap == NULLP || rgSchCb[inst].rgrSap[cellSapId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,ueDelInd->cellId,"rgrSap or cell is not configured");
- RETVALUE(ROK);
+ return ROK;
}
cell = rgSchCb[inst].rgrSap[cellSapId].cell;
#ifndef NO_ERRCLS
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
"rgMacSchUeDelInd(): Invalid ueDelInd cell Id:%d",
ueDelInd->cellId);
- RETVALUE(ROK);
+ return ROK;
}
#endif
"Guard Pool:%ld", ueDelInd->rnti, cell->rntiDb.rntiGuardPool.count);
}
- RETVALUE(ROK);
+ return ROK;
} /* rgMacSchUeDelInd */
/*Fix: end: Inform UE delete to scheduler*/
/**
* -# ROK
**/
#ifdef ANSI
-PUBLIC S16 RgMacSchSfRecpInd
+S16 RgMacSchSfRecpInd
(
Pst* pst,
RgInfSfDatInd *subfrmInfo
)
#else
-PUBLIC S16 RgMacSchSfRecpInd(pst, subfrmInfo)
+S16 RgMacSchSfRecpInd(pst, subfrmInfo)
Pst* pst;
RgInfSfDatInd *subfrmInfo;
#endif
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
"Received MSG3 with CRNTI:%d and also CCCH ",
datInd->ceInfo.ces.cRnti);
- RETVALUE(RFAILED);
+ return RFAILED;
}
ue = rgSCHDbmGetUeCb (cell, datInd->ceInfo.ces.cRnti);
if (ue == NULLP)
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Received MSG3 "
"with CRNTI:%d unable to find ueCb",
datInd->ceInfo.ces.cRnti);
- RETVALUE(RFAILED);
+ return RFAILED;
}
if ((ret = rgSCHUtlProcMsg3 (subfrmInfo, cell, ue,
err.errType = RGSCHERR_TOM_DATIND;
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId, "Processing for MSG3 failed for CRNTI:%d",
datInd->rnti);
- RETVALUE(RFAILED);
+ return RFAILED;
}
#ifdef LTEMAC_SPS
err.errType = RGSCHERR_TOM_DATIND;
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Processing for MSG3 failed for CRNTI:%d",
datInd->rnti);
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* fix */
CM_LLIST_NEXT_NODE(lnkLst, tmp);
err.errType = RGSCHERR_TOM_DATIND;
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to get the UE CB for CRNTI:%d",
datInd->rnti);
- RETVALUE(RFAILED);
+ return RFAILED;
}
}
}
err.errType = RGSCHERR_TOM_DATIND;
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,"Unable to handle Data"
" Indication for UEID:%d",ue->ueId);
- RETVALUE(RFAILED);
+ return RFAILED;
}
CM_LLIST_NEXT_NODE(lnkLst, tmp);
/* chk if Sch needs to dealloc datInd after unpk */
RGSCH_FREE_MEM(subfrmInfo);
- RETVALUE(ret);
+ return (ret);
} /* rgMacSchSfRecpInd */
#ifdef LTEMAC_SPS
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgMacSchSpsRelInd
+S16 RgMacSchSpsRelInd
(
Pst *pst,
RgInfSpsRelInfo *relInfo
)
#else
-PUBLIC S16 RgMacSchSpsRelInd(pst, relInfo)
+S16 RgMacSchSpsRelInd(pst, relInfo)
Pst *pst;
RgInfSpsRelInfo *relInfo;
#endif
{
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
"No Ue exists with CRNTI:%d",relInfo->cRnti);
- RETVALUE(RFAILED);
+ return RFAILED;
}
if ((rgSCHUtlSpsRelInd(cell, ue, relInfo->isExplRel)) != ROK)
{
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
"RelInd processing for CRNTI:%d failed",relInfo->cRnti);
- RETVALUE(RFAILED);
+ return RFAILED;
}
- RETVALUE(ROK);
+ return ROK;
} /* end of RgMacSchSpsRelInd */
#endif /* LTEMAC_SPS */
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgMacSchL2MeasCfm
+S16 RgMacSchL2MeasCfm
(
Pst *pst,
RgInfL2MeasCfm *measCfm
)
#else
-PUBLIC S16 RgMacSchL2MeasCfm(pst, measCfm)
+S16 RgMacSchL2MeasCfm(pst, measCfm)
Pst *pst;
RgInfL2MeasCfm *measCfm;
#endif
{
RLOG_ARG0(L_ERROR,DBG_CELLID,measCfm->cellId,
"Meas Cfm Failed.Invalid Cell Id");
- RETVALUE(RFAILED);
+ return RFAILED;
}
}
if ( measCb == NULLP )
{
- RETVALUE( RFAILED );
+ return ( RFAILED );
}
schMeasCfm.hdr.transId = measCfm->transId;
schMeasCfm.cellId = measCfm->cellId;
RgMiLrgSchL2MeasCfm(&(instCb->rgSchInit.lmPst), &schMeasCfm);
- RETVALUE(ROK);
+ return ROK;
}
for(idx = 0; idx < measCfm->u.prbCfm.numQci; idx++)
{
measCb->avgPrbQciUl.numQci = measCfm->u.prbCfm.numQci;
measCb->cfmRcvd = TRUE;
cell->sndL2Meas = TRUE;
- RETVALUE(ROK);
+ return ROK;
} /* end of RgMacSchL2MeasCfm */
/**
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgMacSchL2MeasStopCfm
+S16 RgMacSchL2MeasStopCfm
(
Pst *pst,
RgInfL2MeasCfm *measCfm
)
#else
-PUBLIC S16 RgMacSchL2MeasStopCfm(pst, measCfm)
+S16 RgMacSchL2MeasStopCfm(pst, measCfm)
Pst *pst;
RgInfL2MeasCfm *measCfm;
#endif
schMeasCfm.hdr.transId = measCfm->transId;
schMeasCfm.cellId = measCfm->cellId;
RgMiLrgSchL2MeasStopCfm(&(instCb->rgSchInit.lmPst), &schMeasCfm);
- RETVALUE(ROK);
+ return ROK;
}
#endif
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuSchBndCfm
+S16 RgLiTfuSchBndCfm
(
Pst *pst,
SuId suId,
U8 status
)
#else
-PUBLIC S16 RgLiTfuSchBndCfm(pst, suId, status)
+S16 RgLiTfuSchBndCfm(pst, suId, status)
Pst *pst;
SuId suId;
U8 status;
if(suId >= rgSchCb[instId].numSaps)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,instId, "Incorrect SuId");
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* Lets validate suId first */
tfuSap = &(rgSchCb[instId].tfuSap[suId]);
{
RLOG_ARG2(L_ERROR,DBG_INSTID,instId, "Incorrect SuId. Configured (%d)"
"Recieved (%d)", tfuSap->sapCfg.suId, suId);
- RETVALUE(RFAILED);
+ return RFAILED;
}
ret = rgSCHLmmBndCfm (pst, suId, status);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuSchBndCfm */
/**
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuRaReqInd
+S16 RgLiTfuRaReqInd
(
Pst *pst,
SuId suId,
TfuRaReqIndInfo *raReqInd
)
#else
-PUBLIC S16 RgLiTfuRaReqInd(pst, suId, raReqInd)
+S16 RgLiTfuRaReqInd(pst, suId, raReqInd)
Pst *pst;
SuId suId;
TfuRaReqIndInfo *raReqInd;
RLOG_ARG1(L_ERROR,DBG_INSTID,inst,"SAP Validation failed SuId(%d)", suId);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(raReqInd);
- RETVALUE(ret);
+ return (ret);
}
if(raReqInd == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"Invalid input pointer for raReqInd Failed");
- RETVALUE(RFAILED);
+ return RFAILED;
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,raReqInd->cellId,"No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
ret = rgSCHTomRaReqInd(rgSchCb[inst].tfuSap[suId].cell, raReqInd);
RGSCH_FREE_MEM(raReqInd);
/*SPutSBuf (pst->region, pst->pool, (Data *)raReqInd,
sizeof(TfuRaReqIndInfo)); */
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuRaReqInd */
/**
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuUlCqiInd
+S16 RgLiTfuUlCqiInd
(
Pst *pst,
SuId suId,
TfuUlCqiIndInfo *ulCqiInd
)
#else
-PUBLIC S16 RgLiTfuUlCqiInd(pst, suId, ulCqiInd)
+S16 RgLiTfuUlCqiInd(pst, suId, ulCqiInd)
Pst *pst;
SuId suId;
TfuUlCqiIndInfo *ulCqiInd;
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(ulCqiInd);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(ulCqiInd);
- RETVALUE(RFAILED);
+ return RFAILED;
}
ret = rgSCHTomUlCqiInd (rgSchCb[inst].tfuSap[suId].cell, ulCqiInd);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(ulCqiInd);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuUlCqiInd */
/**
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuPucchDeltaPwrInd
+S16 RgLiTfuPucchDeltaPwrInd
(
Pst *pst,
SuId suId,
TfuPucchDeltaPwrIndInfo *pucchDeltaPwr
)
#else
-PUBLIC S16 RgLiTfuPucchDeltaPwrInd(pst, suId, pucchDeltaPwr)
+S16 RgLiTfuPucchDeltaPwrInd(pst, suId, pucchDeltaPwr)
Pst *pst;
SuId suId;
TfuPucchDeltaPwrIndInfo *pucchDeltaPwr;
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(pucchDeltaPwr);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
ret = rgSCHTomPucchDeltaPwrInd (rgSchCb[inst].tfuSap[suId].cell, pucchDeltaPwr);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(pucchDeltaPwr);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuPucchDeltaPwrInd */
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuHqInd
+S16 RgLiTfuHqInd
(
Pst *pst,
SuId suId,
TfuHqIndInfo *harqAckInd
)
#else
-PUBLIC S16 RgLiTfuHqInd(pst, suId, harqAckInd)
+S16 RgLiTfuHqInd(pst, suId, harqAckInd)
Pst *pst;
SuId suId;
TfuHqIndInfo *harqAckInd;
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
RGSCH_FREE_MEM(harqAckInd);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
ret = rgSCHTomHarqAckInd (rgSchCb[inst].tfuSap[suId].cell, harqAckInd);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(harqAckInd);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuHqInd */
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuSrInd
+S16 RgLiTfuSrInd
(
Pst *pst,
SuId suId,
TfuSrIndInfo *srInd
)
#else
-PUBLIC S16 RgLiTfuSrInd(pst, suId, srInd)
+S16 RgLiTfuSrInd(pst, suId, srInd)
Pst *pst;
SuId suId;
TfuSrIndInfo *srInd;
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"() SAP Validation failed");
RGSCH_FREE_MEM(srInd);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"RgLiTfuSrInd()No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
/* Now call the TOM (Tfu ownership module) primitive to process further */
ret = rgSCHTomSrInd (rgSchCb[inst].tfuSap[suId].cell, srInd);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(srInd);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuSrInd */
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuDlCqiInd
+S16 RgLiTfuDlCqiInd
(
Pst *pst,
SuId suId,
TfuDlCqiIndInfo *dlCqiInd
)
#else
-PUBLIC S16 RgLiTfuDlCqiInd(pst, suId, dlCqiInd)
+S16 RgLiTfuDlCqiInd(pst, suId, dlCqiInd)
Pst *pst;
SuId suId;
TfuDlCqiIndInfo *dlCqiInd;
RLOG_ARG0(L_ERROR,DBG_INSTID,inst," SAP Validation failed");
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(dlCqiInd);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
ret = rgSCHTomDlCqiInd (rgSchCb[inst].tfuSap[suId].cell, dlCqiInd);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(dlCqiInd);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuDlCqiInd */
#ifdef TFU_UPGRADE
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuRawCqiInd
+S16 RgLiTfuRawCqiInd
(
Pst *pst,
SuId suId,
TfuRawCqiIndInfo *rawCqiInd
)
#else
-PUBLIC S16 RgLiTfuRawCqiInd(pst, suId, rawCqiInd)
+S16 RgLiTfuRawCqiInd(pst, suId, rawCqiInd)
Pst *pst;
SuId suId;
TfuRawCqiIndInfo *rawCqiInd;
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(rawCqiInd);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst," No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
ret = rgSCHTomRawCqiInd (rgSchCb[inst].tfuSap[suId].cell, rawCqiInd);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(rawCqiInd);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuRawCqiInd */
/**
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuSrsInd
+S16 RgLiTfuSrsInd
(
Pst *pst,
SuId suId,
TfuSrsIndInfo *srsInd
)
#else
-PUBLIC S16 RgLiTfuSrsInd(pst, suId, srsInd)
+S16 RgLiTfuSrsInd(pst, suId, srsInd)
Pst *pst;
SuId suId;
TfuSrsIndInfo *srsInd;
RLOG_ARG0(L_ERROR,DBG_INSTID,inst," SAP Validation failed");
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(srsInd);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
ret = rgSCHTomSrsInd (rgSchCb[inst].tfuSap[suId].cell, srsInd);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(srsInd);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuSrsInd */
#endif
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuDoaInd
+S16 RgLiTfuDoaInd
(
Pst *pst,
SuId suId,
TfuDoaIndInfo *doaInd
)
#else
-PUBLIC S16 RgLiTfuDoaInd(pst, suId, doaInd)
+S16 RgLiTfuDoaInd(pst, suId, doaInd)
Pst *pst;
SuId suId;
TfuDoaIndInfo *doaInd;
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(doaInd);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
ret = rgSCHTomDoaInd (rgSchCb[inst].tfuSap[suId].cell, doaInd);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(doaInd);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuDlCqiInd */
/**
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuCrcInd
+S16 RgLiTfuCrcInd
(
Pst *pst,
SuId suId,
TfuCrcIndInfo *crcInd
)
#else
-PUBLIC S16 RgLiTfuCrcInd (pst, suId, crcInd)
+S16 RgLiTfuCrcInd (pst, suId, crcInd)
Pst *pst;
SuId suId;
TfuCrcIndInfo *crcInd;
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
RGSCH_FREE_MEM(crcInd);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
#ifdef XEON_SPECIFIC_CHANGES
gettimeofday(&end6, NULL);
#endif
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuCrcInd */
/**
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuTimingAdvInd
+S16 RgLiTfuTimingAdvInd
(
Pst *pst,
SuId suId,
TfuTimingAdvIndInfo *timingAdvInd
)
#else
-PUBLIC S16 RgLiTfuTimingAdvInd(pst, suId, timingAdvInd)
+S16 RgLiTfuTimingAdvInd(pst, suId, timingAdvInd)
Pst *pst;
SuId suId;
TfuTimingAdvIndInfo *timingAdvInd;
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(timingAdvInd);
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
/* Now call the TOM (Tfu ownership module) primitive to process further */
ret = rgSCHTomTimingAdvInd(rgSchCb[inst].tfuSap[suId].cell, timingAdvInd);
/* Free up the memory for the request structure */
RGSCH_FREE_MEM(timingAdvInd);
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuTimingAdvInd */
-
-/**
- * @brief Transmission time interval indication from PHY.
- *
- * @details
- *
- * Function : RgLiTfuSchTtiInd
- *
- * This API is invoked by PHY to indicate TTI indication to Scheduler for
- * a cell.
- *
- * @param[in] Pst *pst
- * @param[in] SuId suId
- * @param[in] TfuTtiIndInfo *ttiInd
- * @return S16
- * -# ROK
- * -# RFAILED
- **/
-#ifdef ANSI
-PUBLIC S16 RgLiTfuSchTtiInd
-(
-Pst *pst,
-SuId suId,
-TfuTtiIndInfo *ttiInd
-)
-#else
-PUBLIC S16 RgLiTfuSchTtiInd(pst, suId, ttiInd)
-Pst *pst;
-SuId suId;
-TfuTtiIndInfo *ttiInd;
-#endif
-{
- S16 ret = ROK;
- Inst inst = pst->dstInst-SCH_INST_START;
-
- TRC3(RgLiTfuSchTtiInd);
-
-
- /* Removing the validation with every TTI - for optimization */
-#ifndef NO_ERRCLS
- if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK)
- {
- RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
- RETVALUE(ret);
- }
-#endif
- /* Moved check for cell outside ERRCLS*/
-
- /* Now call the TOM (Tfu ownership module) primitive to process further */
- rgSCHTomTtiInd(ttiInd, inst);
-
- RETVALUE(ret);
-} /* RgLiTfuSchTtiInd */
-
/************* RGM Interface ****************/
/**
* @brief API for bind request from RRM towards MAC.
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgUiRgmBndReq
+S16 RgUiRgmBndReq
(
Pst *pst,
SuId suId,
SpId spId
)
#else
-PUBLIC S16 RgUiRgmBndReq(pst, suId, spId)
+S16 RgUiRgmBndReq(pst, suId, spId)
Pst *pst;
SuId suId;
SpId spId;
#endif
ret = RgUiRgmBndCfm(&tmpPst, suId, CM_BND_NOK);
}
- RETVALUE(ret);
+ return (ret);
} /* RgUiRgmBndReq */
/**
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgUiRgmUbndReq
+S16 RgUiRgmUbndReq
(
Pst *pst,
SpId spId,
Reason reason
)
#else
-PUBLIC S16 RgUiRgmUbndReq(pst, spId, reason)
+S16 RgUiRgmUbndReq(pst, spId, reason)
Pst *pst;
SpId spId;
Reason reason;
(ErrVal)rgSchCb[instId].rgmSap[spId].sapSta.sapState,
"Invalid SAP State: RgUiRgmUbndReq failed\n");
#endif
- RETVALUE(RFAILED);
+ return RFAILED;
}
}
else
(ErrVal)rgSchCb[instId].rgmSap[spId].sapSta.sapState,
"Invalid SAP Id:RgUiRgmUbndReq failed\n");
#endif
- RETVALUE(RFAILED);
+ return RFAILED;
}
- RETVALUE(ROK);
+ return ROK;
} /* RgUiRgmUbndReq */
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgUiRgmCfgPrbRprt
+S16 RgUiRgmCfgPrbRprt
(
Pst *pst,
SpId spId,
RgmPrbRprtCfg *prbRprtCfg
)
#else
-PUBLIC S16 RgUiRgmCfgPrbRprt(pst, spId, prbRprtCfg)
+S16 RgUiRgmCfgPrbRprt(pst, spId, prbRprtCfg)
Pst *pst;
SpId spId;
RgmPrbRprtCfg *prbRprtCfg;
/* ccpu00134393 : mem leak fix */
SPutSBuf(pst->region, pst->pool, (Data *)prbRprtCfg, sizeof(RgmPrbRprtCfg));
- RETVALUE(ROK);
+ return ROK;
}
/**
* @brief ERROR INDICATION from PHY for the i failed unlicensed Scell transmission.
* -# RFAILED
**/
#ifdef ANSI
-PUBLIC S16 RgLiTfuErrInd
+S16 RgLiTfuErrInd
(
Pst *pst,
SuId suId,
TfuErrIndInfo *errInd
)
#else
-PUBLIC S16 RgLiTfuErrInd(pst, suId, errInd)
+S16 RgLiTfuErrInd(pst, suId, errInd)
Pst *pst;
SuId suId;
TfuErrIndInfo *errInd;
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed");
- RETVALUE(ret);
+ return (ret);
}
if (rgSchCb[inst].tfuSap[suId].cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"No cell exists");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
/* Now call the TOM (Tfu ownership module) primitive to process further */
ret = rgSCHLaaErrInd(rgSchCb[inst].tfuSap[suId].cell, errInd);
#endif
- RETVALUE(ret);
+ return (ret);
} /* RgLiTfuErrInd */