Searched refs:nb_sensors (Results 1 – 2 of 2) sorted by relevance
32 unsigned int nb_sensors; member100 u8 data[CGBC_HWMON_CMD_SENSOR_DATA_SIZE], nb_sensors, i; in cgbc_hwmon_probe_sensors() local107 nb_sensors = data[0]; in cgbc_hwmon_probe_sensors()109 hwmon->sensors = devm_kzalloc(dev, sizeof(*hwmon->sensors) * nb_sensors, GFP_KERNEL); in cgbc_hwmon_probe_sensors()115 for (i = 0; i < nb_sensors; i++) { in cgbc_hwmon_probe_sensors()158 hwmon->nb_sensors++; in cgbc_hwmon_probe_sensors()178 for (i = 0; i < hwmon->nb_sensors; i++) { in cgbc_hwmon_find_sensor()
333 static int atp_calculate_abs(struct atp *dev, int offset, int nb_sensors, in atp_calculate_abs() argument350 for (i = 0; i < nb_sensors; i++) { in atp_calculate_abs()393 for (i = 0; i < nb_sensors; i++) in atp_calculate_abs()395 memset(&dev->smooth[nb_sensors + 4], 0, 4 * sizeof(dev->smooth[0])); in atp_calculate_abs()402 for (i = 1; i < nb_sensors + 7; i++) in atp_calculate_abs()413 for (i = 0; i < nb_sensors + 8; i++) { in atp_calculate_abs()