Lines Matching defs:pwm
11 #include <linux/pwm.h>
21 struct pwm_device *pwm;
35 pwm_enable(ir_rx51->pwm);
40 pwm_disable(ir_rx51->pwm);
45 struct pwm_device *pwm = ir_rx51->pwm;
50 pwm_config(pwm, duty, period);
149 ir_rx51->pwm = pwm_get(ir_rx51->dev, NULL);
150 if (IS_ERR(ir_rx51->pwm)) {
151 int res = PTR_ERR(ir_rx51->pwm);
166 pwm_put(ir_rx51->pwm);
231 struct pwm_device *pwm;
234 pwm = pwm_get(&dev->dev, NULL);
235 if (IS_ERR(pwm)) {
236 int err = PTR_ERR(pwm);
244 ir_rx51.freq = DIV_ROUND_CLOSEST_ULL(pwm_get_period(pwm), NSEC_PER_SEC);
245 pwm_put(pwm);