Lines Matching refs:mTask
77 } mTask; variable
83 *evPtr = slabAllocatorAlloc(mTask.evtSlab); in vsyncAllocateEvt()
101 slabAllocatorFree(mTask.evtSlab, ptr); in vsyncFreeEvt()
155 extiClearPendingGpio(mTask.pin); in vsyncPower()
156 enableInterrupt(mTask.pin, &mTask.isr); in vsyncPower()
158 disableInterrupt(mTask.pin, &mTask.isr); in vsyncPower()
159 extiClearPendingGpio(mTask.pin); in vsyncPower()
162 mTask.on = on; in vsyncPower()
163 sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_POWER_STATE_CHG, on, 0); in vsyncPower()
169 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); in vsyncFirmwareUpload()
175 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in vsyncSetRate()
198 mTask.id = taskId; in startTask()
199 mTask.sensorHandle = sensorRegister(&mSensorInfo, &mSensorOps, NULL, true); in startTask()
200 mTask.pin = gpioRequest(VSYNC_PIN); in startTask()
201 mTask.isr.func = vsyncIsr; in startTask()
202 mTask.isr.maxLatencyNs = MAX_VSYNC_INT_LATENCY; in startTask()
204 …mTask.evtSlab = slabAllocatorNew(sizeof(struct SingleAxisDataEvent) + sizeof(struct SingleAxisData… in startTask()
205 if (!mTask.evtSlab) { in startTask()
215 disableInterrupt(mTask.pin, &mTask.isr); in endTask()
216 extiUnchainIsr(VSYNC_IRQ, &mTask.isr); in endTask()
217 extiClearPendingGpio(mTask.pin); in endTask()
218 gpioRelease(mTask.pin); in endTask()
219 sensorUnregister(mTask.sensorHandle); in endTask()