Lines Matching refs:cmd

86 void phyHook(RCL *rclState, RCL_Handle client, RCL_Command *cmd);
96 void scheduleHook(RCL_SchedulerState *rclSchedulerState, RCL_Handle client, RCL_Command *cmd);
101 RCL_Command *cmd = rclSchedulerState.currCmd; in rclCommandHwi() local
103 RCL_Debug_assert(NULL != cmd); in rclCommandHwi()
106 if (NULL == cmd || cmd->status >= RCL_CommandStatus_Finished) in rclCommandHwi()
111 RCL_Client *client = cmd->runtime.client; in rclCommandHwi()
153 if (cmd->status == RCL_CommandStatus_Scheduled) in rclCommandHwi()
168 cmd->status = RCL_Scheduler_findStopStatus(RCL_StopType_DescheduleOnly); in rclCommandHwi()
196 LRF_SetupResult result = LRF_setupRadio(rclState.lrfConfig, cmd->phyFeatures, lrfState); in rclCommandHwi()
200 cmd->status = RCL_CommandStatus_Error_Setup; in rclCommandHwi()
218 if (cmd->status >= RCL_CommandStatus_Scheduled && cmd->status < RCL_CommandStatus_Finished) in rclCommandHwi()
220 rclEventsOut = cmd->runtime.handler(cmd, lrfEvents, rclEventsIn); in rclCommandHwi()
243 cmd->status = RCL_CommandStatus_Error_Setup; in rclCommandHwi()
256 if (rclEventsIn.gracefulStop && cmd->status < RCL_CommandStatus_Finished) in rclCommandHwi()
260 if (rclEventsIn.descheduleStop && cmd->status < RCL_CommandStatus_Finished) in rclCommandHwi()
268 RCL_Events rclEventMask = cmd->runtime.rclCallbackMask; in rclCommandHwi()
276 if (cmd->status >= RCL_CommandStatus_Finished || client->deferredRclEvents.value) in rclCommandHwi()
278 if (cmd->status >= RCL_CommandStatus_Finished) in rclCommandHwi()
405 __attribute__((weak)) void phyHook(RCL *rclState, RCL_Handle client, RCL_Command *cmd) in phyHook() argument
409 (void)cmd; in phyHook()
415 …eak)) void scheduleHook(RCL_SchedulerState *rclSchedulerState, RCL_Handle client, RCL_Command *cmd) in scheduleHook() argument
419 RCL_StopType stopType = policyHook(rclSchedulerState->currCmd, cmd); in scheduleHook()
424 uint32_t then = cmd->timing.absStartTime - RCL_SCHEDULER_MARGIN_LOAD*2; in scheduleHook()
428 if (cmd->scheduling == RCL_Schedule_Now || urgent) in scheduleHook()
735 RCL_Command *cmd = (RCL_Command *)c; in RCL_Command_submit() local
738 if (cmd->status != RCL_CommandStatus_Idle && cmd->status < RCL_CommandStatus_Finished) in RCL_Command_submit()
744 if (cmd == rclSchedulerState.currCmd || cmd == rclState.nextCmd) in RCL_Command_submit()
750 cmd->runtime.client = h; in RCL_Command_submit()
753 if (!submitHook(&rclState, h, cmd)) in RCL_Command_submit()
761 return cmd->status; in RCL_Command_submit()
769 RCL_Command *cmd = (RCL_Command *)c; in RCL_Command_pend() local
770 RCL_Handle h = cmd->runtime.client; in RCL_Command_pend()
772 RCL_Debug_assert(cmd != NULL); in RCL_Command_pend()
776 h->pendCmd = cmd; in RCL_Command_pend()
779 if (cmd->status > RCL_CommandStatus_Active) in RCL_Command_pend()
782 return cmd->status; in RCL_Command_pend()
788 return cmd->status; in RCL_Command_pend()
804 RCL_Command *cmd = (RCL_Command *)c; in rclStop() local
808 …if (cmd->status < RCL_CommandStatus_Queued || cmd->status >= RCL_CommandStatus_Finished || stopTyp… in rclStop()
811 …oreShort, Log_DEBUG, "Stop called with type: %d, resulting status: 0x%02X", stopType, cmd->status); in rclStop()
812 return cmd->status; in rclStop()
815 if (cmd->status == RCL_CommandStatus_Queued) in rclStop()
818 cmd->status = RCL_Scheduler_findStopStatus(RCL_StopType_DescheduleOnly); in rclStop()
888 RCL_Scheduler_postEvent(cmd, rclEvent); in rclStop()
892 …oreShort, Log_DEBUG, "Stop called with type: %d, resulting status: 0x%02X", stopType, cmd->status); in rclStop()
893 return cmd->status; in rclStop()