Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 58) sorted by relevance

123

/TwlSDK-5.2.1/build/libraries/snd/common/src/
Dsnd_command.c113 SNDCommand *command; in SND_CommandInit() local
150 command = SND_AllocCommand(SND_COMMAND_BLOCK); in SND_CommandInit()
151 if (command != NULL) in SND_CommandInit()
153 command->id = SND_COMMAND_SHARED_WORK; in SND_CommandInit()
154 command->arg[0] = (u32)SNDi_SharedWork; in SND_CommandInit()
156 SND_PushCommand(command); in SND_CommandInit()
247 SNDCommand *command; in SND_AllocCommand() local
252 command = AllocCommand(); in SND_AllocCommand()
253 if (command != NULL) in SND_AllocCommand()
254 return command; in SND_AllocCommand()
[all …]
/TwlSDK-5.2.1/build/libraries/dsp/common/src/
Ddsp_util.c180 DSPAudioDriverCommand command; in DSPi_PlaySoundEx() local
181 command.ctrl = DSP_32BIT_TO_DSP(ctrl); in DSPi_PlaySoundEx()
182 command.buf = DSP_32BIT_TO_DSP(src); in DSPi_PlaySoundEx()
183 command.len = DSP_32BIT_TO_DSP(len); in DSPi_PlaySoundEx()
184 command.opt = DSP_32BIT_TO_DSP(0); in DSPi_PlaySoundEx()
185 DSP_WriteProcessPipe(context, DSP_PIPE_AUDIO, &command, sizeof(command)); in DSPi_PlaySoundEx()
397 DSPAudioDriverCommand command; in DSPi_StopSoundCore() local
398 command.ctrl = DSP_32BIT_TO_DSP(ctrl); in DSPi_StopSoundCore()
399 command.buf = DSP_32BIT_TO_DSP(0); in DSPi_StopSoundCore()
400 command.len = DSP_32BIT_TO_DSP(0); in DSPi_StopSoundCore()
[all …]
/TwlSDK-5.2.1/build/libraries/os/common/src/
Dos_pxi.c88 u16 command; in OSi_CommonCallback() local
91 command = (u16)((data & OS_PXI_COMMAND_MASK) >> OS_PXI_COMMAND_SHIFT); in OSi_CommonCallback()
97 if (command == OS_PXI_COMMAND_RESET) in OSi_CommonCallback()
103 else if (command == OS_PXI_COMMAND_TERMINATE) in OSi_CommonCallback()
119 if (command == OS_PXI_COMMAND_RESET) in OSi_CommonCallback()
125 else if (command == OS_PXI_COMMAND_TERMINATE) in OSi_CommonCallback()
/TwlSDK-5.2.1/build/libraries/dsp/ARM9.TWL/src/
Ddsp_g711.c70 DSPAudioCodecCommand command; in DSPi_SendCodecG711() local
71 command.ctrl = DSP_32BIT_TO_DSP(flags); in DSPi_SendCodecG711()
72 command.src = DSP_32BIT_TO_DSP((DSPAddrInARM)src); in DSPi_SendCodecG711()
73 command.dst = DSP_32BIT_TO_DSP((DSPAddrInARM)dst); in DSPi_SendCodecG711()
74 command.len = DSP_32BIT_TO_DSP(len); in DSPi_SendCodecG711()
75 DSP_WriteProcessPipe(DSPiProcessG711, DSP_PIPE_BINARY, &command, sizeof(command)); in DSPi_SendCodecG711()
Ddsp_graphics.c227 u16 command; in DSPi_ConvertYuvToRgbCore() local
255 command = DSP_G_FUNCID_YUV2RGB; in DSPi_ConvertYuvToRgbCore()
256 DSP_SendData(DSP_GRAPHICS_COM_REGISTER, command); in DSPi_ConvertYuvToRgbCore()
303 u16 command; in DSPi_ScalingCore() local
333 command = DSP_G_FUNCID_SCALING; in DSPi_ScalingCore()
334 DSP_SendData(DSP_GRAPHICS_COM_REGISTER, command); in DSPi_ScalingCore()
384 u16 command; in DSPi_ScalingFxCore() local
415 command = DSP_G_FUNCID_SCALING; in DSPi_ScalingFxCore()
416 DSP_SendData(DSP_GRAPHICS_COM_REGISTER, command); in DSPi_ScalingFxCore()
/TwlSDK-5.2.1/build/libraries/wbt/common/src/
Dwbt_context.c380 switch (current->command) in WBTi_SwitchNextCommand()
410 current->command = WBT_CMD_REQ_NONE; in WBTi_SwitchNextCommand()
414 retval = (current->command != WBT_CMD_REQ_NONE); in WBTi_SwitchNextCommand()
459 cmd->command = WBT_CMD_SYSTEM_CALLBACK; in WBTi_NotifySystemCallback()
483 MI_StoreLE8(&format->header.command, cmd); in WBTi_MakeCommandHeader()
504 int WBTi_TryCreateResponse(WBTContext * work, int aid, void *buf, int size, int command, in WBTi_TryCreateResponse() argument
511 if (command == WBT_CMD_REQ_SYNC) in WBTi_TryCreateResponse()
522 else if (command == WBT_CMD_REQ_GET_BLOCK_DONE) in WBTi_TryCreateResponse()
533 else if (command == WBT_CMD_REQ_USER_DATA) in WBTi_TryCreateResponse()
540 else if (command == WBT_CMD_REQ_GET_BLOCK) in WBTi_TryCreateResponse()
[all …]
Dwbt_api.c379 list->command.callback = callback; in WBT_RequestSync()
406 list->command.callback = callback; in WBT_GetBlockInfo()
435 list->command.callback = callback; in WBT_GetBlock()
460 list->command.callback = callback; in WBT_PutUserData()
/TwlSDK-5.2.1/build/libraries/wxc/ARM9/src/
Dwxc_protocol_impl_wxc.c135 wxc_work->ack.phase, wxc_work->ack.command, wxc_work->ack.index, in WXCi_PacketSendHook()
136 wxc_work->req.phase, wxc_work->req.command, wxc_work->req.index); in WXCi_PacketSendHook()
147 switch (wxc_work->ack.command) in WXCi_PacketSendHook()
209 wxc_work->req.command = WXC_BLOCK_COMMAND_DONE; in WXCi_MergeBlockData()
284 p_header->req.phase, p_header->req.command, p_header->req.index, in WXCi_PacketRecvHook()
285 p_header->ack.phase, p_header->ack.command, p_header->ack.index); in WXCi_PacketRecvHook()
299 switch (p_header->ack.command) in WXCi_PacketRecvHook()
316 wxc_work->req.command = WXC_BLOCK_COMMAND_SEND; in WXCi_PacketRecvHook()
320 wxc_work->req.command = WXC_BLOCK_COMMAND_DONE; in WXCi_PacketRecvHook()
333 (p_header->ack.command == WXC_BLOCK_COMMAND_DONE) && in WXCi_PacketRecvHook()
[all …]
/TwlSDK-5.2.1/build/libraries/snd/ARM9.TWL/src/
Dsndex.c43 u8 command; member
93 static BOOL SendCommand (u8 command, u8 param);
94 static BOOL SendCommandEx (u8 command, u16 param);
97 static void SetSndexWork (SNDEXCallback cb, void* cbarg, void* dst, u8 command);
192 if (FALSE == SendCommand(sndexWork.command, 0)) in SNDEXi_GetMuteAsync()
269 if (FALSE == SendCommand(sndexWork.command, 0)) in SNDEXi_GetI2SFrequencyAsync()
347 if (FALSE == SendCommand(sndexWork.command, 0)) in SNDEXi_GetDSPMixRateAsync()
427 if (FALSE == SendCommand(sndexWork.command, in SNDEXi_GetVolumeAsync()
591 if (FALSE == SendCommand(sndexWork.command, 0)) in SNDEXi_GetDeviceAsync()
671 if (FALSE == SendCommand(sndexWork.command, (u8)mute)) in SNDEXi_SetMuteAsync()
[all …]
/TwlSDK-5.2.1/include/nitro/wbt/
Dcontext.h101 PLATFORM_LE8 command; member
154 WBTCommand command; member
194 WBTCommandList *command; member
430 return work->command; in WBT_GetCurrentCommandList()
445 WBTCommandList *list = work->command; in WBT_GetCurrentCommand()
446 return list ? &list->command : NULL; in WBT_GetCurrentCommand()
531 list->command.command = WBT_CMD_REQ_SYNC; in WBT_CreateCommandSYNC()
552 WBTGetBlockCallback *arg = &list->command.get; in WBT_CreateCommandINFO()
563 list->command.command = WBT_CMD_REQ_GET_BLOCKINFO; in WBT_CreateCommandINFO()
588 WBTGetBlockCallback *arg = &list->command.get; in WBT_CreateCommandGET()
[all …]
/TwlSDK-5.2.1/build/libraries/rtc/ARM9.TWL/src/
Dinternal_ex.c25 static BOOL RtcexSendPxiCommand(u32 command);
157 static BOOL RtcexSendPxiCommand(u32 command) in RtcexSendPxiCommand() argument
160 ((command << RTC_PXI_COMMAND_SHIFT) & RTC_PXI_COMMAND_MASK), 0)) in RtcexSendPxiCommand()
/TwlSDK-5.2.1/build/libraries/wfs/common/src/
Dwfs_archive.c81 static FSResult WFSi_RomArchiveProc(FSFile *file, FSCommandType command) in WFSi_RomArchiveProc() argument
84 switch (command) in WFSi_RomArchiveProc()
129 static FSResult WFSi_EmptyArchiveProc(FSFile *file, FSCommandType command) in WFSi_EmptyArchiveProc() argument
133 if ((command != FS_COMMAND_CLOSEFILE) && in WFSi_EmptyArchiveProc()
134 ((command < FS_COMMAND_STATUS_BEGIN) || (command >= FS_COMMAND_STATUS_END))) in WFSi_EmptyArchiveProc()
/TwlSDK-5.2.1/build/libraries/fs/common/src/
Dfs_archive.c75 static BOOL FSi_IsEventCommand(FSCommandType command) in FSi_IsEventCommand() argument
78 ((command == FS_COMMAND_ACTIVATE) || in FSi_IsEventCommand()
79 (command == FS_COMMAND_IDLE) || in FSi_IsEventCommand()
80 (command == FS_COMMAND_SUSPEND) || in FSi_IsEventCommand()
81 (command == FS_COMMAND_RESUME) || in FSi_IsEventCommand()
82 (command == FS_COMMAND_MOUNT) || in FSi_IsEventCommand()
83 (command == FS_COMMAND_UNMOUNT) || in FSi_IsEventCommand()
84 (command == FS_COMMAND_INVALID)); in FSi_IsEventCommand()
117 FSCommandType command = FSi_GetCurrentCommand(file); in FSi_EndCommand() local
118 if (!FSi_IsEventCommand(command)) in FSi_EndCommand()
[all …]
/TwlSDK-5.2.1/build/libraries/spi/ARM9/src/
Dpm.c57 inline u32 PMi_MakeData1(u32 bit, u32 seq, u32 command, u32 data) in PMi_MakeData1() argument
59 return (bit) | ((seq) << SPI_PXI_INDEX_SHIFT) | ((command) << 8) | ((data) & 0xff); in PMi_MakeData1()
264 u16 command; in PMi_CommonCallback() local
268 command = (u16)((data & SPI_PXI_RESULT_COMMAND_MASK) >> SPI_PXI_RESULT_COMMAND_SHIFT); in PMi_CommonCallback()
274 switch ( command ) in PMi_CommonCallback()
289 switch( command ) in PMi_CommonCallback()
537 u32 command; in PMi_SetLEDAsync() local
542 command = PM_UTIL_LED_ON; in PMi_SetLEDAsync()
545 command = PM_UTIL_LED_BLINK_HIGH_SPEED; in PMi_SetLEDAsync()
548 command = PM_UTIL_LED_BLINK_LOW_SPEED; in PMi_SetLEDAsync()
[all …]
Dtp.c223 static inline void TPi_ErrorAtPxi(TPRequestCommand command) in TPi_ErrorAtPxi() argument
226 tpState.err_flg |= (1 << command); in TPi_ErrorAtPxi()
230 (tpState.callback) (command, TP_RESULT_PXI_BUSY, 0); in TPi_ErrorAtPxi()
259 u16 command; in TPi_TpCallback() local
262 command = (u16)((result & 0x7f00) >> 8); in TPi_TpCallback()
267 TPi_ErrorAtPxi((TPRequestCommand)command); in TPi_TpCallback()
271 if (command == SPI_PXI_COMMAND_TP_AUTO_SAMPLING) in TPi_TpCallback()
286 (tpState.callback) ((TPRequestCommand)command, TP_RESULT_SUCCESS, (u8)tpState.index); in TPi_TpCallback()
302 switch (command) in TPi_TpCallback()
320 tpState.command_flg &= ~(1 << command); in TPi_TpCallback()
[all …]
/TwlSDK-5.2.1/build/libraries/rtc/ARM9/src/
Dinternal.c25 static BOOL RtcSendPxiCommand(u32 command);
411 static BOOL RtcSendPxiCommand(u32 command) in RtcSendPxiCommand() argument
414 ((command << RTC_PXI_COMMAND_SHIFT) & RTC_PXI_COMMAND_MASK), 0)) in RtcSendPxiCommand()
/TwlSDK-5.2.1/build/libraries/scfg/ARM9.TWL/src/
Dscfg_proc.c35 static void SCFGi_SendPxiData(u32 command, u16 ordinal, u16 data);
142 u16 command = (u16)( (pxiData & SCFG_PXI_COMMAND_MASK) >> SCFG_PXI_COMMAND_SHIFT ); in SCFGi_CommonCallback() local
146 switch( command ) in SCFGi_CommonCallback()
192 static void SCFGi_SendPxiData(u32 command, u16 ordinal, u16 data) in SCFGi_SendPxiData() argument
195 (u32)(((command << SCFG_PXI_COMMAND_SHIFT) & SCFG_PXI_COMMAND_MASK) | in SCFGi_SendPxiData()
/TwlSDK-5.2.1/build/libraries/card/ARM9/src/
Dcard_pullOut.c73 u32 command = data & CARD_PXI_COMMAND_MASK; in CARDi_PulledOutCallback() local
76 if (command == CARD_PXI_COMMAND_PULLED_OUT) in CARDi_PulledOutCallback()
98 else if (command == CARD_PXI_COMMAND_RESET_SLOT) in CARDi_PulledOutCallback()
/TwlSDK-5.2.1/build/libraries/snd/ARM9/src/
Dsnd_interface.c36 static void PushCommand_impl(SNDCommandID command, u32 arg0, u32 arg1, u32 arg2, u32 arg3);
415 SNDCommand *command = SND_AllocCommand(SND_COMMAND_BLOCK); in PushCommand_impl() local
416 if (command == NULL) in PushCommand_impl()
419 command->id = id; in PushCommand_impl()
420 command->arg[0] = arg0; in PushCommand_impl()
421 command->arg[1] = arg1; in PushCommand_impl()
422 command->arg[2] = arg2; in PushCommand_impl()
423 command->arg[3] = arg3; in PushCommand_impl()
425 SND_PushCommand(command); in PushCommand_impl()
/TwlSDK-5.2.1/build/libraries/camera/ARM9.TWL/src/
Dcamera_api.c128 CAMERAPxiCommand command; // Command type member
173 static BOOL CameraSendPxiCommand(CAMERAPxiCommand command, u8 size, u8 data);
878 const CAMERAPxiCommand command = CAMERA_PXI_COMMAND_INIT; in CAMERA_I2CInitAsyncCore() local
914 …return CameraSendPxiCommand(command, _size, (u8)camera) ? CAMERA_RESULT_SUCCESS : CAMERA_RESULT_SE… in CAMERA_I2CInitAsyncCore()
951 const CAMERAPxiCommand command = CAMERA_PXI_COMMAND_ACTIVATE; in CAMERA_I2CActivateAsyncCore() local
1003 …return CameraSendPxiCommand(command, _size, (u8)camera) ? CAMERA_RESULT_SUCCESS : CAMERA_RESULT_SE… in CAMERA_I2CActivateAsyncCore()
1041 const CAMERAPxiCommand command = CAMERA_PXI_COMMAND_CONTEXT_SWITCH; in CAMERA_I2CContextSwitchAsyncCore() local
1096 if (CameraSendPxiCommand(command, _size, data[0]) == FALSE) in CAMERA_I2CContextSwitchAsyncCore()
1143 const CAMERAPxiCommand command = CAMERA_PXI_COMMAND_SIZE; in CAMERA_I2CSizeExAsyncCore() local
1213 if (CameraSendPxiCommand(command, _size, data[0]) == FALSE) in CAMERA_I2CSizeExAsyncCore()
[all …]
/TwlSDK-5.2.1/build/demos/spi/spiMonkey/src/
Dmonkey.c30 static void MonkeyTpCallback(TPRequestCommand command, TPRequestResult result, u16 index);
260 static void MonkeyTpCallback(TPRequestCommand command, TPRequestResult result, u16 index) in MonkeyTpCallback() argument
262 #pragma unused( command , index ) in MonkeyTpCallback()
/TwlSDK-5.2.1/build/demos/wm/wep-1/include/
Dmain.h45 …unsigned int command:3; // Instruction (used for switching the game states at once, etc… member
/TwlSDK-5.2.1/build/libraries/card/common/include/
Dcard_rom.h40 u32 command; member
/TwlSDK-5.2.1/build/demos/wm/dataShare-Model/include/
Dmain.h45 …unsigned int command:3; // Instruction (used for switching the game states at once, etc… member
/TwlSDK-5.2.1/include/nitro/spi/ARM9/
Dtp.h113 typedef void (*TPRecvCallback) (TPRequestCommand command, TPRequestResult result, u16 index);
133 u32 TP_CheckError(TPRequestCommandFlag command);

123