/Linux-v4.19/drivers/thermal/qcom/ |
D | tsens.c | 92 u32 *hw_id, n = tmdev->num_sensors; in tsens_register() 98 for (i = 0; i < tmdev->num_sensors; i++) { in tsens_register() 121 u32 num_sensors; in tsens_probe() local 136 num_sensors = data->num_sensors; in tsens_probe() 139 of_property_read_u32(np, "#qcom,sensors", &num_sensors); in tsens_probe() 141 if (num_sensors <= 0) { in tsens_probe() 147 struct_size(tmdev, sensor, num_sensors), in tsens_probe() 153 tmdev->num_sensors = num_sensors; in tsens_probe() 155 for (i = 0; i < tmdev->num_sensors; i++) { in tsens_probe()
|
D | tsens-8960.c | 82 if (tmdev->num_sensors > 1) in suspend_8960() 107 if (tmdev->num_sensors > 1) { in resume_8960() 138 if (tmdev->num_sensors > 1) in enable_8960() 156 mask = GENMASK(tmdev->num_sensors - 1, 0); in disable_8960() 166 if (tmdev->num_sensors > 1) in disable_8960() 189 for (i = 0; i < tmdev->num_sensors; i++) { in init_8960() 200 if (tmdev->num_sensors > 1) { in init_8960() 211 reg_cntl |= GENMASK(tmdev->num_sensors - 1, 0) << SENSOR0_SHIFT; in init_8960() 229 ssize_t num_read = tmdev->num_sensors; in calibrate_8960() 290 .num_sensors = 11,
|
D | tsens-8916.c | 77 for (i = 0; i < tmdev->num_sensors; i++) in calibrate_8916() 87 for (i = 0; i < tmdev->num_sensors; i++) in calibrate_8916() 91 for (i = 0; i < tmdev->num_sensors; i++) { in calibrate_8916() 110 .num_sensors = 5,
|
D | tsens-8974.c | 196 for (i = 0; i < tmdev->num_sensors; i++) in calibrate_8974() 200 for (i = 0; i < tmdev->num_sensors; i++) { in calibrate_8974() 207 for (i = 0; i < tmdev->num_sensors; i++) { in calibrate_8974() 214 for (i = 0; i < tmdev->num_sensors; i++) in calibrate_8974() 242 .num_sensors = 11,
|
D | tsens.h | 65 const u32 num_sensors; member 78 u32 num_sensors; member
|
D | tsens-v2.c | 75 .num_sensors = 13,
|
D | tsens-common.c | 60 for (i = 0; i < tmdev->num_sensors; i++) { in compute_intercept_slope()
|
/Linux-v4.19/drivers/thermal/ |
D | mtk_thermal.c | 165 unsigned int num_sensors; member 176 s32 num_sensors; member 273 .num_sensors = MT8173_NUM_SENSORS, 276 .num_sensors = 2, 279 .num_sensors = 2, 282 .num_sensors = 3, 285 .num_sensors = 1, 307 .num_sensors = MT2701_NUM_SENSORS, 310 .num_sensors = 3, 332 .num_sensors = MT2712_NUM_SENSORS, [all …]
|
/Linux-v4.19/drivers/firmware/arm_scmi/ |
D | sensors.c | 18 __le16 num_sensors; member 68 int num_sensors; member 91 si->num_sensors = le16_to_cpu(attr->num_sensors); in scmi_sensor_attributes_get() 129 if (desc_index + num_returned > si->num_sensors) { in scmi_sensor_description_get() 131 si->num_sensors); in scmi_sensor_description_get() 246 return si->num_sensors; in scmi_sensor_count_get() 273 sinfo->sensors = devm_kcalloc(handle->dev, sinfo->num_sensors, in scmi_sensors_protocol_init()
|
/Linux-v4.19/drivers/hwmon/ |
D | ibmpex.c | 102 unsigned char num_sensors; member 240 for (i = 0; i < data->num_sensors; i++) { in ibmpex_update_device() 388 data->num_sensors = err; in ibmpex_find_sensors() 390 data->sensors = kcalloc(data->num_sensors, sizeof(*data->sensors), in ibmpex_find_sensors() 395 for (i = 0; i < data->num_sensors; i++) { in ibmpex_find_sensors() 444 for (i = 0; i < data->num_sensors; i++) in ibmpex_find_sensors() 534 for (i = 0; i < data->num_sensors; i++) in ibmpex_bmc_delete()
|
D | acpi_power_meter.c | 103 int num_sensors; member 636 &resource->sensors[resource->num_sensors]; in register_attrs() 657 resource->num_sensors++; in register_attrs() 669 for (i = 0; i < resource->num_sensors; i++) { in remove_attrs() 678 resource->num_sensors = 0; in remove_attrs()
|
D | tmp401.c | 195 int num_sensors = data->kind == tmp432 ? 3 : 2; in tmp401_update_device_reg16() local 197 for (i = 0; i < num_sensors; i++) { /* local / r1 / r2 */ in tmp401_update_device_reg16()
|
/Linux-v4.19/drivers/media/platform/exynos4-is/ |
D | media-dev.c | 462 fmd->num_sensors++; in fimc_md_parse_port_node() 487 fmd->num_sensors = 0; in fimc_md_register_sensor_entities() 927 for (i = 0; i < fmd->num_sensors; i++) { in fimc_md_create_links() 1382 subdev->name, fmd->num_sensors); in subdev_notifier_bound() 1384 fmd->num_sensors++; in subdev_notifier_bound() 1485 if (fmd->num_sensors > 0) { in fimc_md_probe() 1487 fmd->subdev_notifier.num_subdevs = fmd->num_sensors; in fimc_md_probe() 1489 fmd->num_sensors = 0; in fimc_md_probe()
|
D | media-dev.h | 125 int num_sensors; member
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | e1000_82575.c | 2788 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()
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_common.c | 3911 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()
|