Lines Matching refs:pwm_ctrl
557 u8 pwm_ctrl[NUM_PWM]; /* Register value */ member
689 data->pwm_ctrl[nr] = it87_read_value(data, IT87_REG_PWM[nr]); in it87_update_pwm_ctrl()
691 data->pwm_temp_map[nr] = data->pwm_ctrl[nr] & 0x03; in it87_update_pwm_ctrl()
695 if (data->pwm_ctrl[nr] & 0x80) /* Automatic mode */ in it87_update_pwm_ctrl()
696 data->pwm_temp_map[nr] = data->pwm_ctrl[nr] & 0x03; in it87_update_pwm_ctrl()
698 data->pwm_duty[nr] = data->pwm_ctrl[nr] & 0x7f; in it87_update_pwm_ctrl()
1100 if (data->pwm_ctrl[nr] & 0x80) in pwm_mode()
1333 ctrl = (data->pwm_ctrl[nr] & 0x7c) | in set_pwm_enable()
1338 data->pwm_ctrl[nr] = ctrl; in set_pwm_enable()
1345 ctrl = (data->pwm_ctrl[nr] & 0x7c) | in set_pwm_enable()
1352 data->pwm_ctrl[nr] = ctrl; in set_pwm_enable()
1385 if (data->pwm_ctrl[nr] & 0x80) { in set_pwm()
1398 if (!(data->pwm_ctrl[nr] & 0x80)) { in set_pwm()
1399 data->pwm_ctrl[nr] = data->pwm_duty[nr]; in set_pwm()
1401 data->pwm_ctrl[nr]); in set_pwm()
1498 if (data->pwm_ctrl[nr] & 0x80) { in set_pwm_temp_map()
1499 data->pwm_ctrl[nr] = (data->pwm_ctrl[nr] & 0xfc) | in set_pwm_temp_map()
1501 it87_write_value(data, IT87_REG_PWM[nr], data->pwm_ctrl[nr]); in set_pwm_temp_map()