Home
last modified time | relevance | path

Searched refs:mSensors (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/contexthubhal/
Dnanohubhal_default.cpp30 static const connected_sensor_t mSensors[] = { variable
58 .connected_sensors = mSensors,
59 .num_connected_sensors = sizeof(mSensors) / sizeof(*mSensors),
/device/google/contexthub/firmware/os/core/
Dsensors.c32 static struct Sensor mSensors[MAX_REGISTERED_SENSORS]; variable
69 if (mSensors[i].handle == handle) in sensorFindByHandle()
70 return mSensors + i; in sensorFindByHandle()
108 s = mSensors + idx; in sensorRegisterEx()
169 atomicBitsetClearBit(mSensorsUsed, s - mSensors); in sensorUnregister()
564 if (mSensors[i].handle && mSensors[i].si->sensorType == sensorType && !idx--) { in sensorFind()
566 *handleP = mSensors[i].handle; in sensorFind()
567 return mSensors[i].si; in sensorFind()
730 if (mSensors[i].handle) { in sensorFreeAll()
731 s = mSensors + i; in sensorFreeAll()