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