Lines Matching refs:hdata

317 static void rmi_f11_process_touch(struct rmi_data *hdata, int slot,  in rmi_f11_process_touch()  argument
324 input_mt_slot(hdata->input, slot); in rmi_f11_process_touch()
325 input_mt_report_slot_state(hdata->input, MT_TOOL_FINGER, in rmi_f11_process_touch()
338 y = hdata->max_y - y; in rmi_f11_process_touch()
340 input_event(hdata->input, EV_ABS, ABS_MT_POSITION_X, x); in rmi_f11_process_touch()
341 input_event(hdata->input, EV_ABS, ABS_MT_POSITION_Y, y); in rmi_f11_process_touch()
342 input_event(hdata->input, EV_ABS, ABS_MT_ORIENTATION, wide); in rmi_f11_process_touch()
343 input_event(hdata->input, EV_ABS, ABS_MT_PRESSURE, z); in rmi_f11_process_touch()
344 input_event(hdata->input, EV_ABS, ABS_MT_TOUCH_MAJOR, major); in rmi_f11_process_touch()
345 input_event(hdata->input, EV_ABS, ABS_MT_TOUCH_MINOR, minor); in rmi_f11_process_touch()
351 struct rmi_data *hdata = container_of(work, struct rmi_data, in rmi_reset_work() local
355 rmi_set_mode(hdata->hdev, RMI_MODE_ATTN_REPORTS); in rmi_reset_work()
360 struct rmi_data *hdata = hid_get_drvdata(hdev); in rmi_schedule_reset() local
361 return schedule_work(&hdata->reset_work); in rmi_schedule_reset()
367 struct rmi_data *hdata = hid_get_drvdata(hdev); in rmi_f11_input_event() local
371 if (!(irq & hdata->f11.irq_mask) || size <= 0) in rmi_f11_input_event()
374 offset = (hdata->max_fingers >> 2) + 1; in rmi_f11_input_event()
375 for (i = 0; i < hdata->max_fingers; i++) { in rmi_f11_input_event()
392 rmi_f11_process_touch(hdata, i, finger_state, &data[position]); in rmi_f11_input_event()
394 input_mt_sync_frame(hdata->input); in rmi_f11_input_event()
395 input_sync(hdata->input); in rmi_f11_input_event()
396 return hdata->f11.report_size; in rmi_f11_input_event()
402 struct rmi_data *hdata = hid_get_drvdata(hdev); in rmi_f30_input_event() local
407 if (!(irq & hdata->f30.irq_mask)) in rmi_f30_input_event()
410 if (size < (int)hdata->f30.report_size) { in rmi_f30_input_event()
415 for (i = 0; i < hdata->gpio_led_count; i++) { in rmi_f30_input_event()
416 if (test_bit(i, &hdata->button_mask)) { in rmi_f30_input_event()
418 if (test_bit(i, &hdata->button_state_mask)) in rmi_f30_input_event()
420 input_event(hdata->input, EV_KEY, BTN_LEFT + button++, in rmi_f30_input_event()
424 return hdata->f30.report_size; in rmi_f30_input_event()
429 struct rmi_data *hdata = hid_get_drvdata(hdev); in rmi_input_event() local
433 if (!(test_bit(RMI_STARTED, &hdata->flags))) in rmi_input_event()
436 irq_mask |= hdata->f11.irq_mask; in rmi_input_event()
437 irq_mask |= hdata->f30.irq_mask; in rmi_input_event()
443 if (hdata->f11.interrupt_base < hdata->f30.interrupt_base) { in rmi_input_event()
460 struct rmi_data *hdata = hid_get_drvdata(hdev); in rmi_read_data_event() local
462 if (!test_bit(RMI_READ_REQUEST_PENDING, &hdata->flags)) { in rmi_read_data_event()
467 memcpy(hdata->readReport, data, size < hdata->input_report_size ? in rmi_read_data_event()
468 size : hdata->input_report_size); in rmi_read_data_event()
469 set_bit(RMI_READ_DATA_PENDING, &hdata->flags); in rmi_read_data_event()
470 wake_up(&hdata->wait); in rmi_read_data_event()
1248 struct rmi_data *hdata = hid_get_drvdata(hdev); in rmi_remove() local
1250 clear_bit(RMI_STARTED, &hdata->flags); in rmi_remove()