Lines Matching refs:value
48 s32 value; /* current value */ member
54 static int smu_set_fan(int pwm, u8 id, u16 value) in smu_set_fan() argument
74 *((u16 *)(&buffer[2])) = value; in smu_set_fan()
83 *((u16 *)&buffer[2 + id * 2]) = value; in smu_set_fan()
116 static int smu_fan_set(struct wf_control *ct, s32 value) in smu_fan_set() argument
120 if (value < fct->min) in smu_fan_set()
121 value = fct->min; in smu_fan_set()
122 if (value > fct->max) in smu_fan_set()
123 value = fct->max; in smu_fan_set()
124 fct->value = value; in smu_fan_set()
126 return smu_set_fan(fct->fan_type, fct->reg, value); in smu_fan_set()
129 static int smu_fan_get(struct wf_control *ct, s32 *value) in smu_fan_get() argument
132 *value = fct->value; /* todo: read from SMU */ in smu_fan_get()