Searched refs:pwm_duty (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/input/misc/
H A Dmax77693-haptic.c59 unsigned int pwm_duty; member in struct:max77693_haptic
69 int delta = (haptic->pwm_dev->period + haptic->pwm_duty) / 2; max77693_haptic_set_duty_cycle()
205 * The formula to convert magnitude to pwm_duty as follows: max77693_haptic_play_effect()
206 * - pwm_duty = (magnitude * pwm_period) / MAX_MAGNITUDE(0xFFFF) max77693_haptic_play_effect()
209 haptic->pwm_duty = (unsigned int)(period_mag_multi >> max77693_haptic_play_effect()
H A Dmax77843-haptic.c50 unsigned int pwm_duty; member in struct:max77843_haptic
61 int delta = (haptic->pwm_dev->period + haptic->pwm_duty) / 2; max77843_haptic_set_duty_cycle()
201 haptic->pwm_duty = (unsigned int)(period_mag_multi >> max77843_haptic_play_effect()
/linux-4.1.27/drivers/hwmon/
H A Dit87.c468 u8 pwm_duty[3]; /* Manual PWM value set by user */ member in struct:it87_data
875 pwm_from_reg(data, data->pwm_duty[nr])); show_pwm()
1042 data->pwm_duty[nr]; set_pwm_enable()
1080 data->pwm_duty[nr] = pwm_to_reg(data, val); set_pwm()
1082 data->pwm_duty[nr]); set_pwm()
1084 data->pwm_duty[nr] = pwm_to_reg(data, val); set_pwm()
1090 data->pwm_ctrl[nr] = data->pwm_duty[nr]; set_pwm()
2532 data->pwm_duty[i] = 0x7f; /* Full speed */ it87_init_device()
2615 data->pwm_duty[nr] = it87_read_value(data, it87_update_pwm_ctrl()
2621 data->pwm_duty[nr] = data->pwm_ctrl[nr] & 0x7f; it87_update_pwm_ctrl()

Completed in 241 milliseconds