Searched refs:watermark (Results 1 – 2 of 2) sorted by relevance
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 576 uint8_t watermark; member 1271 mTask.watermark = calcWatermark2_(_task); 1272 DEBUG_PRINT("wm=%d", mTask.watermark); 1273 SPI_WRITE(BMI160_REG_FIFO_CONFIG_0, mTask.watermark); 3837 T(watermark) = 0; 4185 int firstReadSize = T(watermark) * 4 + 32; // 1+6+6+8+1+3 + extra = 25 + extra = 32 4270 size_t watermark = calcFifoSize(period, latency, factor, NUM_CONT_SENSOR) / 4; local 4271 DEBUG_PRINT_IF(DBG_WM_CALC, "cwm2: wm = %d", watermark); 4272 watermark = watermark < WATERMARK_MIN ? WATERMARK_MIN : watermark; 4273 watermark = watermark > WATERMARK_MAX ? WATERMARK_MAX : watermark; [all …]
|
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
D | st_lsm6dsm.c | 716 uint16_t watermark; member 2311 uint16_t watermark; in lsm6dsm_calculateWatermark() local 2321 watermark = (i - 1) * T(fifoCntl).totalSip; in lsm6dsm_calculateWatermark() 2323 while (watermark > LSM6DSM_MAX_WATERMARK_VALUE) { in lsm6dsm_calculateWatermark() 2324 watermark /= 2; in lsm6dsm_calculateWatermark() 2325 watermark = watermark - (watermark % T(fifoCntl).totalSip); in lsm6dsm_calculateWatermark() 2328 DEBUG_PRINT("calculateWatermark: level=#%d, min latency=%lldns\n", watermark, *minLatency); in lsm6dsm_calculateWatermark() 2330 if (T(fifoCntl).watermark != watermark) { in lsm6dsm_calculateWatermark() 2331 T(fifoCntl).watermark = watermark; in lsm6dsm_calculateWatermark() 2438 watermarkReg = T(fifoCntl).watermark * 3; in lsm6dsm_updateOdrs()
|