| /CTR-SDK-4.2.5/include/nn/os/ |
| D | os_BlockingQueue.h | 47 BlockingQueueBase(uptr buffer[], size_t size) { Initialize(buffer, size); } in BlockingQueueBase() 49 void Initialize(uptr buffer[], size_t size); 50 nn::Result TryInitialize(uptr buffer[], size_t size); 52 void Enqueue(uptr data); 53 bool TryEnqueue(uptr data); 54 bool ForceEnqueue(uptr data, uptr* pOut); 55 void Jam(uptr data); 56 bool TryJam(uptr data); 57 uptr Dequeue(); 58 bool TryDequeue(uptr* pOut); [all …]
|
| D | os_Memory.h | 62 uptr GetDeviceMemoryAddress(); 106 uptr GetHeapAddress(); 153 uptr GetCodeRegionAddress(); 171 inline uptr GetHeapAddressWithoutCheck() in GetHeapAddressWithoutCheck() 192 NN_EXTERN_C uptr nnosGetDeviceMemoryAddress(void);
|
| D | os_ThreadPool.h | 81 …ThreadPool(void* workBuffer, size_t numMaxWaitObjects, size_t numWorkerThreads, uptr workerStackBo… 116 …void Initialize(void* workBuffer, size_t numMaxWaitObjects, size_t numWorkerThreads, uptr workerSt… 172 uptr m_Buffer; 207 void StartExecuteThread(size_t i, uptr stackBottom, s32 priority); 213 …Pool(void* workBuffer, size_t numMaxWaitObjects, size_t numWorkerThreads, uptr workerStackBottoms[… in ThreadPool() 233 void Initialize(uptr workerThreadStackBottom, s32 workerPriority = DEFAULT_THREAD_PRIORITY); 270 ThreadPoolTaskForC(void (*f)(uptr), uptr param) : m_F(f), m_Param(param) {} in ThreadPoolTaskForC() argument 273 void (*m_F)(uptr); 274 uptr m_Param; 280 …ThreadPoolWaitTaskForC(nnosWaitObject* waitObject, void (*f)(uptr), uptr param) : m_WaitObject(wai… in ThreadPoolWaitTaskForC() argument [all …]
|
| D | os_CriticalSection.h | 150 static uptr GetThreadUniqueValue() in GetThreadUniqueValue() 154 static uptr GetInvalidThreadUniqueValue() in GetInvalidThreadUniqueValue() 156 return static_cast<uptr>(-1); in GetInvalidThreadUniqueValue() 159 static uptr GetThreadUniqueValue() in GetThreadUniqueValue() 161 uptr v; in GetThreadUniqueValue() 165 static uptr GetInvalidThreadUniqueValue() in GetInvalidThreadUniqueValue() 182 uptr m_ThreadUniqueValue;
|
| D | os_SimpleAutoStackManagerBase.h | 41 uptr m_DestructorStackBottom; 51 void Initialize(fnd::IAllocator* pAllocator, uptr stackBottom); 53 uptr Finalize(); 63 void CallFreeStackOnOtherStack(void* pStackBottom, uptr stackBottom, uptr returnAddress);
|
| /CTR-SDK-4.2.5/include/nn/ro/ |
| D | ro_Types.h | 88 uptr fix0End; 94 uptr fix1End; 100 uptr fix2End; 106 uptr fix3End; 125 uptr mapBegin; 136 uptr croBegin; 147 uptr dataBssBegin; 158 uptr codeBegin;
|
| D | ro_Module.h | 41 uptr m_Dummy; 256 uptr GetAddress(const char* name) const; 257 uptr GetAddress(s32 index) const; 259 uptr GetHead() { return reinterpret_cast<uptr>(this); } in GetHead()
|
| /CTR-SDK-4.2.5/include/nn/fnd/ |
| D | fnd_MemoryRange.h | 50 … MemoryRange(uptr begin, uptr end) : m_Begin(begin), m_End(end) { NN_TASSERT_(m_Begin <= m_End); } in MemoryRange() 59 …void Initialize(uptr begin, uptr end) { m_Begin = begin; m_End = end; NN_TASSERT_(m_Begin <= m_End… in Initialize() 64 uptr GetAddress() const { return m_Begin; } in GetAddress() 71 uptr GetEndAddress() const { return m_End; } in GetEndAddress() 81 uptr m_Begin; 82 uptr m_End;
|
| D | fnd_HeapBase.h | 187 static uptr RoundDown(uptr addr, s32 alignment) in RoundDown() 192 static uptr RoundUp(uptr addr, s32 alignment) in RoundUp() 197 void FillMemoryZero(uptr addr, size_t size) in FillMemoryZero() 206 void DebugFillMemory(uptr addr, size_t size, HeapFillType type) in DebugFillMemory() 215 inline void DebugFillMemory(uptr, size_t, HeapFillType) {} in DebugFillMemory() argument 225 static void FillMemory(uptr addr, uptr end, bit8 value); 226 static void FillMemory32(uptr addr, uptr end, bit32 value);
|
| D | fnd_FrameHeap.h | 59 …FrameHeapBase(uptr addr, size_t size, bit32 option = 0) : m_Addr(0) { Initialize(addr, size, optio… 64 void Initialize(uptr addr, size_t size, bit32 option = 0); 95 uptr m_Addr; 97 uptr m_CurrentHead; 98 uptr m_CurrentTail; 121 uptr m_Head; 122 uptr m_Tail; 124 explicit State(uptr head, uptr tail) : m_Head(head), m_Tail(tail) {} in State() 133 uptr ret; in Allocate() 142 uptr current = ret + size; in Allocate() [all …]
|
| /CTR-SDK-4.2.5/sources/libraries/os/ |
| D | os_BlockingQueue.cpp | 46 void BlockingQueueBase<Locker>::Initialize(uptr buffer[], size_t size) in Initialize() 60 nn::Result BlockingQueueBase<Locker>::TryInitialize(uptr buffer[], size_t size) in TryInitialize() 104 bool BlockingQueueBase<Locker>::TryEnqueue(uptr data) in TryEnqueue() 126 bool BlockingQueueBase<Locker>::ForceEnqueue(uptr data, uptr* pOut) in ForceEnqueue() 154 void BlockingQueueBase<Locker>::Enqueue(uptr data) in Enqueue() 172 bool BlockingQueueBase<Locker>::TryJam(uptr data) in TryJam() 194 void BlockingQueueBase<Locker>::Jam(uptr data) in Jam() 212 bool BlockingQueueBase<Locker>::TryDequeue(uptr* pOut) in TryDequeue() 234 uptr BlockingQueueBase<Locker>::Dequeue() in Dequeue() 238 uptr data; in Dequeue() [all …]
|
| D | os_Memory.cpp | 37 uptr s_DeviceMemoryAddress = 0; // 45 uptr GetDeviceMemoryAddress() in GetDeviceMemoryAddress() 73 uptr addr; in SetDeviceMemorySize() 75 …const uptr requestAddress = (s_DeviceMemorySize == 0) ? NULL: (s_DeviceMemoryAddress + s_DeviceMem… in SetDeviceMemorySize() 102 uptr addr; in SetDeviceMemorySize() 104 const uptr freeAddress = s_DeviceMemoryAddress + size; in SetDeviceMemorySize() 150 uptr addr; in SetHeapSize() 152 const uptr requestAddress = NN_OS_ADDR_HEAP_BEGIN + s_HeapSize; in SetHeapSize() 170 uptr addr; in SetHeapSize() 172 const uptr freeAddress = NN_OS_ADDR_HEAP_BEGIN + size; in SetHeapSize() [all …]
|
| D | os_ManagedThread.cpp | 72 uptr stackBottom; 73 StackBufferAdapter(uptr stackBottom) : stackBottom(stackBottom) {} in StackBufferAdapter() 74 uptr GetStackBottom() const { return stackBottom; } in GetStackBottom() 77 void* AllocateOnStack(uptr* pStackBottom, size_t size) in AllocateOnStack() 107 void (*f)(uptr); // 152 …uptr ManagedThread::SetupStackAndParam(StartParam* pStartParam, const TypeInfo& typeInfo, ThreadFu… in SetupStackAndParam() 156 uptr stack = stackBottom; in SetupStackAndParam() 183 …:TryInitializeImpl(const TypeInfo& typeInfo, ThreadFunc f, const void* p, uptr stackBottom, size_t… in TryInitializeImpl() 196 …:TryInitializeImpl(const TypeInfo& typeInfo, ThreadFunc f, const void* p, uptr stackBottom, size_t… in TryInitializeImpl() 201 … const uptr newStackBottom = SetupStackAndParam(¶m, typeInfo, f, p, stackBottom, stackSize); in TryInitializeImpl() [all …]
|
| D | os_AddressSpaceManager.h | 43 uptr m_SpaceBegin; // 44 uptr m_SpaceEnd; // 57 void Initialize(uptr begin, size_t size); 67 uptr Allocate(MemoryBlockBase* pBlock, size_t size, size_t skipSize); 137 NN_EXTERN_C void nnosAddressSpaceManagerInitialize(nnosAddressSpaceManager* p, uptr begin, size_t s… 142 NN_EXTERN_C uptr nnosAddressSpaceManagerAllocate(nnosAddressSpaceManager* p, nnosMemoryBlockBase* p…
|
| D | os_StackMemory.cpp | 73 if ( ( reinterpret_cast<uptr>(pMem) % NN_OS_MEMORY_PAGE_SIZE ) != 0 ) in TryInitialize() 79 …uptr addr = nnosAddressSpaceManagerAllocate(&s_SpaceManager, os::detail::ConvertToC(this), size, N… in TryInitialize() 85 m_MemoryAddress = reinterpret_cast<uptr>(pMem); in TryInitialize() 88 uptr dummy; in TryInitialize() 112 uptr memAddr = m_MemoryAddress; in TryInitialize() 131 const uptr addr = GetAddress(); in Finalize() 133 const uptr memAddr = m_MemoryAddress; in Finalize() 138 uptr dummy; in Finalize() 191 uptr nnosStackMemoryGetAddress(nnosStackMemory* p) in nnosStackMemoryGetAddress() 203 uptr nnosStackMemoryGetStackBottom(nnosStackMemory* p) in nnosStackMemoryGetStackBottom()
|
| D | os_Thread.cpp | 44 uptr stackBottom; 45 StackBufferAdapter(uptr stackBottom) : stackBottom(stackBottom) {} in StackBufferAdapter() 46 uptr GetStackBottom() const { return stackBottom; } in GetStackBottom() 122 void (*f)(uptr); // 191 void Thread::ThreadStart(uptr p) in ThreadStart() 214 uptr stackBottom, in TryInitializeAndStartImpl() 233 uptr stackBottom, in TryInitializeAndStartImpl() 236 uptr autoStackBuffer ) in TryInitializeAndStartImpl() 242 uptr stack = stackBottom; in TryInitializeAndStartImpl() 291 uptr Thread::PreStartUsingAutoStack(size_t stackSize) in PreStartUsingAutoStack() [all …]
|
| D | os_AddressSpaceManager.cpp | 25 void AddressSpaceManager::Initialize(uptr begin, size_t size) in Initialize() 37 uptr AddressSpaceManager::Allocate(MemoryBlockBase* pBlock, size_t size, size_t skipSize) in Allocate() 46 uptr allocatedAddress; in Allocate() 78 const uptr allocatedEnd = allocatedAddress + size; in Allocate() 79 const uptr nextBegin = pNext->GetAddress(); in Allocate() 92 const uptr allocatedEnd = allocatedAddress + size; in Allocate() 137 uptr end = m_SpaceEnd; in FindSpace() 142 const uptr nextBegin = pItem->GetAddress(); in FindSpace() 143 const uptr nextEnd = nextBegin + pItem->GetSize(); in FindSpace() 190 void nnosAddressSpaceManagerInitialize(nnosAddressSpaceManager* p, uptr begin, size_t size) in nnosAddressSpaceManagerInitialize() [all …]
|
| D | os_SimpleAutoStackManagerBase.cpp | 38 void SimpleAutoStackManagerBase::Initialize(fnd::IAllocator* pAllocator, uptr stackBottom) in Initialize() 48 uptr SimpleAutoStackManagerBase::Finalize() in Finalize() 50 uptr stackBottom = m_DestructorStackBottom; in Finalize() 85 uptr stackBottom NN_IS_UNUSED_VAR, in CallFreeStackOnOtherStack() 86 uptr returnAddress NN_IS_UNUSED_VAR ) in CallFreeStackOnOtherStack()
|
| /CTR-SDK-4.2.5/sources/libraries/os/ARM/ |
| D | os_ExceptionHandler.cpp | 24 void SetUserExceptionHandler(UserExceptionHandler pHandler, uptr stackBottom) in SetUserExceptionHandler() 29 void SetUserExceptionHandler(UserExceptionHandler pHandler, uptr stackBottom, in SetUserExceptionHandler() 35 pTlr->handlerAddress = reinterpret_cast<uptr>(pHandler); in SetUserExceptionHandler() 37 pTlr->exceptionBufferAddress = reinterpret_cast<uptr>(pExceptionBuffer); in SetUserExceptionHandler() 40 void SetUserExceptionHandlerLocal(UserExceptionHandler pHandler, uptr stackBottom, in SetUserExceptionHandlerLocal() 45 pTlr->handlerAddress = reinterpret_cast<uptr>(pHandler); in SetUserExceptionHandlerLocal() 47 pTlr->exceptionBufferAddress = reinterpret_cast<uptr>(pExceptionBuffer); in SetUserExceptionHandlerLocal()
|
| /CTR-SDK-4.2.5/include/nn/snd/CTR/MPCore/ |
| D | snd_Api.h | 75 void (*callback)(uptr), 76 uptr arg, 77 uptr stackBuffer, 86 nn::Result StartUserSoundThread(uptr stackBuffer, size_t stackSize, s32 prio); 93 void (*mainThreadCallback)(uptr), 94 uptr mainThreadArg, 96 void (*userThreadCallback)(uptr), 97 uptr userThreadArg, 155 nn::Result FlushDataCache( uptr addr, size_t size ); 166 nn::Result InvalidateDataCache( uptr addr, size_t size ); [all …]
|
| /CTR-SDK-4.2.5/sources/libraries/fnd/ |
| D | fnd_UnitHeap.cpp | 22 void UnitHeapBase::Initialize(size_t unit, uptr addr, size_t size, s32 alignment, bit32 option) in Initialize() 38 for (uptr addr2 = m_Addr + m_Size - m_Unit; addr2 >= m_Addr; addr2 -= m_Unit) in Initialize() 43 NN_TASSERT_(reinterpret_cast<uptr>(freeNode) == m_Addr); in Initialize() 52 bool UnitHeapBase::IsFreeNode(uptr addr) const in IsFreeNode() 63 if(reinterpret_cast<uptr>(pNode) == addr) in IsFreeNode() 90 uptr start = this->m_Addr + m_Unit * i; in Dump() 110 uptr start = reinterpret_cast<uptr>(pNode); in Dump()
|
| D | fnd_HeapBase.cpp | 106 inline void FillMemory8(uptr begin, uptr end, bit8 v) in FillMemory8() 119 void HeapBase::FillMemory32(uptr begin, uptr end, bit32 v) in FillMemory32() 132 void HeapBase::FillMemory(uptr addr, uptr end, bit8 v) in FillMemory() 135 uptr begin = addr; in FillMemory() 136 uptr rbegin = RoundUp(begin, sizeof(bit32)); in FillMemory() 137 uptr rend = RoundDown(end, sizeof(bit32)); in FillMemory()
|
| /CTR-SDK-4.2.5/include/nn/gx/CTR/ |
| D | gx_CommandAccess.h | 46 uptr nngxGetPhysicalAddr( uptr virtualAddr ); 80 inline uptr GetPhysicalAddr( uptr virtualAddr ) in GetPhysicalAddr()
|
| D | gx_Vram.h | 48 uptr nngxGetVramStartAddr( s32 area ); 56 uptr nngxGetVramEndAddr( s32 area ); 103 inline uptr GetVramStartAddr( VramArea area ) in GetVramStartAddr() 117 inline uptr GetVramEndAddr( VramArea area ) in GetVramEndAddr()
|
| /CTR-SDK-4.2.5/include/nn/err/CTR/ |
| D | err_Api.h | 28 void ThrowFatalErr( Result result, uptr pc ); 29 void ThrowFatalErrAll( Result result, uptr pc ); 34 void LogAndPanic( Result result, uptr pc ); 35 void LogAndPanic( Result result, const char* fileName, int lineno, uptr pc ); 39 template <bool(*IsTarget)(Result), void (*TargetFunc)(Result,uptr)> 40 inline void CallIf(Result r, uptr pc) in CallIf() 48 template <bool(*IsTarget)(Result), void (*TargetFunc)(Result,const char*,int,uptr)> 49 inline void CallIf(Result r, const char* fileName, int lineno, uptr pc ) in CallIf()
|