Searched refs:magHandle (Results 1 – 2 of 2) sorted by relevance
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 111 uint32_t magHandle; member 629 if (mTask.magHandle == 0) { in fusionSetRateMag() 634 for (i = 0; sensorFind(SENS_TYPE_MAG, i, &mTask.magHandle) != NULL; i++) { in fusionSetRateMag() 635 if (sensorRequest(mTask.tid, mTask.magHandle, mTask.raw_sensor_rate[MAG], in fusionSetRateMag() 643 sensorRequestRateChange(mTask.tid, mTask.magHandle, mTask.raw_sensor_rate[MAG], in fusionSetRateMag() 737 if (mTask.mag_client_cnt == 0 && mTask.magHandle != 0) { in fusionPower() 738 sensorRelease(mTask.tid, mTask.magHandle); in fusionPower() 739 mTask.magHandle = 0; in fusionPower() 794 if (!sensorFind(SENS_TYPE_MAG, 0, &mTask.magHandle)) { in fusionHandleEvent() 798 mTask.magHandle = 0; in fusionHandleEvent()
|
/device/google/contexthub/firmware/os/drivers/st_mag40/ |
D | st_mag40.c | 251 uint32_t magHandle; member 476 return sensorSignalInternalEvt(mTask.magHandle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); in magFwUpload() 822 sensorSignalInternalEvt(mTask.magHandle, in sensorMagConfig() 835 sensorSignalInternalEvt(mTask.magHandle, in sensorMagConfig() 848 sensorSignalInternalEvt(mTask.magHandle, in sensorMagConfig() 920 sensorRegisterInitComplete(mTask.magHandle); in handleCommDoneEvt() 1055 mTask.magHandle = in startTask()
|