Lines Matching refs:pCmd
453 static bool RF_isClientOwner(RF_Handle h, RF_Cmd* pCmd);
456 static void RF_cmdStoreEvents(RF_Cmd* pCmd, RF_EventMask events);
460 static void RF_cacheFsCmd(RF_Cmd* pCmd);
461 static uint32_t RF_discardPendCmd(RF_Handle h, RF_Cmd* pCmd, bool bFlushAll, bool bPreempt);
501 static RF_Stat RF_runDirectImmediateCmd(RF_Handle h, uint32_t pCmd, uint32_t* rawStatus);
502 static RF_Stat RF_executeDirectImmediateCmd(uint32_t pCmd, uint32_t* rawStatus);
537 static bool RF_isClientOwner(RF_Handle h, RF_Cmd* pCmd) in RF_isClientOwner() argument
539 if (pCmd && (pCmd->pClient == h)) in RF_isClientOwner()
639 static void RF_cmdStoreEvents(RF_Cmd* pCmd, RF_EventMask events) in RF_cmdStoreEvents() argument
645 if (pCmd) in RF_cmdStoreEvents()
650 pCmd->rfifg |= events; in RF_cmdStoreEvents()
651 pCmd->pastifg |= events; in RF_cmdStoreEvents()
722 RF_Cmd* pCmd = NULL; in RF_cmdDispatchTime() local
739 pCmd = pTempCmd; in RF_cmdDispatchTime()
752 pCmd = (RF_Cmd*)List_head(&RF_cmdQ.pPend); in RF_cmdDispatchTime()
756 if (pCmd) in RF_cmdDispatchTime()
764 *pAbsCmd = pCmd; in RF_cmdDispatchTime()
768 if (pCmd->pOp->startTrigger.triggerType == TRIG_ABSTIME) in RF_cmdDispatchTime()
775 nTotalDuration = pCmd->pClient->clientConfig.nPhySwitchingDuration in RF_cmdDispatchTime()
776 + pCmd->pClient->clientConfig.nPhySwitchingDurationMargin; in RF_cmdDispatchTime()
780 nTotalDuration = pCmd->pClient->clientConfig.nPowerUpDuration in RF_cmdDispatchTime()
781 + pCmd->pClient->clientConfig.nPowerUpDurationMargin in RF_cmdDispatchTime()
787 *dispatchTimeClockTicks = RF_calculateDeltaTimeUs(pCmd->startTime, nTotalDuration); in RF_cmdDispatchTime()
1217 rfc_CMD_SET_RAT_CMP_t* pCmd = (rfc_CMD_SET_RAT_CMP_t*)&ratCh->chCmd; in RF_ratGenerateChCmd() local
1220 …pCmd->commandNo = CMD_SET_RAT_CMP; /* Instruct the RF core to use COM… in RF_ratGenerateChCmd()
1221 …pCmd->ratCh = RF_RAT_CH_LOWEST + ratCh->handle; /* Encode the selected channel num… in RF_ratGenerateChCmd()
1222 … pCmd->compareTime = ratCompareConfig->timeout; /* Select the compare timeout. */ in RF_ratGenerateChCmd()
1230 rfc_CMD_SET_RAT_CPT_t* pCmd = (rfc_CMD_SET_RAT_CPT_t*)&ratCh->chCmd; in RF_ratGenerateChCmd() local
1233 …pCmd->commandNo = CMD_SET_RAT_CPT; /* Instruct the RF core to use CAP… in RF_ratGenerateChCmd()
1234 …pCmd->config.ratCh = RF_RAT_CH_LOWEST + ratCh->handle; /* Encode the selected channel num… in RF_ratGenerateChCmd()
1235 …pCmd->config.inputSrc = ratCaptureConfig->source; /* Select the source to be capture… in RF_ratGenerateChCmd()
1236 …pCmd->config.inputMode = ratCaptureConfig->captureMode; /* Select the mode of capture: rai… in RF_ratGenerateChCmd()
1237 …pCmd->config.bRepeated = ratCaptureConfig->repeat; /* Select if we should re-arm the … in RF_ratGenerateChCmd()
1919 static void RF_cacheFsCmd(RF_Cmd* pCmd) in RF_cacheFsCmd() argument
1925 RF_Op* pOp = pCmd->pOp; in RF_cacheFsCmd()
1932 …memcpy(&pCmd->pClient->state.mode_state.cmdFs, pOp, sizeof(pCmd->pClient->state.mode_state.cmdFs)); in RF_cacheFsCmd()
2280 RF_Cmd* pCmd = RF_cmdQ.pCurrCmdBg; in RF_hwiHw() local
2290 if (pCmd) in RF_hwiHw()
2293 RF_cmdQ.pCurrCmdCb = pCmd; in RF_hwiHw()
2299 RF_cmdStoreEvents(pCmd, events); in RF_hwiHw()
2585 RF_Cmd* pCmd; in RF_syncCb() local
2602 pCmd = RF_cmdGet(h, ch, RF_CMD_ALLOC_FLAG); in RF_syncCb()
2608 if (pCmd) in RF_syncCb()
2611 pCmd->pastifg &= ~h->state.unpendCause; in RF_syncCb()
2614 pCmd->pCb = (RF_Callback)h->state.pCbSync; in RF_syncCb()
2880 RF_Cmd* pCmd = (RF_Cmd*)List_head(&RF_cmdQ.pDone); in RF_radioOpDoneCb() local
2883 if (pCmd) in RF_radioOpDoneCb()
2886 RF_cacheFsCmd(pCmd); in RF_radioOpDoneCb()
2889 RF_EventMask events = pCmd->rfifg; in RF_radioOpDoneCb()
2890 pCmd->rfifg = 0; in RF_radioOpDoneCb()
2893 if (pCmd->pCb) in RF_radioOpDoneCb()
2908 pCmd->pCb(pCmd->pClient, pCmd->ch, events); in RF_radioOpDoneCb()
2918 pCmd->flags = 0; in RF_radioOpDoneCb()
2922 pCmd->ch = RF_SCHEDULE_CMD_ERROR; in RF_radioOpDoneCb()
3207 volatile RF_Cmd* pCmd; in RF_fsmActiveState() local
3220 pCmd = (RF_Cmd*)RF_cmdQ.pCurrCmdCb; in RF_fsmActiveState()
3223 if (pCmd && !(pCmd->rfifg & RF_TERMINATION_EVENT_MASK)) in RF_fsmActiveState()
3226 events = pCmd->rfifg; in RF_fsmActiveState()
3229 pCmd->rfifg &= (~events); in RF_fsmActiveState()
3235 if (pCmd->pCb && events) in RF_fsmActiveState()
3237 pCmd->pCb(pCmd->pClient, pCmd->ch, events); in RF_fsmActiveState()
3691 static uint32_t RF_discardPendCmd(RF_Handle h, RF_Cmd* pCmd, bool bFlushAll, bool bPreempt) in RF_discardPendCmd() argument
3698 while (pElem && (pElem != pCmd)) in RF_discardPendCmd()
3721 RF_Sch.clientHndRadioFreeCb = pCmd->pClient; in RF_discardPendCmd()
3768 RF_Cmd* pCmd = NULL; in RF_abortCmd() local
3781 pCmd = RF_cmdQ.pCurrCmdBg; in RF_abortCmd()
3785 pCmd = RF_cmdQ.pCurrCmdFg; in RF_abortCmd()
3790 pCmd = (RF_Cmd*)List_head(&RF_cmdQ.pPend); in RF_abortCmd()
3797 pCmd = RF_cmdGet(h, ch, 0x00); in RF_abortCmd()
3801 if (pCmd) in RF_abortCmd()
3804 if (pCmd->flags & RF_CMD_ALLOC_FLAG) in RF_abortCmd()
3807 if ((pCmd == RF_cmdQ.pCurrCmdBg) || (pCmd == RF_cmdQ.pCurrCmdFg)) in RF_abortCmd()
3827 RF_Sch.clientHndRadioFreeCb = pCmd->pClient; in RF_abortCmd()
3846 if (RF_discardPendCmd(h, pCmd, flush, preempt)) in RF_abortCmd()
3893 static RF_Stat RF_executeDirectImmediateCmd(uint32_t pCmd, uint32_t* rawStatus) in RF_executeDirectImmediateCmd() argument
3899 uint32_t localStatus = RFCDoorbellSendTo(pCmd); in RF_executeDirectImmediateCmd()
3938 static RF_Stat RF_runDirectImmediateCmd(RF_Handle h, uint32_t pCmd, uint32_t* rawStatus) in RF_runDirectImmediateCmd() argument
3955 status = RF_executeDirectImmediateCmd(pCmd, rawStatus); in RF_runDirectImmediateCmd()
4516 RF_Cmd* pCmd = RF_queueEnd(h, &RF_cmdQ.pPend); in RF_close() local
4520 if (!pCmd) in RF_close()
4526 pCmd = RF_cmdQ.pCurrCmdBg; in RF_close()
4532 pCmd = RF_queueEnd(h, &RF_cmdQ.pDone); in RF_close()
4537 if (pCmd) in RF_close()
4539 RF_pendCmd(h, pCmd->ch, RF_TERMINATION_EVENT_MASK); in RF_close()
4673 RF_Cmd* pCmd = RF_cmdAlloc(); in RF_postCmd() local
4676 if (pCmd) in RF_postCmd()
4685 pCmd->pOp = pOp; in RF_postCmd()
4686 pCmd->ePri = ePri; in RF_postCmd()
4687 pCmd->pCb = pCb; in RF_postCmd()
4688 pCmd->ch = RF_cmdQ.nSeqPost; in RF_postCmd()
4689 pCmd->pClient = h; in RF_postCmd()
4690 … pCmd->bmEvent = (bmEvent | RFC_DBELL_RFCPEIFG_LAST_COMMAND_DONE_M) & ~RF_INTERNAL_IFG_MASK; in RF_postCmd()
4691 pCmd->pastifg = 0; in RF_postCmd()
4692 pCmd->flags = RF_CMD_ALLOC_FLAG; in RF_postCmd()
4693 pCmd->endTime = 0; in RF_postCmd()
4694 pCmd->endType = RF_EndNotSpecified; in RF_postCmd()
4695 pCmd->startTime = 0; in RF_postCmd()
4696 pCmd->startType = RF_StartNotSpecified; in RF_postCmd()
4697 pCmd->allowDelay = RF_AllowDelayAny; in RF_postCmd()
4698 pCmd->duration = 0; in RF_postCmd()
4699 pCmd->activityInfo = 0; in RF_postCmd()
4700 pCmd->coexPriority = RF_PriorityCoexDefault; in RF_postCmd()
4701 pCmd->coexRequest = RF_RequestCoexDefault; in RF_postCmd()
4706 pCmd->startType = RF_StartAbs; in RF_postCmd()
4707 pCmd->startTime = pOp->startTime; in RF_postCmd()
4714 List_put(&RF_cmdQ.pPend, (List_Elem*)pCmd); in RF_postCmd()
4717 if (List_head(&RF_cmdQ.pPend) == (List_Elem*)pCmd) in RF_postCmd()
4723 cmdHandle = pCmd->ch; in RF_postCmd()
4761 RF_Cmd* pCmd; in RF_scheduleCmd() local
4800 pCmd = RF_cmdAlloc(); in RF_scheduleCmd()
4803 if (pCmd) in RF_scheduleCmd()
4812 pCmd->pOp = pOp; in RF_scheduleCmd()
4813 pCmd->ePri = RF_PriorityNormal; in RF_scheduleCmd()
4814 pCmd->pCb = pCb; in RF_scheduleCmd()
4815 pCmd->ch = RF_cmdQ.nSeqPost; in RF_scheduleCmd()
4816 pCmd->pClient = h; in RF_scheduleCmd()
4817 pCmd->bmEvent = bmEvent & ~RF_INTERNAL_IFG_MASK; in RF_scheduleCmd()
4818 pCmd->flags = 0; in RF_scheduleCmd()
4819 pCmd->pastifg = 0; in RF_scheduleCmd()
4820 pCmd->endTime = pSchParams->endTime; in RF_scheduleCmd()
4821 pCmd->endType = pSchParams->endType; in RF_scheduleCmd()
4822 pCmd->startTime = pSchParams->startTime; in RF_scheduleCmd()
4823 pCmd->startType = pSchParams->startType; in RF_scheduleCmd()
4824 pCmd->allowDelay = pSchParams->allowDelay; in RF_scheduleCmd()
4825 pCmd->duration = pSchParams->duration; in RF_scheduleCmd()
4826 pCmd->activityInfo = pSchParams->activityInfo; in RF_scheduleCmd()
4827 pCmd->coexPriority = pSchParams->coexPriority; in RF_scheduleCmd()
4828 pCmd->coexRequest = pSchParams->coexRequest; in RF_scheduleCmd()
4835 pCmd->endType = RF_EndAbs; in RF_scheduleCmd()
4844 pCmd->startType = RF_StartAbs; in RF_scheduleCmd()
4845 pCmd->startTime = pOp->startTime; in RF_scheduleCmd()
4856 pCmd->flags |= RF_CMD_FG_CMD_FLAG; in RF_scheduleCmd()
4857 pCmd->bmEvent |= RFC_DBELL_RFCPEIFG_LAST_FG_COMMAND_DONE_M; in RF_scheduleCmd()
4861 pCmd->bmEvent |= RFC_DBELL_RFCPEIFG_LAST_COMMAND_DONE_M; in RF_scheduleCmd()
4880 status = RFCC26XX_schedulerPolicy.submitHook(pCmd, in RF_scheduleCmd()
4888 if ((status != RF_ScheduleStatusError) && (RF_cmdQ.nSeqPost != pCmd->ch)) in RF_scheduleCmd()
4911 cmdHandle = pCmd->ch; in RF_scheduleCmd()
4914 pCmd->flags |= RF_CMD_ALLOC_FLAG; in RF_scheduleCmd()
4920 if ((List_head(&RF_cmdQ.pPend) == (List_Elem*)pCmd) || in RF_scheduleCmd()
4921 (pCmd->pOp->startTrigger.triggerType == TRIG_ABSTIME)) in RF_scheduleCmd()
4956 RF_Cmd* pCmd = RF_cmdGet(h, ch, RF_CMD_ALLOC_FLAG); in RF_pendCmd() local
4959 if (!pCmd || !(pCmd->flags & RF_CMD_ALLOC_FLAG)) in RF_pendCmd()
4973 if (pCmd->pastifg & bmEvent) in RF_pendCmd()
4979 h->state.unpendCause = pCmd->pastifg & bmEvent; in RF_pendCmd()
4982 pCmd->pastifg &= ~h->state.unpendCause; in RF_pendCmd()
4989 if (pCmd->pCb != RF_syncCb) in RF_pendCmd()
4992 h->state.pCbSync = (void*)pCmd->pCb; in RF_pendCmd()
4995 pCmd->pCb = RF_syncCb; in RF_pendCmd()
5154 RF_Stat RF_runImmediateCmd(RF_Handle h, uint32_t* pCmd) in RF_runImmediateCmd() argument
5160 return(RF_runDirectImmediateCmd(h, (uint32_t)pCmd, NULL)); in RF_runImmediateCmd()
5275 RF_Cmd* pCmd = RF_cmdGet(h, ch, RF_CMD_ALLOC_FLAG); in RF_getCmdOp() local
5278 if (pCmd) in RF_getCmdOp()
5281 return(pCmd->pOp); in RF_getCmdOp()