Lines Matching defs:field

480 		struct hid_field *field, struct hid_usage *usage)
486 mt_get_feature(hdev, field->report);
488 td->maxcontacts = field->value[0];
490 field->logical_maximum <= MT_MAX_MAXCONTACT)
491 td->maxcontacts = field->logical_maximum;
498 if (usage->usage_index >= field->report_count) {
503 mt_get_feature(hdev, field->report);
504 if (field->value[usage->usage_index] == MT_BUTTONTYPE_CLICKPAD)
511 mt_get_feature(hdev, field->report);
517 struct hid_field *field, int snratio)
519 int fmin = field->logical_minimum;
520 int fmax = field->logical_maximum;
523 input_abs_set_res(input, code, hidinput_calc_abs_res(field, code));
615 struct hid_field *field;
631 field = report->field[r];
633 if (!(HID_MAIN_ITEM_VARIABLE & field->flags))
636 if (field->logical == HID_DG_FINGER || td->hdev->group != HID_GROUP_MULTITOUCH_WIN_8) {
637 for (n = 0; n < field->report_count; n++) {
638 if (field->usage[n].hid == HID_DG_CONTACTID) {
712 &field->value[usage->usage_index], \
716 struct hid_field *field, struct hid_usage *usage,
727 if (field->application == HID_DG_TOUCHSCREEN &&
738 prev_usage = &field->usage[usage->usage_index - 1];
753 set_abs(hi->input, code, field, cls->sn_move);
759 if (field->application == HID_GD_SYSTEM_MULTIAXIS) {
778 set_abs(hi->input, code, field, cls->sn_move);
798 (field->application == HID_DG_TOUCHPAD ||
799 field->application == HID_DG_TOUCHSCREEN))
811 if (field->application != HID_GD_SYSTEM_MULTIAXIS)
822 set_abs(hi->input, ABS_MT_TOUCH_MAJOR, field,
828 set_abs(hi->input, ABS_MT_TOUCH_MINOR, field,
843 set_abs(hi->input, ABS_MT_PRESSURE, field,
849 app->scantime = &field->value[usage->usage_index];
850 app->scantime_logical_max = field->logical_maximum;
854 app->raw_cc = &field->value[usage->usage_index];
863 -field->logical_maximum / 4,
864 field->logical_maximum / 4,
866 field->logical_maximum / cls->sn_move : 0, 0);
874 * Let's just ignore this field. */
887 field->application == HID_DG_TOUCHPAD &&
891 if (field->application == HID_GD_SYSTEM_MULTIAXIS)
997 static int mt_touch_event(struct hid_device *hid, struct hid_field *field,
1002 hid->hiddev_hid_event(hid, field, usage, value);
1157 struct hid_field *field,
1163 struct input_dev *input = field->hidinput->input;
1200 struct hid_field *field;
1242 input = report->field[0]->hidinput->input;
1250 field = report->field[r];
1251 count = field->report_count;
1253 if (!(HID_MAIN_ITEM_VARIABLE & field->flags))
1257 mt_process_mt_event(hid, app, field,
1258 &field->usage[n], field->value[n],
1342 struct hid_field *field, struct hid_usage *usage,
1349 rdata = mt_find_report_data(td, field->report);
1364 field->application != HID_DG_TOUCHSCREEN &&
1365 field->application != HID_DG_PEN &&
1366 field->application != HID_DG_TOUCHPAD &&
1367 field->application != HID_GD_KEYBOARD &&
1368 field->application != HID_GD_SYSTEM_CONTROL &&
1369 field->application != HID_CP_CONSUMER_CONTROL &&
1370 field->application != HID_GD_WIRELESS_RADIO_CTLS &&
1371 field->application != HID_GD_SYSTEM_MULTIAXIS &&
1372 !(field->application == HID_VD_ASUS_CUSTOM_MEDIA_KEYS &&
1381 if (field->application == HID_VD_ASUS_CUSTOM_MEDIA_KEYS &&
1385 if (field->flags & HID_MAIN_ITEM_VARIABLE)
1386 field->flags &= ~HID_MAIN_ITEM_VARIABLE;
1400 return mt_touch_input_mapping(hdev, hi, field, usage, bit, max,
1407 if (field->physical == HID_DG_STYLUS)
1415 struct hid_field *field, struct hid_usage *usage,
1421 rdata = mt_find_report_data(td, field->report);
1431 static int mt_event(struct hid_device *hid, struct hid_field *field,
1437 rdata = mt_find_report_data(td, field->report);
1439 return mt_touch_event(hid, field, usage, value);
1447 struct hid_field *field = report->field[0];
1457 if (field && field->hidinput && field->hidinput->input)
1458 input_sync(field->hidinput->input);
1462 struct hid_field *field,
1471 struct hid_report *report = field->report;
1482 * field. Skip the second feature and hope for the best.
1501 field->value[index] = td->inputmode_value;
1507 max = min_t(int, field->logical_maximum,
1509 if (field->value[index] != max) {
1510 field->value[index] = max;
1517 field->value[index] = latency;
1521 field->value[index] = surface_switch;
1525 field->value[index] = button_switch;
1548 if (rep->field[i]->report_count < 1)
1551 for (j = 0; j < rep->field[i]->maxusage; j++) {
1552 usage = &rep->field[i]->usage[j];
1555 rep->field[i],
1653 static void mt_fix_const_field(struct hid_field *field, unsigned int usage)
1655 if (field->usage[0].hid != usage ||
1656 !(field->flags & HID_MAIN_ITEM_CONSTANT))
1659 field->flags &= ~HID_MAIN_ITEM_CONSTANT;
1660 field->flags |= HID_MAIN_ITEM_VARIABLE;
1676 if (report->field[i]->maxusage >= 1)
1677 mt_fix_const_field(report->field[i], usage);