| /TwlSDK-5.1.0/build/libraries/ctrdg/ARM9/src/ |
| D | ctrdg_vib.c | 54 void VIB_StartPulse(const VIBPulseState * state); 144 void VIB_StartPulse(const VIBPulseState * state) in VIB_StartPulse() argument 155 for (i = 0; i < state->pulse_num; i++) in VIB_StartPulse() 158 if (state->on_time[i] == 0) in VIB_StartPulse() 164 if (state->on_time[i] > VIB_ON_TIME_MAX) in VIB_StartPulse() 172 for (i = 0; i < state->pulse_num - 1; i++) in VIB_StartPulse() 175 if (state->off_time[i] == 0) in VIB_StartPulse() 181 if (state->on_time[i] > state->off_time[i]) in VIB_StartPulse() 188 if (state->rest_time < VIB_REST_TIME_MIN) in VIB_StartPulse() 195 pulse_vib.rest_tick = VIBi_PulseTimeToTicks(state->rest_time) - VIBi_INTR_DELAY_TICK; in VIB_StartPulse() [all …]
|
| /TwlSDK-5.1.0/build/demos/vib/pulse_vib/src/ |
| D | main.c | 59 static void write_pulse_state(VIBPulseState * state); 60 static u32 *get_state_value_from_line(VIBPulseState * state, s32 line); 68 static BOOL start_pulse_vib(VIBPulseState * state); 560 static void write_pulse_state(VIBPulseState * state) in write_pulse_state() argument 566 for (i = 0; i < state->pulse_num; i++) in write_pulse_state() 571 time = (double)state->on_time[i]; in write_pulse_state() 576 if (state->on_time[i] > VIB_ON_TIME_MAX) in write_pulse_state() 579 if (state->on_time[i] > VIB_ON_TIME_MAX) in write_pulse_state() 582 time = (double)state->off_time[i]; in write_pulse_state() 587 if (state->on_time[i] > state->off_time[i]) in write_pulse_state() [all …]
|
| /TwlSDK-5.1.0/build/demos/mb/multiboot-wfs/parent/src/ |
| D | multiboot.c | 273 int state; in ConnectMain() local 277 state = MBP_GetState(); in ConnectMain() 279 if (state == MBP_STATE_IDLE) in ConnectMain() 284 else if (state == MBP_STATE_ENTRY) in ConnectMain() 309 else if (state == MBP_STATE_DATASENDING) in ConnectMain() 317 else if (state == MBP_STATE_REBOOTING) in ConnectMain() 322 else if (state == MBP_STATE_COMPLETE) in ConnectMain() 328 else if (state == MBP_STATE_ERROR) in ConnectMain() 333 else if (state == MBP_STATE_CANCEL) in ConnectMain() 337 else if (state == MBP_STATE_STOP) in ConnectMain()
|
| /TwlSDK-5.1.0/build/libraries/mb/common/src/ |
| D | mb_cache.c | 52 void MBi_AttachCacheBuffer(MBiCacheList * pl, u32 src, u32 len, void *ptr, u32 state) in MBi_AttachCacheBuffer() argument 64 if (pi->state == MB_CACHE_STATE_EMPTY) in MBi_AttachCacheBuffer() 69 pi->state = state; in MBi_AttachCacheBuffer() 98 if (pi->state >= MB_CACHE_STATE_READY) in MBi_ReadFromCache() 141 if (pi->state == MB_CACHE_STATE_READY) in MBi_TryLoadCache()
|
| D | mb_parent.c | 35 static void MBi_CommChangeParentState(u16 child, int state, void *arg); 36 static void MBi_CommChangeParentStateCallbackOnly(u16 child, int state, void *arg); 212 int state; in MB_CommResponseRequest() local 222 state = MB_COMM_PSTATE_REQUESTED; in MB_CommResponseRequest() 226 state = MB_COMM_PSTATE_REQUESTED; in MB_CommResponseRequest() 231 state = MB_COMM_PSTATE_WAIT_TO_SEND; in MB_CommResponseRequest() 236 state = MB_COMM_PSTATE_SEND_COMPLETE; in MB_CommResponseRequest() 246 if (pPwork->p_comm_state[child_aid - 1] == state) in MB_CommResponseRequest() 271 static void MBi_CommChangeParentState(u16 child, int state, void *arg) in MBi_CommChangeParentState() argument 278 pPwork->p_comm_state[child - 1] = state; in MBi_CommChangeParentState() [all …]
|
| D | mb_fake_child.c | 73 static void MBFi_CommChangeChildState(u16 state, void *arg); 74 static void MBFi_SendCallback(u16 state, void *arg); 82 static void MBFi_ScanCallback(u16 state, MBGameInfoRecvList * gInfop, int index); 302 static void MBFi_CommChangeChildState(u16 state, void *arg) in MBFi_CommChangeChildState() argument 332 CSTATE_NAME_STRING[state]); in MBFi_CommChangeChildState() 335 mbf_work->c_comm_state = state; in MBFi_CommChangeChildState() 337 MBFi_SendCallback(state, arg); in MBFi_CommChangeChildState() 351 static inline void MBFi_SendCallback(u16 state, void *arg) in MBFi_SendCallback() argument 357 mbf_work->stateCallback(state, arg); in MBFi_SendCallback() 559 switch (cb->state) in MBFi_StateOutStartScanParent() [all …]
|
| /TwlSDK-5.1.0/build/demos/wm/dataShare-Model/src/ |
| D | menu.c | 71 win->state = WIN_STATE_CLOSED; in setupWindow() 131 if (win->state != WIN_STATE_CLOSED) in openWindow() 137 win->state = WIN_STATE_OPENING; in openWindow() 142 if (win->state != WIN_STATE_OPENED) in closeWindow() 148 win->state = WIN_STATE_CLOSING; in closeWindow() 154 if (win->state == WIN_STATE_CLOSED) in drawWindow() 182 if (win->state == WIN_STATE_OPENED) in drawWindow() 205 switch (win->state) in updateWindow() 210 win->state = WIN_STATE_OPENED; in updateWindow() 267 win->state = WIN_STATE_CLOSED; in updateWindow() [all …]
|
| D | main.c | 162 if (cb->state == WM_STATECODE_BEACON_RECV) in indicateCallback() 290 if (sRoleMenuWindow.state == WIN_STATE_CLOSED) in ModeSelectRole() 373 if (sOptionWindow.state == WIN_STATE_CLOSED) in ModeOption() 435 if (sLobbyWindow.state == WIN_STATE_CLOSED) in ModeLobby() 505 if (sSelectChannelWindow.state == WIN_STATE_CLOSED) in ModeSelectChannel() 537 if ((sSelectParentWindow.state == WIN_STATE_CLOSED)) in ModeSelectParent() 603 if (sErrorWindow.state == WIN_STATE_CLOSED) in ModeError() 1016 sBusyWindow.state = WIN_STATE_OPENED; in mainLoop() 1021 sBusyWindow.state = WIN_STATE_CLOSED; in mainLoop() 1037 if ((sSysMode == SYSMODE_SELECT_ROLE) && (sRoleMenuWindow.state == WIN_STATE_OPENED)) in mainLoop()
|
| /TwlSDK-5.1.0/build/demos/wm/wep-1/src/ |
| D | menu.c | 71 win->state = WIN_STATE_CLOSED; in setupWindow() 99 if (win->state != WIN_STATE_CLOSED) in openWindow() 105 win->state = WIN_STATE_OPENING; in openWindow() 110 if (win->state != WIN_STATE_OPENED) in closeWindow() 116 win->state = WIN_STATE_CLOSING; in closeWindow() 122 if (win->state == WIN_STATE_CLOSED) in drawWindow() 150 if (win->state == WIN_STATE_OPENED) in drawWindow() 173 switch (win->state) in updateWindow() 178 win->state = WIN_STATE_OPENED; in updateWindow() 235 win->state = WIN_STATE_CLOSED; in updateWindow() [all …]
|
| D | main.c | 141 if (cb->state == WM_STATECODE_BEACON_RECV) in indicateCallback() 224 if (sRoleMenuWindow.state == WIN_STATE_CLOSED) in ModeSelectRole() 302 if (sOptionWindow.state == WIN_STATE_CLOSED) in ModeOption() 362 if (sLobbyWindow.state == WIN_STATE_CLOSED) in ModeLobby() 432 if (sSelectChannelWindow.state == WIN_STATE_CLOSED) in ModeSelectChannel() 464 if ((sSelectParentWindow.state == WIN_STATE_CLOSED)) in ModeSelectParent() 527 if (sErrorWindow.state == WIN_STATE_CLOSED) in ModeError() 935 sBusyWindow.state = WIN_STATE_OPENED; in mainLoop() 940 sBusyWindow.state = WIN_STATE_CLOSED; in mainLoop() 956 if ((sSysMode == SYSMODE_SELECT_ROLE) && (sRoleMenuWindow.state == WIN_STATE_OPENED)) in mainLoop()
|
| /TwlSDK-5.1.0/build/demos/snd/seq/src/ |
| D | seq.c | 93 if (!(handle->state & SEQ_STATE_PLAY)) in SeqMain() 142 if (handle->state & SEQ_STATE_END) in SeqMain() 146 handle->state &= ~SEQ_STATE_END; in SeqMain() 149 else if (handle->state & SEQ_STATE_LOOP) in SeqMain() 153 handle->state &= ~SEQ_STATE_LOOP; in SeqMain() 247 handle->state |= SEQ_STATE_LOOP; in SeqExecMetaEvent() 252 handle->state |= SEQ_STATE_END; in SeqExecMetaEvent() 318 handle->state = SEQ_STATE_PLAY; in SeqPlay() 345 handle->state &= ~SEQ_STATE_PLAY; in SeqStop() 360 handle->state &= ~SEQ_STATE_PLAY; in SeqPause()
|
| /TwlSDK-5.1.0/build/libraries/wm/ARM9/src/ |
| D | wm_ds.c | 130 dsInfo->state = WM_DS_STATE_START; in WM_StartDataSharing() 165 dsInfo->state = WM_DS_STATE_ERROR; in WM_StartDataSharing() 208 dsInfo->state = WM_DS_STATE_READY; in WM_EndDataSharing() 231 u16 state; in WM_StepDataSharing() local 262 state = dsInfo->state; in WM_StepDataSharing() 263 if (state == WM_DS_STATE_ERROR) in WM_StepDataSharing() 268 if (state != WM_DS_STATE_START && state != WM_DS_STATE_RETRY_SEND) in WM_StepDataSharing() 282 if (state == WM_DS_STATE_RETRY_SEND) in WM_StepDataSharing() 287 dsInfo->state = WM_DS_STATE_START; in WM_StepDataSharing() 309 dsInfo->state = WM_DS_STATE_ERROR; in WM_StepDataSharing() [all …]
|
| D | wm_system.c | 478 DC_InvalidateRange(&(wm9buf->status->state), 2); in WMi_CheckIdle() 479 if ((wm9buf->status->state == WM_STATE_READY) || (wm9buf->status->state == WM_STATE_STOP)) in WMi_CheckIdle() 481 WM_WARNING("WM state is \"%d\" now. So can't execute request.\n", wm9buf->status->state); in WMi_CheckIdle() 511 DC_InvalidateRange(&(wm9buf->status->state), 2); in WMi_CheckStateEx() 512 now = wm9buf->status->state; in WMi_CheckStateEx() 632 if (cb_StartMP->state == WM_STATECODE_MPEND_IND in WmReceiveFifo() 633 || cb_StartMP->state == WM_STATECODE_MP_IND) in WmReceiveFifo() 697 u16 state, aid, myAid, reason; in WmReceiveFifo() local 705 state = cb->state; in WmReceiveFifo() 717 state = cb->state; in WmReceiveFifo() [all …]
|
| /TwlSDK-5.1.0/build/demos/wireless_shared/mbp/ |
| D | mbp.c | 36 static void MBP_ChangeState(u16 state); 535 if ((mbpState.state == MBP_STATE_REBOOTING) && in MBPi_CheckAllReboot() 809 static void MBP_ChangeState(u16 state) in MBP_ChangeState() argument 825 SDK_ASSERT(state < MBP_STATE_NUM); in MBP_ChangeState() 827 MBP_Printf("%s -> %s\n", STATE_NAME[mbpState.state], STATE_NAME[state]); in MBP_ChangeState() 828 mbpState.state = state; in MBP_ChangeState() 843 return mbpState.state; in MBP_GetState() 855 void MBP_GetConnectState(MBPState * state) in MBP_GetConnectState() argument 857 MI_CpuCopy8(&mbpState, state, sizeof(MBPState)); in MBP_GetConnectState()
|
| D | mbp.h | 74 u16 state; // Parent state member 158 void MBP_GetConnectState(MBPState * state);
|
| /TwlSDK-5.1.0/build/libraries/wm/ARM9.TWL/nwm/src/ |
| D | nwm_system.c | 206 u16 state = NWM_STATE_NONE; in NWM_GetState() local 211 state = nwmStatus->state; in NWM_GetState() 214 return state; in NWM_GetState() 243 DC_InvalidateRange(&(sys->status->state), 2); in NWMi_CheckState() 244 now = sys->status->state; in NWMi_CheckState()
|
| D | nwm_end.c | 51 …nwm9buf->status->state = NWM_STATE_NONE; // As an exception, set the initial state here alone (th… in NWM_End()
|
| /TwlSDK-5.1.0/build/demos/wireless_shared/wh/ |
| D | wh.c | 347 static void (*sStateCallback)(int state, int prev) = NULL; 704 WH_TRACE("state = %s\n", WH_GetWMStateCodeName(s.state)); in WH_OutputWMState() 731 static void WH_ChangeSysState(int state) in WH_ChangeSysState() argument 748 sSysState = state; in WH_ChangeSysState() 769 static void WH_ChangeSysState(int state) in WH_ChangeSysState() argument 771 sSysState = state; in WH_ChangeSysState() 935 switch (cb->state) in WH_StateOutStartParent() 1012 WH_TRACE("unknown indicate, state = %d\n", cb->state); in WH_StateOutStartParent() 1066 switch (cb->state) in WH_StateOutStartParentMP() 1138 WH_TRACE("unknown indicate, state = %d\n", cb->state); in WH_StateOutStartParentMP() [all …]
|
| /TwlSDK-5.1.0/build/libraries/mb/common/include/ |
| D | mb_cache.h | 51 u32 state; /* If 1, ready to use */ member 100 void MBi_AttachCacheBuffer(MBiCacheList * pl, u32 src, u32 len, void *ptr, u32 state);
|
| /TwlSDK-5.1.0/build/libraries/os/common/src/ |
| D | os_thread.c | 459 if (currentThread->state != OS_THREAD_STATE_TERMINATED in OSi_RescheduleThread() 523 OSi_LauncherThread.state = OS_THREAD_STATE_READY; in OS_InitThread() 585 OSi_IdleThread.state = OS_THREAD_STATE_READY; in OS_InitThread() 649 thread->state = OS_THREAD_STATE_WAITING; in OS_CreateThread() 744 thread->state = OS_THREAD_STATE_READY; in OSi_ExitThread_ArgSpecified() 815 currentThread->state = OS_THREAD_STATE_TERMINATED; in OSi_ExitThread_Destroy() 907 thread->state = OS_THREAD_STATE_TERMINATED; in OS_DestroyThread() 945 thread->state = OS_THREAD_STATE_READY; in OSi_KillThreadWithPriority() 991 t->state = OS_THREAD_STATE_TERMINATED; in UTEST_OS_KillThread_1() 1002 UT_AssertEq(t->state, OS_THREAD_STATE_READY); in UTEST_OS_KillThread_1() [all …]
|
| /TwlSDK-5.1.0/build/demos/wireless_shared/wfs/src/ |
| D | wfs_common.c | 45 WFSState state; member 248 switch (callback->state) in WFSi_PortCallback() 313 static_work->state = WFS_STATE_STOP; in WFSi_InitCommon() 372 static_work->state = WFS_STATE_READY; in ParentWirelessEvent() 422 static_work->state = WFS_STATE_READY; in ChildWFSEvent() 514 static_work->state = WFS_STATE_IDLE; in WFS_InitParent() 543 static_work->state = WFS_STATE_IDLE; in WFS_InitChild() 599 work->state = WFS_STATE_STOP; in WFS_End() 634 return static_work->state; in WFS_GetStatus()
|
| /TwlSDK-5.1.0/build/demos/os/entropy-1/src/ |
| D | wmscan.c | 37 static void WS_ChangeSysState(int state); 52 static inline void WS_ChangeSysState(int state) in WS_ChangeSysState() argument 54 sSysState = state; in WS_ChangeSysState() 290 switch (cb->state) in WS_StateOutStartScan()
|
| /TwlSDK-5.1.0/include/nitro/os/common/ |
| D | system.h | 114 extern OSIntrMode OS_RestoreInterrupts(OSIntrMode state); 147 extern OSIntrMode OS_RestoreInterrupts_IrqAndFiq(OSIntrMode state);
|
| /TwlSDK-5.1.0/build/demos.TWL/mp_shared/wh/ |
| D | wh.c | 651 WH_TRACE("state = %s\n", WH_GetWMStateCodeName(s.state)); in WH_OutputWMState() 678 static void WH_ChangeSysState(int state) in WH_ChangeSysState() argument 694 sSysState = state; in WH_ChangeSysState() 711 static void WH_ChangeSysState(int state) in WH_ChangeSysState() argument 713 sSysState = state; in WH_ChangeSysState() 877 switch (cb->state) in WH_StateOutStartParent() 946 WH_TRACE("unknown indicate, state = %d\n", cb->state); in WH_StateOutStartParent() 1000 switch (cb->state) in WH_StateOutStartParentMP() 1065 WH_TRACE("unknown indicate, state = %d\n", cb->state); in WH_StateOutStartParentMP() 1414 switch (cb->state) in WH_StateOutStartScan() [all …]
|
| /TwlSDK-5.1.0/build/libraries/wm/ARM9/inc/ |
| D | wm_arm9_private.h | 130 static inline WMErrCode WMi_CheckState(u32 state) in WMi_CheckState() argument 132 return WMi_CheckStateEx(1, state); in WMi_CheckState()
|