Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 108) sorted by relevance

12345

/CTR-SDK-0.13.2/sources/libraries/os/
Dos_HandleManager.cpp23 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 …]
Dos_Timer.cpp39 void nnosTimerInitialize(nnosTimer* p, bool isManualReset) in nnosTimerInitialize() argument
41 new (p) Timer(isManualReset); in nnosTimerInitialize()
44 bool nnosTimerTryInitialize(nnosTimer* p, bool isManualReset) in nnosTimerTryInitialize() argument
46 new (p) Timer(); in nnosTimerTryInitialize()
47 Timer* pTimer = reinterpret_cast<Timer*>(p); in nnosTimerTryInitialize()
52 void nnosTimerStartPeriodic(nnosTimer* p, s64 first, s64 interval) in nnosTimerStartPeriodic() argument
54 Timer* pTimer = reinterpret_cast<Timer*>(p); in nnosTimerStartPeriodic()
58 void nnosTimerStartOneShot(nnosTimer* p, s64 time) in nnosTimerStartOneShot() argument
60 Timer* pTimer = reinterpret_cast<Timer*>(p); in nnosTimerStartOneShot()
64 void nnosTimerWait(nnosTimer* p) in nnosTimerWait() argument
[all …]
Dos_Event.cpp38 void nnosEventInitialize(nnosEvent* p, bool isManualReset) in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION()
40 new (p) Event(isManualReset); in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION()
43 bool nnosEventTryInitialize(nnosEvent* p, bool manualReset) in nnosEventTryInitialize() argument
45 new (p) Event(); in nnosEventTryInitialize()
46 Event* pEvent = reinterpret_cast<Event*>(p); in nnosEventTryInitialize()
51 void nnosEventSignal(nnosEvent* p) in nnosEventSignal() argument
53 Event* pEvent = reinterpret_cast<Event*>(p); in nnosEventSignal()
57 void nnosEventWaitSignal(nnosEvent* p) in nnosEventWaitSignal() argument
59 Event* pEvent = reinterpret_cast<Event*>(p); in nnosEventWaitSignal()
63 bool nnosEventTryWaitSignal(nnosEvent* p, s64 nanoSecondsTimeout) in nnosEventTryWaitSignal() argument
[all …]
Dos_CriticalSection.cpp60 void nnosCriticalSectionInitialize(nnosCriticalSection* p) in nnosCriticalSectionInitialize() argument
62 new (p) CriticalSection(nn::WithInitialize()); in nnosCriticalSectionInitialize()
65 bool nnosCriticalSectionTryInitialize(nnosCriticalSection* p) in nnosCriticalSectionTryInitialize() argument
67 new (p) CriticalSection(nn::WithInitialize()); in nnosCriticalSectionTryInitialize()
68 CriticalSection* pCriticalSection = reinterpret_cast<CriticalSection*>(p); in nnosCriticalSectionTryInitialize()
73 void nnosCriticalSectionEnter(nnosCriticalSection* p) in nnosCriticalSectionEnter() argument
75 CriticalSection* pCriticalSection = reinterpret_cast<CriticalSection*>(p); in nnosCriticalSectionEnter()
79 bool nnosCriticalSectionTryEnter(nnosCriticalSection* p) in nnosCriticalSectionTryEnter() argument
81 CriticalSection* pCriticalSection = reinterpret_cast<CriticalSection*>(p); in nnosCriticalSectionTryEnter()
85 void nnosCriticalSectionLeave(nnosCriticalSection* p) in nnosCriticalSectionLeave() argument
[all …]
Dos_LightSemaphore.cpp56 void nnosLightSemaphoreInitialize(nnosLightSemaphore* p, s32 initialCount, s32 maxCount) in nnosLightSemaphoreInitialize() argument
58 new (p) LightSemaphore(); in nnosLightSemaphoreInitialize()
59 LightSemaphore* pLightSemaphore = reinterpret_cast<LightSemaphore*>(p); in nnosLightSemaphoreInitialize()
63 s32 nnosLightSemaphoreGetMax(nnosLightSemaphore* p) in nnosLightSemaphoreGetMax() argument
65 LightSemaphore* pLightSemaphore = reinterpret_cast<LightSemaphore*>(p); in nnosLightSemaphoreGetMax()
69 s32 nnosLightSemaphoreGetCount(nnosLightSemaphore* p) in nnosLightSemaphoreGetCount() argument
71 LightSemaphore* pLightSemaphore = reinterpret_cast<LightSemaphore*>(p); in nnosLightSemaphoreGetCount()
75 s32 nnosLightSemaphoreRelease(nnosLightSemaphore* p, s32 releaseCount) in nnosLightSemaphoreRelease() argument
77 LightSemaphore* pLightSemaphore = reinterpret_cast<LightSemaphore*>(p); in nnosLightSemaphoreRelease()
81 void nnosLightSemaphoreAcquire(nnosLightSemaphore* p) in nnosLightSemaphoreAcquire() argument
[all …]
Dos_LightEvent.cpp149 void nnosLightEventInitialize(nnosLightEvent* p, bool isManualReset) in nnosLightEventInitialize() argument
151 new (p) LightEvent(isManualReset); in nnosLightEventInitialize()
154 bool nnosLightEventIsSignaled(nnosLightEvent* p) in nnosLightEventIsSignaled() argument
156 LightEvent* pLightEvent = reinterpret_cast<LightEvent*>(p); in nnosLightEventIsSignaled()
160 bool nnosLightEventIsManualReset(nnosLightEvent* p) in nnosLightEventIsManualReset() argument
162 LightEvent* pLightEvent = reinterpret_cast<LightEvent*>(p); in nnosLightEventIsManualReset()
166 bool nnosLightEventTryWait(nnosLightEvent* p) in nnosLightEventTryWait() argument
168 LightEvent* pLightEvent = reinterpret_cast<LightEvent*>(p); in nnosLightEventTryWait()
172 void nnosLightEventWait(nnosLightEvent* p) in nnosLightEventWait() argument
174 LightEvent* pLightEvent = reinterpret_cast<LightEvent*>(p); in nnosLightEventWait()
[all …]
Dos_Mutex.cpp40 void nnosMutexInitialize(nnosMutex* p, bool initialLocked) in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION()
42 new (p) Mutex(initialLocked); in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION()
45 bool nnosMutexTryInitialize(nnosMutex* p, bool initialLocked) in nnosMutexTryInitialize() argument
47 new (p) Mutex(); in nnosMutexTryInitialize()
48 Mutex* pMutex = reinterpret_cast<Mutex*>(p); in nnosMutexTryInitialize()
53 void nnosMutexLock(nnosMutex* p) in nnosMutexLock() argument
55 Mutex* pMutex = reinterpret_cast<Mutex*>(p); in nnosMutexLock()
59 bool nnosMutexTryLock(nnosMutex* p, s64 timeout) in nnosMutexTryLock() argument
61 Mutex* pMutex = reinterpret_cast<Mutex*>(p); in nnosMutexTryLock()
65 void nnosMutexUnlock(nnosMutex* p) in nnosMutexUnlock() argument
[all …]
Dos_Semaphore.cpp41 void nnosSemaphoreInitialize(nnosSemaphore* p, s32 initialCount, s32 maxCount) in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION()
43 new (p) Semaphore(initialCount, maxCount); in NN_UTIL_DETAIL_CLIBIMPL_DEFINE_CONVERSION()
46 bool nnosSemaphoreTryInitialize(nnosSemaphore* p, s32 initialCount, s32 maxCount) in nnosSemaphoreTryInitialize() argument
48 new (p) Semaphore(); in nnosSemaphoreTryInitialize()
49 Semaphore* pSemaphore = reinterpret_cast<Semaphore*>(p); in nnosSemaphoreTryInitialize()
54 s32 nnosSemaphoreRelease(nnosSemaphore* p, s32 releaseCount) in nnosSemaphoreRelease() argument
56 Semaphore* pSemaphore = reinterpret_cast<Semaphore*>(p); in nnosSemaphoreRelease()
60 void nnosSemaphoreAcquire(nnosSemaphore* p) in nnosSemaphoreAcquire() argument
62 Semaphore* pSemaphore = reinterpret_cast<Semaphore*>(p); in nnosSemaphoreAcquire()
66 bool nnosSemaphoreTryAcquire(nnosSemaphore* p, s64 nanoSeconds) in nnosSemaphoreTryAcquire() argument
[all …]
Dos_MemoryBlock.cpp48 uptr AllocateFromMemoryBlockSpace(MemoryBlockBase* p, size_t s) in AllocateFromMemoryBlockSpace() argument
51 return pManager->Allocate(p, s, 0); in AllocateFromMemoryBlockSpace()
53 void FreeToMemoryBlockSpace(MemoryBlockBase* p) in FreeToMemoryBlockSpace() argument
56 pManager->Free(p); in FreeToMemoryBlockSpace()
124 void nnosMemoryBlockAllocate(nnosMemoryBlock* p, size_t size) in nnosMemoryBlockAllocate() argument
127 new (p) MemoryBlock(size); in nnosMemoryBlockAllocate()
130 void nnosMemoryBlockSetReadOnly(nnosMemoryBlock* p, bool readOnly) in nnosMemoryBlockSetReadOnly() argument
132 MemoryBlock* pMemoryBlock = reinterpret_cast<MemoryBlock*>(p); in nnosMemoryBlockSetReadOnly()
136 void nnosMemoryBlockFree(nnosMemoryBlock* p) in nnosMemoryBlockFree() argument
138 MemoryBlock* pMemoryBlock = reinterpret_cast<MemoryBlock*>(p); in nnosMemoryBlockFree()
[all …]
Dos_StackMemoryBlock.cpp91 void nnosStackMemoryBlockInitialize(nnosStackMemoryBlock* p) in nnosStackMemoryBlockInitialize() argument
93 new (p) StackMemoryBlock(); in nnosStackMemoryBlockInitialize()
96 void nnosStackMemoryBlockAllocate(nnosStackMemoryBlock* p, size_t size) in nnosStackMemoryBlockAllocate() argument
99 new (p) StackMemoryBlock(size); in nnosStackMemoryBlockAllocate()
102 void nnosStackMemoryBlockFree(nnosStackMemoryBlock* p) in nnosStackMemoryBlockFree() argument
104 StackMemoryBlock* pStackMemoryBlock = reinterpret_cast<StackMemoryBlock*>(p); in nnosStackMemoryBlockFree()
108 uptr nnosStackMemoryBlockGetAddress(nnosStackMemoryBlock* p) in nnosStackMemoryBlockGetAddress() argument
110 StackMemoryBlock* pStackMemoryBlock = reinterpret_cast<StackMemoryBlock*>(p); in nnosStackMemoryBlockGetAddress()
114 size_t nnosStackMemoryBlockGetSize(nnosStackMemoryBlock* p) in nnosStackMemoryBlockGetSize() argument
116 StackMemoryBlock* pStackMemoryBlock = reinterpret_cast<StackMemoryBlock*>(p); in nnosStackMemoryBlockGetSize()
[all …]
Dos_Thread.cpp91 void (*destroy)(void* p); //!< 終了処理関数
92 void (*invoke)(ThreadFunc f, const void* p); //!< ハンドラを呼び出す関数
94 void* p; //!< ハンドラに渡すパラメータ member
102 invoke(f, p); in Invoke()
108 destroy(p); in Destroy()
168 void Thread::ThreadStart(uptr p) in ThreadStart() argument
170 FunctionInfo& info = *reinterpret_cast<FunctionInfo*>(p); in ThreadStart()
187 Result Thread::TryInitializeAndStartImpl(const TypeInfo& typeInfo, ThreadFunc f, const void* p, upt… in TryInitializeAndStartImpl() argument
199 typeInfo.copy(p, obj); in TryInitializeAndStartImpl()
208 info.p = obj; in TryInitializeAndStartImpl()
[all …]
Dos_DeliverArg.cpp58 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 …]
Dos_Alarm.cpp94 void Alarm::SetOneShot(TimeSpan time, AlarmHandler handler, void* p) in SetOneShot() argument
98 m_Parameter = p; in SetOneShot()
105 void Alarm::SetPeriodic(TimeSpan initial, TimeSpan interval, AlarmHandler handler, void* p) in SetPeriodic() argument
109 m_Parameter = p; in SetPeriodic()
214 void nnosAlarmInitialize(nnosAlarm* p) in nnosAlarmInitialize() argument
216 Alarm* this_ = new (p) Alarm; in nnosAlarmInitialize()
220 void nnosAlarmFinalize(nnosAlarm* p) in nnosAlarmFinalize() argument
222 Alarm* pAlarm = reinterpret_cast<Alarm*>(p); in nnosAlarmFinalize()
226 void nnosAlarmSetOneShot(nnosAlarm* p, s64 time, nnosAlarmHandler handler, void* param) in nnosAlarmSetOneShot() argument
228 Alarm* pAlarm = reinterpret_cast<Alarm*>(p); in nnosAlarmSetOneShot()
[all …]
Dos_StackMemory.cpp141 void nnosStackMemoryProtect(nnosStackMemory* p, void* pMem, size_t size) in nnosStackMemoryProtect() argument
143 new (p) StackMemory(pMem, size); in nnosStackMemoryProtect()
146 void nnosStackMemoryUnprotect(nnosStackMemory* p) in nnosStackMemoryUnprotect() argument
148 StackMemory* pStackMemory = reinterpret_cast<StackMemory*>(p); in nnosStackMemoryUnprotect()
152 uptr nnosStackMemoryGetAddress(nnosStackMemory* p) in nnosStackMemoryGetAddress() argument
154 StackMemory* pStackMemory = reinterpret_cast<StackMemory*>(p); in nnosStackMemoryGetAddress()
158 size_t nnosStackMemoryGetSize(nnosStackMemory* p) in nnosStackMemoryGetSize() argument
160 StackMemory* pStackMemory = reinterpret_cast<StackMemory*>(p); in nnosStackMemoryGetSize()
164 uptr nnosStackMemoryGetStackBottom(nnosStackMemory* p) in nnosStackMemoryGetStackBottom() argument
166 StackMemory* pStackMemory = reinterpret_cast<StackMemory*>(p); in nnosStackMemoryGetStackBottom()
/CTR-SDK-0.13.2/include/nn/fnd/
Dfnd_LinkedList.h102 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);
227 inline void IntrusiveLinkedList<T, Tag>::ClearLinks(Item* p) in ClearLinks() argument
229 p->m_PreviousLink = p->m_NextLink = 0; in ClearLinks()
233 inline void IntrusiveLinkedList<T, Tag>::InsertBefore(Item* p, Item* q) in InsertBefore() argument
[all …]
Dfnd_Queue.h57 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-0.13.2/include/nn/math/ARMv6/inline/
Dmath_Vector3.ipp33 @param[out] pOut 計算結果を受け取るバッファへのポインタ。p と同じベクトルを指していても構いません。
34 @param[in] p 対象のベクトルへのポインタ
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);
[all …]
/CTR-SDK-0.13.2/include/nn/math/inline/
Dmath_Vector2.ipp31 @param[in] p 判定対象のベクトルへのポインタ。
33 @return p がゼロベクトルであれば true そうでなければ false を返します。
36 VEC2IsZero(const VEC2* p)
38 return p->x == 0.f && p->y == 0.f;
82 @param[out] pOut 計算結果を受け取るバッファへのポインタ。p と同じベクトルを指していても構いません。
83 @param[in] p 対象のベクトル1へのポインタ。
88 VEC2Normalize(VEC2* pOut, const VEC2* p)
90 (void)VEC2Scale(pOut, p, FrSqrt(p->x * p->x + p->y * p->y));
99 @param[out] pOut 計算結果を受け取るバッファへのポインタ。p と同じベクトルを指していても構いません。
100 @param[in] p 対象のベクトル1へのポインタ。
[all …]
Dmath_Vector4.ipp30 @param[in] p 判定対象のベクトルへのポインタ。
32 @return p がゼロベクトルであれば true そうでなければ false を返します。
35 VEC4IsZero(const VEC4* p)
37 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 0.f;
43 @param[in] p 判定対象のベクトルへのポインタ。
45 @return p がゼロベクトルであれば true そうでなければ false を返します。
48 VEC4IsZeroWOne(const VEC4* p)
50 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 1.f;
115 @param[out] pOut 計算結果を受け取るバッファへのポインタ。p と同じベクトルを指していても構いません。
116 @param[in] p 左辺値へのポインタ
[all …]
Dmath_Matrix33.ipp28 @param[in] p 判定対象の行列へのポインタ。
30 @return p が単位行列であれば true そうでなければ false を返します。
33 MTX33IsIdentity(const MTX33* p)
35 return p->f._00 == 1.f && p->f._01 == 0.f && p->f._02 == 0.f &&
36 p->f._10 == 0.f && p->f._11 == 1.f && p->f._12 == 0.f &&
37 p->f._20 == 0.f && p->f._21 == 0.f && p->f._22 == 1.f;
/CTR-SDK-0.13.2/include/nn/os/
Dos_MemoryBlock.h46 uptr AllocateFromMemoryBlockSpace(MemoryBlockBase* p, size_t s);
47 void FreeToMemoryBlockSpace(MemoryBlockBase* p);
172 NN_EXTERN_C void nnosMemoryBlockAllocate(nnosMemoryBlock* p, size_t size);
177 NN_EXTERN_C void nnosMemoryBlockSetReadOnly(nnosMemoryBlock* p, bool readOnly);
182 NN_EXTERN_C void nnosMemoryBlockFree(nnosMemoryBlock* p);
187 NN_EXTERN_C uptr nnosMemoryBlockGetAddress(nnosMemoryBlock* p);
192 NN_EXTERN_C size_t nnosMemoryBlockGetSize(nnosMemoryBlock* p);
197 NN_EXTERN_C bool nnosMemoryBlockIsReadOnly(nnosMemoryBlock* p);
Dos_StackMemoryBlock.h158 NN_EXTERN_C void nnosStackMemoryBlockInitialize(nnosStackMemoryBlock* p);
163 NN_EXTERN_C void nnosStackMemoryBlockAllocate(nnosStackMemoryBlock* p, size_t size);
168 NN_EXTERN_C void nnosStackMemoryBlockFree(nnosStackMemoryBlock* p);
173 NN_EXTERN_C uptr nnosStackMemoryBlockGetAddress(nnosStackMemoryBlock* p);
178 NN_EXTERN_C size_t nnosStackMemoryBlockGetSize(nnosStackMemoryBlock* p);
183 NN_EXTERN_C uptr nnosStackMemoryBlockGetStackBottom(nnosStackMemoryBlock* p);
/CTR-SDK-0.13.2/sources/libraries/fnd/
Dfnd_ExpHeap.cpp68 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-0.13.2/include/nn/fs/CTR/MPCore/
Dfs_UserFileSystem.h46 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);
57 static Result TryGetFileSize(s64* pOut, const void* p);
58 static Result TrySetFileSize(void* p, s64 size);
61 static void CloseDirectory(void* p);
[all …]
/CTR-SDK-0.13.2/sources/libraries/test/
Dtest_New.cpp47 void* p = malloc(requiredSize); in AllocateBuffer() local
48 NN_TASSERT_(p); in AllocateBuffer()
49 uptr begin = reinterpret_cast<uptr>(p); in AllocateBuffer()
63 extern void DeallocateSmall(void* p, size_t) in DeallocateSmall() argument
65 free(p); in DeallocateSmall()

12345