Searched refs:pwm_dev (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/pwm/ |
D | pwm-berlin.c | 91 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm_dev, in berlin_pwm_config() argument 116 value = berlin_pwm_readl(pwm, pwm_dev->hwpwm, BERLIN_PWM_CONTROL); in berlin_pwm_config() 121 berlin_pwm_writel(pwm, pwm_dev->hwpwm, value, BERLIN_PWM_CONTROL); in berlin_pwm_config() 123 berlin_pwm_writel(pwm, pwm_dev->hwpwm, duty, BERLIN_PWM_DUTY); in berlin_pwm_config() 124 berlin_pwm_writel(pwm, pwm_dev->hwpwm, period, BERLIN_PWM_TCNT); in berlin_pwm_config() 130 struct pwm_device *pwm_dev, in berlin_pwm_set_polarity() argument 136 value = berlin_pwm_readl(pwm, pwm_dev->hwpwm, BERLIN_PWM_CONTROL); in berlin_pwm_set_polarity() 143 berlin_pwm_writel(pwm, pwm_dev->hwpwm, value, BERLIN_PWM_CONTROL); in berlin_pwm_set_polarity() 148 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm_dev) in berlin_pwm_enable() argument 153 value = berlin_pwm_readl(pwm, pwm_dev->hwpwm, BERLIN_PWM_EN); in berlin_pwm_enable() [all …]
|
/Linux-v4.19/drivers/input/misc/ |
D | max77693-haptic.c | 58 struct pwm_device *pwm_dev; member 77 pwm_get_args(haptic->pwm_dev, &pargs); in max77693_haptic_set_duty_cycle() 79 error = pwm_config(haptic->pwm_dev, delta, pargs.period); in max77693_haptic_set_duty_cycle() 169 error = pwm_enable(haptic->pwm_dev); in max77693_haptic_enable() 191 pwm_disable(haptic->pwm_dev); in max77693_haptic_enable() 209 pwm_disable(haptic->pwm_dev); in max77693_haptic_disable() 252 pwm_get_args(haptic->pwm_dev, &pargs); in max77693_haptic_play_effect() 331 haptic->pwm_dev = devm_pwm_get(&pdev->dev, NULL); in max77693_haptic_probe() 332 if (IS_ERR(haptic->pwm_dev)) { in max77693_haptic_probe() 334 return PTR_ERR(haptic->pwm_dev); in max77693_haptic_probe() [all …]
|