Lines Matching refs:hi
375 struct hid_input *hi) in mt_store_field() argument
385 static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi, in mt_touch_input_mapping() argument
419 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
421 set_abs(hi->input, ABS_MT_TOOL_X, field, in mt_touch_input_mapping()
424 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
426 set_abs(hi->input, ABS_MT_POSITION_X, field, in mt_touch_input_mapping()
430 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
434 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
436 set_abs(hi->input, ABS_MT_TOOL_Y, field, in mt_touch_input_mapping()
439 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
441 set_abs(hi->input, ABS_MT_POSITION_Y, field, in mt_touch_input_mapping()
445 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
454 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
456 input_set_abs_params(hi->input, in mt_touch_input_mapping()
459 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
462 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
465 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_TOUCH); in mt_touch_input_mapping()
466 input_set_capability(hi->input, EV_KEY, BTN_TOUCH); in mt_touch_input_mapping()
467 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
470 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
475 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
478 set_abs(hi->input, ABS_MT_TOUCH_MAJOR, field, in mt_touch_input_mapping()
480 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
483 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
486 set_abs(hi->input, ABS_MT_TOUCH_MINOR, field, in mt_touch_input_mapping()
488 input_set_abs_params(hi->input, in mt_touch_input_mapping()
491 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
494 hid_map_usage(hi, usage, bit, max, in mt_touch_input_mapping()
496 set_abs(hi->input, ABS_MT_PRESSURE, field, in mt_touch_input_mapping()
498 mt_store_field(usage, td, hi); in mt_touch_input_mapping()
522 hid_map_usage(hi, usage, bit, max, EV_KEY, code); in mt_touch_input_mapping()
523 input_set_capability(hi->input, EV_KEY, code); in mt_touch_input_mapping()
534 static int mt_touch_input_mapped(struct hid_device *hdev, struct hid_input *hi, in mt_touch_input_mapped() argument
539 set_bit(usage->type, hi->input->evbit); in mt_touch_input_mapped()
740 struct hid_input *hi) in mt_touch_input_configured() argument
744 struct input_dev *input = hi->input; in mt_touch_input_configured()
771 static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, in mt_input_mapping() argument
798 return mt_touch_input_mapping(hdev, hi, field, usage, bit, max); in mt_input_mapping()
804 static int mt_input_mapped(struct hid_device *hdev, struct hid_input *hi, in mt_input_mapped() argument
817 return mt_touch_input_mapped(hdev, hi, field, usage, bit, max); in mt_input_mapped()
937 static void mt_input_configured(struct hid_device *hdev, struct hid_input *hi) in mt_input_configured() argument
942 struct hid_field *field = hi->report->field[0]; in mt_input_configured()
944 if (hi->report->id == td->mt_report_id) in mt_input_configured()
945 mt_touch_input_configured(hdev, hi); in mt_input_configured()
952 if (hi->report->field[0]->physical == HID_DG_STYLUS) { in mt_input_configured()
955 __set_bit(BTN_STYLUS, hi->input->keybit); in mt_input_configured()
970 __set_bit(BTN_STYLUS, hi->input->keybit); in mt_input_configured()
988 name = devm_kzalloc(&hi->input->dev, in mt_input_configured()
993 hi->input->name = name; in mt_input_configured()