Lines Matching refs:haptics
33 struct arizona_haptics *haptics = container_of(work, in arizona_haptics_work() local
36 struct arizona *arizona = haptics->arizona; in arizona_haptics_work()
41 if (!haptics->arizona->dapm) { in arizona_haptics_work()
46 if (haptics->intensity) { in arizona_haptics_work()
50 haptics->intensity); in arizona_haptics_work()
111 struct arizona_haptics *haptics = input_get_drvdata(input); in arizona_haptics_play() local
112 struct arizona *arizona = haptics->arizona; in arizona_haptics_play()
122 haptics->intensity = in arizona_haptics_play()
125 haptics->intensity += 0x7f; in arizona_haptics_play()
127 haptics->intensity = in arizona_haptics_play()
131 haptics->intensity = 0; in arizona_haptics_play()
134 schedule_work(&haptics->work); in arizona_haptics_play()
141 struct arizona_haptics *haptics = input_get_drvdata(input); in arizona_haptics_close() local
144 cancel_work_sync(&haptics->work); in arizona_haptics_close()
146 if (haptics->arizona->dapm) { in arizona_haptics_close()
147 component = snd_soc_dapm_to_component(haptics->arizona->dapm); in arizona_haptics_close()
155 struct arizona_haptics *haptics; in arizona_haptics_probe() local
158 haptics = devm_kzalloc(&pdev->dev, sizeof(*haptics), GFP_KERNEL); in arizona_haptics_probe()
159 if (!haptics) in arizona_haptics_probe()
162 haptics->arizona = arizona; in arizona_haptics_probe()
172 INIT_WORK(&haptics->work, arizona_haptics_work); in arizona_haptics_probe()
174 haptics->input_dev = devm_input_allocate_device(&pdev->dev); in arizona_haptics_probe()
175 if (!haptics->input_dev) { in arizona_haptics_probe()
180 input_set_drvdata(haptics->input_dev, haptics); in arizona_haptics_probe()
182 haptics->input_dev->name = "arizona:haptics"; in arizona_haptics_probe()
183 haptics->input_dev->close = arizona_haptics_close; in arizona_haptics_probe()
184 __set_bit(FF_RUMBLE, haptics->input_dev->ffbit); in arizona_haptics_probe()
186 ret = input_ff_create_memless(haptics->input_dev, NULL, in arizona_haptics_probe()
194 ret = input_register_device(haptics->input_dev); in arizona_haptics_probe()