• Home
  • Raw
  • Download

Lines Matching refs:usage

257 		struct hid_field *field, struct hid_usage *usage)  in mt_feature_mapping()  argument
261 switch (usage->hid) { in mt_feature_mapping()
285 static void mt_store_field(struct hid_usage *usage, struct mt_device *td, in mt_store_field() argument
293 f->usages[f->length++] = usage->hid; in mt_store_field()
297 struct hid_field *field, struct hid_usage *usage, in mt_input_mapping() argument
318 (usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON || in mt_input_mapping()
343 switch (usage->hid & HID_USAGE_PAGE) { in mt_input_mapping()
346 switch (usage->hid) { in mt_input_mapping()
348 hid_map_usage(hi, usage, bit, max, in mt_input_mapping()
354 mt_store_field(usage, td, hi); in mt_input_mapping()
358 hid_map_usage(hi, usage, bit, max, in mt_input_mapping()
364 mt_store_field(usage, td, hi); in mt_input_mapping()
371 switch (usage->hid) { in mt_input_mapping()
373 mt_store_field(usage, td, hi); in mt_input_mapping()
377 mt_store_field(usage, td, hi); in mt_input_mapping()
381 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_TOUCH); in mt_input_mapping()
383 mt_store_field(usage, td, hi); in mt_input_mapping()
390 mt_store_field(usage, td, hi); in mt_input_mapping()
395 hid_map_usage(hi, usage, bit, max, in mt_input_mapping()
399 mt_store_field(usage, td, hi); in mt_input_mapping()
403 hid_map_usage(hi, usage, bit, max, in mt_input_mapping()
409 mt_store_field(usage, td, hi); in mt_input_mapping()
413 hid_map_usage(hi, usage, bit, max, in mt_input_mapping()
420 mt_store_field(usage, td, hi); in mt_input_mapping()
440 code = BTN_MOUSE + ((usage->hid - 1) & HID_USAGE); in mt_input_mapping()
441 hid_map_usage(hi, usage, bit, max, EV_KEY, code); in mt_input_mapping()
454 struct hid_field *field, struct hid_usage *usage, in mt_input_mapped() argument
457 if (usage->type == EV_KEY || usage->type == EV_ABS) in mt_input_mapped()
458 set_bit(usage->type, hi->input->evbit); in mt_input_mapped()
543 struct hid_usage *usage, __s32 value) in mt_event() argument
549 switch (usage->hid) { in mt_event()
600 if (usage->hid == td->last_slot_field) in mt_event()
611 hid->hiddev_hid_event(hid, field, usage, value); in mt_event()