Home
last modified time | relevance | path

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

/drivers/thermal/qcom/
Dtsens.c87 for (i = 0; i < priv->num_sensors; i++) { in tsens_register()
110 u32 num_sensors; in tsens_probe() local
125 num_sensors = data->num_sensors; in tsens_probe()
128 of_property_read_u32(np, "#qcom,sensors", &num_sensors); in tsens_probe()
130 if (num_sensors <= 0) { in tsens_probe()
136 struct_size(priv, sensor, num_sensors), in tsens_probe()
142 priv->num_sensors = num_sensors; in tsens_probe()
144 for (i = 0; i < priv->num_sensors; i++) { in tsens_probe()
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.c164 for (i = 0; i < priv->num_sensors; i++) in calibrate_8916()
174 for (i = 0; i < priv->num_sensors; i++) in calibrate_8916()
178 for (i = 0; i < priv->num_sensors; i++) { in calibrate_8916()
287 for (i = 0; i < priv->num_sensors; i++) in calibrate_8974()
291 for (i = 0; i < priv->num_sensors; i++) { in calibrate_8974()
298 for (i = 0; i < priv->num_sensors; i++) { in calibrate_8974()
305 for (i = 0; i < priv->num_sensors; i++) in calibrate_8974()
370 .num_sensors = 5,
385 .num_sensors = 11,
Dtsens-v1.c114 for (i = 0; i < priv->num_sensors; i++) in calibrate_v1()
129 for (i = 0; i < priv->num_sensors; i++) in calibrate_v1()
133 for (i = 0; i < priv->num_sensors; i++) { in calibrate_v1()
Dtsens.h270 const u32 num_sensors; member
302 u32 num_sensors; member
Dtsens-v2.c79 .num_sensors = 13,
Dtsens-common.c43 for (i = 0; i < priv->num_sensors; i++) { in compute_intercept_slope()
/drivers/thermal/
Dmtk_thermal.c226 unsigned int num_sensors; member
237 s32 num_sensors; member
377 .num_sensors = MT8173_NUM_SENSORS,
385 .num_sensors = 2,
388 .num_sensors = 2,
391 .num_sensors = 3,
394 .num_sensors = 1,
416 .num_sensors = MT2701_NUM_SENSORS,
424 .num_sensors = 3,
446 .num_sensors = MT2712_NUM_SENSORS,
[all …]
/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
/drivers/firmware/arm_scmi/
Dsensors.c18 __le16 num_sensors; member
71 int num_sensors; member
94 si->num_sensors = le16_to_cpu(attr->num_sensors); in scmi_sensor_attributes_get()
132 if (desc_index + num_returned > si->num_sensors) { in scmi_sensor_description_get()
134 si->num_sensors); in scmi_sensor_description_get()
263 return si->num_sensors; in scmi_sensor_count_get()
290 sinfo->sensors = devm_kcalloc(handle->dev, sinfo->num_sensors, in scmi_sensors_protocol_init()
/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()
519 for (i = 0; i < data->num_sensors; i++) in ibmpex_bmc_delete()
Dacpi_power_meter.c90 int num_sensors; member
623 &resource->sensors[resource->num_sensors]; in register_attrs()
644 resource->num_sensors++; in register_attrs()
656 for (i = 0; i < resource->num_sensors; i++) { in remove_attrs()
665 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()
/drivers/media/platform/exynos4-is/
Dmedia-dev.c465 fmd->num_sensors++; in fimc_md_parse_port_node()
490 fmd->num_sensors = 0; in fimc_md_register_sensor_entities()
940 for (i = 0; i < fmd->num_sensors; i++) { in fimc_md_create_links()
1395 subdev->name, fmd->num_sensors); in subdev_notifier_bound()
1397 fmd->num_sensors++; in subdev_notifier_bound()
1500 if (fmd->num_sensors > 0) { in fimc_md_probe()
1502 fmd->num_sensors = 0; in fimc_md_probe()
Dmedia-dev.h122 int num_sensors; member
/drivers/net/ethernet/intel/igb/
De1000_82575.c2788 u8 num_sensors; in igb_get_thermal_sensor_data_generic() local
2809 num_sensors = (ets_cfg & NVM_ETS_NUM_SENSORS_MASK); in igb_get_thermal_sensor_data_generic()
2810 if (num_sensors > E1000_MAX_SENSORS) in igb_get_thermal_sensor_data_generic()
2811 num_sensors = E1000_MAX_SENSORS; in igb_get_thermal_sensor_data_generic()
2813 for (i = 1; i < num_sensors; i++) { in igb_get_thermal_sensor_data_generic()
2842 u8 num_sensors; in igb_init_thermal_sensor_thresh_generic() local
2872 num_sensors = (ets_cfg & NVM_ETS_NUM_SENSORS_MASK); in igb_init_thermal_sensor_thresh_generic()
2874 for (i = 1; i <= num_sensors; i++) { in igb_init_thermal_sensor_thresh_generic()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.c3911 u8 num_sensors; in ixgbe_get_thermal_sensor_data_generic() local
3923 num_sensors = (ets_cfg & IXGBE_ETS_NUM_SENSORS_MASK); in ixgbe_get_thermal_sensor_data_generic()
3924 if (num_sensors > IXGBE_MAX_SENSORS) in ixgbe_get_thermal_sensor_data_generic()
3925 num_sensors = IXGBE_MAX_SENSORS; in ixgbe_get_thermal_sensor_data_generic()
3927 for (i = 0; i < num_sensors; i++) { in ixgbe_get_thermal_sensor_data_generic()
3968 u8 num_sensors; in ixgbe_init_thermal_sensor_thresh_generic() local
3985 num_sensors = (ets_cfg & IXGBE_ETS_NUM_SENSORS_MASK); in ixgbe_init_thermal_sensor_thresh_generic()
3986 if (num_sensors > IXGBE_MAX_SENSORS) in ixgbe_init_thermal_sensor_thresh_generic()
3987 num_sensors = IXGBE_MAX_SENSORS; in ixgbe_init_thermal_sensor_thresh_generic()
3989 for (i = 0; i < num_sensors; i++) { in ixgbe_init_thermal_sensor_thresh_generic()