| /CTR-SDK-4.2.5/sources/libraries/dbg/ |
| D | dbg_Instrument.cpp | 76 Instrument* p = sListHead; in AddToList() local 77 while( p->mNext ) in AddToList() 79 p = p->mNext; in AddToList() 81 p->mNext = pInfo; in AddToList() 90 Instrument* p = sListHead; in DeleteFromList() local 92 while(p) in DeleteFromList() 94 if ( p == pInfo ) in DeleteFromList() 98 prev->mNext = p->mNext; in DeleteFromList() 102 sListHead = p->mNext; in DeleteFromList() 106 prev = p; in DeleteFromList() [all …]
|
| /CTR-SDK-4.2.5/sources/libraries/os/ |
| D | os_HandleManager.cpp | 23 void nnosHandleManagerAttachEventHandle(nnosEvent* p, nnHandle handle) in nnosHandleManagerAttachEventHandle() argument 25 Event* pEvent = reinterpret_cast<Event*>(p); in nnosHandleManagerAttachEventHandle() 29 void nnosHandleManagerDetachEventHandle(nnosEvent* p) in nnosHandleManagerDetachEventHandle() argument 31 Event* pEvent = reinterpret_cast<Event*>(p); in nnosHandleManagerDetachEventHandle() 35 void nnosHandleManagerAttachMutexHandle(nnosMutex* p, nnHandle handle) in nnosHandleManagerAttachMutexHandle() argument 37 Mutex* pMutex = reinterpret_cast<Mutex*>(p); in nnosHandleManagerAttachMutexHandle() 41 void nnosHandleManagerDetachMutexHandle(nnosMutex* p) in nnosHandleManagerDetachMutexHandle() argument 43 Mutex* pMutex = reinterpret_cast<Mutex*>(p); in nnosHandleManagerDetachMutexHandle() 47 void nnosHandleManagerAttachSemaphoreHandle(nnosSemaphore* p, nnHandle handle) in nnosHandleManagerAttachSemaphoreHandle() argument 49 Semaphore* pSemaphore = reinterpret_cast<Semaphore*>(p); in nnosHandleManagerAttachSemaphoreHandle() [all …]
|
| D | os_Timer.cpp | 57 void nnosTimerInitialize(nnosTimer* p, bool isManualReset) in nnosTimerInitialize() argument 59 new (p) Timer(isManualReset); in nnosTimerInitialize() 62 bool nnosTimerTryInitialize(nnosTimer* p, bool isManualReset) in nnosTimerTryInitialize() argument 64 new (p) Timer(); in nnosTimerTryInitialize() 65 Timer* pTimer = reinterpret_cast<Timer*>(p); in nnosTimerTryInitialize() 70 void nnosTimerStartPeriodic(nnosTimer* p, s64 first, s64 interval) in nnosTimerStartPeriodic() argument 72 Timer* pTimer = reinterpret_cast<Timer*>(p); in nnosTimerStartPeriodic() 76 void nnosTimerStartOneShot(nnosTimer* p, s64 time) in nnosTimerStartOneShot() argument 78 Timer* pTimer = reinterpret_cast<Timer*>(p); in nnosTimerStartOneShot() 82 void nnosTimerWait(nnosTimer* p) in nnosTimerWait() argument [all …]
|
| D | os_Event.cpp | 56 void nnosEventInitialize(nnosEvent* p, bool isManualReset) in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION() 58 new (p) Event(isManualReset); in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION() 61 bool nnosEventTryInitialize(nnosEvent* p, bool manualReset) in nnosEventTryInitialize() argument 63 new (p) Event(); in nnosEventTryInitialize() 64 Event* pEvent = reinterpret_cast<Event*>(p); in nnosEventTryInitialize() 69 void nnosEventSignal(nnosEvent* p) in nnosEventSignal() argument 71 Event* pEvent = reinterpret_cast<Event*>(p); in nnosEventSignal() 75 void nnosEventWaitSignal(nnosEvent* p) in nnosEventWaitSignal() argument 77 Event* pEvent = reinterpret_cast<Event*>(p); in nnosEventWaitSignal() 81 bool nnosEventTryWaitSignal(nnosEvent* p, s64 nanoSecondsTimeout) in nnosEventTryWaitSignal() argument [all …]
|
| D | os_Mutex.cpp | 58 void nnosMutexInitialize(nnosMutex* p, bool initialLocked) in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION() 60 new (p) Mutex(initialLocked); in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION() 63 bool nnosMutexTryInitialize(nnosMutex* p, bool initialLocked) in nnosMutexTryInitialize() argument 65 new (p) Mutex(); in nnosMutexTryInitialize() 66 Mutex* pMutex = reinterpret_cast<Mutex*>(p); in nnosMutexTryInitialize() 71 void nnosMutexLock(nnosMutex* p) in nnosMutexLock() argument 73 Mutex* pMutex = reinterpret_cast<Mutex*>(p); in nnosMutexLock() 77 bool nnosMutexTryLock(nnosMutex* p, s64 timeout) in nnosMutexTryLock() argument 79 Mutex* pMutex = reinterpret_cast<Mutex*>(p); in nnosMutexTryLock() 83 void nnosMutexUnlock(nnosMutex* p) in nnosMutexUnlock() argument [all …]
|
| D | os_MemoryBlock.cpp | 49 uptr AllocateFromMemoryBlockSpace(MemoryBlockBase* p, size_t s) in AllocateFromMemoryBlockSpace() argument 52 return pManager->Allocate(p, s, 0); in AllocateFromMemoryBlockSpace() 54 void FreeToMemoryBlockSpace(MemoryBlockBase* p) in FreeToMemoryBlockSpace() argument 57 pManager->Free(p); in FreeToMemoryBlockSpace() 138 void nnosMemoryBlockAllocate(nnosMemoryBlock* p, size_t size) in nnosMemoryBlockAllocate() argument 141 new (p) MemoryBlock(size); in nnosMemoryBlockAllocate() 144 void nnosMemoryBlockSetReadOnly(nnosMemoryBlock* p, bool readOnly) in nnosMemoryBlockSetReadOnly() argument 146 MemoryBlock* pMemoryBlock = reinterpret_cast<MemoryBlock*>(p); in nnosMemoryBlockSetReadOnly() 150 void nnosMemoryBlockFree(nnosMemoryBlock* p) in nnosMemoryBlockFree() argument 152 MemoryBlock* pMemoryBlock = reinterpret_cast<MemoryBlock*>(p); in nnosMemoryBlockFree() [all …]
|
| D | os_Semaphore.cpp | 59 void nnosSemaphoreInitialize(nnosSemaphore* p, s32 initialCount, s32 maxCount) in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION() 61 new (p) Semaphore(initialCount, maxCount); in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION() 64 bool nnosSemaphoreTryInitialize(nnosSemaphore* p, s32 initialCount, s32 maxCount) in nnosSemaphoreTryInitialize() argument 66 new (p) Semaphore(); in nnosSemaphoreTryInitialize() 67 Semaphore* pSemaphore = reinterpret_cast<Semaphore*>(p); in nnosSemaphoreTryInitialize() 72 s32 nnosSemaphoreRelease(nnosSemaphore* p, s32 releaseCount) in nnosSemaphoreRelease() argument 74 Semaphore* pSemaphore = reinterpret_cast<Semaphore*>(p); in nnosSemaphoreRelease() 78 void nnosSemaphoreAcquire(nnosSemaphore* p) in nnosSemaphoreAcquire() argument 80 Semaphore* pSemaphore = reinterpret_cast<Semaphore*>(p); in nnosSemaphoreAcquire() 84 bool nnosSemaphoreTryAcquire(nnosSemaphore* p, s64 nanoSeconds) in nnosSemaphoreTryAcquire() argument [all …]
|
| D | os_CriticalSection.cpp | 102 void nnosCriticalSectionInitialize(nnosCriticalSection* p) in nnosCriticalSectionInitialize() argument 104 new (p) CriticalSection(nn::WithInitialize()); in nnosCriticalSectionInitialize() 107 bool nnosCriticalSectionTryInitialize(nnosCriticalSection* p) in nnosCriticalSectionTryInitialize() argument 109 new (p) CriticalSection(nn::WithInitialize()); in nnosCriticalSectionTryInitialize() 110 CriticalSection* pCriticalSection = reinterpret_cast<CriticalSection*>(p); in nnosCriticalSectionTryInitialize() 115 void nnosCriticalSectionEnter(nnosCriticalSection* p) in nnosCriticalSectionEnter() argument 117 CriticalSection* pCriticalSection = reinterpret_cast<CriticalSection*>(p); in nnosCriticalSectionEnter() 121 bool nnosCriticalSectionTryEnter(nnosCriticalSection* p) in nnosCriticalSectionTryEnter() argument 123 CriticalSection* pCriticalSection = reinterpret_cast<CriticalSection*>(p); in nnosCriticalSectionTryEnter() 127 void nnosCriticalSectionLeave(nnosCriticalSection* p) in nnosCriticalSectionLeave() argument [all …]
|
| D | os_LightSemaphore.cpp | 94 void nnosLightSemaphoreInitialize(nnosLightSemaphore* p, s32 initialCount, s32 maxCount) in nnosLightSemaphoreInitialize() argument 96 new (p) LightSemaphore(); in nnosLightSemaphoreInitialize() 97 LightSemaphore* pLightSemaphore = reinterpret_cast<LightSemaphore*>(p); in nnosLightSemaphoreInitialize() 102 s32 nnosLightSemaphoreGetMax(nnosLightSemaphore* p) in nnosLightSemaphoreGetMax() argument 104 LightSemaphore* pLightSemaphore = reinterpret_cast<LightSemaphore*>(p); in nnosLightSemaphoreGetMax() 109 s32 nnosLightSemaphoreGetCount(nnosLightSemaphore* p) in nnosLightSemaphoreGetCount() argument 111 LightSemaphore* pLightSemaphore = reinterpret_cast<LightSemaphore*>(p); in nnosLightSemaphoreGetCount() 115 s32 nnosLightSemaphoreRelease(nnosLightSemaphore* p, s32 releaseCount) in nnosLightSemaphoreRelease() argument 117 LightSemaphore* pLightSemaphore = reinterpret_cast<LightSemaphore*>(p); in nnosLightSemaphoreRelease() 121 void nnosLightSemaphoreAcquire(nnosLightSemaphore* p) in nnosLightSemaphoreAcquire() argument [all …]
|
| D | os_StackMemoryBlock.cpp | 96 void nnosStackMemoryBlockInitialize(nnosStackMemoryBlock* p) in nnosStackMemoryBlockInitialize() argument 98 new (p) StackMemoryBlock(); in nnosStackMemoryBlockInitialize() 101 void nnosStackMemoryBlockAllocate(nnosStackMemoryBlock* p, size_t size) in nnosStackMemoryBlockAllocate() argument 104 new (p) StackMemoryBlock(size); in nnosStackMemoryBlockAllocate() 107 void nnosStackMemoryBlockFree(nnosStackMemoryBlock* p) in nnosStackMemoryBlockFree() argument 109 StackMemoryBlock* pStackMemoryBlock = reinterpret_cast<StackMemoryBlock*>(p); in nnosStackMemoryBlockFree() 113 uptr nnosStackMemoryBlockGetAddress(nnosStackMemoryBlock* p) in nnosStackMemoryBlockGetAddress() argument 115 StackMemoryBlock* pStackMemoryBlock = reinterpret_cast<StackMemoryBlock*>(p); in nnosStackMemoryBlockGetAddress() 119 size_t nnosStackMemoryBlockGetSize(nnosStackMemoryBlock* p) in nnosStackMemoryBlockGetSize() argument 121 StackMemoryBlock* pStackMemoryBlock = reinterpret_cast<StackMemoryBlock*>(p); in nnosStackMemoryBlockGetSize() [all …]
|
| D | os_LightEvent.cpp | 217 void nnosLightEventInitialize(nnosLightEvent* p, bool isManualReset) in nnosLightEventInitialize() argument 219 new (p) LightEvent(isManualReset); in nnosLightEventInitialize() 222 bool nnosLightEventIsSignaled(nnosLightEvent* p) in nnosLightEventIsSignaled() argument 224 LightEvent* pLightEvent = reinterpret_cast<LightEvent*>(p); in nnosLightEventIsSignaled() 228 bool nnosLightEventIsManualReset(nnosLightEvent* p) in nnosLightEventIsManualReset() argument 230 LightEvent* pLightEvent = reinterpret_cast<LightEvent*>(p); in nnosLightEventIsManualReset() 234 bool nnosLightEventTryWait(nnosLightEvent* p) in nnosLightEventTryWait() argument 236 LightEvent* pLightEvent = reinterpret_cast<LightEvent*>(p); in nnosLightEventTryWait() 240 void nnosLightEventWait(nnosLightEvent* p) in nnosLightEventWait() argument 242 LightEvent* pLightEvent = reinterpret_cast<LightEvent*>(p); in nnosLightEventWait() [all …]
|
| D | os_ManagedThread.cpp | 105 void (*destroy)(void* p); // 106 void (*invoke)(ThreadFunc f, const void* p); // 108 void* p; // member 115 invoke(f, p); in Invoke() 121 destroy(p); in Destroy() 131 void ManagedThread::ThreadStart(StartParam* p) in ThreadStart() argument 133 StartParam& param = *p; in ThreadStart() 152 …tartParam* pStartParam, const TypeInfo& typeInfo, ThreadFunc f, const void* p, uptr stackBottom, s… in SetupStackAndParam() argument 164 typeInfo.copy(p, pCopiedParam); in SetupStackAndParam() 170 pStartParam->p = pCopiedParam; in SetupStackAndParam() [all …]
|
| D | os_Thread.cpp | 120 void (*destroy)(void* p); // 121 void (*invoke)(ThreadFunc f, const void* p); // 123 void* p; // member 129 invoke(f, p); in Invoke() 135 destroy(p); in Destroy() 191 void Thread::ThreadStart(uptr p) in ThreadStart() argument 193 FunctionInfo& info = *reinterpret_cast<FunctionInfo*>(p); in ThreadStart() 213 const void* p, in TryInitializeAndStartImpl() argument 222 p, in TryInitializeAndStartImpl() 232 const void* p, in TryInitializeAndStartImpl() argument [all …]
|
| D | os_DeliverArg.cpp | 58 s32 GetArgcCore(const char* p) in GetArgcCore() argument 61 for (; *p; p++, n++) in GetArgcCore() 63 while (*p) in GetArgcCore() 65 p++; in GetArgcCore() 71 const char* GetArgvCore(const char* p, int n) in GetArgvCore() argument 74 for (; *p && n > 0; p++, n--) in GetArgvCore() 76 while (*p) in GetArgvCore() 78 p++; in GetArgvCore() 81 return (*p) ? p : NULL; in GetArgvCore() 217 char *p = pBuffer; in ConvertToArguments() local [all …]
|
| D | os_Alarm.cpp | 112 void Alarm::SetOneShot(TimeSpan time, AlarmHandler handler, void* p) in SetOneShot() argument 118 m_Parameter = p; in SetOneShot() 126 void Alarm::SetPeriodic(TimeSpan initial, TimeSpan interval, AlarmHandler handler, void* p) in SetPeriodic() argument 132 m_Parameter = p; in SetPeriodic() 238 void nnosAlarmInitialize(nnosAlarm* p) in nnosAlarmInitialize() argument 240 Alarm* this_ = new (p) Alarm; in nnosAlarmInitialize() 244 void nnosAlarmFinalize(nnosAlarm* p) in nnosAlarmFinalize() argument 246 Alarm* pAlarm = reinterpret_cast<Alarm*>(p); in nnosAlarmFinalize() 250 void nnosAlarmSetOneShot(nnosAlarm* p, s64 time, nnosAlarmHandler handler, void* param) in nnosAlarmSetOneShot() argument 252 Alarm* pAlarm = reinterpret_cast<Alarm*>(p); in nnosAlarmSetOneShot() [all …]
|
| /CTR-SDK-4.2.5/include/nn/fnd/ |
| D | fnd_LinkedList.h | 102 void PushBack(T* p); 109 void PushFront(T* p); 150 T* GetNext(T* p) const; 159 T* GetPrevious(T* p) const; 176 void Erase(T* p); 194 static void ClearLinks(Item* p); 201 static void InsertBefore(Item* p, Item* q); 228 inline void IntrusiveLinkedList<T, Tag>::ClearLinks(Item* p) in ClearLinks() argument 230 p->m_PreviousLink = p->m_NextLink = 0; in ClearLinks() 234 inline void IntrusiveLinkedList<T, Tag>::InsertBefore(Item* p, Item* q) in InsertBefore() argument [all …]
|
| D | fnd_Queue.h | 57 void Enqueue(T* p); 97 inline void IntrusiveQueue<T, Tag>::Enqueue(T* p) in Enqueue() argument 99 NN_TASSERT_(p); in Enqueue() 100 Item* pNode = static_cast<Item*>(p); in Enqueue() 109 m_Tail->m_NextLink = p; in Enqueue() 110 this->m_Tail = p; in Enqueue() 142 Item* p = m_Head; in Clear() local 145 Item* q = p; in Clear() 146 p = p->m_NextLink; in Clear() 148 } while (p != m_Tail); in Clear()
|
| /CTR-SDK-4.2.5/include/nn/dbg/ |
| D | dbg_Dump.h | 42 #define NN_DUMP_MEMORY( p, size, flags ) nn::dbg::detail::DumpMemory(p, size, flags) argument 44 #define NN_DUMP_MEMORY( p, size, flags ) nndbgDetailDumpMemory(p, size, flags) argument 47 #define NN_DUMP_MEMORY( p, size, flags ) ((void)0) argument 50 #define NN_DUMP( p, size ) NN_DUMP_MEMORY(p, size, 0) argument 51 #define NN_DUMP_POINTER( p, size ) NN_DUMP_MEMORY(p, size, NN_DBG_DUMP_FLAG_POINTER) argument 52 #define NN_DUMP_STRING( p, size ) NN_DUMP_MEMORY(p, size, NN_DBG_DUMP_FLAG_POINTER|NN_DBG… argument 60 void DumpMemory(const void* p, size_t size, bit32 flags); 73 NN_EXTERN_C void nndbgDetailDumpMemory(const void* p, size_t size, bit32 flags);
|
| /CTR-SDK-4.2.5/sources/libraries/init/ |
| D | init_Alloc.cpp | 57 NN_WEAK_SYMBOL void free(void* p) in free() argument 59 if (p) in free() 61 s_pSystemHeap->Free(p); in free() 68 void* p = std::malloc(sum); in calloc() local 70 if( p != NULL ) in calloc() 72 std::memset(p, 0, sum); in calloc() 75 return p; in calloc() 78 NN_WEAK_SYMBOL void* realloc(void* p, size_t size) in realloc() argument 80 if( p != NULL ) in realloc() 85 std::free(p); in realloc() [all …]
|
| /CTR-SDK-4.2.5/include/nn/math/ARMv6/inline/ |
| D | math_Vector3.ipp | 39 VEC3NormalizeC(VEC3* pOut, const VEC3* p) 42 NN_NULL_ASSERT(p); 44 f32 mag = (p->x * p->x) + (p->y * p->y) + (p->z * p->z); 50 pOut->x = p->x * mag; 51 pOut->y = p->y * mag; 52 pOut->z = p->z * mag; 59 VEC3NormalizeC_FAST(VEC3* pOut, const VEC3* p) 62 NN_NULL_ASSERT(p); 66 x = p->x; 67 y = p->y; [all …]
|
| /CTR-SDK-4.2.5/include/nn/math/inline/ |
| D | math_Vector4.ipp | 48 VEC4IsZero(const VEC4* p) 50 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 0.f; 54 VEC4IsZeroWOne(const VEC4* p) 56 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 1.f; 60 VEC4Len(const VEC4* p) 62 return FSqrt(VEC4LenSq(p)); 67 VEC4LenSq(const VEC4* __restrict p) 69 return p->x * p->x + p->y * p->y + p->z * p->z + p->w * p->w; 106 VEC4Normalize(VEC4* pOut, const VEC4* p) 108 (void)VEC4Scale(pOut, p, FrSqrt(VEC4LenSq(p))); [all …]
|
| D | math_Vector2.ipp | 23 VEC2IsZero(const VEC2* p) 25 return p->x == 0.f && p->y == 0.f; 47 VEC2Normalize(VEC2* pOut, const VEC2* p) 49 (void)VEC2Scale(pOut, p, FrSqrt(p->x * p->x + p->y * p->y)); 55 VEC2SafeNormalize(VEC2* pOut, const VEC2* p, const VEC2& alt) 58 NN_NULL_ASSERT(p); 60 f32 mag = (p->x * p->x) + (p->y * p->y); 69 (void)VEC2Scale(pOut, p, FrSqrt(mag));
|
| /CTR-SDK-4.2.5/include/nn/fs/CTR/MPCore/ |
| D | fs_UserFileSystem.h | 46 static void CloseDirect(void* p); 47 static Handle GetFileHandle(void* p); 48 static void DetachHandle(void *p); 50 static Result DuplicateHandleForFile(Handle* pOut, void* p, s64 offset, s64 length); 53 static void CloseFile(void* p); 55 static Result TryReadFile(s32* pOut, void* p, s64 offset, void* buffer, size_t size); 56 …static Result TryWriteFile(s32* pOut, void* p, s64 offset, const void* buffer, size_t size, bool f… 57 static Result TryGetFileSize(s64* pOut, const void* p); 58 static Result TrySetFileSize(void* p, s64 size); 59 static Result TryFlush(void* p); [all …]
|
| /CTR-SDK-4.2.5/sources/libraries/fnd/ |
| D | fnd_ExpHeap.cpp | 68 void ExpHeapBase::Free(void* p) in Free() argument 70 NN_TASSERT_(CheckBlock(p)); in Free() 71 detail::FreeToHeap(&m_ExpHeapImpl, p); in Free() 75 size_t ExpHeapBase::ResizeBlock(void *p, size_t newSize) in ResizeBlock() argument 77 return detail::ResizeForMBlockHeap(&m_ExpHeapImpl, p, newSize); in ResizeBlock() 88 void VisitFunc(void* p, detail::Heap, u32 param) in VisitFunc() argument 91 fap.f(p, fap.heap, fap.param); in VisitFunc() 116 size_t ExpHeapBase::GetSizeOf(const void* p) const in GetSizeOf() 118 return detail::GetSizeForMBlockHeap(p); in GetSizeOf() 121 bit8 ExpHeapBase::GetGroupIdOf(const void* p) const in GetGroupIdOf() [all …]
|
| /CTR-SDK-4.2.5/include/nn/os/ |
| D | os_MemoryBlock.h | 46 uptr AllocateFromMemoryBlockSpace(MemoryBlockBase* p, size_t s); 47 void FreeToMemoryBlockSpace(MemoryBlockBase* p); 177 NN_EXTERN_C void nnosMemoryBlockAllocate(nnosMemoryBlock* p, size_t size); 182 NN_EXTERN_C void nnosMemoryBlockSetReadOnly(nnosMemoryBlock* p, bool readOnly); 187 NN_EXTERN_C void nnosMemoryBlockFree(nnosMemoryBlock* p); 192 NN_EXTERN_C uptr nnosMemoryBlockGetAddress(nnosMemoryBlock* p); 197 NN_EXTERN_C size_t nnosMemoryBlockGetSize(nnosMemoryBlock* p); 202 NN_EXTERN_C bool nnosMemoryBlockIsReadOnly(nnosMemoryBlock* p);
|