| /CTR-SDK-0.14.4/include/nn/err/CTR/ |
| D | err_Api.h | 27 void ThrowFatalErr( Result result ); 38 #define NN_ERR_THROW_FATAL_IF_FATAL_ONLY(result) \ argument 41 ::nn::Result resultLocal = (result); \ 54 #define NN_ERR_THROW_FATAL(result) \ argument 57 ::nn::Result resultLocal = (result); \ 73 #define NN_ERR_THROW_FATAL_ALL(result) \ argument 76 ::nn::Result resultLocal = (result); \ 86 #define NN_ERR_THROW_FATAL_IF_FATAL_ONLY(result) NN_UTIL_PANIC_IF_FAILED(result) argument 87 #define NN_ERR_THROW_FATAL(result) NN_UTIL_PANIC_IF_FAILED(result) argument 88 #define NN_ERR_THROW_FATAL_ALL(result) NN_UTIL_PANIC_IF_FAILED(result) argument [all …]
|
| /CTR-SDK-0.14.4/include/nn/util/ |
| D | util_Result.h | 30 #define NN_UTIL_BEGIN_CHECK_RESULT(result) \ argument 32 ::nn::Result nn_util_result_try_result = (result); \ 46 #define NN_UTIL_BEGIN_CHECK_RESULT(result) \ argument 48 ::nn::Result nn_util_result_try_result = (result); \ 69 #define NN_UTIL_RETURN_IF_FAILED_BASE(result, s1, s2, s3, s4, s5) \ argument 72 ::nn::Result nn_util_return_if_failure_result = (result); \ 87 #define NN_UTIL_RETURN_IF_FAILED(result) NN_UTIL_RETURN_IF_FAILED_BASE(result,,,,,) argument 89 #define NN_UTIL_RETURN_IF_FAILED_0(result) NN_UTIL_RETURN_IF_FAILED_BASE(result,,,,,) argument 90 #define NN_UTIL_RETURN_IF_FAILED_1(result, c1) NN_UTIL_RETURN_IF_FAILED_BASE(result,c1,,,,) argument 91 #define NN_UTIL_RETURN_IF_FAILED_2(result, c1, c2) NN_UTIL_RETURN_IF_FAILED_BASE(result,c1,c2,,,) argument [all …]
|
| /CTR-SDK-0.14.4/sources/libraries/os/ |
| D | os_Memory.cpp | 46 Result result; in InitializeDeviceMemory() local 47 result = SetDeviceMemorySize( DEVICE_MEMORY_SIZE ); in InitializeDeviceMemory() 48 NN_ERR_THROW_FATAL( result ); in InitializeDeviceMemory() 65 Result result; in SetDeviceMemorySize() local 76 result = nn::svc::ControlMemory( &addr, in SetDeviceMemorySize() 83 if( result.IsSuccess() ) in SetDeviceMemorySize() 104 result = nn::svc::ControlMemory( &addr, in SetDeviceMemorySize() 111 if( result.IsSuccess() ) in SetDeviceMemorySize() 122 return result; in SetDeviceMemorySize() 137 Result result; in SetHeapSize() local [all …]
|
| D | os_ResultFailureHandler.cpp | 33 …void nnosResultFailureHandlerImplDefault(nnResult result, const char* filename, int lineno, const … in nnosResultFailureHandlerImplDefault() argument 37 nn::dbg::detail::Printf("RESULT FAILURE [%x]: ", nn::Result(result).GetPrintableBits()); in nnosResultFailureHandlerImplDefault() 40 PrintResult(result); in nnosResultFailureHandlerImplDefault() 44 …void nnosResultTFailureHandlerImplDefault(nnResult result, const char* filename, int lineno, const… in nnosResultTFailureHandlerImplDefault() argument 48 nn::dbg::detail::TPrintf("RESULT FAILURE [%x]: ", nn::Result(result).GetPrintableBits()); in nnosResultTFailureHandlerImplDefault() 51 TPrintResult(result); in nnosResultTFailureHandlerImplDefault() 66 …void nnosResultPanicHandlerImplDefault(nnResult result, const char* filename, int lineno, const ch… in nnosResultPanicHandlerImplDefault() argument 75 NN_LOG("RESULT [%x]:", nn::Result(result).GetPrintableBits()); in nnosResultPanicHandlerImplDefault() 80 PrintResult(result); in nnosResultPanicHandlerImplDefault() 84 …void nnosResultTPanicHandlerImplDefault(nnResult result, const char* filename, int lineno, const c… in nnosResultTPanicHandlerImplDefault() argument [all …]
|
| D | os_TransferMemoryBlock.cpp | 41 Result result; in Initialize() local 42 …result = nn::svc::CreateMemoryBlock(&handle, reinterpret_cast<uptr>(p), size, myPermission, otherP… in Initialize() 43 NN_ERR_THROW_FATAL(result); in Initialize() 61 Result result; in TryInitialize() local 62 …result = nn::svc::CreateMemoryBlock(&handle, reinterpret_cast<uptr>(p), size, myPermission, otherP… in TryInitialize() 63 NN_UTIL_RETURN_IF_FAILED(result); in TryInitialize() 67 return result; in TryInitialize() 112 Result result = nn::svc::MapMemoryBlock(GetHandle(), addr, myPermission, otherPermission); in Map() local 113 if( result.IsFailure() ) in Map() 115 return result; in Map() [all …]
|
| D | os_StackMemory.cpp | 70 Result result; in Initialize() local 72 result = nn::svc::ControlMemory( &dummy, in Initialize() 78 NN_ERR_THROW_FATAL(result); in Initialize() 80 result = nn::svc::ControlMemory( &dummy, in Initialize() 86 NN_ERR_THROW_FATAL(result); in Initialize() 99 Result result; in Finalize() local 101 result = nn::svc::ControlMemory( &dummy, in Finalize() 107 NN_ERR_THROW_FATAL(result); in Finalize() 110 result = nn::svc::ControlMemory( &dummy, in Finalize() 116 NN_ERR_THROW_FATAL(result); in Finalize()
|
| D | os_SharedMemory.cpp | 74 Result result; in Map() local 76 …result = nn::svc::MapMemoryBlock(GetHandle(), addr, myPermission, os::MEMORY_PERMISSION_DONT_CARE); in Map() 77 NN_ERR_THROW_FATAL(result); in Map() 103 Result result; in TryInitialize() local 104 result = nn::svc::CreateMemoryBlock(&handle, NULL, size, myPermission, otherPermission); in TryInitialize() 105 NN_UTIL_RETURN_IF_FAILED(result); in TryInitialize() 112 return result; in TryInitialize()
|
| /CTR-SDK-0.14.4/include/nn/socket/ |
| D | socket_Berkeley.h | 62 Result result = detail::Socket(&rval, af, type, protocol); in Socket() local 63 NN_SOCKET_RETURN_IF_FAILED(result); in Socket() 86 Result result = detail::Listen(&rval, s, backlog); in Listen() local 87 NN_SOCKET_RETURN_IF_FAILED(result); in Listen() 130 … Result result = detail::Accept(&rval, s, reinterpret_cast<u8*>(sockAddr), sizeof(SockAddrIn)); in Accept() local 131 NN_SOCKET_RETURN_IF_FAILED(result); in Accept() 160 … Result result = detail::Bind(&rval, s, reinterpret_cast<const u8*>(sockAddr), sizeof(SockAddrIn)); in Bind() local 161 NN_SOCKET_RETURN_IF_FAILED(result); in Bind() 196 …Result result = detail::Connect(&rval, s, reinterpret_cast<const u8*>(sockAddr), sizeof(SockAddrIn… in Connect() local 197 NN_SOCKET_RETURN_IF_FAILED(result); in Connect() [all …]
|
| D | socket_SessionPool.h | 64 Result result = m_sessionPool.Allocate(pSessionItem); in Allocate() local 65 NN_UTIL_RETURN_IF_FAILED(result); in Allocate() 67 return result; in Allocate() 73 Result result = m_sessionPool.TryAllocate(pSessionItem); in TryAllocate() local 74 NN_UTIL_RETURN_IF_FAILED(result); in TryAllocate() 76 return result; in TryAllocate() 105 Result result; variable 133 result = AddNewSession(); 134 if (result.IsFailure()) 140 return result; [all …]
|
| /CTR-SDK-0.14.4/sources/libraries/ndm/ |
| D | ndm_Setup.cpp | 36 Result result = nn::ndm::Initialize(); in SetupDaemonsDefault() 37 NN_UTIL_PANIC_IF_FAILED(result); in SetupDaemonsDefault() 41 result = nn::ndm::SuspendScheduler(true); in SetupDaemonsDefault() 44 result = nn::ndm::SuspendDaemons(); in SetupDaemonsDefault() 46 if (result.IsFailure()) in SetupDaemonsDefault() 49 nn::dbg::PrintResult(result); in SetupDaemonsDefault()
|
| D | ndm_UserControl.cpp | 43 Result result; in Initialize() local 52 result = nn::srv::GetServiceHandle(&Interface::s_Session, PORT_NAME_USER); in Initialize() 53 NN_UTIL_RETURN_IF_FAILED(result); in Initialize() 65 Result result; in Finalize() local 75 result = nn::svc::CloseHandle(Interface::s_Session); in Finalize() 76 NN_UTIL_RETURN_IF_FAILED(result); in Finalize() 104 Result result = Interface::QueryExclusiveMode(&modeNumber); in QueryExclusiveMode() local 105 NN_UTIL_RETURN_IF_FAILED(result); in QueryExclusiveMode()
|
| /CTR-SDK-0.14.4/include/nn/ |
| D | assert.h | 40 … #define NN_ASSERTMSG_WITH_RESULT(exp, result, ...) \ argument 50 #define NN_ASSERTMSG_WITH_RESULT(exp, result, ...) \ argument 51 …(void) ((exp) || nnResultFailureHandler(static_cast< ::nn::Result>(result), NN_FILE_NAME, __LINE__… 55 #define NN_ASSERTMSG_WITH_RESULT(exp, result, ...) \ argument 56 … (void) ((exp) || nnResultFailureHandler(static_cast< ::nn::Result>(result), NULL, __LINE__, NULL)) 61 #define NN_ASSERTMSG_WITH_RESULT(exp, result, ...) ((void)0) argument 78 …#define NN_TASSERTMSG_WITH_RESULT_(exp, result, ...) \ argument 84 …#define NN_SASSERTMSG_WITH_RESULT_(exp, result, ...) \ argument 96 #define NN_TASSERTMSG_WITH_RESULT_(exp, result, ...) \ argument 97 …(void) ((exp) || nnResultTFailureHandler(static_cast< ::nn::Result>(result), NN_FILE_NAME, __LINE_… [all …]
|
| /CTR-SDK-0.14.4/include/nn/dbg/ |
| D | dbg_PrintResult.h | 37 const char* GetLevelString(nn::Result result); 46 const char* GetModuleString(nn::Result result); 55 const char* GetSummaryString(nn::Result result); 64 const char* GetDescriptionString(nn::Result result); 71 void PrintResult(Result result); 78 void TPrintResult(Result result);
|
| /CTR-SDK-0.14.4/sources/libraries/rdt/CTR/ |
| D | rdt_HostBase.cpp | 65 nn::Result result = m_transceiver.Initialize( in Initialize() local 77 if(result.IsFailure()) in Initialize() 79 return result; in Initialize() 134 nn::Result result = m_transceiver.Put(seg); in putSegment() local 135 if(result.IsFailure()) in putSegment() 137 errorHandling(result); in putSegment() 156 nn::Result result = m_transceiver.Pull(pSeg); in pullSegment() local 157 if(result.IsFailure() && result!=ResultNoData()) in pullSegment() 159 errorHandling(result); in pullSegment() 161 return result; in pullSegment()
|
| D | rdt_Transceiver.cpp | 204 nn::Result result = t.Initialize(sock); in serverSide() local 205 CU_ASSERT(result.IsSuccess()); in serverSide() 207 result = t.Pull(&s_recvSeg); in serverSide() 208 CU_ASSERT(result.IsSuccess()); in serverSide() 225 nn::Result result = t.Initialize(sock); in clientSide() local 226 CU_ASSERT(result.IsSuccess()); in clientSide() 276 nn::Result result; in Initialize() local 277 result = nn::uds::CreateEndpoint(&m_sendEp); in Initialize() 278 if(result.IsFailure()) in Initialize() 280 return result; in Initialize() [all …]
|
| D | rdt_Utility.cpp | 52 int result = WSAStartup(MAKEWORD(2, 0), &s_wsaData); in SetupNetwork() local 53 assert(result==0); // 成功すれば、ゼロが返される。 in SetupNetwork() 72 int result = 0; in SetupServerSide() local 87 result = bind(sock0, (struct sockaddr*)&addr, sizeof(addr)); in SetupServerSide() 88 if(result!=0) in SetupServerSide() 96 result = listen(sock0, 5); in SetupServerSide() 97 assert(result==0); // エラー無しなら、listen()はゼロを返す。 in SetupServerSide() 207 nn::Result result = s->Initialize(cfg); in CreateSender() local 208 if(result.IsFailure()) in CreateSender() 253 nn::Result result = r->Initialize(cfg); in CreateReceiver() local [all …]
|
| /CTR-SDK-0.14.4/include/nn/net/osl/ |
| D | osl_IpcDispatcher.h | 87 Result result = m_ppDispatchers[index]->Launch(); in WaitAny() local 88 if (result.IsFailure()) in WaitAny() 91 nn::dbg::PrintResult(result); in WaitAny() 138 Result result; variable 140 result = port.TryAccept(&m_session, false); 141 NN_UTIL_RETURN_IF_FAILED(result); 143 … result = m_thread.TryStart<Worker*, Worker*, StackT>(SessionThread, this, m_stack, priority); 144 if (result.IsFailure()) 147 return result; 191 Result result = pSessionLoopFunction(&resultIndex, pImpl, handles, 1, 0); in SessionThreadImpl() local [all …]
|
| /CTR-SDK-0.14.4/include/nn/os/ |
| D | os_Synchronization.h | 166 nn::Result result = WaitOneImpl(timeout.GetNanoSeconds()); in WaitOne() local 167 NN_ERR_THROW_FATAL(result); in WaitOne() 168 return result.GetDescription() != nn::Result::DESCRIPTION_TIMEOUT; in WaitOne() 174 nn::Result result = WaitMultiple(&dummy, objs, numObjects, true, timeout.GetNanoSeconds()); in WaitAll() local 175 NN_ERR_THROW_FATAL(result); in WaitAll() 176 return result.GetDescription() != nn::Result::DESCRIPTION_TIMEOUT; in WaitAll() 188 nn::Result result = WaitMultiple(&ret, objs, numObjects, false, timeout.GetNanoSeconds()); in WaitAny() local 189 NN_ERR_THROW_FATAL(result); in WaitAny() 190 return (result.GetDescription() == nn::Result::DESCRIPTION_TIMEOUT) ? -1 : ret; in WaitAny()
|
| D | os_Mutex.h | 187 Result result = TryInitializeImpl(initialLocked); in TryInitialize() local 188 if (result.GetSummary() == Result::SUMMARY_OUT_OF_RESOURCE) in TryInitialize() 190 return result; in TryInitialize() 192 NN_ERR_THROW_FATAL(result); in TryInitialize() 193 return result; in TryInitialize()
|
| D | os_Semaphore.h | 161 Result result = TryInitializeImpl(initialCount, maxCount); in TryInitialize() local 162 if (result.GetSummary() == Result::SUMMARY_OUT_OF_RESOURCE) in TryInitialize() 164 return result; in TryInitialize() 166 NN_ERR_THROW_FATAL(result); in TryInitialize() 167 return result; in TryInitialize()
|
| /CTR-SDK-0.14.4/include/nn/ndm/ |
| D | ndm_Result.h | 196 #define NN_NDM_WARN(result, ...) \ argument 198 nn::dbg::PrintResult(result); 200 #define NN_NDM_WARN_AND_RETURN_IF_FAILED(result, ...) \ argument 203 ::nn::Result nn_util_return_if_failure_result = (result); \ 206 NN_NDM_WARN(result, __VA_ARGS__); \ 211 #define NN_NDM_WARN_IF_FAILED(result, ...) \ argument 214 ::nn::Result nn_util_return_if_failure_result = (result); \ 217 NN_NDM_WARN(result, __VA_ARGS__); \
|
| /CTR-SDK-0.14.4/sources/libraries/dbg/ |
| D | dbg_PrintResultImpl.cpp | 25 const char* GetResultDescriptionStringImpl(nn::Result result) \ 27 (void)result; \ 31 else if (result.GetDescription() == nameSpace::description) return #description;
|
| D | dbg_PrintResult.cpp | 25 const char* GetResultDescriptionStringImpl(nn::Result result) \ 30 else if (result.getter() == nameSpace::description) return #description; 209 …se ::nn::Result::moduleString: desc = ::nn::libName::GetResultDescriptionStringImpl(result); break; in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() 211 const char* GetDescriptionString(nn::Result result) 214 switch (result.GetModule()) 247 desc = nn::dbg::GetResultCommonDescriptionStringImpl(result); 256 NN_WEAK_SYMBOL void PrintResult(nn::Result result) in PrintResult() argument 258 NN_LOG(" Level: %s (%d)\n", GetLevelString(result), result.GetLevel()); in PrintResult() 259 NN_LOG(" Summary: %s (%d)\n", GetSummaryString(result), result.GetSummary()); in PrintResult() 260 NN_LOG(" Module: %s (%d)\n", GetModuleString(result), result.GetModule()); in PrintResult() [all …]
|
| /CTR-SDK-0.14.4/sources/libraries/fnd/ |
| D | fnd_PrintResultImpl.cpp | 25 const char* GetResultDescriptionStringImpl(nn::Result result) \ 27 (void)result; \ 31 else if (result.GetDescription() == nameSpace::description) return #description;
|
| /CTR-SDK-0.14.4/sources/libraries/test/ |
| D | test_Suite.cpp | 190 inline void Suite::ResultHolder::SetCurrent(Suite::ResultHolder* result) in SetCurrent() argument 193 tls_pExpectedResult.SetValue(reinterpret_cast<uptr>(result)); in SetCurrent() 201 s_ResultHolderArm9[i].value = reinterpret_cast<uptr>(result); in SetCurrent() 212 s_ResultHolderArm9[lastBlank].value = reinterpret_cast<uptr>(result); in SetCurrent() 261 …void Suite::ResultHolder::ResultFailureHandler(Result result, const char* filename, int lineno, co… in ResultFailureHandler() argument 265 GetCurrent()->m_Result = result; in ResultFailureHandler() 275 nn::dbg::PrintResult(result); in ResultFailureHandler() 285 …void Suite::ResultHolder::ResultPanicHandler(Result result, const char* filename, int lineno, cons… in ResultPanicHandler() argument 289 GetCurrent()->m_Result = result; in ResultPanicHandler() 300 nn::dbg::PrintResult(result); in ResultPanicHandler() [all …]
|