Home
last modified time | relevance | path

Searched refs:uptr (Results 1 – 25 of 122) sorted by relevance

12345

/CTR-SDK-4.2.5/include/nn/os/
Dos_BlockingQueue.h47 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 …]
Dos_Memory.h62 uptr GetDeviceMemoryAddress();
106 uptr GetHeapAddress();
153 uptr GetCodeRegionAddress();
171 inline uptr GetHeapAddressWithoutCheck() in GetHeapAddressWithoutCheck()
192 NN_EXTERN_C uptr nnosGetDeviceMemoryAddress(void);
Dos_ThreadPool.h81 …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 …]
Dos_CriticalSection.h150 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;
Dos_SimpleAutoStackManagerBase.h41 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/
Dro_Types.h88 uptr fix0End;
94 uptr fix1End;
100 uptr fix2End;
106 uptr fix3End;
125 uptr mapBegin;
136 uptr croBegin;
147 uptr dataBssBegin;
158 uptr codeBegin;
Dro_Module.h41 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/
Dfnd_MemoryRange.h50 … 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;
Dfnd_HeapBase.h187 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);
Dfnd_FrameHeap.h59 …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/
Dos_BlockingQueue.cpp46 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 …]
Dos_Memory.cpp37 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 …]
Dos_ManagedThread.cpp72 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); //
152uptr 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(&param, typeInfo, f, p, stackBottom, stackSize); in TryInitializeImpl()
[all …]
Dos_AddressSpaceManager.h43 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…
Dos_StackMemory.cpp73 if ( ( reinterpret_cast<uptr>(pMem) % NN_OS_MEMORY_PAGE_SIZE ) != 0 ) in TryInitialize()
79uptr 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()
Dos_Thread.cpp44 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 …]
Dos_AddressSpaceManager.cpp25 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 …]
Dos_SimpleAutoStackManagerBase.cpp38 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/
Dos_ExceptionHandler.cpp24 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/
Dsnd_Api.h75 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/
Dfnd_UnitHeap.cpp22 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()
Dfnd_HeapBase.cpp106 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/
Dgx_CommandAccess.h46 uptr nngxGetPhysicalAddr( uptr virtualAddr );
80 inline uptr GetPhysicalAddr( uptr virtualAddr ) in GetPhysicalAddr()
Dgx_Vram.h48 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/
Derr_Api.h28 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()

12345