Lines Matching full:sensor
58 uint16_t sensor; in mcdi_mon_decode_stats() local
79 * The MCDI sensor readings in the DMA buffer are a packed array of in mcdi_mon_decode_stats()
82 * sensor readings do not include entries for the per-page NEXT_PAGE in mcdi_mon_decode_stats()
88 for (sensor = 0; sensor < sensor_max; ++sensor) { in mcdi_mon_decode_stats()
94 if ((sensor % (MC_CMD_SENSOR_PAGE0_NEXT + 1)) == in mcdi_mon_decode_stats()
98 /* This sensor is one of the page boundary bits. */ in mcdi_mon_decode_stats()
101 if (~(sensor_mask[page]) & (1U << sensor)) in mcdi_mon_decode_stats()
103 /* This sensor not in DMA buffer */ in mcdi_mon_decode_stats()
111 decode_ok = efx_mon_mcdi_to_efx_stat(sensor, &id); in mcdi_mon_decode_stats()
125 * If there is an entry in the MCDI sensor to monitor statistic in mcdi_mon_decode_stats()
126 * map then the sensor reading is used for the value of the in mcdi_mon_decode_stats()
135 /* Get MCDI sensor reading from DMA buffer */ in mcdi_mon_decode_stats()
138 /* Update EFX monitor stat from MCDI sensor reading */ in mcdi_mon_decode_stats()
165 uint16_t sensor; in mcdi_mon_ev() local
174 sensor = (uint16_t)MCDI_EV_FIELD(eqp, SENSOREVT_MONITOR); in mcdi_mon_ev()
178 /* Hardware must support this MCDI sensor */ in mcdi_mon_ev()
179 EFSYS_ASSERT3U(sensor, <, in mcdi_mon_ev()
181 EFSYS_ASSERT((sensor % (MC_CMD_SENSOR_PAGE0_NEXT + 1)) != in mcdi_mon_ev()
185 sensor / (MC_CMD_SENSOR_PAGE0_NEXT + 1)] & in mcdi_mon_ev()
186 (1U << (sensor % (MC_CMD_SENSOR_PAGE0_NEXT + 1)))) != 0); in mcdi_mon_ev()
189 if (!efx_mon_mcdi_to_efx_stat(sensor, &id)) { in mcdi_mon_ev()
592 /* Get mc sensor mask size */ in mcdi_mon_cfg_build()
600 /* Allocate mc sensor mask */ in mcdi_mon_cfg_build()
610 /* Read mc sensor mask */ in mcdi_mon_cfg_build()