| /CTR-SDK-2.4.0/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_InterCoreBlockingQueue.h | 47 InterCoreBlockingQueueBase(uptr buffer[], size_t size) { Initialize(buffer, size); } in InterCoreBlockingQueueBase() 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_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… 173 uptr m_Buffer; 205 void StartExecuteThread(size_t i, uptr stackBottom, s32 priority); 211 …Pool(void* workBuffer, size_t numMaxWaitObjects, size_t numWorkerThreads, uptr workerStackBottoms[… in ThreadPool() 231 void Initialize(uptr workerThreadStackBottom, s32 workerPriority = DEFAULT_THREAD_PRIORITY); 268 ThreadPoolTaskForC(void (*f)(uptr), uptr param) : m_F(f), m_Param(param) {} in ThreadPoolTaskForC() argument 271 void (*m_F)(uptr); 272 uptr m_Param; 278 …ThreadPoolWaitTaskForC(nnosWaitObject* waitObject, void (*f)(uptr), uptr param) : m_WaitObject(wai… in ThreadPoolWaitTaskForC() argument [all …]
|
| D | os_InterCoreCriticalSection.h | 236 static uptr GetThreadUniqueValue() in GetThreadUniqueValue() 240 static uptr GetInvalidThreadUniqueValue() in GetInvalidThreadUniqueValue() 242 return static_cast<uptr>(-1); in GetInvalidThreadUniqueValue() 245 static uptr GetThreadUniqueValue() in GetThreadUniqueValue() 247 uptr v; in GetThreadUniqueValue() 251 static uptr GetInvalidThreadUniqueValue() in GetInvalidThreadUniqueValue() 264 uptr m_ThreadUniqueValue;
|
| D | os_CriticalSection.h | 245 static uptr GetThreadUniqueValue() in GetThreadUniqueValue() 249 static uptr GetInvalidThreadUniqueValue() in GetInvalidThreadUniqueValue() 251 return static_cast<uptr>(-1); in GetInvalidThreadUniqueValue() 254 static uptr GetThreadUniqueValue() in GetThreadUniqueValue() 256 uptr v; in GetThreadUniqueValue() 260 static uptr GetInvalidThreadUniqueValue() in GetInvalidThreadUniqueValue() 273 uptr m_ThreadUniqueValue;
|
| D | os_Memory.h | 86 uptr GetDeviceMemoryAddress(); 124 inline uptr GetHeapAddress() { return NN_OS_ADDR_HEAP_BEGIN; } in GetHeapAddress() 172 NN_EXTERN_C uptr nnosGetDeviceMemoryAddress(void);
|
| /CTR-SDK-2.4.0/include/nn/fnd/ |
| D | fnd_MemoryRange.h | 48 … MemoryRange(uptr begin, uptr end) : m_Begin(begin), m_End(end) { NN_TASSERT_(m_Begin <= m_End); } in MemoryRange() 57 …void Initialize(uptr begin, uptr end) { m_Begin = begin; m_End = end; NN_TASSERT_(m_Begin <= m_End… in Initialize() 62 uptr GetAddress() const { return m_Begin; } in GetAddress() 69 uptr GetEndAddress() const { return m_End; } in GetEndAddress() 79 uptr m_Begin; 80 uptr m_End;
|
| D | fnd_HeapBase.h | 185 static uptr RoundDown(uptr addr, s32 alignment) in RoundDown() 190 static uptr RoundUp(uptr addr, s32 alignment) in RoundUp() 195 void FillMemoryZero(uptr addr, size_t size) in FillMemoryZero() 204 void DebugFillMemory(uptr addr, size_t size, HeapFillType type) in DebugFillMemory() 213 inline void DebugFillMemory(uptr, size_t, HeapFillType) {} in DebugFillMemory() argument 223 static void FillMemory(uptr addr, uptr end, bit8 value); 224 static void FillMemory32(uptr addr, uptr end, bit32 value);
|
| D | fnd_FrameHeap.h | 57 …FrameHeapBase(uptr addr, size_t size, bit32 option = 0) : m_Addr(0) { Initialize(addr, size, optio… 62 void Initialize(uptr addr, size_t size, bit32 option = 0); 93 uptr m_Addr; 95 uptr m_CurrentHead; 96 uptr m_CurrentTail; 119 uptr m_Head; 120 uptr m_Tail; 122 explicit State(uptr head, uptr tail) : m_Head(head), m_Tail(tail) {} in State() 131 uptr ret; in Allocate() 140 uptr current = ret + size; in Allocate() [all …]
|
| /CTR-SDK-2.4.0/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_InterCoreBlockingQueue.cpp | 46 void InterCoreBlockingQueueBase<Locker>::Initialize(uptr buffer[], size_t size) in Initialize() 60 nn::Result InterCoreBlockingQueueBase<Locker>::TryInitialize(uptr buffer[], size_t size) in TryInitialize() 104 bool InterCoreBlockingQueueBase<Locker>::TryEnqueue(uptr data) in TryEnqueue() 126 bool InterCoreBlockingQueueBase<Locker>::ForceEnqueue(uptr data, uptr* pOut) in ForceEnqueue() 154 void InterCoreBlockingQueueBase<Locker>::Enqueue(uptr data) in Enqueue() 174 bool InterCoreBlockingQueueBase<Locker>::TryJam(uptr data) in TryJam() 196 void InterCoreBlockingQueueBase<Locker>::Jam(uptr data) in Jam() 216 bool InterCoreBlockingQueueBase<Locker>::TryDequeue(uptr* pOut) in TryDequeue() 238 uptr InterCoreBlockingQueueBase<Locker>::Dequeue() in Dequeue() 243 uptr data; in Dequeue() [all …]
|
| D | os_Memory.cpp | 34 uptr s_DeviceMemoryAddress = 0; // 52 uptr GetDeviceMemoryAddress() in GetDeviceMemoryAddress() 80 uptr addr; in SetDeviceMemorySize() 82 …const uptr requestAddress = (s_DeviceMemorySize == 0) ? NULL: (s_DeviceMemoryAddress + s_DeviceMem… in SetDeviceMemorySize() 109 uptr addr; in SetDeviceMemorySize() 111 const uptr freeAddress = s_DeviceMemoryAddress + size; in SetDeviceMemorySize() 154 uptr addr; in SetHeapSize() 156 const uptr requestAddress = NN_OS_ADDR_HEAP_BEGIN + s_HeapSize; in SetHeapSize() 174 uptr addr; in SetHeapSize() 176 const uptr freeAddress = NN_OS_ADDR_HEAP_BEGIN + size; in SetHeapSize() [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, detail::ConvertToC(this), size, NN_OS… in TryInitialize() 85 m_MemoryAddress = reinterpret_cast<uptr>(pMem); in TryInitialize() 88 uptr dummy; in TryInitialize() 110 const uptr addr = GetAddress(); in Finalize() 112 const uptr memAddr = m_MemoryAddress; in Finalize() 117 uptr dummy; in Finalize() 170 uptr nnosStackMemoryGetAddress(nnosStackMemory* p) in nnosStackMemoryGetAddress() 182 uptr nnosStackMemoryGetStackBottom(nnosStackMemory* p) in nnosStackMemoryGetStackBottom()
|
| 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 …]
|
| /CTR-SDK-2.4.0/include/nn/applet/CTR/ |
| D | applet_Wrapper.h | 143 void SetHomeButtonCallback( AppletHomeButtonCallback callback, uptr arg=0 ); 150 void SetReceiveMessageCallback( AppletMessageCallback callback, uptr arg=0 ); 157 void SetPowerButtonCallback( AppletPowerButtonCallback callback, uptr arg=0 ); 164 void SetRequestMemoryCallback( AppletRequestMemoryCallback callback, uptr arg=0 ); 170 void SetReleaseMemoryCallback( AppletReleaseMemoryCallback callback, uptr arg=0 ); 177 void SetDspSleepCallback( AppletDspSleepCallback callback, uptr arg=0 ); 183 void SetDspWakeUpCallback( AppletDspWakeUpCallback callback, uptr arg=0 ); 190 void SetSleepQueryCallback( AppletSleepQueryCallback callback, uptr arg=0 ); 196 void SetSleepCanceledCallback( AppletSleepCanceledCallback callback, uptr arg=0 ); 202 void SetAwakeCallback( AppletAwakeCallback callback, uptr arg=0 ); [all …]
|
| /CTR-SDK-2.4.0/include/nn/snd/CTR/MPCore/ |
| D | snd_Api.h | 78 void (*callback)(uptr), 79 uptr arg, 80 uptr stackBuffer, 89 nn::Result StartUserSoundThread(uptr stackBuffer, size_t stackSize, s32 prio); 96 void (*mainThreadCallback)(uptr), 97 uptr mainThreadArg, 99 void (*userThreadCallback)(uptr), 100 uptr userThreadArg, 164 nn::Result FlushDataCache( uptr addr, size_t size ); 175 nn::Result InvalidateDataCache( uptr addr, size_t size ); [all …]
|
| /CTR-SDK-2.4.0/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-2.4.0/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-2.4.0/include/nn/ngc/CTR/ |
| D | ngc_ProfanityFilter.h | 80 ProfanityFilter( uptr pWorkMemory ) { Initialize( pWorkMemory ); } in ProfanityFilter() 111 nn::Result Initialize( uptr pWorkMemory ); 246 uptr m_pWorkingHead; 249 uptr m_pTempPoolHead; 252 uptr m_pPatternsHead; 255 uptr m_pMountWorkingArea;
|
| /CTR-SDK-2.4.0/include/nn/dsp/CTR/MPCore/ |
| D | dsp_Api.h | 157 nn::Result GetVirtualAddress(uptr physicalAddress, uptr * pVirtualAddress); 167 nn::Result GetPhysicalAddress(uptr address, uptr * pPhysicalAddress); 177 nn::Result ConvertProcessAddressFromDspDram(uptr addressOnDsp, uptr * pAddressOnHost); 277 nn::Result FlushDataCache( uptr addr, size_t size ); 287 nn::Result InvalidateDataCache( uptr addr, size_t size );
|
| /CTR-SDK-2.4.0/include/nn/hid/CTR/ |
| D | hid_HidBase.h | 46 uptr m_pResource; 89 uptr GetResource(); 90 void SetResource(uptr resource); 117 inline uptr HidBase::GetResource() in GetResource() 122 inline void HidBase::SetResource(uptr resource) in SetResource()
|
| /CTR-SDK-2.4.0/include/nn/gr/CTR/ |
| D | gr_Texture.h | 44 uptr physicalAddr; 204 uptr cubeMapAddrPosX; 210 uptr cubeMapAddrNegX; 216 uptr cubeMapAddrPosY; 222 uptr cubeMapAddrNegY; 228 uptr cubeMapAddrPosZ; 234 uptr cubeMapAddrNegZ;
|