/device/google/contexthub/firmware/os/core/ |
D | sensors.c | 230 static bool sensorCallFuncSetRate(struct Sensor* s, uint32_t rate, uint64_t latency) in sensorCallFuncSetRate() argument 233 INVOKE_AS_OWNER_AND_RETURN(LOCAL_APP_OPS(s)->sensorSetRate, rate, latency, s->callData); in sensorCallFuncSetRate() 240 evt->externalSetRateEvt.latency = latency; in sensorCallFuncSetRate() 395 if (smallestLatency > req->latency) in sensorCalcHwLatency() 396 smallestLatency = req->latency; in sensorCalcHwLatency() 574 …bool sensorAddRequestor(uint32_t sensorHandle, uint32_t clientTid, uint32_t rate, uint64_t latency) in sensorAddRequestor() argument 585 req->latency = latency; in sensorAddRequestor() 609 req->latency = newLatency; in sensorAmendRequestor() 622 req->latency = SENSOR_LATENCY_INVALID; in sensorDeleteRequestor() 633 bool sensorRequest(uint32_t unusedTid, uint32_t sensorHandle, uint32_t rate, uint64_t latency) in sensorRequest() argument [all …]
|
D | nanohub_chre.c | 335 uint64_t latency; in osChreSensorGetSamplingStatus() local 341 latency = sensorGetHwLatency(sensorHandle); in osChreSensorGetSamplingStatus() 346 status->latency = 0; in osChreSensorGetSamplingStatus() 356 if (latency == SENSOR_LATENCY_NODATA) in osChreSensorGetSamplingStatus() 357 status->latency = CHRE_SENSOR_INTERVAL_DEFAULT; in osChreSensorGetSamplingStatus() 359 status->latency = latency; in osChreSensorGetSamplingStatus() 374 uint64_t interval, uint64_t latency) in osChreSensorConfigure() argument 405 if (latency == CHRE_SENSOR_LATENCY_DEFAULT) in osChreSensorConfigure() 406 latency = 0ULL; in osChreSensorConfigure() 408 if ((ret = sensorRequest(0, sensorHandle, rate, latency))) { in osChreSensorConfigure() [all …]
|
D | hostIntf.c | 75 uint64_t latency; member 84 uint64_t latency; member 769 mActiveSensorTable[j].latency = 0; in initSensors() 1291 if (mActiveSensorTable[i].latency > 0) { in onEvtLatencyTimer() 1294 sensorTime >= mActiveSensorTable[i].firstTime + mActiveSensorTable[i].latency) { in onEvtLatencyTimer() 1308 if (sensorRequestRateChange(mHostIntfTid, sensor->sensorHandle, cmd->rate, cmd->latency)) { in onConfigCmdEnableOne() 1310 if (sensor->latency != cmd->latency) { in onConfigCmdEnableOne() 1311 if (!sensor->latency) { in onConfigCmdEnableOne() 1314 } else if (!cmd->latency) { in onConfigCmdEnableOne() 1320 sensor->latency = cmd->latency; in onConfigCmdEnableOne() [all …]
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 443 uint64_t latency; member 466 uint64_t latency; member 1222 if (mTask.sensors[ACC].configed && mTask.sensors[ACC].latency != SENSOR_LATENCY_NODATA) { 1230 if (mTask.sensors[GYR].configed && mTask.sensors[GYR].latency != SENSOR_LATENCY_NODATA) { 1239 if (mTask.sensors[MAG].configed && mTask.sensors[MAG].latency != SENSOR_LATENCY_NODATA) { 1572 static bool accSetRate(uint32_t rate, uint64_t latency, void *cookie) argument 1581 rate, latency, getStateName(GET_STATE())); 1613 mTask.sensors[ACC].latency = latency; 1636 mTask.sensors[ACC].pConfig.latency = latency; 1641 static bool gyrSetRate(uint32_t rate, uint64_t latency, void *cookie) argument [all …]
|
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
D | st_lsm6dsm.c | 652 uint64_t latency; member 686 uint64_t latency; member 1184 static bool lsm6dsm_setAccelRate(uint32_t rate, uint64_t latency, void *cookie); 1185 static bool lsm6dsm_setGyroRate(uint32_t rate, uint64_t latency, void *cookie); 1186 static bool lsm6dsm_setStepDetectorRate(uint32_t rate, uint64_t latency, void *cookie); 1187 static bool lsm6dsm_setStepCounterRate(uint32_t rate, uint64_t latency, void *cookie); 1188 static bool lsm6dsm_setSignMotionRate(uint32_t rate, uint64_t latency, void *cookie); 1205 static bool lsm6dsm_setMagnRate(uint32_t rate, uint64_t latency, void *cookie); 1214 static bool lsm6dsm_setPressRate(uint32_t rate, uint64_t latency, void *cookie); 1218 static bool lsm6dsm_setTempRate(uint32_t rate, uint64_t latency, void *cookie); [all …]
|
/device/google/contexthub/firmware/os/inc/ |
D | isr.h | 98 uint32_t latency = 0; in maxLatencyIsr() local 102 if (!latency || (curIsr->maxLatencyNs && curIsr->maxLatencyNs < latency)) in maxLatencyIsr() 103 latency = curIsr->maxLatencyNs; in maxLatencyIsr() 106 return latency; in maxLatencyIsr()
|
D | sensors.h | 145 uint64_t latency; member 171 bool (*sensorSetRate)(uint32_t rate, uint64_t latency, void *); 273 bool sensorRequest(uint32_t clientTid, uint32_t sensorHandle, uint32_t rate, uint64_t latency);
|
/device/google/contexthub/firmware/os/drivers/si_si7034/ |
D | si7034a10.c | 284 static bool humiSetRate(uint32_t rate, uint64_t latency, void *cookie) in humiSetRate() argument 286 DEBUG_PRINT("%s %ld (%lld)\n", __func__, rate, latency); in humiSetRate() 295 SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in humiSetRate() 325 static bool tempSetRate(uint32_t rate, uint64_t latency, void *cookie) in tempSetRate() argument 327 DEBUG_PRINT("%s %ld (%lld)\n", __func__, rate, latency); in tempSetRate() 336 SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in tempSetRate()
|
/device/google/contexthub/firmware/os/drivers/st_acc44/ |
D | st_acc44.c | 240 uint32_t latency; member 408 static bool st_acc44_SetRate(uint32_t rate, uint64_t latency, void *cookie) in st_acc44_SetRate() argument 412 INFO_PRINT("SetRate %lu Hz - %llu ns\n", rate, latency); in st_acc44_SetRate() 417 mTask.latency = latency; in st_acc44_SetRate() 432 mTask.pendingLatency = latency; in st_acc44_SetRate() 744 SENSOR_INTERNAL_EVT_RATE_CHG, mTask.rate, mTask.latency); in st_acc44_handleCommDoneEvt()
|
/device/google/redfin/self-extractors/qcom/staging/ |
D | device-partial.mk | 52 …n/proprietary/vendor.qti.hardware.data.latency-V1.0-java.jar:system_ext/framework/vendor.qti.hardw… 56 …vendor/qcom/redfin/proprietary/vendor.qti.latency-V2.0-java.jar:system_ext/framework/vendor.qti.la…
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 389 static bool baroSetRate(uint32_t rate, uint64_t latency, void *cookie) in baroSetRate() argument 391 INFO_PRINT("baroSetRate %lu Hz - %llu ns\n", rate, latency); in baroSetRate() 400 SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in baroSetRate() 486 static bool tempSetRate(uint32_t rate, uint64_t latency, void *cookie) in tempSetRate() argument 491 INFO_PRINT("tempSetRate %lu Hz - %llu ns\n", rate, latency); in tempSetRate() 496 SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in tempSetRate()
|
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/ |
D | rohm_rpr0521.c | 450 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 455 VERBOSE_PRINT("sensorRateAls: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateAls() 457 return sensorSignalInternalEvt(mTask.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateAls() 500 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx() argument 505 VERBOSE_PRINT("sensorRateProx: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateProx() 507 return sensorSignalInternalEvt(mTask.proxHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateProx()
|
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
D | ams_tmd2772.c | 344 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 349 osLog(LOG_INFO, DRIVER_NAME "sensorRateAls: %ld/%lld\n", rate, latency); in sensorRateAls() 355 sensorSignalInternalEvt(mData.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateAls() 399 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx() argument 404 osLog(LOG_INFO, DRIVER_NAME "sensorRateProx: %ld/%lld\n", rate, latency); in sensorRateProx() 410 sensorSignalInternalEvt(mData.proxHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateProx()
|
/device/google/contexthub/firmware/app/chre/common/ |
D | chre10_app_syscalls.c | 109 uint64_t interval, uint64_t latency) in chreSensorConfigure() argument 113 uint32_t latency_lo = latency; in chreSensorConfigure() 114 uint32_t latency_hi = latency >> 32; in chreSensorConfigure()
|
D | chre11_app_syscalls.c | 112 uint64_t interval, uint64_t latency) in chreSensorConfigure() argument 116 uint32_t latency_lo = latency; in chreSensorConfigure() 117 uint32_t latency_hi = latency >> 32; in chreSensorConfigure()
|
D | chre_app_syscalls.c | 112 uint64_t interval, uint64_t latency) in chreSensorConfigure() argument 116 uint32_t latency_lo = latency; in chreSensorConfigure() 117 uint32_t latency_hi = latency >> 32; in chreSensorConfigure()
|
D | chre10_app.c | 209 change.status.latency = 0; in chreappProcessConfigEvt() 220 change.status.latency = CHRE_SENSOR_INTERVAL_DEFAULT; in chreappProcessConfigEvt() 222 change.status.latency = msg->newLatency; in chreappProcessConfigEvt()
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 99 uint64_t latency; member 648 static bool fusionSetRate(uint32_t rate, uint64_t latency, void *cookie) in fusionSetRate() argument 657 mSensor->latency = latency; in fusionSetRate() 693 mTask.raw_sensor_latency = mTask.sensors[i].latency < mTask.raw_sensor_latency ? in fusionSetRate() 694 mTask.sensors[i].latency : mTask.raw_sensor_latency; in fusionSetRate() 705 sensorSignalInternalEvt(mSensor->handle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in fusionSetRate()
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 534 uint64_t latency; member 557 uint64_t latency; member 1924 uint64_t latency; local 1987 latency = SENSOR_LATENCY_NODATA; 1995 if (T(sensors[i]).latency < latency) { 1996 latency = T(sensors[i]).latency; 2007 latency_ms = cpuMathU64DivByU16(cpuMathU64DivByU16(latency + 500000, 1000), 1000); 2286 static bool sensorSetRate(uint32_t rate, uint64_t latency, void *cookie) argument 2293 mSensorInfo[sensor_type].sensorName, rate, latency, getStateName(GET_STATE())); 2297 sensor->latency = latency; [all …]
|
/device/google/contexthub/util/nanoapp_cmd/ |
D | nanoapp_cmd.c | 69 uint64_t latency; member 495 mConfigCmd.latency = atoi(argv[5]) * 1000ull; in main() 503 mConfigCmd.latency = 0; in main() 536 mConfigCmd.latency = 0; in main() 549 mConfigCmd.latency = 0; in main()
|
/device/google/contexthub/firmware/os/platform/stm32/ |
D | exti.c | 168 uint32_t latency; in extiSetMaxLatency() local 174 latency = isr->maxLatencyNs; in extiSetMaxLatency() 176 … if (!mMaxLatency || latency == mMaxLatency || (maxLatencyNs && maxLatencyNs < mMaxLatency)) { in extiSetMaxLatency()
|
/device/google/contexthub/firmware/os/drivers/st_mag40/ |
D | st_mag40.c | 221 uint64_t latency; member 479 static bool magSetRate(uint32_t rate, uint64_t latency, void *cookie) in magSetRate() argument 483 INFO_PRINT("magSetRate %lu Hz - %llu ns\n", rate, latency); in magSetRate() 488 mTask.latency = latency; in magSetRate() 849 SENSOR_INTERNAL_EVT_RATE_CHG, mTask.rate, mTask.latency); in sensorMagConfig()
|
/device/google/barbet/self-extractors/qcom/staging/ |
D | device-partial.mk | 63 …t/proprietary/vendor.qti.hardware.data.latency-V1.0-java.jar:system_ext/framework/vendor.qti.hardw… 67 …vendor/qcom/barbet/proprietary/vendor.qti.latency-V2.0-java.jar:system_ext/framework/vendor.qti.la…
|
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/ |
D | ams_tmd4903.c | 505 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) in sensorRateAls() argument 510 DEBUG_PRINT("sensorRateAls: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateAls() 512 return sensorSignalInternalEvt(mTask.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateAls() 592 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) in sensorRateProx() argument 597 DEBUG_PRINT("sensorRateProx: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); in sensorRateProx() 599 return sensorSignalInternalEvt(mTask.proxHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); in sensorRateProx()
|
/device/google/gs101/fingerprint/extension/ |
D | init.fingerprint.extension.rc | 3 service fingerprint-extension-bug-latency /system_ext/bin/fingerprint.extension.sh latency
|