Searched refs:nr_sensors (Results 1 – 6 of 6) sorted by relevance
179 loongson_sysconf.nr_sensors = esys->nr_sensors; in prom_init_env()180 if (loongson_sysconf.nr_sensors > MAX_SENSORS) in prom_init_env()181 loongson_sysconf.nr_sensors = 0; in prom_init_env()182 if (loongson_sysconf.nr_sensors) in prom_init_env()184 sizeof(struct sensor_device) * loongson_sysconf.nr_sensors); in prom_init_env()
128 u16 nr_sensors, i; in scpi_hwmon_probe() local142 ret = scpi_ops->sensor_get_capability(&nr_sensors); in scpi_hwmon_probe()146 if (!nr_sensors) in scpi_hwmon_probe()153 scpi_sensors->data = devm_kcalloc(dev, nr_sensors, in scpi_hwmon_probe()158 scpi_sensors->attrs = devm_kcalloc(dev, (nr_sensors * 2) + 1, in scpi_hwmon_probe()172 for (i = 0, idx = 0; i < nr_sensors; i++) { in scpi_hwmon_probe()257 for (i = 0; i < nr_sensors; i++) { in scpi_hwmon_probe()
162 u16 nr_sensors; in scmi_hwmon_probe() local176 nr_sensors = handle->sensor_ops->count_get(handle); in scmi_hwmon_probe()177 if (!nr_sensors) in scmi_hwmon_probe()186 for (i = 0; i < nr_sensors; i++) { in scmi_hwmon_probe()236 for (i = nr_sensors - 1; i >= 0 ; i--) { in scmi_hwmon_probe()
90 int nr_sensors; member417 data->nr_sensors = 1; in hi6220_thermal_probe()427 data->nr_sensors = 1; in hi3660_thermal_probe()430 data->nr_sensors, GFP_KERNEL); in hi3660_thermal_probe()582 for (i = 0; i < data->nr_sensors; i++) { in hisi_thermal_probe()622 for (i = 0; i < data->nr_sensors; i++) { in hisi_thermal_remove()638 for (i = 0; i < data->nr_sensors; i++) in hisi_thermal_suspend()649 for (i = 0; i < data->nr_sensors; i++) in hisi_thermal_resume()
91 u32 nr_sensors; member213 u32 nr_sensors; member
25 for (i = 0; i < loongson_sysconf.nr_sensors; i++) { in loongson3_platform_init()