Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 1016) sorted by relevance

12345678910>>...41

/kernel/linux/linux-5.10/drivers/hid/
Dhid-input.c51 #define map_abs(c) hid_map_usage(hidinput, usage, &bit, &max, EV_ABS, (c))
52 #define map_rel(c) hid_map_usage(hidinput, usage, &bit, &max, EV_REL, (c))
53 #define map_key(c) hid_map_usage(hidinput, usage, &bit, &max, EV_KEY, (c))
54 #define map_led(c) hid_map_usage(hidinput, usage, &bit, &max, EV_LED, (c))
56 #define map_abs_clear(c) hid_map_usage_clear(hidinput, usage, &bit, \
58 #define map_key_clear(c) hid_map_usage_clear(hidinput, usage, &bit, \
61 static bool match_scancode(struct hid_usage *usage, in match_scancode() argument
64 return (usage->hid & (HID_USAGE_PAGE | HID_USAGE)) == scancode; in match_scancode()
67 static bool match_keycode(struct hid_usage *usage, in match_keycode() argument
73 return (usage->type == EV_KEY && usage->code == keycode); in match_keycode()
[all …]
Dhid-ezkey.c22 #define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c))
23 #define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c))
26 struct hid_field *field, struct hid_usage *usage, in ez_input_mapping() argument
29 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in ez_input_mapping()
32 switch (usage->hid & HID_USAGE) { in ez_input_mapping()
48 struct hid_usage *usage, __s32 value) in ez_event() argument
51 !usage->type) in ez_event()
55 if (usage->type == EV_REL && usage->code == REL_HWHEEL) { in ez_event()
57 input_event(input, usage->type, REL_WHEEL, -value); in ez_event()
Dhid-gyration.c22 #define gy_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
25 struct hid_field *field, struct hid_usage *usage, in gyration_input_mapping() argument
28 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in gyration_input_mapping()
32 switch (usage->hid & HID_USAGE) { in gyration_input_mapping()
55 struct hid_usage *usage, __s32 value) in gyration_event() argument
61 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK && in gyration_event()
62 (usage->hid & 0xff) == 0x82) { in gyration_event()
64 input_event(input, usage->type, usage->code, 1); in gyration_event()
66 input_event(input, usage->type, usage->code, 0); in gyration_event()
Dhid-a4tech.c35 struct hid_field *field, struct hid_usage *usage, in a4_input_mapping() argument
41 usage->hid == A4_WHEEL_ORIENTATION) { in a4_input_mapping()
57 struct hid_field *field, struct hid_usage *usage, in a4_input_mapped() argument
62 if (usage->type == EV_REL && usage->code == REL_WHEEL_HI_RES) { in a4_input_mapped()
67 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) in a4_input_mapped()
74 struct hid_usage *usage, __s32 value) in a4_event() argument
85 if (usage->type == EV_REL && usage->code == REL_WHEEL_HI_RES) { in a4_event()
90 if (usage->hid == A4_WHEEL_ORIENTATION) { in a4_event()
99 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) { in a4_event()
104 if (usage->code == REL_WHEEL_HI_RES && a4->hw_wheel) { in a4_event()
[all …]
Dhid-icade.c165 struct hid_usage *usage, __s32 value) in icade_event() argument
170 !usage->type) in icade_event()
177 trans = icade_find_translation(usage->hid & HID_USAGE); in icade_event()
182 input_event(field->hidinput->input, usage->type, in icade_event()
189 struct hid_field *field, struct hid_usage *usage, in icade_input_mapping() argument
194 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_KEYBOARD) { in icade_input_mapping()
195 trans = icade_find_translation(usage->hid & HID_USAGE); in icade_input_mapping()
200 hid_map_usage(hi, usage, bit, max, EV_KEY, trans->to); in icade_input_mapping()
212 struct hid_field *field, struct hid_usage *usage, in icade_input_mapped() argument
215 if (usage->type == EV_KEY) in icade_input_mapped()
[all …]
Dhid-lg.c535 #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() argument
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->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in lg_wireless_mapping()
593 switch (usage->hid & HID_USAGE) { in lg_wireless_mapping()
[all …]
Dhid-microsoft.c78 #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()
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()
142 static int ms_presenter_8k_quirk(struct hid_input *hi, struct hid_usage *usage, in ms_presenter_8k_quirk() argument
145 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_MSVENDOR) in ms_presenter_8k_quirk()
149 switch (usage->hid & HID_USAGE) { in ms_presenter_8k_quirk()
[all …]
Dhid-multitouch.c451 struct hid_field *field, struct hid_usage *usage) in mt_feature_mapping() argument
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->x = DEFAULT_ZERO; in mt_allocate_usage()
508 usage->y = DEFAULT_ZERO; in mt_allocate_usage()
[all …]
Dhid-apple.c191 struct hid_usage *usage, __s32 value) in hidinput_apple_event() argument
200 if (usage->code == fn_keycode) { in hidinput_apple_event()
202 input_event(input, usage->type, KEY_FN, value); in hidinput_apple_event()
215 trans = apple_find_translation (table, usage->code); in hidinput_apple_event()
243 input_event(input, usage->type, code, value); in hidinput_apple_event()
248 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
251 usage->code); in hidinput_apple_event()
255 set_bit(usage->code, in hidinput_apple_event()
258 clear_bit(usage->code, in hidinput_apple_event()
261 input_event(input, usage->type, trans->to, in hidinput_apple_event()
[all …]
Dhid-jabra.c22 struct hid_usage *usage, in jabra_input_mapping() argument
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()
Dhid-ite.c32 struct hid_usage *usage, unsigned long **bit, in ite_input_mapping() argument
39 (usage->hid & HID_USAGE_PAGE) == 0x00880000) { in ite_input_mapping()
40 if (usage->hid == 0x00880078) { in ite_input_mapping()
42 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F22); in ite_input_mapping()
45 if (usage->hid == 0x00880079) { in ite_input_mapping()
47 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F23); in ite_input_mapping()
57 struct hid_usage *usage, __s32 value) in ite_event() argument
71 if (usage->hid == HID_GD_RFKILL_BTN) { in ite_event()
Dhid-lenovo.c57 #define map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
135 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_tpkbd() argument
137 if (usage->hid == (HID_UP_BUTTON | 0x0010)) { in lenovo_input_mapping_tpkbd()
148 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_cptkbd() argument
151 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR || in lenovo_input_mapping_cptkbd()
152 (usage->hid & HID_USAGE_PAGE) == HID_UP_LNVENDOR) { in lenovo_input_mapping_cptkbd()
153 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_cptkbd()
189 if (usage->hid == HID_GD_WHEEL) in lenovo_input_mapping_cptkbd()
191 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON && in lenovo_input_mapping_cptkbd()
192 (usage->hid & HID_USAGE) == 0x003) in lenovo_input_mapping_cptkbd()
[all …]
Dhid-plantronics.c38 (usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER)
53 struct hid_usage *usage, in plantronics_input_mapping() argument
87 switch (usage->hid) { 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()
116 usage->hid, field->application, mapped_key); in plantronics_input_mapping()
121 struct hid_usage *usage, __s32 value) in plantronics_event() argument
155 col_page = hdev->collection[i].usage & HID_USAGE_PAGE; in plantronics_device_type()
157 plt_type = hdev->collection[i].usage; in plantronics_device_type()
161 plt_type = hdev->collection[i].usage; in plantronics_device_type()
Dhid-cypress.c84 struct hid_field *field, struct hid_usage *usage, in cp_input_mapped() argument
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() argument
106 !usage->type || !(quirks & CP_2WHEEL_MOUSE_HACK)) in cp_event()
109 if (usage->hid == 0x00090005) { in cp_event()
118 if (usage->code == REL_WHEEL && (quirks & CP_2WHEEL_MOUSE_HACK_ON)) { in cp_event()
121 input_event(input, usage->type, REL_HWHEEL, value); in cp_event()
Dhid-petalynx.c35 #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() argument
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()
Dhid-tivo.c19 #define tivo_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
23 struct hid_field *field, struct hid_usage *usage, in tivo_input_mapping() argument
26 switch (usage->hid & HID_USAGE_PAGE) { in tivo_input_mapping()
28 switch (usage->hid & HID_USAGE) { in tivo_input_mapping()
42 switch (usage->hid & HID_USAGE) { in tivo_input_mapping()
Dhid-corsair.c48 static int corsair_usage_to_gkey(unsigned int usage) in corsair_usage_to_gkey() argument
51 if (usage >= 0xd0 && usage <= 0xdf) in corsair_usage_to_gkey()
52 return usage - 0xd0 + 1; in corsair_usage_to_gkey()
54 if (usage >= 0xe8 && usage <= 0xe9) in corsair_usage_to_gkey()
55 return usage - 0xe8 + 17; in corsair_usage_to_gkey()
606 struct hid_usage *usage, __s32 value) in corsair_event() argument
613 switch (usage->hid & HID_USAGE) { in corsair_event()
630 struct hid_usage *usage, unsigned long **bit, in corsair_input_mapping() argument
635 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_KEYBOARD) in corsair_input_mapping()
638 gkey = corsair_usage_to_gkey(usage->hid & HID_USAGE); in corsair_input_mapping()
[all …]
Dhid-samsung.c93 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
96 struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, in samsung_kbd_mouse_input_mapping() argument
102 if (1 != ifnum || HID_UP_CONSUMER != (usage->hid & HID_USAGE_PAGE)) in samsung_kbd_mouse_input_mapping()
106 usage->hid & HID_USAGE); in samsung_kbd_mouse_input_mapping()
108 switch (usage->hid & HID_USAGE) { in samsung_kbd_mouse_input_mapping()
137 struct hid_field *field, struct hid_usage *usage, in samsung_input_mapping() argument
144 hi, field, usage, bit, max); in samsung_input_mapping()
/kernel/linux/linux-5.10/mm/
Dpage_counter.c17 unsigned long usage) in propagate_protected_usage() argument
28 protected = min(usage, min); in propagate_protected_usage()
37 protected = min(usage, low); in propagate_protected_usage()
54 new = atomic_long_sub_return(nr_pages, &counter->usage); in page_counter_cancel()
74 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge()
116 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
118 atomic_long_sub(nr_pages, &c->usage); in page_counter_try_charge()
173 long usage; in page_counter_set_max() local
186 usage = atomic_long_read(&counter->usage); in page_counter_set_max()
188 if (usage > nr_pages) in page_counter_set_max()
[all …]
Dsparse.c235 subsection_mask_set(ms->usage->subsection_map, pfn, pfns); in subsection_map_init()
329 struct mem_section_usage *usage, unsigned long flags) in sparse_init_one_section() argument
334 ms->usage = usage; in sparse_init_one_section()
352 struct mem_section_usage *usage; in sparse_early_usemaps_alloc_pgdat_section() local
369 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section()
370 if (!usage && limit) { in sparse_early_usemaps_alloc_pgdat_section()
374 return usage; in sparse_early_usemaps_alloc_pgdat_section()
378 struct mem_section_usage *usage) in check_usemap_section_nr() argument
392 usemap_snr = pfn_to_section_nr(__pa(usage) >> PAGE_SHIFT); in check_usemap_section_nr()
428 struct mem_section_usage *usage) in check_usemap_section_nr() argument
[all …]
/kernel/uniproton/src/om/cpup/
Dprt_cpup_thread_64.c96 cpup[maxNum].usage = OsCpupIntGet(); in OsCpupTask()
110 cpup[maxNum].usage = g_cpup[index].usage; in OsCpupTask()
166 g_cpup[index].usage = (U16)DIV64(g_cpup[index].allTime * CPUP_USE_RATE, g_baseValue); in OsCpupTickCal()
167 if (g_cpup[index].usage > CPUP_USE_RATE) { in OsCpupTickCal()
168 g_cpup[index].usage = CPUP_USE_RATE; in OsCpupTickCal()
172 … OsMcCpupSet(OsGetHwThreadId(), (U32)(CPUP_USE_RATE - g_cpup[TSK_GET_INDEX(IDLE_TASK_ID)].usage)); in OsCpupTickCal()
183 U16 usage = 0; in OsCpupIntGet() local
186 usage += g_cpup[index].usage; in OsCpupIntGet()
189 usage += g_cpupDelTask; in OsCpupIntGet()
191 if (usage >= CPUP_USE_RATE) { in OsCpupIntGet()
[all …]
/kernel/linux/linux-5.10/tools/usb/usbip/src/
Dusbip.c38 void (*usage)(void); member
46 .usage = NULL
52 .usage = NULL
58 .usage = usbip_attach_usage
64 .usage = usbip_detach_usage
70 .usage = usbip_list_usage
76 .usage = usbip_bind_usage
82 .usage = usbip_unbind_usage
88 .usage = NULL
101 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { in usbip_help()
[all …]
/kernel/linux/linux-5.10/tools/power/acpi/tools/ec/
Dec_access.c35 void usage(char progname[], int exit_status) in usage() function
62 usage(argv[0], EXIT_FAILURE); in parse_opts()
67 usage(argv[0], EXIT_FAILURE); in parse_opts()
72 usage(argv[0], EXIT_FAILURE); in parse_opts()
78 usage(argv[0], EXIT_FAILURE); in parse_opts()
84 usage(argv[0], EXIT_FAILURE); in parse_opts()
92 usage(argv[0], EXIT_SUCCESS); in parse_opts()
95 usage(argv[0], EXIT_FAILURE); in parse_opts()
104 usage(argv[0], EXIT_FAILURE); in parse_opts()
110 usage(argv[0], EXIT_FAILURE); in parse_opts()
[all …]
/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/
DIt_extend_cpup.h55 #define ICUNIT_ASSERT_PROCESS_CPUP_USAGE(usage, lable) \ argument
58 if (((usage) > LOS_CPUP_PRECISION) || ((usage) < CPU_USE_MIN)) { \
61 ret_ = usage; \
66 #define ICUNIT_ASSERT_SINGLE_CPUP_USAGE(usage, lable) \ argument
69 if (((usage) > LOS_CPUP_SINGLE_CORE_PRECISION) || ((usage) < CPU_USE_MIN)) { \
72 ret_ = usage; \
/kernel/linux/linux-5.10/include/trace/events/
Dfscache.h165 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);
271 __entry->cookie, __entry->usage,
283 __field(int, usage )
[all …]

12345678910>>...41