Lines Matching refs:sState
75 static otRadioState sState = OT_RADIO_STATE_DISABLED; variable
200 if (sState == OT_RADIO_STATE_TRANSMIT) { in handle_radio_event()
205 if (sState == OT_RADIO_STATE_RECEIVE) { in handle_radio_event()
550 sState = OT_RADIO_STATE_TRANSMIT; in run_tx_task()
602 if (sState == OT_RADIO_STATE_TRANSMIT || in platformRadioProcess()
604 sState = OT_RADIO_STATE_RECEIVE; in platformRadioProcess()
615 if (sState != OT_RADIO_STATE_TRANSMIT) { in platformRadioProcess()
677 return (sState != OT_RADIO_STATE_DISABLED) ? true : false; in otPlatRadioIsEnabled()
683 sState = OT_RADIO_STATE_SLEEP; in otPlatRadioEnable()
692 sState = OT_RADIO_STATE_DISABLED; in otPlatRadioDisable()
704 if (sState == OT_RADIO_STATE_SLEEP || in otPlatRadioSleep()
705 sState == OT_RADIO_STATE_RECEIVE || in otPlatRadioSleep()
706 sState == OT_RADIO_STATE_TRANSMIT) { in otPlatRadioSleep()
709 sState = OT_RADIO_STATE_SLEEP; in otPlatRadioSleep()
724 sState = OT_RADIO_STATE_RECEIVE; in otPlatRadioReceive()
756 if ((aEnable) && (sState == OT_RADIO_STATE_RECEIVE)) { in platformRadioTransmitCarrier()
763 sState = OT_RADIO_STATE_TRANSMIT; in platformRadioTransmitCarrier()
764 } else if ((!aEnable) && (sState == OT_RADIO_STATE_TRANSMIT)) { in platformRadioTransmitCarrier()
777 return sState; in otPlatRadioGetState()
793 if ((sState == OT_RADIO_STATE_RECEIVE) || (radio_caps & IEEE802154_HW_SLEEP_TO_TX)) { in otPlatRadioTransmit()