Lines Matching +full:pwm +full:- +full:number

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
11 #define NUM_TEMP 12 /* Max number of temp attribute sets w/ limits*/
12 #define NUM_TEMP_FIXED 6 /* Max number of fixed temp attribute sets */
13 #define NUM_TSI_TEMP 8 /* Max number of TSI temp register pairs */
15 #define NUM_REG_ALARM 7 /* Max number of alarm registers */
16 #define NUM_REG_BEEP 5 /* Max number of beep registers */
63 const u16 *REG_PWM[7]; /* [0]=pwm, [1]=pwm_start, [2]=pwm_floor,
100 u8 in_num; /* number of in inputs we have */
124 u8 pwm_num; /* number of pwm */
125 u8 pwm_mode[NUM_FAN]; /* 0->DC variable voltage,
126 * 1->PWM variable duty cycle
129 /* 0->off
130 * 1->manual
131 * 2->thermal cruise mode (also called SmartFan I)
132 * 3->fan speed cruise mode
133 * 4->SmartFan III
134 * 5->enhanced variable thermal cruise (SmartFan IV)
136 u8 pwm[7][NUM_FAN]; /* [0]=pwm, [1]=pwm_start, [2]=pwm_floor, member
158 u8 weight_temp[3][NUM_FAN]; /* 0->temp_step, 1->temp_step_tol,
159 * 2->temp_base
181 /* driver-specific (platform, i2c) initialization hook and data */
189 int ret = regmap_read(data->regmap, reg, &tmp); in nct6775_read_value()
198 return regmap_write(data->regmap, reg, value); in nct6775_write_value()
221 return data->read_only ? (attr->mode & ~0222) : attr->mode; in nct6775_attr_mode()
227 /* Need to leave a NULL terminator at the end of data->groups */ in nct6775_add_attr_group()
228 if (data->num_groups == ARRAY_SIZE(data->groups) - 1) in nct6775_add_attr_group()
229 return -ENOBUFS; in nct6775_add_attr_group()
231 data->groups[data->num_groups++] = group; in nct6775_add_attr_group()
244 * ALARM_BITS and BEEP_BITS store bit-index for the mask of the registers
245 * loaded into data->alarm and data->beep.
249 * Set value to -1 to disable the visibility of that '*_alarm' attribute and