Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Jira id - ODUHIGH-227
[o-du/l2.git]
/
src
/
5gnrmac
/
rg_l2m.c
diff --git
a/src/5gnrmac/rg_l2m.c
b/src/5gnrmac/rg_l2m.c
index
2a618a4
..
d335f82
100755
(executable)
--- a/
src/5gnrmac/rg_l2m.c
+++ b/
src/5gnrmac/rg_l2m.c
@@
-94,7
+94,7
@@
PRIVATE RgL2MeasCb * rgL2mAllocMeasCb ARGS((
*
*/
#ifdef ANSI
*
*/
#ifdef ANSI
-
PUBLIC
S16 rgL2mCreateMeasCb
+S16 rgL2mCreateMeasCb
(
RgCellCb *cell,
RgInfL2MeasReq *measInfo,
(
RgCellCb *cell,
RgInfL2MeasReq *measInfo,
@@
-102,7
+102,7
@@
U8 measType,
RgErrInfo *err
)
#else
RgErrInfo *err
)
#else
-
PUBLIC
S16 rgL2mCreateMeasCb(cell, measInfo, measType, err)
+S16 rgL2mCreateMeasCb(cell, measInfo, measType, err)
RgCellCb *cell;
RgInfL2MeasReq *measInfo;
U8 measType;
RgCellCb *cell;
RgInfL2MeasReq *measInfo;
U8 measType;
@@
-122,7
+122,7
@@
RgErrInfo *err;
if ((measCb = rgL2mAllocMeasCb(cell, measInfo, err)) == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Allocation of RgL2MeasCb failed");
if ((measCb = rgL2mAllocMeasCb(cell, measInfo, err)) == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"Allocation of RgL2MeasCb failed");
-
RETVALUE(RFAILED)
;
+
return RFAILED
;
}
//Memcpy is already done in rgL2mAllocMeasCb
/*cmMemcpy((U8 *)&measCb->measReq, (CONSTANT U8 *)measInfo,\
}
//Memcpy is already done in rgL2mAllocMeasCb
/*cmMemcpy((U8 *)&measCb->measReq, (CONSTANT U8 *)measInfo,\
@@
-144,7
+144,7
@@
RgErrInfo *err;
}
cell->qciArray[measInfo->t.prbReq.qci[idx]].mask = TRUE;
}
}
cell->qciArray[measInfo->t.prbReq.qci[idx]].mask = TRUE;
}
-
RETVALUE(ROK)
;
+
return ROK
;
} /* rgL2mCreateMeasCb */
} /* rgL2mCreateMeasCb */
@@
-167,14
+167,14
@@
RgErrInfo *err;
* -# ROK
**/
#ifdef ANSI
* -# ROK
**/
#ifdef ANSI
-
PUBLIC
S16 rgL2mMeasReq
+S16 rgL2mMeasReq
(
RgCellCb *cell,
RgInfL2MeasReq *measInfo,
RgErrInfo *err
)
#else
(
RgCellCb *cell,
RgInfL2MeasReq *measInfo,
RgErrInfo *err
)
#else
-
PUBLIC
S16 rgL2mMeasReq(cell, measInfo, err)
+S16 rgL2mMeasReq(cell, measInfo, err)
RgCellCb *cell;
RgInfL2MeasReq *measInfo;
RgErrInfo *err;
RgCellCb *cell;
RgInfL2MeasReq *measInfo;
RgErrInfo *err;
@@
-188,9
+188,9
@@
RgErrInfo *err;
LRG_L2MEAS_AVG_PRB_PER_QCI_UL, err)) != ROK)
{
/* Clear Downlink MeasCb created Above If exists*/
LRG_L2MEAS_AVG_PRB_PER_QCI_UL, err)) != ROK)
{
/* Clear Downlink MeasCb created Above If exists*/
-
RETVALUE
(ret);
+
return
(ret);
}
}
-
RETVALUE(ROK)
;
+
return ROK
;
} /* rgL2mMeasReq */
/** @brief This function sends the measurement confirm
* from mac to scheduler
} /* rgL2mMeasReq */
/** @brief This function sends the measurement confirm
* from mac to scheduler
@@
-273,13
+273,13
@@
RgInfL2MeasCfm *measCfm;
* -# RFAILED
**/
#ifdef ANSI
* -# RFAILED
**/
#ifdef ANSI
-
PUBLIC
S16 RgSchMacL2MeasReq
+S16 RgSchMacL2MeasReq
(
Pst *pst, /* post structure */
RgInfL2MeasReq *measInfo /* Meas Req Info */
)
#else
(
Pst *pst, /* post structure */
RgInfL2MeasReq *measInfo /* Meas Req Info */
)
#else
-
PUBLIC
S16 RgSchMacL2MeasReq(pst, measInfo)
+S16 RgSchMacL2MeasReq(pst, measInfo)
Pst *pst; /* post structure */
RgInfL2MeasReq *measInfo; /* Meas Req Info */
#endif
Pst *pst; /* post structure */
RgInfL2MeasReq *measInfo; /* Meas Req Info */
#endif
@@
-301,7
+301,7
@@
RgInfL2MeasReq *measInfo; /* Meas Req Info */
(cellCb->cellId != measInfo->cellId))
{
RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,"unable to get the cellCb");
(cellCb->cellId != measInfo->cellId))
{
RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,"unable to get the cellCb");
-
RETVALUE(RFAILED)
;
+
return RFAILED
;
}
/* Call L2M Function to store Meas req */
ret = rgL2mMeasReq(cellCb, measInfo, &err);
}
/* Call L2M Function to store Meas req */
ret = rgL2mMeasReq(cellCb, measInfo, &err);
@@
-317,9
+317,9
@@
RgInfL2MeasReq *measInfo; /* Meas Req Info */
RLOG_ARG2(L_ERROR,DBG_CELLID,measInfo->cellId,
"Meas req Failed errType(%d) errCause(%d)",
err.errType, err.errCause);
RLOG_ARG2(L_ERROR,DBG_CELLID,measInfo->cellId,
"Meas req Failed errType(%d) errCause(%d)",
err.errType, err.errCause);
-
RETVALUE(RFAILED)
;
+
return RFAILED
;
}
}
-
RETVALUE
(ret);
+
return
(ret);
} /* -- RgSchMacL2MeasReq-- */
/**
} /* -- RgSchMacL2MeasReq-- */
/**
@@
-337,13
+337,13
@@
RgInfL2MeasReq *measInfo; /* Meas Req Info */
* -# RFAILED
**/
#ifdef ANSI
* -# RFAILED
**/
#ifdef ANSI
-
PUBLIC
S16 RgSchMacL2MeasStopReq
+S16 RgSchMacL2MeasStopReq
(
Pst *pst, /* post structure */
RgInfL2MeasStopReq *measInfo /* Meas Req Info */
)
#else
(
Pst *pst, /* post structure */
RgInfL2MeasStopReq *measInfo /* Meas Req Info */
)
#else
-
PUBLIC
S16 RgSchMacL2MeasStopReq(pst, measInfo)
+S16 RgSchMacL2MeasStopReq(pst, measInfo)
Pst *pst; /* post structure */
RgInfL2MeasStopReq *measInfo; /* Meas Req Info */
#endif
Pst *pst; /* post structure */
RgInfL2MeasStopReq *measInfo; /* Meas Req Info */
#endif
@@
-371,7
+371,7
@@
RgInfL2MeasStopReq *measInfo; /* Meas Req Info */
RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,
"Unable to get the cellCb");
RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,
"Unable to get the cellCb");
-
RETVALUE(RFAILED)
;
+
return RFAILED
;
}
node = cellCb->l2mList.first;
while(node != NULLP)
}
node = cellCb->l2mList.first;
while(node != NULLP)
@@
-393,7
+393,7
@@
RgInfL2MeasStopReq *measInfo; /* Meas Req Info */
measCfm.measType = measInfo->measType;
measCfm.cfm.status = LCM_PRIM_OK;
rgSndL2MeasStopCfm(cellCb, &measCfm);
measCfm.measType = measInfo->measType;
measCfm.cfm.status = LCM_PRIM_OK;
rgSndL2MeasStopCfm(cellCb, &measCfm);
-
RETVALUE
(ret);
+
return
(ret);
} /* -- RgSchMacL2MeasStopReq-- */
/**
} /* -- RgSchMacL2MeasStopReq-- */
/**
@@
-411,13
+411,13
@@
RgInfL2MeasStopReq *measInfo; /* Meas Req Info */
* -# RFAILED
**/
#ifdef ANSI
* -# RFAILED
**/
#ifdef ANSI
-
PUBLIC
S16 RgSchMacL2MeasSendReq
+S16 RgSchMacL2MeasSendReq
(
Pst *pst, /* post structure */
RgInfL2MeasSndReq *measInfo /* Meas Req Info */
)
#else
(
Pst *pst, /* post structure */
RgInfL2MeasSndReq *measInfo /* Meas Req Info */
)
#else
-
PUBLIC
S16 RgSchMacL2MeasSendReq(pst, measInfo)
+S16 RgSchMacL2MeasSendReq(pst, measInfo)
Pst *pst; /* post structure */
RgInfL2MeasSndReq *measInfo; /* Meas Req Info */
#endif
Pst *pst; /* post structure */
RgInfL2MeasSndReq *measInfo; /* Meas Req Info */
#endif
@@
-439,12
+439,12
@@
RgInfL2MeasSndReq *measInfo; /* Meas Req Info */
RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,
"Unable to get the cellCb");
RLOG_ARG0(L_ERROR,DBG_CELLID,measInfo->cellId,
"Unable to get the cellCb");
-
RETVALUE(RFAILED)
;
+
return RFAILED
;
}
/*set sndL2Meas as applicatoin sent l2 meas info request*/
cellCb->sndL2Meas = TRUE;
}
/*set sndL2Meas as applicatoin sent l2 meas info request*/
cellCb->sndL2Meas = TRUE;
-
RETVALUE
(ret);
+
return
(ret);
}/*RgSchMacL2MeasSendReq*/
/** @brief This function inserts the MeasCb in to data base
}/*RgSchMacL2MeasSendReq*/
/** @brief This function inserts the MeasCb in to data base
@@
-504,7
+504,7
@@
RgInfL2MeasReq *measInfo;
{
cell->l2mList.crnt = lnk;
cmLListInsCrnt(&(cell->l2mList), node);
{
cell->l2mList.crnt = lnk;
cmLListInsCrnt(&(cell->l2mList), node);
-
RETVALUE(ROK)
;
+
return ROK
;
}
else
{
}
else
{
@@
-513,7
+513,7
@@
RgInfL2MeasReq *measInfo;
} /* End of While */
cmLListAdd2Tail(&(cell->l2mList), node);
} /* End of While */
cmLListAdd2Tail(&(cell->l2mList), node);
-
RETVALUE(ROK)
;
+
return ROK
;
} /* rgL2mInsertMeasCb */
/** @brief This function allocates memory from the heap
} /* rgL2mInsertMeasCb */
/** @brief This function allocates memory from the heap
@@
-553,12
+553,12
@@
RgErrInfo *err;
"Allocation of RgL2MeasCb failed");
err->errType = RGERR_L2M_MEASREQ;
err->errCause = RGERR_RAM_MEM_EXHAUST;
"Allocation of RgL2MeasCb failed");
err->errType = RGERR_L2M_MEASREQ;
err->errCause = RGERR_RAM_MEM_EXHAUST;
-
RETVALUE
(NULLP);
+
return
(NULLP);
}
cmMemcpy((U8 *)&measCb->measReq, (U8 *)measInfo, sizeof(RgInfL2MeasReq));
RGCPYTIMEINFO(cell->crntTime, measCb->startTime);
}
cmMemcpy((U8 *)&measCb->measReq, (U8 *)measInfo, sizeof(RgInfL2MeasReq));
RGCPYTIMEINFO(cell->crntTime, measCb->startTime);
-
RETVALUE
(measCb);
+
return
(measCb);
} /* rgL2mAllocMeasCb */
} /* rgL2mAllocMeasCb */
@@
-577,12
+577,12
@@
RgErrInfo *err;
* -# RFAILED
**/
#ifdef ANSI
* -# RFAILED
**/
#ifdef ANSI
-
PUBLIC
S16 rgL2Meas
+S16 rgL2Meas
(
RgCellCb *cell
)
#else
(
RgCellCb *cell
)
#else
-
PUBLIC
S16 rgL2Meas(cell)
+S16 rgL2Meas(cell)
RgCellCb *cell;
#endif
{
RgCellCb *cell;
#endif
{
@@
-652,7
+652,7
@@
RgCellCb *cell;
continue;
}
}
continue;
}
}
-
RETVALUE(ROK)
;
+
return ROK
;
} /* rgL2MEas */
#endif /* LTE_L2_MEAS */
} /* rgL2MEas */
#endif /* LTE_L2_MEAS */