Lines Matching refs:value
47 s32 value; /* current value */
53 static int smu_set_fan(int pwm, u8 id, u16 value)
73 *((u16 *)(&buffer[2])) = value;
82 *((u16 *)&buffer[2 + id * 2]) = value;
115 static int smu_fan_set(struct wf_control *ct, s32 value)
119 if (value < fct->min)
120 value = fct->min;
121 if (value > fct->max)
122 value = fct->max;
123 fct->value = value;
125 return smu_set_fan(fct->fan_type, fct->reg, value);
128 static int smu_fan_get(struct wf_control *ct, s32 *value)
131 *value = fct->value; /* todo: read from SMU */
231 v = of_get_property(node, "min-value", NULL);
235 v = of_get_property(node, "max-value", NULL);
240 /* Get "reg" value */