Lines Matching refs:hi

418 		struct hid_input *hi)  in mt_store_field()  argument
428 static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi, in mt_touch_input_mapping() argument
462 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
464 set_abs(hi->input, ABS_MT_TOOL_X, field, in mt_touch_input_mapping()
467 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
469 set_abs(hi->input, ABS_MT_POSITION_X, field, in mt_touch_input_mapping()
473 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
477 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
479 set_abs(hi->input, ABS_MT_TOOL_Y, field, in mt_touch_input_mapping()
482 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
484 set_abs(hi->input, ABS_MT_POSITION_Y, field, in mt_touch_input_mapping()
488 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
497 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
499 input_set_abs_params(hi->input, in mt_touch_input_mapping()
502 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
505 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
508 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_TOUCH); in mt_touch_input_mapping()
509 input_set_capability(hi->input, EV_KEY, BTN_TOUCH); in mt_touch_input_mapping()
510 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
513 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
518 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
521 set_abs(hi->input, ABS_MT_TOUCH_MAJOR, field, in mt_touch_input_mapping()
523 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
526 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
529 set_abs(hi->input, ABS_MT_TOUCH_MINOR, field, in mt_touch_input_mapping()
531 input_set_abs_params(hi->input, in mt_touch_input_mapping()
534 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
537 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
539 set_abs(hi->input, ABS_MT_PRESSURE, field, in mt_touch_input_mapping()
541 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
565 hid_map_usage(hi, usage, bit, max, EV_KEY, code); in mt_touch_input_mapping()
566 input_set_capability(hi->input, EV_KEY, code); in mt_touch_input_mapping()
577 static int mt_touch_input_mapped(struct hid_device *hdev, struct hid_input *hi, in mt_touch_input_mapped() argument
582 set_bit(usage->type, hi->input->evbit); in mt_touch_input_mapped()
783 struct hid_input *hi) in mt_touch_input_configured() argument
787 struct input_dev *input = hi->input; in mt_touch_input_configured()
818 static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, in mt_input_mapping() argument
852 return mt_touch_input_mapping(hdev, hi, field, usage, bit, max); in mt_input_mapping()
858 static int mt_input_mapped(struct hid_device *hdev, struct hid_input *hi, in mt_input_mapped() argument
871 return mt_touch_input_mapped(hdev, hi, field, usage, bit, max); in mt_input_mapped()
991 static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi) in mt_input_configured() argument
996 struct hid_field *field = hi->report->field[0]; in mt_input_configured()
999 if (hi->report->id == td->mt_report_id) { in mt_input_configured()
1000 ret = mt_touch_input_configured(hdev, hi); in mt_input_configured()
1010 if (hi->report->field[0]->physical == HID_DG_STYLUS) { in mt_input_configured()
1013 __set_bit(BTN_STYLUS, hi->input->keybit); in mt_input_configured()
1028 __set_bit(BTN_STYLUS, hi->input->keybit); in mt_input_configured()
1049 name = devm_kzalloc(&hi->input->dev, in mt_input_configured()
1054 hi->input->name = name; in mt_input_configured()