Home
last modified time | relevance | path

Searched refs:haptic (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/input/misc/
H A Dmax77693-haptic.c67 static int max77693_haptic_set_duty_cycle(struct max77693_haptic *haptic) in max77693_haptic_set_duty_cycle() argument
73 pwm_get_args(haptic->pwm_dev, &pargs); in max77693_haptic_set_duty_cycle()
74 delta = (pargs.period + haptic->pwm_duty) / 2; in max77693_haptic_set_duty_cycle()
75 error = pwm_config(haptic->pwm_dev, delta, pargs.period); in max77693_haptic_set_duty_cycle()
77 dev_err(haptic->dev, "failed to configure pwm: %d\n", error); in max77693_haptic_set_duty_cycle()
84 static int max77843_haptic_bias(struct max77693_haptic *haptic, bool on) in max77843_haptic_bias() argument
88 if (haptic->dev_type != TYPE_MAX77843) in max77843_haptic_bias()
91 error = regmap_update_bits(haptic->regmap_haptic, in max77843_haptic_bias()
96 dev_err(haptic->dev, "failed to %s bias: %d\n", in max77843_haptic_bias()
104 static int max77693_haptic_configure(struct max77693_haptic *haptic, in max77693_haptic_configure() argument
139 max77693_haptic_lowsys(struct max77693_haptic *haptic, bool enable) max77693_haptic_lowsys() argument
158 max77693_haptic_enable(struct max77693_haptic *haptic) max77693_haptic_enable() argument
190 max77693_haptic_disable(struct max77693_haptic *haptic) max77693_haptic_disable() argument
216 struct max77693_haptic *haptic = max77693_haptic_play_work() local
235 struct max77693_haptic *haptic = input_get_drvdata(dev); max77693_haptic_play_effect() local
260 struct max77693_haptic *haptic = input_get_drvdata(dev); max77693_haptic_open() local
279 struct max77693_haptic *haptic = input_get_drvdata(dev); max77693_haptic_close() local
296 struct max77693_haptic *haptic; max77693_haptic_probe() local
381 struct max77693_haptic *haptic = platform_get_drvdata(pdev); max77693_haptic_suspend() local
394 struct max77693_haptic *haptic = platform_get_drvdata(pdev); max77693_haptic_resume() local
[all...]
H A Dregulator-haptic.c3 * Regulator haptic driver
13 #include <linux/platform_data/regulator-haptic.h>
36 static int regulator_haptic_toggle(struct regulator_haptic *haptic, bool on) in regulator_haptic_toggle() argument
40 if (haptic->active != on) { in regulator_haptic_toggle()
42 error = on ? regulator_enable(haptic->regulator) : in regulator_haptic_toggle()
43 regulator_disable(haptic->regulator); in regulator_haptic_toggle()
45 dev_err(haptic->dev, in regulator_haptic_toggle()
51 haptic->active = on; in regulator_haptic_toggle()
57 static int regulator_haptic_set_voltage(struct regulator_haptic *haptic, in regulator_haptic_set_voltage() argument
64 volt_mag_multi = (u64)(haptic in regulator_haptic_set_voltage()
83 struct regulator_haptic *haptic = container_of(work, regulator_haptic_work() local
97 struct regulator_haptic *haptic = input_get_drvdata(input); regulator_haptic_play_effect() local
110 struct regulator_haptic *haptic = input_get_drvdata(input); regulator_haptic_close() local
117 regulator_haptic_parse_dt(struct device *dev, struct regulator_haptic *haptic) regulator_haptic_parse_dt() argument
146 struct regulator_haptic *haptic; regulator_haptic_probe() local
207 struct regulator_haptic *haptic = platform_get_drvdata(pdev); regulator_haptic_suspend() local
226 struct regulator_haptic *haptic = platform_get_drvdata(pdev); regulator_haptic_resume() local
[all...]
H A Dmax8997_haptic.c3 * MAX8997-haptic controller driver
253 dev_err(&pdev->dev, "no haptic platform data\n"); in max8997_haptic_probe()
268 chip->client = iodev->haptic; in max8997_haptic_probe()
287 "max8997-haptic"); in max8997_haptic_probe()
291 "unable to request PWM for haptic, error: %d\n", in max8997_haptic_probe()
319 input_dev->name = "max8997-haptic"; in max8997_haptic_probe()
388 { "max8997-haptic", 0 },
395 .name = "max8997-haptic",
/kernel/linux/linux-6.6/drivers/input/misc/
H A Dmax77693-haptic.c67 static int max77693_haptic_set_duty_cycle(struct max77693_haptic *haptic) in max77693_haptic_set_duty_cycle() argument
73 pwm_get_args(haptic->pwm_dev, &pargs); in max77693_haptic_set_duty_cycle()
74 delta = (pargs.period + haptic->pwm_duty) / 2; in max77693_haptic_set_duty_cycle()
75 error = pwm_config(haptic->pwm_dev, delta, pargs.period); in max77693_haptic_set_duty_cycle()
77 dev_err(haptic->dev, "failed to configure pwm: %d\n", error); in max77693_haptic_set_duty_cycle()
84 static int max77843_haptic_bias(struct max77693_haptic *haptic, bool on) in max77843_haptic_bias() argument
88 if (haptic->dev_type != TYPE_MAX77843) in max77843_haptic_bias()
91 error = regmap_update_bits(haptic->regmap_haptic, in max77843_haptic_bias()
96 dev_err(haptic->dev, "failed to %s bias: %d\n", in max77843_haptic_bias()
104 static int max77693_haptic_configure(struct max77693_haptic *haptic, in max77693_haptic_configure() argument
139 max77693_haptic_lowsys(struct max77693_haptic *haptic, bool enable) max77693_haptic_lowsys() argument
158 max77693_haptic_enable(struct max77693_haptic *haptic) max77693_haptic_enable() argument
190 max77693_haptic_disable(struct max77693_haptic *haptic) max77693_haptic_disable() argument
216 struct max77693_haptic *haptic = max77693_haptic_play_work() local
235 struct max77693_haptic *haptic = input_get_drvdata(dev); max77693_haptic_play_effect() local
260 struct max77693_haptic *haptic = input_get_drvdata(dev); max77693_haptic_open() local
279 struct max77693_haptic *haptic = input_get_drvdata(dev); max77693_haptic_close() local
296 struct max77693_haptic *haptic; max77693_haptic_probe() local
381 struct max77693_haptic *haptic = platform_get_drvdata(pdev); max77693_haptic_suspend() local
394 struct max77693_haptic *haptic = platform_get_drvdata(pdev); max77693_haptic_resume() local
[all...]
H A Dregulator-haptic.c3 * Regulator haptic driver
13 #include <linux/platform_data/regulator-haptic.h>
36 static int regulator_haptic_toggle(struct regulator_haptic *haptic, bool on) in regulator_haptic_toggle() argument
40 if (haptic->active != on) { in regulator_haptic_toggle()
42 error = on ? regulator_enable(haptic->regulator) : in regulator_haptic_toggle()
43 regulator_disable(haptic->regulator); in regulator_haptic_toggle()
45 dev_err(haptic->dev, in regulator_haptic_toggle()
51 haptic->active = on; in regulator_haptic_toggle()
57 static int regulator_haptic_set_voltage(struct regulator_haptic *haptic, in regulator_haptic_set_voltage() argument
64 volt_mag_multi = (u64)(haptic in regulator_haptic_set_voltage()
83 struct regulator_haptic *haptic = container_of(work, regulator_haptic_work() local
97 struct regulator_haptic *haptic = input_get_drvdata(input); regulator_haptic_play_effect() local
110 struct regulator_haptic *haptic = input_get_drvdata(input); regulator_haptic_close() local
117 regulator_haptic_parse_dt(struct device *dev, struct regulator_haptic *haptic) regulator_haptic_parse_dt() argument
146 struct regulator_haptic *haptic; regulator_haptic_probe() local
207 struct regulator_haptic *haptic = platform_get_drvdata(pdev); regulator_haptic_suspend() local
226 struct regulator_haptic *haptic = platform_get_drvdata(pdev); regulator_haptic_resume() local
[all...]
H A Dmax8997_haptic.c3 * MAX8997-haptic controller driver
248 dev_err(&pdev->dev, "no haptic platform data\n"); in max8997_haptic_probe()
263 chip->client = iodev->haptic; in max8997_haptic_probe()
285 "unable to request PWM for haptic, error: %d\n", in max8997_haptic_probe()
313 input_dev->name = "max8997-haptic"; in max8997_haptic_probe()
383 { "max8997-haptic", 0 },
390 .name = "max8997-haptic",
/kernel/linux/linux-5.10/drivers/mfd/
H A Dmax8997.c33 { .name = "max8997-haptic", },
195 max8997->haptic = i2c_new_dummy_device(i2c->adapter, I2C_ADDR_HAPTIC); in max8997_i2c_probe()
196 if (IS_ERR(max8997->haptic)) { in max8997_i2c_probe()
198 ret = PTR_ERR(max8997->haptic); in max8997_i2c_probe()
201 i2c_set_clientdata(max8997->haptic, max8997); in max8997_i2c_probe()
237 i2c_unregister_device(max8997->haptic); in max8997_i2c_probe()
/kernel/linux/linux-6.6/drivers/mfd/
H A Dmax8997.c33 { .name = "max8997-haptic", },
193 max8997->haptic = i2c_new_dummy_device(i2c->adapter, I2C_ADDR_HAPTIC); in max8997_i2c_probe()
194 if (IS_ERR(max8997->haptic)) { in max8997_i2c_probe()
196 ret = PTR_ERR(max8997->haptic); in max8997_i2c_probe()
199 i2c_set_clientdata(max8997->haptic, max8997); in max8997_i2c_probe()
235 i2c_unregister_device(max8997->haptic); in max8997_i2c_probe()
/kernel/linux/linux-5.10/include/linux/mfd/
H A Dmax8997-private.h373 struct i2c_client *haptic; /* slave addr 0x90 */ member
/kernel/linux/linux-6.6/include/linux/mfd/
H A Dmax8997-private.h373 struct i2c_client *haptic; /* slave addr 0x90 */ member

Completed in 7 milliseconds