Lines Matching defs:channel
754 static umode_t aqc_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel)
760 if (channel < priv->num_temp_sensors) {
774 if (channel <
786 if (priv->fan_ctrl_offsets && channel < priv->num_fans) {
805 if (channel < 4)
812 if (channel < 3)
817 if (channel < 5)
823 if (channel < priv->num_fans + priv->num_flow_sensors)
827 if (channel < priv->num_fans)
834 if (priv->kind == quadro && channel == priv->num_fans)
841 if (priv->kind == leakshield && channel == 0)
852 if (channel < 2)
857 if (channel == 0)
863 if (channel < priv->num_fans)
872 if (channel < 2)
877 if (channel == 0)
881 if (channel < priv->num_fans)
890 if (channel < priv->num_fans + 2)
896 if (channel < 2)
900 if (channel < priv->num_fans)
977 int channel, long *val)
997 if (priv->temp_input[channel] == -ENODATA)
1000 *val = priv->temp_input[channel];
1005 channel * AQC_SENSOR_SIZE, val, AQC_BE16);
1018 if (priv->speed_input[channel] == -ENODATA)
1021 *val = priv->speed_input[channel];
1024 *val = priv->speed_input_min[channel];
1027 *val = priv->speed_input_max[channel];
1030 *val = priv->speed_input_target[channel];
1043 *val = priv->power_input[channel];
1049 AQUAERO_CTRL_PRESET_START + channel * AQUAERO_CTRL_PRESET_SIZE,
1056 ret = aqc_get_ctrl_val(priv, priv->fan_ctrl_offsets[channel],
1066 *val = priv->voltage_input[channel];
1069 *val = priv->current_input[channel];
1079 int channel, const char **str)
1088 if (channel < priv->num_temp_sensors) {
1089 *str = priv->temp_label[channel];
1091 if (priv->kind == aquaero && channel >= num_non_calc_sensors)
1093 priv->calc_virt_temp_label[channel - num_non_calc_sensors];
1095 *str = priv->virtual_temp_label[channel - priv->num_temp_sensors];
1099 *str = priv->speed_label[channel];
1102 *str = priv->power_label[channel];
1105 *str = priv->voltage_label[channel];
1108 *str = priv->current_label[channel];
1117 static int aqc_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel,
1135 channel * AQC_SENSOR_SIZE, val, AQC_BE16);
1165 /* Write pwm value to preset corresponding to the channel */
1167 channel * AQUAERO_CTRL_PRESET_SIZE;
1172 ctrl_values_offsets[1] = priv->fan_ctrl_offsets[channel] +
1174 ctrl_values[1] = AQUAERO_CTRL_PRESET_ID + channel;
1178 ctrl_values_offsets[2] = priv->fan_ctrl_offsets[channel] +
1184 ctrl_values_offsets[3] = priv->fan_ctrl_offsets[channel] +
1195 ret = aqc_set_ctrl_val(priv, priv->fan_ctrl_offsets[channel],