Home
last modified time | relevance | path

Searched refs:latency (Results 1 – 25 of 28) sorted by relevance

12

/device/google/contexthub/firmware/src/
Dsensors.c73 uint64_t latency; member
261 static bool sensorCallFuncSetRate(struct Sensor* s, uint32_t rate, uint64_t latency) in sensorCallFuncSetRate() argument
264 INVOKE_AS_OWNER_AND_RETURN(LOCAL_APP_OPS(s)->sensorSetRate, rate, latency, s->callData); in sensorCallFuncSetRate()
271 evt->externalSetRateEvt.latency = latency; in sensorCallFuncSetRate()
418 if (smallestLatency > req->latency) in sensorCalcHwLatency()
419 smallestLatency = req->latency; in sensorCalcHwLatency()
587 …bool sensorAddRequestor(uint32_t sensorHandle, uint32_t clientTid, uint32_t rate, uint64_t latency) in sensorAddRequestor() argument
598 req->latency = latency; in sensorAddRequestor()
613 *latencyP = req->latency; in sensorGetCurRequestorRate()
631 req->latency = newLatency; in sensorAmendRequestor()
[all …]
DhostIntf.c72 uint64_t latency; member
81 uint64_t latency; member
696 mActiveSensorTable[j].latency = 0; in initSensors()
1108 if (mActiveSensorTable[i].latency > 0) { in hostIntfHandleEvent()
1110 …Table[i].firstTime && rtcTime >= mActiveSensorTable[i].firstTime + mActiveSensorTable[i].latency) { in hostIntfHandleEvent()
1124 … if (sensorRequestRateChange(mHostIntfTid, sensor->sensorHandle, cmd->rate, cmd->latency)) { in hostIntfHandleEvent()
1126 if (sensor->latency != cmd->latency) { in hostIntfHandleEvent()
1127 if (!sensor->latency) { in hostIntfHandleEvent()
1130 } else if (!cmd->latency) { in hostIntfHandleEvent()
1136 sensor->latency = cmd->latency; in hostIntfHandleEvent()
[all …]
DosApi.c146 uint64_t latency = (((uint64_t)latency_hi) << 32) + latency_lo; in osExpApiSensorReq() local
148 *retValP = sensorRequest(0, sensorHandle, rate, latency); in osExpApiSensorReq()
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/
Dbosch_bmi160.c322 uint64_t latency; member
340 uint64_t latency; member
972 if (mTask.sensors[ACC].configed && mTask.sensors[ACC].latency != SENSOR_LATENCY_NODATA) { in configFifo()
980 if (mTask.sensors[GYR].configed && mTask.sensors[GYR].latency != SENSOR_LATENCY_NODATA) { in configFifo()
988 if (mTask.sensors[MAG].configed && mTask.sensors[MAG].latency != SENSOR_LATENCY_NODATA) { in configFifo()
1311 static bool accSetRate(uint32_t rate, uint64_t latency, void *cookie) in accSetRate() argument
1316 INFO_PRINT("accSetRate: rate=%ld, latency=%lld, state=%s\n", rate, latency, in accSetRate()
1343 mTask.sensors[ACC].latency = latency; in accSetRate()
1366 mTask.sensors[ACC].pConfig.latency = latency; in accSetRate()
1371 static bool gyrSetRate(uint32_t rate, uint64_t latency, void *cookie) in gyrSetRate() argument
[all …]
/device/google/contexthub/firmware/inc/
Dsensors.h133 uint64_t latency; member
159 bool (*sensorSetRate)(uint32_t rate, uint64_t latency, void *);
259 bool sensorRequest(uint32_t clientTid, uint32_t sensorHandle, uint32_t rate, uint64_t latency);
DsyscallDo.h180 …ne bool eOsSensorRequest(uint32_t clientId, uint32_t sensorHandle, uint32_t rate, uint64_t latency) in eOsSensorRequest() argument
182 uint32_t latency_lo = latency; in eOsSensorRequest()
183 uint32_t latency_hi = latency >> 32; in eOsSensorRequest()
/device/google/contexthub/inc/
Dchre_sensor.h623 uint64_t latency; member
795 uint64_t interval, uint64_t latency);
/device/google/contexthub/firmware/src/drivers/rohm_rpr0521/
Drohm_rpr0521.c350 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument
355 DEBUG_PRINT("sensorRateAls: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateAls()
357 return sensorSignalInternalEvt(mTask.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateAls()
400 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx() argument
405 DEBUG_PRINT("sensorRateProx: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateProx()
407 return sensorSignalInternalEvt(mTask.proxHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateProx()
/device/google/contexthub/firmware/src/drivers/vsync/
Dvsync.c134 static bool vsyncSetRate(uint32_t rate, uint64_t latency, void *cookie) in vsyncSetRate() argument
137 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in vsyncSetRate()
/device/google/contexthub/firmware/src/drivers/ams_tmd2772/
Dams_tmd2772.c282 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument
287 osLog(LOG_INFO, DRIVER_NAME "sensorRateAls: %ld/%lld\n", rate, latency); in sensorRateAls()
293 sensorSignalInternalEvt(mData.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateAls()
337 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx() argument
342 osLog(LOG_INFO, DRIVER_NAME "sensorRateProx: %ld/%lld\n", rate, latency); in sensorRateProx()
348 sensorSignalInternalEvt(mData.proxHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateProx()
/device/google/contexthub/util/nanoapp_cmd/
Dnanoapp_cmd.c53 uint64_t latency; member
346 mConfigCmd.latency = atoi(argv[5]) * 1000ull; in main()
358 mConfigCmd.latency = 0; in main()
371 mConfigCmd.latency = 0; in main()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp590 mSensorState[i].latency); in restoreSensorState()
966 if (mSensorState[alt].latency < mSensorState[handle].latency) in initConfigCmd()
967 cmd->latency = mSensorState[alt].latency; in initConfigCmd()
969 cmd->latency = mSensorState[handle].latency; in initConfigCmd()
973 cmd->latency = mSensorState[alt].latency; in initConfigCmd()
977 cmd->latency = mSensorState[handle].latency; in initConfigCmd()
1050 mSensorState[handle].latency = max_report_latency_ns; in queueBatch()
Dhubconnection.h103 uint64_t latency; member
118 uint64_t latency; member
/device/google/contexthub/firmware/src/drivers/hall/
Dhall.c162 static bool hallSetRate(uint32_t rate, uint64_t latency, void *cookie) in hallSetRate() argument
173 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in hallSetRate()
/device/google/contexthub/firmware/src/drivers/bosch_bmp280/
Dbosch_bmp280.c217 static bool sensorRateBaro(uint32_t rate, uint64_t latency, void *cookie) in sensorRateBaro() argument
222 return sensorSignalInternalEvt(mTask.baroHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateBaro()
286 static bool sensorRateTemp(uint32_t rate, uint64_t latency, void *cookie) in sensorRateTemp() argument
291 sensorSignalInternalEvt(mTask.tempHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateTemp()
/device/google/contexthub/firmware/src/drivers/ams_tmd4903/
Dams_tmd4903.c398 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument
403 DEBUG_PRINT("sensorRateAls: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateAls()
405 return sensorSignalInternalEvt(mTask.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateAls()
485 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx() argument
490 DEBUG_PRINT("sensorRateProx: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateProx()
492 return sensorSignalInternalEvt(mTask.proxHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateProx()
/device/google/contexthub/firmware/src/drivers/orientation/
Dorientation.c90 uint64_t latency; member
574 static bool fusionSetRate(uint32_t rate, uint64_t latency, void *cookie) in fusionSetRate() argument
583 mSensor->latency = latency; in fusionSetRate()
619 mTask.raw_sensor_latency = mTask.sensors[i].latency < mTask.raw_sensor_latency ? in fusionSetRate()
620 mTask.sensors[i].latency : mTask.raw_sensor_latency; in fusionSetRate()
631 sensorSignalInternalEvt(mSensor->handle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in fusionSetRate()
/device/google/contexthub/firmware/src/drivers/hall_twopole/
Dhall_twopole.c183 static bool hallSetRate(uint32_t rate, uint64_t latency, void *cookie) in hallSetRate() argument
189 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in hallSetRate()
/device/google/contexthub/firmware/src/drivers/tilt_detection/
Dtilt_detection.c203 static bool tiltDetectionSetRate(uint32_t rate, uint64_t latency, void *cookie) in tiltDetectionSetRate() argument
206 latency); in tiltDetectionSetRate()
/device/asus/fugu/libaudio/
DAudioStreamOut.h39 uint32_t latency() const;
/device/google/contexthub/util/nanotool/
Dnanomessage.h181 uint64_t latency; member
Dnanomessage.cpp215 config.latency, in ToString()
Dcontexthub.cpp188 req.config.latency = spec.latency_ns; in EnableSensor()
/device/google/contexthub/firmware/src/drivers/window_orientation/
Dwindow_orientation.c507 static bool windowOrientationSetRate(uint32_t rate, uint64_t latency, void *cookie) in windowOrientationSetRate() argument
525 sensorSignalInternalEvt(mTask.handle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in windowOrientationSetRate()
/device/htc/flounder/audio/visualizer/
Dnv_offload_visualizer.c105 uint32_t latency; member
521 visu_ctxt->latency = 0; in visualizer_reset()
620 ALOGV("%s set latency = %d", __func__, visu_ctxt->latency); in visualizer_set_parameter()
751 int32_t latency_ms = visu_ctxt->latency; in visualizer_command()

12