Lines Matching refs:ctrl_val
26 int ctrl_val; member
105 static void __set_fan_ctrl(struct gpio_fan_data *fan_data, int ctrl_val) in __set_fan_ctrl() argument
111 (ctrl_val >> i) & 1); in __set_fan_ctrl()
117 int ctrl_val = 0; in __get_fan_ctrl() local
123 ctrl_val |= (value << i); in __get_fan_ctrl()
125 return ctrl_val; in __get_fan_ctrl()
134 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed()
140 int ctrl_val = __get_fan_ctrl(fan_data); in get_fan_speed_index() local
144 if (fan_data->speed[i].ctrl_val == ctrl_val) in get_fan_speed_index()
148 "missing speed array entry for GPIO value 0x%x\n", ctrl_val); in get_fan_speed_index()
475 speed[i].ctrl_val = u; in gpio_fan_get_of_data()