/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-apple.c | 213 struct hid_usage *usage, __s32 value) in hidinput_apple_event() 222 if (usage->code == fn_keycode) { in hidinput_apple_event() 224 input_event(input, usage->type, KEY_FN, value); in hidinput_apple_event() 239 trans = apple_find_translation (table, usage->code); in hidinput_apple_event() 267 input_event(input, usage->type, code, value); in hidinput_apple_event() 272 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event() 275 usage->code); in hidinput_apple_event() 279 set_bit(usage->code, in hidinput_apple_event() 282 clear_bit(usage->code, in hidinput_apple_event() 285 input_event(input, usage in hidinput_apple_event() 212 hidinput_apple_event(struct hid_device *hid, struct input_dev *input, struct hid_usage *usage, __s32 value) hidinput_apple_event() argument 322 apple_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) apple_event() argument 399 apple_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) apple_input_mapping() argument 420 apple_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) apple_input_mapped() argument [all...] |
H A D | hid-lenovo.c | 62 #define map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c)) 124 * - get a reasonable usage max for the vendor collection in lenovo_report_fixup() 140 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_tpkbd() 142 if (usage->hid == (HID_UP_BUTTON | 0x0010)) { in lenovo_input_mapping_tpkbd() 153 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_cptkbd() 156 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR || in lenovo_input_mapping_cptkbd() 157 (usage->hid & HID_USAGE_PAGE) == HID_UP_LNVENDOR) { in lenovo_input_mapping_cptkbd() 158 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_cptkbd() 194 if (usage->hid == HID_GD_WHEEL) in lenovo_input_mapping_cptkbd() 196 if ((usage in lenovo_input_mapping_cptkbd() 138 lenovo_input_mapping_tpkbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_tpkbd() argument 151 lenovo_input_mapping_cptkbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_cptkbd() argument 225 lenovo_input_mapping_scrollpoint(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_scrollpoint() argument 236 lenovo_input_mapping_tp10_ultrabook_kbd(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping_tp10_ultrabook_kbd() argument 274 lenovo_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lenovo_input_mapping() argument 463 lenovo_event_tp10ubkbd(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) lenovo_event_tp10ubkbd() argument 481 lenovo_event_cptkbd(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) lenovo_event_cptkbd() argument 534 lenovo_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) lenovo_event() argument [all...] |
H A D | hid-microsoft.c | 78 #define ms_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 80 static int ms_ergonomy_kb_quirk(struct hid_input *hi, struct hid_usage *usage, in ms_ergonomy_kb_quirk() argument 85 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER) { in ms_ergonomy_kb_quirk() 86 switch (usage->hid & HID_USAGE) { in ms_ergonomy_kb_quirk() 88 * Microsoft uses these 2 reserved usage ids for 2 keys on in ms_ergonomy_kb_quirk() 101 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_MSVENDOR) in ms_ergonomy_kb_quirk() 104 switch (usage->hid & HID_USAGE) { in ms_ergonomy_kb_quirk() 115 hid_map_usage_clear(hi, usage, bit, max, EV_REL, REL_WHEEL); in ms_ergonomy_kb_quirk() 121 * (this usage is found on interface 1). in ms_ergonomy_kb_quirk() 142 static int ms_presenter_8k_quirk(struct hid_input *hi, struct hid_usage *usage, in ms_presenter_8k_quirk() argument 161 ms_surface_dial_quirk(struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ms_surface_dial_quirk() argument 182 ms_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ms_input_mapping() argument 209 ms_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ms_input_mapped() argument 222 ms_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) ms_event() argument [all...] |
H A D | hid-multitouch.c | 451 struct hid_field *field, struct hid_usage *usage) in mt_feature_mapping() 455 switch (usage->hid) { in mt_feature_mapping() 469 if (usage->usage_index >= field->report_count) { in mt_feature_mapping() 475 if (field->value[usage->usage_index] == MT_BUTTONTYPE_CLICKPAD) in mt_feature_mapping() 481 if (usage->usage_index == 0) in mt_feature_mapping() 500 struct mt_usages *usage; in mt_allocate_usage() local 502 usage = devm_kzalloc(&hdev->dev, sizeof(*usage), GFP_KERNEL); in mt_allocate_usage() 503 if (!usage) in mt_allocate_usage() 507 usage in mt_allocate_usage() 450 mt_feature_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) mt_feature_mapping() argument 645 struct mt_usages *usage; mt_store_field() local 686 mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max, struct mt_application *app) mt_touch_input_mapping() argument 966 mt_touch_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) mt_touch_event() argument 1103 mt_process_mt_event(struct hid_device *hid, struct mt_application *app, struct hid_field *field, struct hid_usage *usage, __s32 value, bool first_packet) mt_process_mt_event() argument 1289 mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) mt_input_mapping() argument 1362 mt_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) mt_input_mapped() argument 1379 mt_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) mt_event() argument 1409 mt_need_to_apply_feature(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, enum latency_mode latency, bool surface_switch, bool button_switch, bool *inputmode_found) mt_need_to_apply_feature() argument 1485 struct hid_usage *usage; mt_set_modes() local 1604 mt_fix_const_field(struct hid_field *field, unsigned int usage) mt_fix_const_field() argument 1614 mt_fix_const_fields(struct hid_device *hdev, unsigned int usage) mt_fix_const_fields() argument [all...] |
H A D | hid-jabra.c | 22 struct hid_usage *usage, in jabra_input_mapping() 26 ((usage->hid & HID_USAGE_PAGE) >= HID_UP_VENDOR_DEFINED_MIN && in jabra_input_mapping() 27 (usage->hid & HID_USAGE_PAGE) <= HID_UP_VENDOR_DEFINED_MAX); in jabra_input_mapping() 30 usage->hid, in jabra_input_mapping() 32 usage->collection_index, in jabra_input_mapping() 33 usage->usage_index, in jabra_input_mapping() 19 jabra_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) jabra_input_mapping() argument
|
H A D | hid-plantronics.c | 38 (usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER) 53 struct hid_usage *usage, in plantronics_input_mapping() 87 switch (usage->hid) { in plantronics_input_mapping() 109 hid_dbg(hdev, "usage: %08x (appl: %08x) - defaulted\n", in plantronics_input_mapping() 110 usage->hid, field->application); in plantronics_input_mapping() 114 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, mapped_key); in plantronics_input_mapping() 115 hid_dbg(hdev, "usage: %08x (appl: %08x) - mapped to key %d\n", in plantronics_input_mapping() 116 usage->hid, field->application, mapped_key); in plantronics_input_mapping() 121 struct hid_usage *usage, __s32 value) in plantronics_event() 155 col_page = hdev->collection[i].usage in plantronics_device_type() 50 plantronics_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) plantronics_input_mapping() argument 120 plantronics_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) plantronics_event() argument [all...] |
H A D | hid-ite.c | 43 struct hid_usage *usage, unsigned long **bit, in ite_input_mapping() 50 (usage->hid & HID_USAGE_PAGE) == 0x00880000) { in ite_input_mapping() 51 if (usage->hid == 0x00880078) { in ite_input_mapping() 53 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F22); in ite_input_mapping() 56 if (usage->hid == 0x00880079) { in ite_input_mapping() 58 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F23); in ite_input_mapping() 68 struct hid_usage *usage, __s32 value) in ite_event() 82 if (usage->hid == HID_GD_RFKILL_BTN) { in ite_event() 41 ite_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ite_input_mapping() argument 67 ite_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) ite_event() argument
|
H A D | hid-lg.c | 56 * a custom vendor usage page, providing only a combined value as 535 #define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 539 struct hid_usage *usage, unsigned long **bit, int *max) in lg_ultrax_remote_mapping() 541 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_ultrax_remote_mapping() 545 switch (usage->hid & HID_USAGE) { in lg_ultrax_remote_mapping() 571 static int lg_dinovo_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_dinovo_mapping() argument 574 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_dinovo_mapping() 577 switch (usage->hid & HID_USAGE) { in lg_dinovo_mapping() 587 static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_wireless_mapping() argument 590 if ((usage in lg_wireless_mapping() 538 lg_ultrax_remote_mapping(struct hid_input *hi, struct hid_usage *usage, unsigned long **bit, int *max) lg_ultrax_remote_mapping() argument 648 lg_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lg_input_mapping() argument 701 lg_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lg_input_mapped() argument 742 lg_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) lg_event() argument [all...] |
H A D | hid-cypress.c | 29 * Some USB barcode readers from cypress have usage min and usage max in 84 struct hid_field *field, struct hid_usage *usage, in cp_input_mapped() 92 if (usage->type == EV_REL && usage->code == REL_WHEEL) in cp_input_mapped() 94 if (usage->hid == 0x00090005) in cp_input_mapped() 101 struct hid_usage *usage, __s32 value) in cp_event() 106 !usage->type || !(quirks & CP_2WHEEL_MOUSE_HACK)) in cp_event() 109 if (usage->hid == 0x00090005) { in cp_event() 118 if (usage in cp_event() 83 cp_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) cp_input_mapped() argument 100 cp_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) cp_event() argument [all...] |
H A D | hid-petalynx.c | 35 #define pl_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 38 struct hid_field *field, struct hid_usage *usage, in pl_input_mapping() 41 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_LOGIVENDOR) { in pl_input_mapping() 42 switch (usage->hid & HID_USAGE) { in pl_input_mapping() 54 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER) { in pl_input_mapping() 55 switch (usage->hid & HID_USAGE) { in pl_input_mapping() 37 pl_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) pl_input_mapping() argument
|
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-microsoft.c | 78 #define ms_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 80 static int ms_ergonomy_kb_quirk(struct hid_input *hi, struct hid_usage *usage, in ms_ergonomy_kb_quirk() argument 85 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER) { in ms_ergonomy_kb_quirk() 86 switch (usage->hid & HID_USAGE) { in ms_ergonomy_kb_quirk() 88 * Microsoft uses these 2 reserved usage ids for 2 keys on in ms_ergonomy_kb_quirk() 101 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_MSVENDOR) in ms_ergonomy_kb_quirk() 104 switch (usage->hid & HID_USAGE) { in ms_ergonomy_kb_quirk() 115 hid_map_usage_clear(hi, usage, bit, max, EV_REL, REL_WHEEL); in ms_ergonomy_kb_quirk() 121 * (this usage is found on interface 1). in ms_ergonomy_kb_quirk() 142 static int ms_presenter_8k_quirk(struct hid_input *hi, struct hid_usage *usage, in ms_presenter_8k_quirk() argument 161 ms_surface_dial_quirk(struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ms_surface_dial_quirk() argument 182 ms_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ms_input_mapping() argument 209 ms_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ms_input_mapped() argument 222 ms_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) ms_event() argument [all...] |
H A D | hid-multitouch.c | 481 struct hid_field *field, struct hid_usage *usage) in mt_feature_mapping() 485 switch (usage->hid) { in mt_feature_mapping() 499 if (usage->usage_index >= field->report_count) { in mt_feature_mapping() 505 if (field->value[usage->usage_index] == MT_BUTTONTYPE_CLICKPAD) in mt_feature_mapping() 511 if (usage->usage_index == 0) in mt_feature_mapping() 530 struct mt_usages *usage; in mt_allocate_usage() local 532 usage = devm_kzalloc(&hdev->dev, sizeof(*usage), GFP_KERNEL); in mt_allocate_usage() 533 if (!usage) in mt_allocate_usage() 537 usage in mt_allocate_usage() 480 mt_feature_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) mt_feature_mapping() argument 675 struct mt_usages *usage; mt_store_field() local 716 mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max, struct mt_application *app) mt_touch_input_mapping() argument 998 mt_touch_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) mt_touch_event() argument 1156 mt_process_mt_event(struct hid_device *hid, struct mt_application *app, struct hid_field *field, struct hid_usage *usage, __s32 value, bool first_packet) mt_process_mt_event() argument 1342 mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) mt_input_mapping() argument 1415 mt_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) mt_input_mapped() argument 1432 mt_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) mt_event() argument 1462 mt_need_to_apply_feature(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, enum latency_mode latency, bool surface_switch, bool button_switch, bool *inputmode_found) mt_need_to_apply_feature() argument 1538 struct hid_usage *usage; mt_set_modes() local 1654 mt_fix_const_field(struct hid_field *field, unsigned int usage) mt_fix_const_field() argument 1664 mt_fix_const_fields(struct hid_device *hdev, unsigned int usage) mt_fix_const_fields() argument [all...] |
H A D | hid-jabra.c | 22 struct hid_usage *usage, in jabra_input_mapping() 26 ((usage->hid & HID_USAGE_PAGE) >= HID_UP_VENDOR_DEFINED_MIN && in jabra_input_mapping() 27 (usage->hid & HID_USAGE_PAGE) <= HID_UP_VENDOR_DEFINED_MAX); in jabra_input_mapping() 30 usage->hid, in jabra_input_mapping() 32 usage->collection_index, in jabra_input_mapping() 33 usage->usage_index, in jabra_input_mapping() 19 jabra_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) jabra_input_mapping() argument
|
H A D | hid-plantronics.c | 38 (usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER) 53 struct hid_usage *usage, in plantronics_input_mapping() 87 switch (usage->hid) { in plantronics_input_mapping() 109 hid_dbg(hdev, "usage: %08x (appl: %08x) - defaulted\n", in plantronics_input_mapping() 110 usage->hid, field->application); in plantronics_input_mapping() 114 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, mapped_key); in plantronics_input_mapping() 115 hid_dbg(hdev, "usage: %08x (appl: %08x) - mapped to key %d\n", in plantronics_input_mapping() 116 usage->hid, field->application, mapped_key); in plantronics_input_mapping() 121 struct hid_usage *usage, __s32 value) in plantronics_event() 155 col_page = hdev->collection[i].usage in plantronics_device_type() 50 plantronics_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) plantronics_input_mapping() argument 120 plantronics_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) plantronics_event() argument [all...] |
H A D | hid-ite.c | 43 struct hid_usage *usage, unsigned long **bit, in ite_input_mapping() 50 (usage->hid & HID_USAGE_PAGE) == 0x00880000) { in ite_input_mapping() 51 if (usage->hid == 0x00880078) { in ite_input_mapping() 53 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F22); in ite_input_mapping() 56 if (usage->hid == 0x00880079) { in ite_input_mapping() 58 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F23); in ite_input_mapping() 68 struct hid_usage *usage, __s32 value) in ite_event() 82 if (usage->hid == HID_GD_RFKILL_BTN) { in ite_event() 41 ite_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ite_input_mapping() argument 67 ite_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) ite_event() argument
|
H A D | hid-evision.c | 18 struct hid_field *field, struct hid_usage *usage, in evision_input_mapping() 21 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in evision_input_mapping() 25 if ((usage->hid & HID_USAGE) >> 8 == 0x05) in evision_input_mapping() 28 if ((usage->hid & HID_USAGE) >> 8 == 0x06) in evision_input_mapping() 31 switch (usage->hid & HID_USAGE) { in evision_input_mapping() 17 evision_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) evision_input_mapping() argument
|
H A D | hid-cypress.c | 29 * Some USB barcode readers from cypress have usage min and usage max in 84 struct hid_field *field, struct hid_usage *usage, in cp_input_mapped() 92 if (usage->type == EV_REL && usage->code == REL_WHEEL) in cp_input_mapped() 94 if (usage->hid == 0x00090005) in cp_input_mapped() 101 struct hid_usage *usage, __s32 value) in cp_event() 106 !usage->type || !(quirks & CP_2WHEEL_MOUSE_HACK)) in cp_event() 109 if (usage->hid == 0x00090005) { in cp_event() 118 if (usage in cp_event() 83 cp_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) cp_input_mapped() argument 100 cp_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) cp_event() argument [all...] |
H A D | hid-petalynx.c | 35 #define pl_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 38 struct hid_field *field, struct hid_usage *usage, in pl_input_mapping() 41 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_LOGIVENDOR) { in pl_input_mapping() 42 switch (usage->hid & HID_USAGE) { in pl_input_mapping() 54 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER) { in pl_input_mapping() 55 switch (usage->hid & HID_USAGE) { in pl_input_mapping() 37 pl_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) pl_input_mapping() argument
|
H A D | hid-lg.c | 56 * a custom vendor usage page, providing only a combined value as 535 #define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 539 struct hid_usage *usage, unsigned long **bit, int *max) in lg_ultrax_remote_mapping() 541 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_ultrax_remote_mapping() 545 switch (usage->hid & HID_USAGE) { in lg_ultrax_remote_mapping() 571 static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_wireless_mapping() argument 574 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in lg_wireless_mapping() 577 switch (usage->hid & HID_USAGE) { in lg_wireless_mapping() 633 struct hid_field *field, struct hid_usage *usage, in lg_input_mapping() 649 unsigned int hid = usage in lg_input_mapping() 538 lg_ultrax_remote_mapping(struct hid_input *hi, struct hid_usage *usage, unsigned long **bit, int *max) lg_ultrax_remote_mapping() argument 632 lg_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lg_input_mapping() argument 681 lg_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) lg_input_mapped() argument 722 lg_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) lg_event() argument [all...] |
/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/ |
H A D | It_extend_cpup.h | 55 #define ICUNIT_ASSERT_PROCESS_CPUP_USAGE(usage, lable) \ 58 if (((usage) > LOS_CPUP_PRECISION) || ((usage) < CPU_USE_MIN)) { \ 61 ret_ = usage; \ 66 #define ICUNIT_ASSERT_SINGLE_CPUP_USAGE(usage, lable) \ 69 if (((usage) > LOS_CPUP_SINGLE_CORE_PRECISION) || ((usage) < CPU_USE_MIN)) { \ 72 ret_ = usage; \
|
/kernel/linux/linux-6.6/mm/ |
H A D | bootmem_info.c | 48 struct mem_section_usage *usage; in register_page_bootmem_info_section() local 68 usage = ms->usage; in register_page_bootmem_info_section() 69 page = virt_to_page(usage); in register_page_bootmem_info_section() 83 struct mem_section_usage *usage; in register_page_bootmem_info_section() local 92 usage = ms->usage; in register_page_bootmem_info_section() 93 page = virt_to_page(usage); in register_page_bootmem_info_section()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | fscache.h | 165 int usage), 167 TP_ARGS(cookie, where, usage), 173 __field(int, usage ) 183 __entry->usage = usage; 191 __entry->cookie, __entry->usage, 233 __entry->p_usage = atomic_read(&cookie->parent->usage); 253 __field(int, usage ) 263 __entry->usage = atomic_read(&cookie->usage); [all...] |
/kernel/linux/linux-6.6/kernel/debug/kdb/ |
H A D | kdb_main.c | 100 KDBMSG(ARGCOUNT, "Improper argument count, see usage."), 768 kp->name, kp->usage, kp->help); in kdb_defcmd() 795 mp->usage = kdb_strdup(argv[2], GFP_KDB); in kdb_defcmd() 796 if (!mp->usage) in kdb_defcmd() 801 if (mp->usage[0] == '"') { in kdb_defcmd() 802 strcpy(mp->usage, argv[2]+1); in kdb_defcmd() 803 mp->usage[strlen(mp->usage)-1] = '\0'; in kdb_defcmd() 814 kfree(mp->usage); in kdb_defcmd() 2428 if (strlen(kt->usage) > 2 in kdb_help() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | cred.c | 40 static struct group_info init_groups = { .usage = ATOMIC_INIT(2) }; 46 .usage = ATOMIC_INIT(4), 75 if (atomic_long_read(&cred->usage) != 0) in put_cred_rcu() 76 panic("CRED: put_cred_rcu() sees %p with usage %ld\n", in put_cred_rcu() 77 cred, atomic_long_read(&cred->usage)); in put_cred_rcu() 102 atomic_long_read(&cred->usage)); in __put_cred() 104 BUG_ON(atomic_long_read(&cred->usage) != 0); in __put_cred() 123 atomic_long_read(&tsk->cred->usage)); in exit_creds() 177 atomic_long_set(&new->usage, 1); in cred_alloc_blank() 218 atomic_long_set(&new->usage, in prepare_creds() [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | cred.c | 37 struct group_info init_groups = { .usage = ATOMIC_INIT(2) }; 43 .usage = ATOMIC_INIT(4), 102 atomic_long_read(&cred->usage) != 0 || in put_cred_rcu() 105 " mag %x, put %p, usage %ld, subscr %d\n", in put_cred_rcu() 107 atomic_long_read(&cred->usage), in put_cred_rcu() 110 if (atomic_long_read(&cred->usage) != 0) in put_cred_rcu() 111 panic("CRED: put_cred_rcu() sees %p with usage %ld\n", in put_cred_rcu() 112 cred, atomic_long_read(&cred->usage)); in put_cred_rcu() 136 atomic_long_read(&cred->usage), in __put_cred() 139 BUG_ON(atomic_long_read(&cred->usage) ! in __put_cred() [all...] |