Home
last modified time | relevance | path

Searched refs:nr_sensors (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/arch/mips/loongson64/common/
Denv.c179 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()
/Linux-v5.4/drivers/hwmon/
Dscpi-hwmon.c128 u16 nr_sensors, i; in scpi_hwmon_probe() local
142 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()
Dscmi-hwmon.c162 u16 nr_sensors; in scmi_hwmon_probe() local
176 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()
/Linux-v5.4/drivers/thermal/
Dhisi_thermal.c90 int nr_sensors; member
417 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()
/Linux-v5.4/arch/mips/include/asm/mach-loongson64/
Dboot_param.h91 u32 nr_sensors; member
213 u32 nr_sensors; member
/Linux-v5.4/arch/mips/loongson64/loongson-3/
Dplatform.c25 for (i = 0; i < loongson_sysconf.nr_sensors; i++) { in loongson3_platform_init()