Home
last modified time | relevance | path

Searched refs:num_sensors (Results 1 – 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/drivers/thermal/qcom/
Dtsens-8960.c73 if (priv->num_sensors > 1) in suspend_8960()
98 if (priv->num_sensors > 1) { in resume_8960()
129 if (priv->num_sensors > 1) in enable_8960()
147 mask = GENMASK(priv->num_sensors - 1, 0); in disable_8960()
157 if (priv->num_sensors > 1) in disable_8960()
180 for (i = 0; i < priv->num_sensors; i++) { in init_8960()
191 if (priv->num_sensors > 1) { in init_8960()
202 reg_cntl |= GENMASK(priv->num_sensors - 1, 0) << SENSOR0_SHIFT; in init_8960()
220 ssize_t num_read = priv->num_sensors; in calibrate_8960()
283 .num_sensors = 11,
Dtsens-v0_1.c221 for (i = 0; i < priv->num_sensors; i++) in calibrate_8916()
231 for (i = 0; i < priv->num_sensors; i++) in calibrate_8916()
235 for (i = 0; i < priv->num_sensors; i++) { in calibrate_8916()
286 for (i = 0; i < priv->num_sensors; i++) in calibrate_8939()
302 for (i = 0; i < priv->num_sensors; i++) in calibrate_8939()
306 for (i = 0; i < priv->num_sensors; i++) { in calibrate_8939()
414 for (i = 0; i < priv->num_sensors; i++) in calibrate_8974()
418 for (i = 0; i < priv->num_sensors; i++) { in calibrate_8974()
425 for (i = 0; i < priv->num_sensors; i++) { in calibrate_8974()
432 for (i = 0; i < priv->num_sensors; i++) in calibrate_8974()
[all …]
Dtsens-v1.c162 for (i = 0; i < priv->num_sensors; i++) { in compute_intercept_slope_8976()
203 for (i = 0; i < priv->num_sensors; i++) in calibrate_v1()
218 for (i = 0; i < priv->num_sensors; i++) in calibrate_v1()
222 for (i = 0; i < priv->num_sensors; i++) { in calibrate_v1()
264 for (i = 0; i < priv->num_sensors; i++) in calibrate_8976()
283 for (i = 0; i < priv->num_sensors; i++) in calibrate_8976()
287 for (i = 0; i < priv->num_sensors; i++) { in calibrate_8976()
385 .num_sensors = 11,
Dtsens.c83 for (i = 0; i < priv->num_sensors; i++) { in compute_intercept_slope()
414 for (i = 0; i < priv->num_sensors; i++) { in tsens_critical_irq_thread()
463 for (i = 0; i < priv->num_sensors; i++) { in tsens_irq_thread()
630 priv->feat->max_sensors, priv->num_sensors); in dbg_sensors_show()
633 for (i = 0; i < priv->num_sensors; i++) { in dbg_sensors_show()
968 for (i = 0; i < priv->num_sensors; i++) { in tsens_register()
999 u32 num_sensors; in tsens_probe() local
1014 num_sensors = data->num_sensors; in tsens_probe()
1017 of_property_read_u32(np, "#qcom,sensors", &num_sensors); in tsens_probe()
1019 if (num_sensors <= 0) { in tsens_probe()
[all …]
Dtsens-v2.c106 .num_sensors = 13,
Dtsens.h520 const u32 num_sensors; member
558 u32 num_sensors; member
/kernel/linux/linux-5.10/drivers/thermal/
Dmtk_thermal.c249 unsigned int num_sensors; member
260 s32 num_sensors; member
403 .num_sensors = MT8173_NUM_SENSORS,
411 .num_sensors = 2,
414 .num_sensors = 2,
417 .num_sensors = 3,
420 .num_sensors = 1,
443 .num_sensors = MT2701_NUM_SENSORS,
451 .num_sensors = 3,
474 .num_sensors = MT2712_NUM_SENSORS,
[all …]
Dimx8mm_thermal.c43 u32 num_sensors; member
147 data->num_sensors), GFP_KERNEL); in imx8mm_tmu_probe()
171 for (i = 0; i < data->num_sensors; i++) { in imx8mm_tmu_probe()
212 .num_sensors = 1,
218 .num_sensors = 2,
/kernel/linux/linux-5.10/drivers/hwmon/occ/
Dcommon.c742 num_attrs += (sensors->temp.num_sensors * 2); in occ_setup_sensor_attrs()
745 num_attrs += (sensors->temp.num_sensors * 4); in occ_setup_sensor_attrs()
749 sensors->temp.num_sensors = 0; in occ_setup_sensor_attrs()
757 num_attrs += (sensors->freq.num_sensors * 2); in occ_setup_sensor_attrs()
760 sensors->freq.num_sensors = 0; in occ_setup_sensor_attrs()
768 num_attrs += (sensors->power.num_sensors * 4); in occ_setup_sensor_attrs()
771 num_attrs += (sensors->power.num_sensors * 16); in occ_setup_sensor_attrs()
775 sensors->power.num_sensors = 0; in occ_setup_sensor_attrs()
780 num_attrs += (sensors->caps.num_sensors * 7); in occ_setup_sensor_attrs()
786 num_attrs += (sensors->caps.num_sensors * 8); in occ_setup_sensor_attrs()
[all …]
Dcommon.h33 u8 num_sensors; member
65 u8 num_sensors; member
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/
Dsensors.c23 __le16 num_sensors; member
83 int num_sensors; member
106 si->num_sensors = le16_to_cpu(attr->num_sensors); in scmi_sensor_attributes_get()
144 if (desc_index + num_returned > si->num_sensors) { in scmi_sensor_description_get()
146 si->num_sensors); in scmi_sensor_description_get()
277 return si->num_sensors; in scmi_sensor_count_get()
350 sinfo->sensors = devm_kcalloc(handle->dev, sinfo->num_sensors, in scmi_sensors_protocol_init()
361 sinfo->num_sensors); in scmi_sensors_protocol_init()
/kernel/linux/linux-5.10/drivers/hwmon/
Dibmpex.c89 unsigned char num_sensors; member
227 for (i = 0; i < data->num_sensors; i++) { in ibmpex_update_device()
373 data->num_sensors = err; in ibmpex_find_sensors()
375 data->sensors = kcalloc(data->num_sensors, sizeof(*data->sensors), in ibmpex_find_sensors()
380 for (i = 0; i < data->num_sensors; i++) { in ibmpex_find_sensors()
429 for (i = 0; i < data->num_sensors; i++) in ibmpex_find_sensors()
520 for (i = 0; i < data->num_sensors; i++) in ibmpex_bmc_delete()
Dacpi_power_meter.c90 int num_sensors; member
626 &resource->sensors[resource->num_sensors]; in register_attrs()
647 resource->num_sensors++; in register_attrs()
659 for (i = 0; i < resource->num_sensors; i++) { in remove_attrs()
668 resource->num_sensors = 0; in remove_attrs()
Dtmp401.c182 int num_sensors = data->kind == tmp432 ? 3 : 2; in tmp401_update_device_reg16() local
184 for (i = 0; i < num_sensors; i++) { /* local / r1 / r2 */ in tmp401_update_device_reg16()
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dmedia-dev.c401 int index = fmd->num_sensors; in fimc_md_parse_one_endpoint()
476 fmd->num_sensors++; in fimc_md_parse_one_endpoint()
516 fmd->num_sensors = 0; in fimc_md_register_sensor_entities()
964 for (i = 0; i < fmd->num_sensors; i++) { in fimc_md_create_links()
1397 subdev->name, fmd->num_sensors); in subdev_notifier_bound()
1399 fmd->num_sensors++; in subdev_notifier_bound()
1504 if (fmd->num_sensors > 0) { in fimc_md_probe()
1506 fmd->num_sensors = 0; in fimc_md_probe()
Dmedia-dev.h117 int num_sensors; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
De1000_82575.c2784 u8 num_sensors; in igb_get_thermal_sensor_data_generic() local
2805 num_sensors = (ets_cfg & NVM_ETS_NUM_SENSORS_MASK); in igb_get_thermal_sensor_data_generic()
2806 if (num_sensors > E1000_MAX_SENSORS) in igb_get_thermal_sensor_data_generic()
2807 num_sensors = E1000_MAX_SENSORS; in igb_get_thermal_sensor_data_generic()
2809 for (i = 1; i < num_sensors; i++) { in igb_get_thermal_sensor_data_generic()
2838 u8 num_sensors; in igb_init_thermal_sensor_thresh_generic() local
2868 num_sensors = (ets_cfg & NVM_ETS_NUM_SENSORS_MASK); in igb_init_thermal_sensor_thresh_generic()
2870 for (i = 1; i <= num_sensors; i++) { in igb_init_thermal_sensor_thresh_generic()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.c3910 u8 num_sensors; in ixgbe_get_thermal_sensor_data_generic() local
3922 num_sensors = (ets_cfg & IXGBE_ETS_NUM_SENSORS_MASK); in ixgbe_get_thermal_sensor_data_generic()
3923 if (num_sensors > IXGBE_MAX_SENSORS) in ixgbe_get_thermal_sensor_data_generic()
3924 num_sensors = IXGBE_MAX_SENSORS; in ixgbe_get_thermal_sensor_data_generic()
3926 for (i = 0; i < num_sensors; i++) { in ixgbe_get_thermal_sensor_data_generic()
3967 u8 num_sensors; in ixgbe_init_thermal_sensor_thresh_generic() local
3984 num_sensors = (ets_cfg & IXGBE_ETS_NUM_SENSORS_MASK); in ixgbe_init_thermal_sensor_thresh_generic()
3985 if (num_sensors > IXGBE_MAX_SENSORS) in ixgbe_init_thermal_sensor_thresh_generic()
3986 num_sensors = IXGBE_MAX_SENSORS; in ixgbe_init_thermal_sensor_thresh_generic()
3988 for (i = 0; i < num_sensors; i++) { in ixgbe_init_thermal_sensor_thresh_generic()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0033_linux_drivers_soc_scsi_spi_tee_thermal.patch4624 u32 num_sensors;
D0036_linux_drivers_staging.patch43604 + int num_sensors;
43750 + int num_subdevs = mxc_md->num_sensors;
43793 + int num_sensors = mxc_md->num_sensors;
43961 + for (i = 0; i < num_sensors; i++) {
44452 + mxc_md->num_sensors = 0;
44463 + mxc_md->num_sensors++;
44523 + mxc_md->num_sensors++;
44577 + if (mxc_md->num_sensors > 0) {