Lines Matching refs:evt
225 …struct SensorsInternalEvent *evt = (struct SensorsInternalEvent*)slabAllocatorAlloc(mInternalEvent… in sensorCallFuncPower() local
227 if (!evt) in sensorCallFuncPower()
230 evt->externalPowerEvt.on = on; in sensorCallFuncPower()
231 evt->externalPowerEvt.callData = s->callData; in sensorCallFuncPower()
233 if (osEnqueuePrivateEvt(EVT_APP_SENSOR_POWER, &evt->externalPowerEvt, in sensorCallFuncPower()
237 slabAllocatorFree(mInternalEvents, evt); in sensorCallFuncPower()
266 …struct SensorsInternalEvent *evt = (struct SensorsInternalEvent*)slabAllocatorAlloc(mInternalEvent… in sensorCallFuncSetRate() local
268 if (!evt) in sensorCallFuncSetRate()
271 evt->externalSetRateEvt.latency = latency; in sensorCallFuncSetRate()
272 evt->externalSetRateEvt.rate = rate; in sensorCallFuncSetRate()
273 evt->externalSetRateEvt.callData = s->callData; in sensorCallFuncSetRate()
274 if (osEnqueuePrivateEvt(EVT_APP_SENSOR_SET_RATE, &evt->externalSetRateEvt, in sensorCallFuncSetRate()
278 slabAllocatorFree(mInternalEvents, evt); in sensorCallFuncSetRate()
304 …struct SensorsInternalEvent *evt = (struct SensorsInternalEvent*)slabAllocatorAlloc(mInternalEvent… in sensorCallFuncCfgData() local
306 if (!evt) in sensorCallFuncCfgData()
309 evt->externalCfgDataEvt.data = cfgData; in sensorCallFuncCfgData()
310 evt->externalCfgDataEvt.callData = s->callData; in sensorCallFuncCfgData()
311 if (osEnqueuePrivateEvt(EVT_APP_SENSOR_CFG_DATA, &evt->externalCfgDataEvt, in sensorCallFuncCfgData()
315 slabAllocatorFree(mInternalEvents, evt); in sensorCallFuncCfgData()
325 …struct SensorsInternalEvent *evt = (struct SensorsInternalEvent*)slabAllocatorAlloc(mInternalEvent… in sensorCallFuncMarshall() local
327 if (!evt) in sensorCallFuncMarshall()
330 evt->externalMarshallEvt.origEvtType = evtType; in sensorCallFuncMarshall()
331 evt->externalMarshallEvt.origEvtData = evtData; in sensorCallFuncMarshall()
332 evt->externalMarshallEvt.evtFreeingInfo = *evtFreeingInfoP; in sensorCallFuncMarshall()
333 evt->externalMarshallEvt.callData = s->callData; in sensorCallFuncMarshall()
334 if (osEnqueuePrivateEvt(EVT_APP_SENSOR_MARSHALL, &evt->externalMarshallEvt, in sensorCallFuncMarshall()
338 slabAllocatorFree(mInternalEvents, evt); in sensorCallFuncMarshall()
356 …struct SensorsInternalEvent *evt = (struct SensorsInternalEvent*)slabAllocatorAlloc(mInternalEvent… in sensorCallFuncSendOneDirectEvt() local
358 if (!evt) in sensorCallFuncSendOneDirectEvt()
361 evt->externalSendDirectEvt.tid = tid; in sensorCallFuncSendOneDirectEvt()
362 evt->externalSendDirectEvt.callData = s->callData; in sensorCallFuncSendOneDirectEvt()
363 if (osEnqueuePrivateEvt(EVT_APP_SENSOR_SEND_ONE_DIR_EVT, &evt->externalSendDirectEvt, in sensorCallFuncSendOneDirectEvt()
367 slabAllocatorFree(mInternalEvents, evt); in sensorCallFuncSendOneDirectEvt()
488 struct SensorsInternalEvent *evt = (struct SensorsInternalEvent*)evtP; in sensorInternalFwStateChanged() local
489 struct Sensor* s = sensorFindByHandle(evt->handle); in sensorInternalFwStateChanged()
493 if (!evt->value1) { //we failed -> give up in sensorInternalFwStateChanged()
499 s->currentRate = evt->value1; in sensorInternalFwStateChanged()
500 s->currentLatency = evt->value2; in sensorInternalFwStateChanged()
507 slabAllocatorFree(mInternalEvents, evt); in sensorInternalFwStateChanged()
512 struct SensorsInternalEvent *evt = (struct SensorsInternalEvent*)evtP; in sensorInternalPowerStateChanged() local
513 struct Sensor* s = sensorFindByHandle(evt->handle); in sensorInternalPowerStateChanged()
517 …if (s->currentRate == SENSOR_RATE_POWERING_ON && evt->value1) { //we're now on - upload f… in sensorInternalPowerStateChanged()
522 else if (s->currentRate == SENSOR_RATE_POWERING_OFF && !evt->value1) { //we're now off in sensorInternalPowerStateChanged()
526 …else if (s->currentRate == SENSOR_RATE_POWERING_ON && !evt->value1) { //we need to power back on in sensorInternalPowerStateChanged()
529 …else if (s->currentRate == SENSOR_RATE_POWERING_OFF && evt->value1) { //we need to power back o… in sensorInternalPowerStateChanged()
533 slabAllocatorFree(mInternalEvents, evt); in sensorInternalPowerStateChanged()
538 struct SensorsInternalEvent *evt = (struct SensorsInternalEvent*)evtP; in sensorInternalRateChanged() local
539 struct Sensor* s = sensorFindByHandle(evt->handle); in sensorInternalRateChanged()
543 s->currentRate = evt->value1; in sensorInternalRateChanged()
544 s->currentLatency = evt->value2; in sensorInternalRateChanged()
546 slabAllocatorFree(mInternalEvents, evt); in sensorInternalRateChanged()
556 …struct SensorsInternalEvent *evt = (struct SensorsInternalEvent*)slabAllocatorAlloc(mInternalEvent… in sensorSignalInternalEvt() local
558 if (!evt) in sensorSignalInternalEvt()
561 evt->handle = handle; in sensorSignalInternalEvt()
562 evt->value1 = value1; in sensorSignalInternalEvt()
563 evt->value2 = value2; in sensorSignalInternalEvt()
565 if (osDefer(internalEventCallbacks[intEvtNum], evt, false)) in sensorSignalInternalEvt()
568 slabAllocatorFree(mInternalEvents, evt); in sensorSignalInternalEvt()