Lines Matching refs:input_dev
52 struct input_dev *input_dev; member
73 struct input_dev *input = msg2638->input_dev; in msg2638_ts_irq_handler()
121 input_mt_sync_frame(msg2638->input_dev); in msg2638_ts_irq_handler()
122 input_sync(msg2638->input_dev); in msg2638_ts_irq_handler()
174 static int msg2638_input_open(struct input_dev *dev) in msg2638_input_open()
181 static void msg2638_input_close(struct input_dev *dev) in msg2638_input_close()
191 struct input_dev *input_dev; in msg2638_init_input_dev() local
194 input_dev = devm_input_allocate_device(dev); in msg2638_init_input_dev()
195 if (!input_dev) { in msg2638_init_input_dev()
200 input_set_drvdata(input_dev, msg2638); in msg2638_init_input_dev()
201 msg2638->input_dev = input_dev; in msg2638_init_input_dev()
203 input_dev->name = "MStar TouchScreen"; in msg2638_init_input_dev()
204 input_dev->phys = "input/ts"; in msg2638_init_input_dev()
205 input_dev->id.bustype = BUS_I2C; in msg2638_init_input_dev()
206 input_dev->open = msg2638_input_open; in msg2638_init_input_dev()
207 input_dev->close = msg2638_input_close; in msg2638_init_input_dev()
209 input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_X); in msg2638_init_input_dev()
210 input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_Y); in msg2638_init_input_dev()
212 touchscreen_parse_properties(input_dev, true, &msg2638->prop); in msg2638_init_input_dev()
218 error = input_mt_init_slots(input_dev, MAX_SUPPORTED_FINGER_NUM, in msg2638_init_input_dev()
225 error = input_register_device(input_dev); in msg2638_init_input_dev()
291 mutex_lock(&msg2638->input_dev->mutex); in msg2638_suspend()
293 if (input_device_enabled(msg2638->input_dev)) in msg2638_suspend()
296 mutex_unlock(&msg2638->input_dev->mutex); in msg2638_suspend()
307 mutex_lock(&msg2638->input_dev->mutex); in msg2638_resume()
309 if (input_device_enabled(msg2638->input_dev)) in msg2638_resume()
312 mutex_unlock(&msg2638->input_dev->mutex); in msg2638_resume()