Home
last modified time | relevance | path

Searched refs:SDK_ASSERTMSG (Results 1 – 25 of 41) sorted by relevance

12

/TwlSDK-5.1.0/include/nitro/mi/
Dmemory.h72 SDK_ASSERTMSG((size & 3) == 0, "size & 3 must be 0"); in MI_CpuFill32()
73 SDK_ASSERTMSG(((u32)dest & 3) == 0, "destination address must be in 4-byte alignment"); in MI_CpuFill32()
91 SDK_ASSERTMSG((size & 3) == 0, "size & 3 must be 0"); in MI_CpuCopy32()
92 SDK_ASSERTMSG(((u32)src & 3) == 0, "source address must be in 4-byte alignment"); in MI_CpuCopy32()
93 SDK_ASSERTMSG(((u32)dest & 3) == 0, "destination address must be in 4-byte alignment"); in MI_CpuCopy32()
126 SDK_ASSERTMSG((size & 3) == 0, "size & 3 must be 0"); in MI_CpuSend32()
127 SDK_ASSERTMSG(((u32)src & 3) == 0, "source address must be in 4-byte alignment"); in MI_CpuSend32()
128 SDK_ASSERTMSG(((u32)dest & 3) == 0, "destination address must be in 4-byte alignment"); in MI_CpuSend32()
147 SDK_ASSERTMSG((size & 3) == 0, "size & 3 must be 0"); in MI_CpuRecv32()
148 SDK_ASSERTMSG(((u32)src & 3) == 0, "source address must be in 4-byte alignment"); in MI_CpuRecv32()
[all …]
/TwlSDK-5.1.0/build/demos/fx/test/src/
Dmain.c88 SDK_ASSERTMSG(c.x == 6 * FX32_ONE && c.y == 9 * FX32_ONE && c.z == 14 * FX32_ONE, "VEC_Add"); in test_FX_VEC()
91 SDK_ASSERTMSG(c.x == -4 * FX32_ONE && c.y == -5 * FX32_ONE in test_FX_VEC()
95 SDK_ASSERTMSG(tmp == 52 * FX32_ONE, "VEC_DotProduct %d", tmp); in test_FX_VEC()
98 SDK_ASSERTMSG(c.x == FX32_ONE && c.y == 4 * FX32_ONE in test_FX_VEC()
102 SDK_ASSERTMSG(tmp == 15326, "VEC_Mag"); in test_FX_VEC()
106 SDK_ASSERTMSG(c.x == 1095 && in test_FX_VEC()
121 SDK_ASSERTMSG(tmp == 12868, "FX_DEG_TO_RAD"); in test_FX_TRIG()
126 SDK_ASSERTMSG(tmp == 32768, "FX_DEG_TO_IDX"); in test_FX_TRIG()
131 SDK_ASSERTMSG(tmp == 1474564, "FX_RAD_TO_DEG"); in test_FX_TRIG()
136 SDK_ASSERTMSG(tmp == 32768, "FX_RAD_TO_IDX"); in test_FX_TRIG()
[all …]
Dfx_append_mtx.c135 SDK_ASSERTMSG((numElement == NUM_MTX43_ELEMENT) in PrintMtxD_()
153 SDK_ASSERTMSG((numElement == NUM_MTX43_ELEMENT) in MtxFxToD_()
371 SDK_ASSERTMSG((numElem == 12) || (numElem == 16), "Wrong Mtx Format"); in IsErrorMtxDValid_()
398 SDK_ASSERTMSG((numElement == 12) || (numElement == 16), "Wrong Mtx Format"); in GetDifferenceMtx_()
437 SDK_ASSERTMSG(invResult == 0, "Failure in MTX_Inverse43() that must be successful"); in CheckInvMtxValid_()
/TwlSDK-5.1.0/build/libraries/mi/common/include/
Dmi_dma.h88 #define MIi_ASSERT_DMANO( dmaNo ) SDK_ASSERTMSG( (dmaNo) <= MI_DMA_MAX_NUM, "illegal DMA No.…
89 #define MIi_ASSERT_MUL2( size ) SDK_ASSERTMSG( ((size) & 1) == 0, "size & 1 must be 0" )
90 #define MIi_ASSERT_MUL4( size ) SDK_ASSERTMSG( ((size) & 3) == 0, "size & 3 must be 0" )
91 #define MIi_ASSERT_SRC_ALIGN512( src ) SDK_ASSERTMSG( ((u32)(src) & 511) == 0, "source address mu…
92 #define MIi_ASSERT_SRC_ALIGN4( src ) SDK_ASSERTMSG( ((u32)(src) & 3) == 0, "source address must…
93 #define MIi_ASSERT_SRC_ALIGN2( src ) SDK_ASSERTMSG( ((u32)(src) & 1) == 0, "source address must…
94 #define MIi_ASSERT_DEST_ALIGN4( dest ) SDK_ASSERTMSG( ((u32)(dest) & 3) == 0, "destination addres…
95 #define MIi_ASSERT_DEST_ALIGN2( dest ) SDK_ASSERTMSG( ((u32)(dest) & 1) == 0, "destination addres…
98 # define MIi_ASSERT_SIZE( dmaNo, size ) SDK_ASSERTMSG( (size) <= 0x1fffff, "size too large" );
104 SDK_ASSERTMSG( (size) <= 0x3fff, "size too large" );\
[all …]
/TwlSDK-5.1.0/build/libraries/os/common/src/
Dos_alloc.c372 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_ALLOCFROMHEAP_INVID); in OS_AllocFromHeap()
373 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_ALLOCFROMHEAP_NOINFO); in OS_AllocFromHeap()
389 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_ALLOCFROMHEAP_NOHEAP); in OS_AllocFromHeap()
390 SDK_ASSERTMSG(0 < ((long)size), OS_ERR_ALLOCFROMHEAP_INVSIZE); in OS_AllocFromHeap()
391 SDK_ASSERTMSG(0 <= heap && heap < heapInfo->numHeaps, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OS_AllocFromHeap()
392 SDK_ASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OS_AllocFromHeap()
418 SDK_ASSERTMSG(OFFSET(cell, ALIGNMENT) == 0, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OS_AllocFromHeap()
419 SDK_ASSERTMSG(cell->hd == NULL, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OS_AllocFromHeap()
454 SDK_ASSERTMSG(hd->free == cell, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OS_AllocFromHeap()
502 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_ALLOCFIXED_INVID); in OS_AllocFixed()
[all …]
Dos_alarm.c109 SDK_ASSERTMSG(OS_IsTickAvailable(), "OS_InitAlarm: alarm system needs of tick system."); in OS_InitAlarm()
144 SDK_ASSERTMSG(!OSi_AlarmQueue.head, in OS_EndAlarm()
284 SDK_ASSERTMSG(handler, "OS_SetAlarm: handler must not be NULL."); in OS_SetAlarm()
329 SDK_ASSERTMSG(handler, "OS_SetPeriodicAlarm: handler must not be NULL\n"); in OS_SetPeriodicAlarm()
330 SDK_ASSERTMSG(period > 0, "OS_SetPeriodicAlarm: bad period specified."); in OS_SetPeriodicAlarm()
531 SDK_ASSERTMSG(tag > 0, "OS_SetAlarmTag: Tag must be >0."); in OS_SetAlarmTag()
553 SDK_ASSERTMSG(tag > 0, "OSCancelAlarms: Tag must be >0."); in OS_CancelAlarms()
Dos_valarm.c124 SDK_ASSERTMSG(!OSi_VAlarmQueue.head, in OS_EndVAlarm()
321 SDK_ASSERTMSG(handler, "OS_SetVAlarm: handler must not be NULL."); in OS_SetVAlarm()
378 SDK_ASSERTMSG(handler, "OS_SetPeriodicVAlarm: handler must not be NULL\n"); in OS_SetPeriodicVAlarm()
379 SDK_ASSERTMSG(0 <= delay in OS_SetPeriodicVAlarm()
458 SDK_ASSERTMSG(tag > 0, "OSSetVAlarmTag: Tag must be >0."); in OS_SetVAlarmTag()
552 SDK_ASSERTMSG(tag > 0, "OSCancelVAlarms: Tag must be >0."); in OS_CancelVAlarms()
Dos_thread.c415 SDK_ASSERTMSG(t, "Cannot remove thread from list."); in OSi_RemoveThreadFromList()
565 SDK_ASSERTMSG(OSi_IRQ_STACKSIZE > 0, "IRQ STACKSIZE must be >0"); in OS_InitThread()
626 SDK_ASSERTMSG(OSi_GetCurrentThread(), "thread system were not initialized"); in OS_CreateThread()
627 SDK_ASSERTMSG(OS_THREAD_PRIORITY_MIN <= prio in OS_CreateThread()
629 SDK_ASSERTMSG(stackSize % STACK_ALIGN == 0, "stack size must be aligned by %d", STACK_ALIGN); in OS_CreateThread()
630 SDK_ASSERTMSG((u32)stack % STACK_ALIGN == 0, "stack must be aligned by %d", STACK_ALIGN); in OS_CreateThread()
638 SDK_ASSERTMSG(index >= 0, "OS_CreateThread: thread entry not allocated"); in OS_CreateThread()
1613 SDK_ASSERTMSG((offset & 3) == 0, "Offset must be aligned by 4"); in OS_SetThreadStackWarningOffset()
1614 SDK_ASSERTMSG(OS_GetThreadContext(thread)->sp > thread->stackTop + offset, in OS_SetThreadStackWarningOffset()
1643 SDK_ASSERTMSG(OS_THREAD_PRIORITY_MIN <= prio in OS_SetThreadPriority()
[all …]
Dos_interrupt.c476 SDK_ASSERTMSG((offset & 3) == 0, "Offset must be aligned by 4"); in OS_SetIrqStackWarningOffset()
477 SDK_ASSERTMSG(offset > 0, "Cannot set warning level to stack top."); in OS_SetIrqStackWarningOffset()
478 SDK_ASSERTMSG(offset < ((u32)SDK_IRQ_STACKSIZE), "Cannot set warning level over stack bottom."); in OS_SetIrqStackWarningOffset()
Dos_arena.c360 SDK_ASSERTMSG((u32)OSi_GetArenaInfo().lo[id] != 0xffffffff, OS_ERR_GETARENALO_INIT); in OS_GetArenaHi()
361 SDK_ASSERTMSG((u32)OSi_GetArenaInfo().lo[id] <= (u32)OSi_GetArenaInfo().hi[id], in OS_GetArenaHi()
380 SDK_ASSERTMSG((u32)OSi_GetArenaInfo().lo[id] != 0xffffffff, OS_ERR_GETARENALO_INIT); in OS_GetArenaLo()
381 SDK_ASSERTMSG((u32)OSi_GetArenaInfo().lo[id] <= (u32)OSi_GetArenaInfo().hi[id], in OS_GetArenaLo()
/TwlSDK-5.1.0/build/libraries/mi/common.TWL/include/
Dmi_ndma.h72 #define MIi_ASSERT_DMANO( dmaNo ) SDK_ASSERTMSG( (dmaNo) <= MI_DMA_MAX_NUM, "illegal DMA No.…
73 #define MIi_ASSERT_MUL2( size ) SDK_ASSERTMSG( ((size) & 1) == 0, "size & 1 must be 0" )
74 #define MIi_ASSERT_MUL4( size ) SDK_ASSERTMSG( ((size) & 3) == 0, "size & 3 must be 0" )
75 #define MIi_ASSERT_SRC_ALIGN512( src ) SDK_ASSERTMSG( ((u32)(src) & 511) == 0, "source address mu…
76 #define MIi_ASSERT_SRC_ALIGN4( src ) SDK_ASSERTMSG( ((u32)(src) & 3) == 0, "source address must…
77 #define MIi_ASSERT_SRC_ALIGN2( src ) SDK_ASSERTMSG( ((u32)(src) & 1) == 0, "source address must…
78 #define MIi_ASSERT_DEST_ALIGN4( dest ) SDK_ASSERTMSG( ((u32)(dest) & 3) == 0, "destination addres…
79 #define MIi_ASSERT_DEST_ALIGN2( dest ) SDK_ASSERTMSG( ((u32)(dest) & 1) == 0, "destination addres…
80 #define MIi_ASSERT_TIMERNO( timerNo ) SDK_ASSERTMSG( (timerNo) <= 3, "illegal Timer No." );
/TwlSDK-5.1.0/build/libraries/os/common/include/
Dmi_dma.h185 #define MIi_ASSERT_DMANO( dmaNo ) SDK_ASSERTMSG( (dmaNo) <= MI_DMA_MAX_NUM, "illegal DMA No.…
186 #define MIi_ASSERT_MUL2( size ) SDK_ASSERTMSG( ((size) & 1) == 0, "size & 1 must be 0" )
187 #define MIi_ASSERT_MUL4( size ) SDK_ASSERTMSG( ((size) & 3) == 0, "size & 3 must be 0" )
188 #define MIi_ASSERT_SRC_ALIGN512( src ) SDK_ASSERTMSG( ((u32)(src) & 511) == 0, "source address mu…
189 #define MIi_ASSERT_SRC_ALIGN4( src ) SDK_ASSERTMSG( ((u32)(src) & 3) == 0, "source address must…
190 #define MIi_ASSERT_SRC_ALIGN2( src ) SDK_ASSERTMSG( ((u32)(src) & 1) == 0, "source address must…
191 #define MIi_ASSERT_DEST_ALIGN4( dest ) SDK_ASSERTMSG( ((u32)(dest) & 3) == 0, "destination addres…
192 #define MIi_ASSERT_DEST_ALIGN2( dest ) SDK_ASSERTMSG( ((u32)(dest) & 1) == 0, "destination addres…
195 # define MIi_ASSERT_SIZE( dmaNo, size ) SDK_ASSERTMSG( (size) <= 0x1fffff, "size too large" );
201 SDK_ASSERTMSG( (size) <= 0x3fff, "size too large" );\
[all …]
/TwlSDK-5.1.0/build/libraries/init/common/include/
Dmi_dma.h185 #define MIi_ASSERT_DMANO( dmaNo ) SDK_ASSERTMSG( (dmaNo) <= MI_DMA_MAX_NUM, "illegal DMA No.…
186 #define MIi_ASSERT_MUL2( size ) SDK_ASSERTMSG( ((size) & 1) == 0, "size & 1 must be 0" )
187 #define MIi_ASSERT_MUL4( size ) SDK_ASSERTMSG( ((size) & 3) == 0, "size & 3 must be 0" )
188 #define MIi_ASSERT_SRC_ALIGN512( src ) SDK_ASSERTMSG( ((u32)(src) & 511) == 0, "source address mu…
189 #define MIi_ASSERT_SRC_ALIGN4( src ) SDK_ASSERTMSG( ((u32)(src) & 3) == 0, "source address must…
190 #define MIi_ASSERT_SRC_ALIGN2( src ) SDK_ASSERTMSG( ((u32)(src) & 1) == 0, "source address must…
191 #define MIi_ASSERT_DEST_ALIGN4( dest ) SDK_ASSERTMSG( ((u32)(dest) & 3) == 0, "destination addres…
192 #define MIi_ASSERT_DEST_ALIGN2( dest ) SDK_ASSERTMSG( ((u32)(dest) & 1) == 0, "destination addres…
195 # define MIi_ASSERT_SIZE( dmaNo, size ) SDK_ASSERTMSG( (size) <= 0x1fffff, "size too large" );
201 SDK_ASSERTMSG( (size) <= 0x3fff, "size too large" );\
[all …]
/TwlSDK-5.1.0/build/libraries/gx/ARM9/src/
Dgxstate.c71 SDK_ASSERTMSG(!(a & b), \
202 SDK_ASSERTMSG(((r1) <= (d1)) && ((r2) >= (d2)), \
207 SDK_ASSERTMSG(( ((r1) <= (d1)) && ((r2) >= (d2)) ) || ( ((r3) <= (d1)) && ((r4) >= (d2)) ), \
450 SDK_ASSERTMSG(last <= 0x04000, in GX_RegionCheck_TexPltt_()
455 SDK_ASSERTMSG(last <= 0x08000, in GX_RegionCheck_TexPltt_()
460 SDK_ASSERTMSG(last <= 0x10000, in GX_RegionCheck_TexPltt_()
465 SDK_ASSERTMSG(last <= 0x14000, in GX_RegionCheck_TexPltt_()
470 SDK_ASSERTMSG(last <= 0x18000, "Illegal Address/size specified(0x%5x->0x%5x)", first, last); in GX_RegionCheck_TexPltt_()
491 SDK_ASSERTMSG(last <= 0x20000, in GX_RegionCheck_Tex_()
501 SDK_ASSERTMSG(last <= 0x40000, in GX_RegionCheck_Tex_()
[all …]
Dgx_load2d.c740 SDK_ASSERTMSG(destSlotAddr + szByte <= 0x8000, in GX_LoadBGExtPltt()
746 SDK_ASSERTMSG(destSlotAddr + szByte <= 0x8000, in GX_LoadBGExtPltt()
749 SDK_ASSERTMSG(destSlotAddr >= 0x4000, in GX_LoadBGExtPltt()
755 SDK_ASSERTMSG(destSlotAddr + szByte <= 0x4000, in GX_LoadBGExtPltt()
917 SDK_ASSERTMSG(GX_VRAM_SUB_BGEXTPLTT_0123_H == sSubBGExtPltt, "Sub BGExtPltt not allocated"); in GXS_BeginLoadBGExtPltt()
943 SDK_ASSERTMSG(destSlotAddr + szByte <= 0x8000, in GXS_LoadBGExtPltt()
998 SDK_ASSERTMSG(GX_VRAM_SUB_OBJEXTPLTT_0_I == sSubOBJExtPltt, "Sub OBJExtPltt not allocated"); in GXS_BeginLoadOBJExtPltt()
1024 SDK_ASSERTMSG(destSlotAddr + szByte <= 0x2000, in GXS_LoadOBJExtPltt()
Dg3.c88 SDK_ASSERTMSG(((u32)info->curr_cmd - (u32)info->bottom <= info->length), in G3_EndMakeDL()
/TwlSDK-5.1.0/include/nitro/
Dmisc.h62 #ifndef SDK_ASSERTMSG
63 #define SDK_ASSERTMSG(exp, ...) \ macro
71 #ifndef SDK_ASSERTMSG
72 #define SDK_ASSERTMSG(exp, ...) ((void) 0)
/TwlSDK-5.1.0/include/nitro/os/common/
Dthread.h503 SDK_ASSERTMSG(id < OS_THREAD_MAX_NUM, "Thread id illegal\n"); in OS_GetThread()
521 SDK_ASSERTMSG(thread, "null thread pointer."); in OS_GetThreadId()
536 SDK_ASSERTMSG(thread, "null thread pointer."); in OS_GetThreadState()
551 SDK_ASSERTMSG(thread, "null thread pointer."); in OS_GetThreadContext()
/TwlSDK-5.1.0/build/libraries/fs/common/src/
Dfs_api.c57 SDK_ASSERTMSG(default_dma_no != 0, "cannot use DMA channel 0 for ROM access"); in FS_Init()
/TwlSDK-5.1.0/build/libraries/pxi/common/src/
Dpxi_fifo.c219 SDK_ASSERTMSG(0 <= fifotag && fifotag < PXI_MAX_FIFO_TAG, "[FifoTag] out of range"); in PXI_SendWordByFifo()
220 SDK_ASSERTMSG(data < (1UL << PXI_FIFOMESSAGE_BITSZ_DATA), "[data] out of range"); in PXI_SendWordByFifo()
/TwlSDK-5.1.0/build/libraries/fx/common/src/
Dfx_mtx44.c507 SDK_ASSERTMSG(t != b, "MTX_Frustum: 't' and 'b' clipping planes are equal."); in MTX_FrustumW()
508 SDK_ASSERTMSG(l != r, "MTX_Frustum: 'l' and 'r' clipping planes are equal."); in MTX_FrustumW()
509 SDK_ASSERTMSG(n != f, "MTX_Frustum: 'n' and 'f' clipping planes are equal."); in MTX_FrustumW()
580 SDK_ASSERTMSG(fovySin > 0 && fovySin < FX32_ONE, "G3_Perspective: sine of fovy out of range."); in MTX_PerspectiveW()
581 SDK_ASSERTMSG(fovyCos > -FX32_ONE in MTX_PerspectiveW()
583 SDK_ASSERTMSG(aspect != 0, "G3_Perspective: aspect is 0."); in MTX_PerspectiveW()
639 SDK_ASSERTMSG(t != b, "G3_Ortho: 't' and 'b' clipping planes are equal."); in MTX_OrthoW()
640 SDK_ASSERTMSG(l != r, "G3_Ortho: 'l' and 'r' clipping planes are equal."); in MTX_OrthoW()
641 SDK_ASSERTMSG(n != f, "G3_Ortho: 'n' and 'f' clipping planes are equal."); in MTX_OrthoW()
/TwlSDK-5.1.0/include/twl/aes/common/
Dtypes.h48 SDK_ASSERTMSG( ((x) == AES_MAC_LENGTH_4) \
/TwlSDK-5.1.0/build/libraries/ext/common/src/
Dext_scrntest.c151 SDK_ASSERTMSG((testFrame > 0) in EXT_TestScreenShot()
232 SDK_ASSERTMSG(vram == GX_VRAM_LCDC_A || vram == GX_VRAM_LCDC_B || vram == GX_VRAM_LCDC_C in EXT_TestSetVRAMForScreenShot()
/TwlSDK-5.1.0/build/libraries/snd/common/src/
Dsnd_bank.c78 SDK_ASSERTMSG(((u32)bank & 0x1f) == 0, "bank address must be aligned 32 bytes boundary."); in SND_AssignWaveArc()
79 SDK_ASSERTMSG(((u32)waveArc & 0x1f) == 0, "waveArc address must be aligned 32 bytes boundary."); in SND_AssignWaveArc()
153 SDK_ASSERTMSG(((u32)bank & 0x1f) == 0, "bank address must be aligned 32 bytes boundary."); in SND_DestroyBank()
209 SDK_ASSERTMSG(((u32)waveArc & 0x1f) == 0, "waveArc address must be aligned 32 bytes boundary."); in SND_DestroyWaveArc()
/TwlSDK-5.1.0/build/libraries/prc/common/src/
Dprc_algo_superfine.c250 SDK_ASSERTMSG(a >= 0, "a < 0: (%d, %d)*%d-(%d, %d)*%d", p1->x, p1->y, w1, p2->x, p2->y, w2); in GetMixedPoint()
252 SDK_ASSERTMSG(w > 0, "w <= 0: (%d, %d)*%d-(%d, %d)*%d", p1->x, p1->y, w1, p2->x, p2->y, w2); in GetMixedPoint()
699 SDK_ASSERTMSG(iInput <= inputMatch[iMatch + 1], in PRCi_CalcStrokeDistance_Superfine()
702 SDK_ASSERTMSG(iProto <= protoMatch[iMatch + 1], in PRCi_CalcStrokeDistance_Superfine()
794 SDK_ASSERTMSG(weight != 0, in PRCi_CalcStrokeDistance_Superfine()
799 SDK_ASSERTMSG(totalWeight != 0, "nMatches: %d", nMatches); in PRCi_CalcStrokeDistance_Superfine()

12