Home
last modified time | relevance | path

Searched refs:s32 (Results 1 – 25 of 207) sorted by relevance

123456789

/CTR-SDK-2.4.0/include/nn/socket/
Dsocket_IpcWrapper.h36 Result Socket( s32* rval, s32 af, s32 type, s32 protocol );
37 Result Listen( s32* rval, s32 s, s32 backlog );
38 Result Accept( s32* rval, s32 s, u8 sockAddr[], size_t salen );
39 Result Bind( s32* rval, s32 s, const u8 sockAddr[], size_t salen );
40 Result Connect( s32* rval, s32 s, const u8 sockAddr[], size_t salen );
41 Result RecvFrom( s32* rval, s32 s, u8 buf[], s32 len, s32 flags, u8 sockFrom[], size_t salen );
42 …Result RecvFromSmall( s32* rval, s32 s, u8 buf[], s32 len, s32 flags, u8 sockFrom[], size_t salen …
43 …Result SendTo( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], size_t sal…
44 …Result SendToSmall( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], size_…
45 …Result SendToSmallMulti( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], …
[all …]
Dsocket_User.h87 nn::Result Socket( s32* rval, s32 af, s32 type, s32 protocol );
88 nn::Result Listen( s32* rval, s32 s, s32 backlog );
89 nn::Result Accept( s32* rval, s32 s, u8 sockAddr[], size_t salen );
90 nn::Result Bind( s32* rval, s32 s, const u8 sockAddr[], size_t salen );
91 nn::Result Connect( s32* rval, s32 s, const u8 sockAddr[], size_t salen );
92 …nn::Result RecvFrom( s32* rval, s32 s, u8 buf[], s32 len, s32 flags, u8 sockFrom[], size_t salen );
93 …nn::Result RecvFromSmall( s32* rval, s32 s, u8 buf[], s32* len, s32 flags, u8 sockFrom[], size_t s…
94 …nn::Result SendTo( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], size_t…
95 …nn::Result SendToSmall( s32* rval, s32 s, const u8 buf[], s32 len, s32 flags, const u8 sockTo[], s…
96 nn::Result Close( s32* rval, s32 s );
[all …]
Dsocket_Berkeley.h62 inline s32 Socket(s32 af, s32 type, s32 protocol) in Socket()
64 s32 rval = 0; in Socket()
89 inline s32 Listen(s32 s, s32 backlog) in Listen()
91 s32 rval = 0; in Listen()
135 inline s32 Accept(s32 s, SockAddrIn* sockAddr) in Accept()
137 s32 rval = 0; in Accept()
167 inline s32 Bind(s32 s, const SockAddrIn* sockAddr) in Bind()
169 s32 rval = 0; in Bind()
218 inline s32 Connect(s32 s, const SockAddrIn* sockAddr) in Connect()
220 s32 rval = 0; in Connect()
[all …]
/CTR-SDK-2.4.0/include/nn/fnd/
Dfnd_DateTime.h53 s32 year; //
92 … DateTime(s32 year, s32 month, s32 day, s32 hour=0, s32 minute=0, s32 second=0, s32 millisecond=0);
101 s32 GetYear() const;
110 s32 GetMonth() const;
119 s32 GetDay() const;
137 s32 GetHour() const;
146 s32 GetMinute() const;
155 s32 GetSecond() const;
164 s32 GetMilliSecond() const;
177 DateTime ReplaceYear(s32 year) const;
[all …]
/CTR-SDK-2.4.0/include/nn/net/compatible/nnet/
Dnnet_ring.h34 s32 len; /* Please see man pages for details */
42 s32 len; /* Please see man pages for details */
45 u8* NNET_RingIn ( u8* buf, s32 size, u8* head, s32 used, const u8* data, s32 len );
46 u8* NNET_RingInMbuf ( u8* buf, s32 size, u8* head, s32 used, NOSMessageBuf *mbuf, s32 len );
47 …NNET_RingInExMbuf( u8* buf, s32 size, u8* head, s32 used, s32 offset, NOSMessageBuf *mbuf, s32* pl…
48 u8* NNET_RingOut( u8* buf, s32 size, u8* head, s32 used, u8* data, s32 len );
49 int NNET_RingGet(u8* buf, s32 size, u8* head, s32 used, NNETVec* vec, s32 len);
50 int NNET_RingGetMbuf(u8* buf, s32 size, u8* head, s32 used, NOSMessageBuf *mbuf, s32 len);
51 u8* NNET_RingPut( u8* buf, s32 size, u8* head, s32 used, s32 len );
/CTR-SDK-2.4.0/sources/libraries/fnd/
Dfnd_DateTime.cpp24 static const s32 MILLISECONDS_DAY = 1000 * 60 * 60 * 24;
26 inline s32 Modulo32(s32 a, s32 b) in Modulo32()
31 inline s32 AlignedDays(s64 milliSeconds) in AlignedDays()
37 inline s32 MilliSecondsOnDay(s64 milliSeconds) in MilliSecondsOnDay()
49 s32 DateTime::IsLeapYear(s32 year) in IsLeapYear()
69 bool DateTime::IsValidDate(s32 year, s32 month, s32 day) in IsValidDate()
71 const s32 monthdays[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; in IsValidDate()
85 s32 mdays; in IsValidDate()
98 …bool DateTime::IsValidParameters(s32 year, s32 month, s32 day, s32 hour, s32 minute, s32 second, s… in IsValidParameters()
124 s32 DateTime::DateToDays(s32 year, s32 month, s32 day) in DateToDays()
[all …]
/CTR-SDK-2.4.0/include/nn/os/
Dos_Semaphore.h70 Semaphore(s32 initialCount, s32 maxCount);
86 void Initialize(s32 initialCount, s32 maxCount);
96 nn::Result TryInitialize(s32 initialCount, s32 maxCount);
121 s32 Release(s32 releaseCount = 1);
145 Result TryInitializeImpl(s32 initialCount, s32 maxCount);
149 inline Result Semaphore::TryInitializeImpl(s32 initialCount, s32 maxCount) in TryInitializeImpl()
157 inline void Semaphore::Initialize(s32 initialCount, s32 maxCount) in Initialize()
162 inline nn::Result Semaphore::TryInitialize(s32 initialCount, s32 maxCount) in TryInitialize()
173 inline Semaphore::Semaphore(s32 initialCount, s32 maxCount) in Semaphore()
178 inline s32 Semaphore::Release(s32 releaseCount) in Release()
[all …]
Dos_Thread.h77 s32 ConvertSvcToLibraryPriority(s32 svc);
78 s32 ConvertLibraryToSvcPriority(s32 lib);
85 const s32 LOWEST_THREAD_PRIORITY = NN_OS_LOWEST_THREAD_PRIORITY;
90 const s32 HIGHEST_THREAD_PRIORITY = NN_OS_HIGHEST_THREAD_PRIORITY;
95 const s32 DEFAULT_THREAD_PRIORITY = NN_OS_DEFAULT_THREAD_PRIORITY;
100 const s32 CORE_NO_ALL = NN_OS_CORE_NO_ALL;
105 const s32 CORE_NO_USE_PROCESS_VALUE = NN_OS_CORE_NO_USE_PROCESS_VALUE;
107 const s32 THREAD_PRIORITY_RANGE_SIZE = NN_OS_THREAD_PRIORITY_RANGE_SIZE;
218 …void Start(void (*f)(), Stack& stack, s32 priority = DEFAULT_THREAD_PRIORITY, s32 coreNo = CORE_NO…
241 …void Start(void (*f)(T), U param, Stack& stack, s32 priority = DEFAULT_THREAD_PRIORITY, s32 coreNo…
[all …]
Dos_InterCoreLightSemaphore.h54 static const s32 MAX_MAX_COUNT = 0x7fff;
59 bool operator()(s32& x) in operator()
74 s32 max;
75 s32 value;
76 s32 beforeUpdate;
78 bool operator()(s32& x) in operator()
101 fnd::InterlockedVariable<s32> m_NumWaiting;
132 InterCoreLightSemaphore(s32 initialCount, s32 maxCount) { Initialize(initialCount, maxCount); } in InterCoreLightSemaphore()
134 InterCoreLightSemaphore(s32 initialCount) { Initialize(initialCount); } in InterCoreLightSemaphore()
146 void Initialize(s32 initialCount, s32 maxCount) in Initialize()
[all …]
Dos_LightSemaphore.h53 static const s32 MAX_MAX_COUNT = 0x7fff;
58 bool operator()(s32& x) in operator()
73 s32 max;
74 s32 value;
75 s32 beforeUpdate;
77 bool operator()(s32& x) in operator()
100 fnd::InterlockedVariable<s32> m_NumWaiting;
131 LightSemaphore(s32 initialCount, s32 maxCount) { Initialize(initialCount, maxCount); } in LightSemaphore()
133 LightSemaphore(s32 initialCount) { Initialize(initialCount); } in LightSemaphore()
145 void Initialize(s32 initialCount, s32 maxCount) in Initialize()
[all …]
Dos_Synchronization.h88 static void WaitAll(WaitObject* objs[], s32 numObjects);
100 static bool WaitAll(WaitObject* objs[], s32 numObjects, nn::fnd::TimeSpan timeout);
111 static s32 WaitAny(WaitObject* objs[], s32 numObjects);
123 static s32 WaitAny(WaitObject* objs[], s32 numObjects, nn::fnd::TimeSpan timeout);
134 …static nn::Result WaitMultiple(s32* pOut, WaitObject* objs[], s32 numObjects, bool waitAll, s64 na…
154 s32 dummy; in WaitOneImpl()
171 inline bool WaitObject::WaitAll(WaitObject* objs[], s32 numObjects, nn::fnd::TimeSpan timeout) in WaitAll()
173 s32 dummy; in WaitAll()
179 inline void WaitObject::WaitAll(WaitObject* objs[], s32 numObjects) in WaitAll()
181 s32 dummy; in WaitAll()
[all …]
/CTR-SDK-2.4.0/include/nn/net/compatible/nhttp/
Dnhttp.h37 #define NHTTP_ER_CODE(code) ((s32)(NHTTP_ER_BASE|(code)))
181 typedef s32 NHTTPConnectionHandle; /* Please see man pages for details */
186 typedef s32 (*NHTTPConnectionCallback)(NHTTPConnectionHandle handle, NHTTPConnectionEvent event, vo…
243 s32 NHTTP_Startup(const NHTTPConfig *config);
244 s32 NHTTP_Cleanup(void);
251 s32 NHTTP_ClearDnsCaches(void);
255 s32 NHTTP_DestroyConnection(NHTTPConnectionHandle handle);
256 s32 NHTTP_StartConnection(NHTTPConnectionHandle handle);
257 s32 NHTTP_StartConnectionAsync(NHTTPConnectionHandle handle);
258 s32 NHTTP_CancelConnection(NHTTPConnectionHandle handle);
[all …]
/CTR-SDK-2.4.0/include/nn/snd/CTR/MPCore/
Dsnd_FxReverb.h337 s32* m_EarlyReflection[4]; // For initial reflection
338 s32* m_PreDelay[4]; // For pre-delay
339 s32* m_CombFilter[4][2]; // For comb filter (2 level)
340 s32* m_AllPassFilter[4]; // For all-pass filter (1 level)
341 s32 m_Lpf[4]; // For LPF
357 s32 m_EarlyLength;
358 s32 m_EarlyPos;
360 s32 m_PreDelayLength;
361 s32 m_PreDelayPos;
363 s32 m_CombFilterLength[2];
[all …]
Dsnd_Api.h37 static const s32 NN_SND_DSP_MAXIMUM_CYCLES = 622535;
82 s32 prio,
83 s32 coreNo = NN_OS_CORE_NO_USE_PROCESS_VALUE
89 nn::Result StartUserSoundThread(uptr stackBuffer, size_t stackSize, s32 prio);
101 s32 coreNo
226 s32 GetSampleLength( s32 size, SampleFormat format, s32 channelCount ) ;
368 bool SetSurroundSpacialFilter(s16* pSrc, s32 nCoeffs);
378 bool SetSurroundDirectionFilter(s16* pSrc, s32 nCoeffs, s32 mode);
388 bool SetSurroundIirFilterCoeffs(s32* pSrc, s32 nCoeffs, s32 mode);
411 void SetMaximumDspCycles( s32 cycles );
[all …]
/CTR-SDK-2.4.0/include/nn/net/compatible/
Dpeth.h38 #define PETH_ERROR_CODE(code) ((s32)(PETH_ERROR_BASE|(code)))
55 #define PETH_MEM_NAME(name) ((s32)(PETH_MEM_BASE|(name)))
99 s32 upper_protocol_count;
103 s32 upper_ins_count;
105 s32 state;
133 extern s32 PETH_Init(const NNETAllocator *allocator);
134 extern s32 PETH_Finish(void);
135 extern s32 PETH_StartupIns(NNETInstance *ins, s32 timeout);
136 extern s32 PETH_CleanupIns(NNETInstance *ins, s32 timeout);
137 extern s32 PETH_AbortIns(NNETInstance *ins);
[all …]
Dhioeth.h40 #define HIOETH_ERROR_CODE(code) ((s32)(HIOETH_ERROR_BASE | (code)))
59 #define HIOETH_MEM_NAME(name) ((s32)(HIOETH_MEM_BASE | (name)))
101 s32 upper_ins_count;
103 s32 state;
104 s32 handleHostToTarget;
105 s32 handleTargetToHost;
139 extern s32 HIOETH_Init(const NNETAllocator* allocator);
140 extern s32 HIOETH_Finish(void);
141 extern s32 HIOETH_StartupIns(NNETInstance* ins, s32 timeout);
142 extern s32 HIOETH_CleanupIns(NNETInstance* ins, s32 timeout);
[all …]
/CTR-SDK-2.4.0/include/nn/fnd/ARMv6/
Dfnd_Interlocked.h55 …me T> struct AtomicStorageSelecter<T, typename nn::util::enable_if<sizeof(T) == sizeof(s32)>::type>
57 typedef s32 Type;
71 static s32 CompareAndSwap(s32* pTarget, s32 comp, s32 swap);
72 static s32 Swap(s32* pTarget, s32 value);
73 static s32 Increment(s32* pTarget);
74 static s32 Decrement(s32* pTarget);
75 static s32 Add(s32* pTarget, s32 value);
76 static s32 Substract(s32* pTarget, s32 value);
77 static s32 BitwiseOr(s32* pTarget, s32 value);
78 static s32 BitwiseAnd(s32* pTarget, s32 value);
[all …]
/CTR-SDK-2.4.0/include/nn/net/compatible/nssl/
Dnssl.h44 #define NSSL_ERROR_CODE(code) ((s32)(NSSL_ERROR_BASE|(code)))
132 typedef s32 NSSLId; /* Please see man pages for details */
133 typedef s32 NSSLCertId; /* Please see man pages for details */
134 typedef s32 NSSLCertStoreId; /* Please see man pages for details */
135 typedef s32 NSSLCRLId; /* Please see man pages for details */
136 typedef s32 NSSLCRLStoreId; /* Please see man pages for details */
157 s32 NSSL_Init ( const NSSLConfig* config );
158 s32 NSSL_Finish ( void );
160 s32 NSSL_DoHandshake ( NSSLId sslId );
161 s32 NSSL_DoHandshakeEx ( NSSLId sslId, char* serverCertData, size_t serverCertSize, u…
[all …]
/CTR-SDK-2.4.0/include/nn/hio/CTR/
Dhio_Api.h76 s32 GetVersion();
213 Result GetCurrentDirectory(s32* pLength, char* buf, s32 length);
231 Result GetCurrentDirectory(s32* pLength, wchar_t* buf, s32 length);
246 s32 GetCurrentDirectory(char* buf, s32 length);
262 s32 GetCurrentDirectory(wchar_t* buf, s32 length);
309 Result GetEnvironmentVariable(s32* pLength, char* buf, s32 length, const char* name);
326 s32 GetEnvironmentVariable(char* buf, size_t length, const char* name);
348 Result GetEnvironmentVariable(s32* pLength, wchar_t* buf, s32 length, const wchar_t* name);
367 s32 GetEnvironmentVariable(wchar_t* buf, s32 length, const wchar_t* name);
/CTR-SDK-2.4.0/include/nn/gr/CTR/
Dgr_Scissor.h59 …Scissor( bool isEnable_, s32 x_, s32 y_, u32 width_, u32 height_, s32 bufferWidth_, s32 bufferHeig… in Scissor()
90 const s32 colorBufferWidth, in MakeDisableCommand()
91 const s32 colorBufferHeight ) in MakeDisableCommand()
93 s32 temp_width = colorBufferWidth - 1; in MakeDisableCommand()
94 s32 temp_height = colorBufferHeight - 1; in MakeDisableCommand()
114 void Set( s32 x_, s32 y_, u32 width_, u32 height_ ) in Set()
125 void SetBufferSize( s32 bufferWidth_, s32 bufferHeight_ ) in SetBufferSize()
140 s32 x;
145 s32 y;
160 s32 bufferWidth;
[all …]
/CTR-SDK-2.4.0/include/nn/net/compatible/nsoc/
Dnsoc_admin.h45 #define NSOC_ERROR_CODE(code) ((s32)(NSOC_ERROR_BASE|(code)))
104 s32 timeWaitBuffer; /* Please see man pages for details */
106 s32 reassembleMtu; /* Please see man pages for details */
109 s32 rwin; /* Please see man pages for details */
110 s32 r2; /* Please see man pages for details */
113 s32 udpRecvBuff; /* Please see man pages for details */
117 s32 rdhcp; /* Please see man pages for details */
148 s32 mtu; /* Please see man pages for details */
163 typedef void (* NSOCConfigErrorCallback )(NSOCInstancePtr insP, s32 err);
192 extern s32 NSOC_Init(const NNETAllocator *allocator);
[all …]
/CTR-SDK-2.4.0/include/nn/gd/CTR/
Dgd_Memory.h166 s32 m_PosX;
173 s32 m_PosY;
180 s32 m_Width;
187 s32 m_Height;
195 Rect(s32 x, s32 y, s32 w, s32 h): m_PosX(x), m_PosY(y), m_Width(w), m_Height(h) {} in Rect()
232 …ClearTexture2DResource(const Texture2DResource* tex2DResource, s32 mipLevelIndexStart, s32 mipLeve…
268 …ClearTexture2DResource(const Texture2DResource* tex2DResource, s32 mipLevelIndexStart, s32 mipLeve…
351 …static nnResult CopyTextureSubResource(const Texture2DResource* source, s32 srcMipLevelIndex, cons…
352 const Texture2DResource* dest, s32 dstMipLevelIndex, s32 destPosX, s32 destPosY);
460 …DResourceBlockToLinear(const Texture2DResource* source, s32 srcMipLevelIndex, u32 srcOffestY, s32
[all …]
/CTR-SDK-2.4.0/include/nn/phtsel/CTR/
Dphtsel_input.h67 s32* pYear, s32* pMonth, s32* pDay,
68 s32* pHour, s32* pMin, s32* pSec) const;
82 s32 nYear, s32 nMonth, s32 nDay,
83 s32 nHour, s32 nMin, s32 nSec);
174 static const s32 c_nMaxFaceInfoNum = 4;
179 static const s32 cTitleUniqueIdMaxNum = 100;
208 static const s32 cMessageMaxNum = 128;
213 static const s32 cInputReservedSize = 200;
245 s32 m_nMinFaceNum;
250 s32 m_nMaxFaceNum;
[all …]
/CTR-SDK-2.4.0/sources/libraries/fnd/ARMv6/
Dfnd_Interlocked.cpp28 asm s32 Interlocked::CompareAndSwap(s32* pTarget NN_IS_UNUSED_VAR, s32 comp NN_IS_UNUSED_VAR, s32 s… in CompareAndSwap()
53 asm s32 Interlocked::Swap(s32* pTarget NN_IS_UNUSED_VAR, s32 value NN_IS_UNUSED_VAR) in Swap()
68 asm s32 Interlocked::Increment(s32* pTarget NN_IS_UNUSED_VAR) in Increment()
84 asm s32 Interlocked::Decrement(s32* pTarget NN_IS_UNUSED_VAR) in Decrement()
100 asm s32 Interlocked::Add(s32* pTarget NN_IS_UNUSED_VAR, s32 value NN_IS_UNUSED_VAR) in Add()
116 asm s32 Interlocked::Substract(s32* pTarget NN_IS_UNUSED_VAR, s32 value NN_IS_UNUSED_VAR) in Substract()
132 asm s32 Interlocked::BitwiseOr(s32* pTarget NN_IS_UNUSED_VAR, s32 value NN_IS_UNUSED_VAR) in BitwiseOr()
148 asm s32 Interlocked::BitwiseAnd(s32* pTarget NN_IS_UNUSED_VAR, s32 value NN_IS_UNUSED_VAR) in BitwiseAnd()
164 asm s32 Interlocked::BitwiseXor(s32* pTarget NN_IS_UNUSED_VAR, s32 value NN_IS_UNUSED_VAR) in BitwiseXor()
180 asm s32 Interlocked::BitwiseNot(s32* pTarget NN_IS_UNUSED_VAR) in BitwiseNot()
/CTR-SDK-2.4.0/include/nn/net/osl/
Dosl_MbufPool.h31 typedef s32 FreeIndex;
39 void Initialize(u16 id, s16 unitSize, s32 count, uptr base, bool bServer);
42 s32 GetMaxCount(void) const;
43 s32 GetFreeCount(void) const;
52 Mbuf* GetPtrFromIndex(s32 index);
55 static size_t GetRequiredMemorySize(s16 unitSize, s32 count);
62 s32* GetWaitCountPtr();
63 s32* GetFreeIndexPtr(void);
70 s32 m_count;
78 SharedArea(size_t unitSize, s32 count);
[all …]

123456789