Home
last modified time | relevance | path

Searched refs:vibrator (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/drivers/input/misc/
H A Dpwm-vibra.c3 * PWM vibrator driver
38 static int pwm_vibrator_start(struct pwm_vibrator *vibrator) in pwm_vibrator_start() argument
40 struct device *pdev = vibrator->input->dev.parent; in pwm_vibrator_start()
44 if (!vibrator->vcc_on) { in pwm_vibrator_start()
45 err = regulator_enable(vibrator->vcc); in pwm_vibrator_start()
50 vibrator->vcc_on = true; in pwm_vibrator_start()
53 gpiod_set_value_cansleep(vibrator->enable_gpio, 1); in pwm_vibrator_start()
55 pwm_get_state(vibrator->pwm, &state); in pwm_vibrator_start()
56 pwm_set_relative_duty_cycle(&state, vibrator->level, 0xffff); in pwm_vibrator_start()
59 err = pwm_apply_state(vibrator in pwm_vibrator_start()
81 pwm_vibrator_stop(struct pwm_vibrator *vibrator) pwm_vibrator_stop() argument
97 struct pwm_vibrator *vibrator = container_of(work, pwm_vibrator_play_work() local
109 struct pwm_vibrator *vibrator = input_get_drvdata(dev); pwm_vibrator_play_effect() local
122 struct pwm_vibrator *vibrator = input_get_drvdata(input); pwm_vibrator_close() local
130 struct pwm_vibrator *vibrator; pwm_vibrator_probe() local
231 struct pwm_vibrator *vibrator = dev_get_drvdata(dev); pwm_vibrator_suspend() local
242 struct pwm_vibrator *vibrator = dev_get_drvdata(dev); pwm_vibrator_resume() local
[all...]
H A Dgpio-vibra.c3 * GPIO vibrator driver
7 * Based on PWM vibrator driver:
37 static int gpio_vibrator_start(struct gpio_vibrator *vibrator) in gpio_vibrator_start() argument
39 struct device *pdev = vibrator->input->dev.parent; in gpio_vibrator_start()
42 if (!vibrator->vcc_on) { in gpio_vibrator_start()
43 err = regulator_enable(vibrator->vcc); in gpio_vibrator_start()
48 vibrator->vcc_on = true; in gpio_vibrator_start()
51 gpiod_set_value_cansleep(vibrator->gpio, 1); in gpio_vibrator_start()
56 static void gpio_vibrator_stop(struct gpio_vibrator *vibrator) in gpio_vibrator_stop() argument
58 gpiod_set_value_cansleep(vibrator in gpio_vibrator_stop()
68 struct gpio_vibrator *vibrator = gpio_vibrator_play_work() local
80 struct gpio_vibrator *vibrator = input_get_drvdata(dev); gpio_vibrator_play_effect() local
95 struct gpio_vibrator *vibrator = input_get_drvdata(input); gpio_vibrator_close() local
104 struct gpio_vibrator *vibrator; gpio_vibrator_probe() local
155 struct gpio_vibrator *vibrator = platform_get_drvdata(pdev); gpio_vibrator_suspend() local
167 struct gpio_vibrator *vibrator = platform_get_drvdata(pdev); gpio_vibrator_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/input/misc/
H A Dpwm-vibra.c3 * PWM vibrator driver
36 static int pwm_vibrator_start(struct pwm_vibrator *vibrator) in pwm_vibrator_start() argument
38 struct device *pdev = vibrator->input->dev.parent; in pwm_vibrator_start()
42 if (!vibrator->vcc_on) { in pwm_vibrator_start()
43 err = regulator_enable(vibrator->vcc); in pwm_vibrator_start()
48 vibrator->vcc_on = true; in pwm_vibrator_start()
51 pwm_get_state(vibrator->pwm, &state); in pwm_vibrator_start()
52 pwm_set_relative_duty_cycle(&state, vibrator->level, 0xffff); in pwm_vibrator_start()
55 err = pwm_apply_state(vibrator->pwm, &state); in pwm_vibrator_start()
61 if (vibrator in pwm_vibrator_start()
77 pwm_vibrator_stop(struct pwm_vibrator *vibrator) pwm_vibrator_stop() argument
91 struct pwm_vibrator *vibrator = container_of(work, pwm_vibrator_play_work() local
103 struct pwm_vibrator *vibrator = input_get_drvdata(dev); pwm_vibrator_play_effect() local
116 struct pwm_vibrator *vibrator = input_get_drvdata(input); pwm_vibrator_close() local
124 struct pwm_vibrator *vibrator; pwm_vibrator_probe() local
227 struct pwm_vibrator *vibrator = dev_get_drvdata(dev); pwm_vibrator_suspend() local
238 struct pwm_vibrator *vibrator = dev_get_drvdata(dev); pwm_vibrator_resume() local
[all...]
H A Dgpio-vibra.c3 * GPIO vibrator driver
7 * Based on PWM vibrator driver:
37 static int gpio_vibrator_start(struct gpio_vibrator *vibrator) in gpio_vibrator_start() argument
39 struct device *pdev = vibrator->input->dev.parent; in gpio_vibrator_start()
42 if (!vibrator->vcc_on) { in gpio_vibrator_start()
43 err = regulator_enable(vibrator->vcc); in gpio_vibrator_start()
48 vibrator->vcc_on = true; in gpio_vibrator_start()
51 gpiod_set_value_cansleep(vibrator->gpio, 1); in gpio_vibrator_start()
56 static void gpio_vibrator_stop(struct gpio_vibrator *vibrator) in gpio_vibrator_stop() argument
58 gpiod_set_value_cansleep(vibrator in gpio_vibrator_stop()
68 struct gpio_vibrator *vibrator = gpio_vibrator_play_work() local
80 struct gpio_vibrator *vibrator = input_get_drvdata(dev); gpio_vibrator_play_effect() local
95 struct gpio_vibrator *vibrator = input_get_drvdata(input); gpio_vibrator_close() local
104 struct gpio_vibrator *vibrator; gpio_vibrator_probe() local
163 struct gpio_vibrator *vibrator = platform_get_drvdata(pdev); gpio_vibrator_suspend() local
175 struct gpio_vibrator *vibrator = platform_get_drvdata(pdev); gpio_vibrator_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/staging/greybus/
H A DMakefile16 gb-vibrator-y := vibrator.o
27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
H A Dvibrator.c21 int minor; /* vibrator minor number */
106 ATTRIBUTE_GROUPS(vibrator); variable
109 .name = "vibrator",
153 * For now we create a device in sysfs for the vibrator, but odds are in gb_vibrator_probe()
163 MKDEV(0, 0), vib, "vibrator%d", vib->minor); in gb_vibrator_probe()
214 .name = "vibrator",
/kernel/linux/linux-6.6/drivers/staging/greybus/
H A DMakefile16 gb-vibrator-y := vibrator.o
27 obj-$(CONFIG_GREYBUS_VIBRATOR) += gb-vibrator.o
H A Dvibrator.c21 int minor; /* vibrator minor number */
106 ATTRIBUTE_GROUPS(vibrator); variable
109 .name = "vibrator",
152 * For now we create a device in sysfs for the vibrator, but odds are in gb_vibrator_probe()
162 MKDEV(0, 0), vib, "vibrator%d", vib->minor); in gb_vibrator_probe()
213 .name = "vibrator",

Completed in 3 milliseconds