Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/mips/loongson64/
Denv.c157 loongson_sysconf.nr_sensors = esys->nr_sensors; in prom_init_env()
158 if (loongson_sysconf.nr_sensors > MAX_SENSORS) in prom_init_env()
159 loongson_sysconf.nr_sensors = 0; in prom_init_env()
160 if (loongson_sysconf.nr_sensors) in prom_init_env()
162 sizeof(struct sensor_device) * loongson_sysconf.nr_sensors); in prom_init_env()
Dplatform.c25 for (i = 0; i < loongson_sysconf.nr_sensors; i++) { in loongson3_platform_init()
/kernel/linux/linux-5.10/drivers/hwmon/
Dscpi-hwmon.c137 u16 nr_sensors, i; in scpi_hwmon_probe() local
151 ret = scpi_ops->sensor_get_capability(&nr_sensors); in scpi_hwmon_probe()
155 if (!nr_sensors) in scpi_hwmon_probe()
162 scpi_sensors->data = devm_kcalloc(dev, nr_sensors, in scpi_hwmon_probe()
167 scpi_sensors->attrs = devm_kcalloc(dev, (nr_sensors * 2) + 1, in scpi_hwmon_probe()
181 for (i = 0, idx = 0; i < nr_sensors; i++) { in scpi_hwmon_probe()
266 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()
238 for (i = nr_sensors - 1; i >= 0 ; i--) { in scmi_hwmon_probe()
/kernel/linux/linux-5.10/drivers/thermal/
Dsprd_thermal.c91 int nr_sensors; member
356 thm->nr_sensors = of_get_child_count(np); in sprd_thm_probe()
357 if (thm->nr_sensors == 0 || thm->nr_sensors > SPRD_THM_MAX_SENSOR) { in sprd_thm_probe()
434 for (i = 0; i < thm->nr_sensors; i++) in sprd_thm_probe()
452 for (i = 0; i < thm->nr_sensors; i++) { in sprd_thm_hw_suspend()
466 for (i = 0; i < thm->nr_sensors; i++) in sprd_thm_suspend()
479 for (i = 0; i < thm->nr_sensors; i++) { in sprd_thm_hw_resume()
508 for (i = 0; i < thm->nr_sensors; i++) in sprd_thm_resume()
524 for (i = 0; i < thm->nr_sensors; i++) { in sprd_thm_remove()
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()
584 for (i = 0; i < data->nr_sensors; i++) { in hisi_thermal_probe()
624 for (i = 0; i < data->nr_sensors; i++) { in hisi_thermal_remove()
640 for (i = 0; i < data->nr_sensors; i++) in hisi_thermal_suspend()
651 for (i = 0; i < data->nr_sensors; i++) in hisi_thermal_resume()
/kernel/linux/linux-5.10/arch/mips/include/asm/mach-loongson64/
Dboot_param.h93 u32 nr_sensors; member
222 u32 nr_sensors; member