Home
last modified time | relevance | path

Searched refs:pwm_dev (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/drivers/input/misc/
H A Dmax77693-haptic.c56 struct pwm_device *pwm_dev; member
75 pwm_get_args(haptic->pwm_dev, &pargs); in max77693_haptic_set_duty_cycle()
77 error = pwm_config(haptic->pwm_dev, delta, pargs.period); in max77693_haptic_set_duty_cycle()
174 error = pwm_enable(haptic->pwm_dev); in max77693_haptic_enable()
196 pwm_disable(haptic->pwm_dev); in max77693_haptic_enable()
214 pwm_disable(haptic->pwm_dev); in max77693_haptic_disable()
257 pwm_get_args(haptic->pwm_dev, &pargs); in max77693_haptic_play_effect()
337 haptic->pwm_dev = devm_pwm_get(&pdev->dev, NULL); in max77693_haptic_probe()
338 if (IS_ERR(haptic->pwm_dev)) { in max77693_haptic_probe()
340 return PTR_ERR(haptic->pwm_dev); in max77693_haptic_probe()
[all …]
H A Dda7280.c231 struct pwm_device *pwm_dev; member
335 pwm_get_state(haptics->pwm_dev, &state); in da7280_haptic_set_pwm()
354 error = pwm_apply_might_sleep(haptics->pwm_dev, &state); in da7280_haptic_set_pwm()
1165 haptics->pwm_dev = devm_pwm_get(dev, NULL); in da7280_probe()
1166 error = PTR_ERR_OR_ZERO(haptics->pwm_dev); in da7280_probe()
1175 pwm_init_state(haptics->pwm_dev, &state); in da7280_probe()
1177 error = pwm_apply_might_sleep(haptics->pwm_dev, &state); in da7280_probe()
/linux-6.15/drivers/pwm/
H A Dcore.c1041 struct device pwm_dev; member
1054 return container_of(pwm_dev, struct pwm_export, pwm_dev); in pwmexport_from_dev()
1286 export->pwm_dev.devt = MKDEV(0, 0); in pwm_export_child()
1287 export->pwm_dev.groups = pwm_groups; in pwm_export_child()
1293 put_device(&export->pwm_dev); in pwm_export_child()
1312 struct device *pwm_dev; in pwm_unexport_child() local
1319 if (!pwm_dev) in pwm_unexport_child()
1328 put_device(pwm_dev); in pwm_unexport_child()
1329 device_unregister(pwm_dev); in pwm_unexport_child()
1406 struct device *pwm_dev; in pwm_class_get_state() local
[all …]
H A Dpwm-ntxec.c82 static int ntxec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm_dev, in ntxec_pwm_apply() argument