Lines Matching refs:hdata
319 static int t4_raw_event(struct alps_dev *hdata, u8 *data, int size) in t4_raw_event() argument
327 for (i = 0; i < hdata->max_fingers; i++) { in t4_raw_event()
330 y = hdata->y_max - y + hdata->y_min; in t4_raw_event()
338 input_mt_slot(hdata->input, i); in t4_raw_event()
340 input_mt_report_slot_state(hdata->input, in t4_raw_event()
346 input_report_abs(hdata->input, ABS_MT_POSITION_X, x); in t4_raw_event()
347 input_report_abs(hdata->input, ABS_MT_POSITION_Y, y); in t4_raw_event()
348 input_report_abs(hdata->input, ABS_MT_PRESSURE, z); in t4_raw_event()
350 input_mt_sync_frame(hdata->input); in t4_raw_event()
352 input_report_key(hdata->input, BTN_LEFT, p_report->button); in t4_raw_event()
354 input_sync(hdata->input); in t4_raw_event()
358 static int u1_raw_event(struct alps_dev *hdata, u8 *data, int size) in u1_raw_event() argument
373 for (i = 0; i < hdata->max_fingers; i++) { in u1_raw_event()
380 input_mt_slot(hdata->input, i); in u1_raw_event()
383 input_mt_report_slot_state(hdata->input, in u1_raw_event()
385 input_report_abs(hdata->input, in u1_raw_event()
387 input_report_abs(hdata->input, in u1_raw_event()
389 input_report_abs(hdata->input, in u1_raw_event()
392 input_mt_report_slot_inactive(hdata->input); in u1_raw_event()
396 input_mt_sync_frame(hdata->input); in u1_raw_event()
398 input_report_key(hdata->input, BTN_LEFT, in u1_raw_event()
400 input_report_key(hdata->input, BTN_RIGHT, in u1_raw_event()
402 input_report_key(hdata->input, BTN_MIDDLE, in u1_raw_event()
405 input_sync(hdata->input); in u1_raw_event()
416 input_report_rel(hdata->input2, REL_X, sp_x); in u1_raw_event()
417 input_report_rel(hdata->input2, REL_Y, sp_y); in u1_raw_event()
419 input_report_key(hdata->input2, BTN_LEFT, in u1_raw_event()
421 input_report_key(hdata->input2, BTN_RIGHT, in u1_raw_event()
423 input_report_key(hdata->input2, BTN_MIDDLE, in u1_raw_event()
426 input_sync(hdata->input2); in u1_raw_event()
438 struct alps_dev *hdata = hid_get_drvdata(hdev); in alps_raw_event() local
442 ret = t4_raw_event(hdata, data, size); in alps_raw_event()
445 ret = u1_raw_event(hdata, data, size); in alps_raw_event()