Lines Matching refs:hdata

318 static int t4_raw_event(struct alps_dev *hdata, u8 *data, int size)  in t4_raw_event()  argument
326 for (i = 0; i < hdata->max_fingers; i++) { in t4_raw_event()
329 y = hdata->y_max - y + hdata->y_min; in t4_raw_event()
337 input_mt_slot(hdata->input, i); in t4_raw_event()
339 input_mt_report_slot_state(hdata->input, in t4_raw_event()
345 input_report_abs(hdata->input, ABS_MT_POSITION_X, x); in t4_raw_event()
346 input_report_abs(hdata->input, ABS_MT_POSITION_Y, y); in t4_raw_event()
347 input_report_abs(hdata->input, ABS_MT_PRESSURE, z); in t4_raw_event()
349 input_mt_sync_frame(hdata->input); in t4_raw_event()
351 input_report_key(hdata->input, BTN_LEFT, p_report->button); in t4_raw_event()
353 input_sync(hdata->input); in t4_raw_event()
357 static int u1_raw_event(struct alps_dev *hdata, u8 *data, int size) in u1_raw_event() argument
371 for (i = 0; i < hdata->max_fingers; i++) { in u1_raw_event()
378 input_mt_slot(hdata->input, i); in u1_raw_event()
381 input_mt_report_slot_state(hdata->input, in u1_raw_event()
383 input_report_abs(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()
390 input_mt_report_slot_state(hdata->input, in u1_raw_event()
395 input_mt_sync_frame(hdata->input); in u1_raw_event()
397 input_report_key(hdata->input, BTN_LEFT, in u1_raw_event()
399 input_report_key(hdata->input, BTN_RIGHT, in u1_raw_event()
401 input_report_key(hdata->input, BTN_MIDDLE, in u1_raw_event()
404 input_sync(hdata->input); in u1_raw_event()
415 input_report_rel(hdata->input2, REL_X, sp_x); in u1_raw_event()
416 input_report_rel(hdata->input2, REL_Y, sp_y); in u1_raw_event()
418 input_report_key(hdata->input2, BTN_LEFT, in u1_raw_event()
420 input_report_key(hdata->input2, BTN_RIGHT, in u1_raw_event()
422 input_report_key(hdata->input2, BTN_MIDDLE, in u1_raw_event()
425 input_sync(hdata->input2); in u1_raw_event()
437 struct alps_dev *hdata = hid_get_drvdata(hdev); in alps_raw_event() local
441 ret = t4_raw_event(hdata, data, size); in alps_raw_event()
444 ret = u1_raw_event(hdata, data, size); in alps_raw_event()