Lines Matching refs:sensor
60 uint16_t sensor;
81 * The MCDI sensor readings in the DMA buffer are a packed array of
84 * sensor readings do not include entries for the per-page NEXT_PAGE
90 for (sensor = 0; sensor < sensor_max; ++sensor) {
96 if ((sensor % (MC_CMD_SENSOR_PAGE0_NEXT + 1)) ==
100 /* This sensor is one of the page boundary bits. */
103 if (~(sensor_mask[page]) & (1U << sensor))
105 /* This sensor not in DMA buffer */
113 decode_ok = efx_mon_mcdi_to_efx_stat(sensor, &id);
127 * If there is an entry in the MCDI sensor to monitor statistic
128 * map then the sensor reading is used for the value of the
137 /* Get MCDI sensor reading from DMA buffer */
140 /* Update EFX monitor stat from MCDI sensor reading */
167 uint16_t sensor;
176 sensor = (uint16_t)MCDI_EV_FIELD(eqp, SENSOREVT_MONITOR);
180 /* Hardware must support this MCDI sensor */
181 EFSYS_ASSERT3U(sensor, <,
183 EFSYS_ASSERT((sensor % (MC_CMD_SENSOR_PAGE0_NEXT + 1)) !=
187 sensor / (MC_CMD_SENSOR_PAGE0_NEXT + 1)] &
188 (1U << (sensor % (MC_CMD_SENSOR_PAGE0_NEXT + 1)))) != 0);
191 if (!efx_mon_mcdi_to_efx_stat(sensor, &id)) {
594 /* Get mc sensor mask size */
602 /* Allocate mc sensor mask */
612 /* Read mc sensor mask */