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-275] Part -4 classifying of logs of sch folder
[o-du/l2.git]
/
src
/
5gnrsch
/
sch_utils.h
diff --git
a/src/5gnrsch/sch_utils.h
b/src/5gnrsch/sch_utils.h
index
71b2f48
..
6ac5c9f
100644
(file)
--- a/
src/5gnrsch/sch_utils.h
+++ b/
src/5gnrsch/sch_utils.h
@@
-47,12
+47,12
@@
/* allocate and zero out a static buffer */
#define SCH_ALLOC(_datPtr, _size) \
{ \
/* allocate and zero out a static buffer */
#define SCH_ALLOC(_datPtr, _size) \
{ \
-
in
t _ret; \
+
uint8_
t _ret; \
_ret = SGetSBuf(SCH_MEM_REGION, SCH_POOL, \
(Data **)&_datPtr, _size); \
if(_ret == ROK) \
{ \
_ret = SGetSBuf(SCH_MEM_REGION, SCH_POOL, \
(Data **)&_datPtr, _size); \
if(_ret == ROK) \
{ \
- memset(
(U8*)
_datPtr, 0, _size); \
+ memset(_datPtr, 0, _size); \
} \
else \
{ \
} \
else \
{ \
@@
-67,28
+67,30
@@
{ \
SPutSBuf(SCH_MEM_REGION, SCH_POOL, \
(Data *)_datPtr, _size); \
{ \
SPutSBuf(SCH_MEM_REGION, SCH_POOL, \
(Data *)_datPtr, _size); \
+ _datPtr = NULLP; \
} \
}
/* Fill post structure for msg from SCH to MAC */
#define FILL_PST_SCH_TO_MAC(_pst, _inst) \
{ \
} \
}
/* Fill post structure for msg from SCH to MAC */
#define FILL_PST_SCH_TO_MAC(_pst, _inst) \
{ \
- _pst.srcProcId =
SFndProcId();
\
- _pst.dstProcId =
SFndProcId();
\
- _pst.srcEnt = ENT
RG;
\
- _pst.dstEnt = ENT
RG;
\
+ _pst.srcProcId =
ODU_GET_PROCID();
\
+ _pst.dstProcId =
ODU_GET_PROCID();
\
+ _pst.srcEnt = ENT
MAC;
\
+ _pst.dstEnt = ENT
MAC;
\
_pst.srcInst = 1; \
_pst.dstInst = 0; \
_pst.selector = ODU_SELECTOR_TC; \
}
_pst.srcInst = 1; \
_pst.dstInst = 0; \
_pst.selector = ODU_SELECTOR_TC; \
}
-
extern
int8_t coresetIdxTable[MAX_CORESET_INDEX][4];
-
extern
int8_t searchSpaceIdxTable[MAX_SEARCH_SPACE_INDEX][4];
+int8_t coresetIdxTable[MAX_CORESET_INDEX][4];
+int8_t searchSpaceIdxTable[MAX_SEARCH_SPACE_INDEX][4];
/* functions declarations */
/* functions declarations */
-void
schAllocFreqDomRs
cType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain);
+void
freqDomRscAllo
cType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain);
uint16_t schCalcTbSize(uint16_t payLoadSize);
uint16_t schCalcNumPrb(uint16_t tbSize, uint16_t mcs, uint8_t numSymbols);
uint16_t schCalcTbSize(uint16_t payLoadSize);
uint16_t schCalcNumPrb(uint16_t tbSize, uint16_t mcs, uint8_t numSymbols);
+uint16_t schCalcTbSizeFromNPrb(uint16_t numPrb, uint16_t mcs, uint8_t numSymbols);
SchUeCb* schGetUeCb(SchCellCb *cellCb, uint16_t crnti);
void schInitUlSlot(SchUlSlotInfo *schUlSlotInfo);
void schInitDlSlot(SchDlSlotInfo *schDlSlotInfo);
SchUeCb* schGetUeCb(SchCellCb *cellCb, uint16_t crnti);
void schInitUlSlot(SchUlSlotInfo *schUlSlotInfo);
void schInitDlSlot(SchDlSlotInfo *schDlSlotInfo);