Lines Matching refs:drvdat
192 static void asus_report_contact_down(struct asus_drvdata *drvdat, in asus_report_contact_down() argument
195 struct input_dev *input = drvdat->input; in asus_report_contact_down()
199 y = drvdat->tp->max_y - ((data[0] & CONTACT_Y_MSB_MASK) << 8 | data[2]); in asus_report_contact_down()
204 if (drvdat->tp->contact_size < 5) in asus_report_contact_down()
220 static void asus_report_tool_width(struct asus_drvdata *drvdat) in asus_report_tool_width() argument
222 struct input_mt *mt = drvdat->input->mt; in asus_report_tool_width()
226 if (drvdat->tp->contact_size < 5) in asus_report_tool_width()
245 input_report_abs(drvdat->input, ABS_TOOL_WIDTH, in asus_report_tool_width()
250 static int asus_report_input(struct asus_drvdata *drvdat, u8 *data, int size) in asus_report_input() argument
255 if (size != drvdat->tp->report_size) in asus_report_input()
258 for (i = 0; i < drvdat->tp->max_contacts; i++) { in asus_report_input()
261 if (drvdat->tp->contact_size >= 5) in asus_report_input()
265 input_mt_slot(drvdat->input, i); in asus_report_input()
266 input_mt_report_slot_state(drvdat->input, toolType, down); in asus_report_input()
269 asus_report_contact_down(drvdat, toolType, contactData); in asus_report_input()
270 contactData += drvdat->tp->contact_size; in asus_report_input()
274 input_report_key(drvdat->input, BTN_LEFT, data[1] & BTN_LEFT_MASK); in asus_report_input()
275 asus_report_tool_width(drvdat); in asus_report_input()
277 input_mt_sync_frame(drvdat->input); in asus_report_input()
278 input_sync(drvdat->input); in asus_report_input()
283 static int asus_e1239t_event(struct asus_drvdata *drvdat, u8 *data, int size) in asus_e1239t_event() argument
289 if (!drvdat->tp && in asus_e1239t_event()
291 input_report_key(drvdat->input, KEY_MUTE, 1); in asus_e1239t_event()
292 input_sync(drvdat->input); in asus_e1239t_event()
293 input_report_key(drvdat->input, KEY_MUTE, 0); in asus_e1239t_event()
294 input_sync(drvdat->input); in asus_e1239t_event()
299 if (drvdat->tp_kbd_input && in asus_e1239t_event()
301 input_report_key(drvdat->tp_kbd_input, KEY_F21, 1); in asus_e1239t_event()
302 input_sync(drvdat->tp_kbd_input); in asus_e1239t_event()
303 input_report_key(drvdat->tp_kbd_input, KEY_F21, 0); in asus_e1239t_event()
304 input_sync(drvdat->tp_kbd_input); in asus_e1239t_event()