Home
last modified time | relevance | path

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

12345678910>>...45

/linux-6.3-rc2/drivers/hid/
A Dhid-input.c144 usage = report->field[i]->usage + j; in hidinput_find_key()
145 if (usage->type == EV_KEY || usage->type == 0) { in hidinput_find_key()
185 if (usage) { in hidinput_getkeycode()
206 if (usage) { in hidinput_setkeycode()
215 usage->code, usage->hid); in hidinput_setkeycode()
1402 (usage->hat_min < usage->hat_max || usage->hat_dir)) { in hidinput_configure_usage()
1517 if (usage->hat_min < usage->hat_max || usage->hat_dir) { in hidinput_hid_event()
1520 hat_dir = (value - usage->hat_min) * 8 / (usage->hat_max - usage->hat_min + 1) + 1; in hidinput_hid_event()
1698 input_event(input, usage->type, usage->code, 0); in hidinput_hid_event()
1883 usage = &report->field[i]->usage[j]; in __hidinput_change_resolution_multipliers()
[all …]
A Dhid-lenovo.c350 if (usage->hid == HID_GD_Z) { in lenovo_input_mapping_scrollpoint()
366 switch (usage->usage_index) { in lenovo_input_mapping_tp10_ultrabook_kbd()
389 if (usage->hid == 0x00070072) in lenovo_input_mapping_tp10_ultrabook_kbd()
450 usage, bit, max); in lenovo_input_mapping()
454 usage, bit, max); in lenovo_input_mapping()
458 usage, bit, max); in lenovo_input_mapping()
466 usage, bit, max); in lenovo_input_mapping()
653 if (usage->type == EV_KEY && usage->code == KEY_FN_ESC && value == 1) { in lenovo_event_tp10ubkbd()
672 if (usage->type == EV_REL && (usage->code == REL_WHEEL || in lenovo_event_cptkbd()
680 if (usage->type == EV_KEY && usage->code == BTN_MIDDLE) { in lenovo_event_cptkbd()
[all …]
A 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()
A 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()
A 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()
104 if (usage->code == REL_WHEEL_HI_RES && a4->hw_wheel) { in a4_event()
105 input_event(input, usage->type, REL_HWHEEL, value); in a4_event()
[all …]
A Dhid-microsoft.c86 switch (usage->hid & HID_USAGE) { in ms_ergonomy_kb_quirk()
104 switch (usage->hid & HID_USAGE) { in ms_ergonomy_kb_quirk()
149 switch (usage->hid & HID_USAGE) { in ms_presenter_8k_quirk()
164 switch (usage->hid & HID_USAGE_PAGE) { in ms_surface_dial_quirk()
170 switch (usage->hid) { in ms_surface_dial_quirk()
196 ms_presenter_8k_quirk(hi, usage, bit, max)) in ms_input_mapping()
217 clear_bit(usage->code, *bit); in ms_input_mapped()
223 struct hid_usage *usage, __s32 value) in ms_event() argument
230 !usage->type) in ms_event()
270 input_event(input, usage->type, key, 1); in ms_event()
[all …]
A 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 …]
A Dhid-lg.c545 switch (usage->hid & HID_USAGE) { in lg_ultrax_remote_mapping()
577 switch (usage->hid & HID_USAGE) { in lg_wireless_mapping()
649 unsigned int hid = usage->hid; in lg_input_mapping()
672 hid_map_usage(hi, usage, bit, max, EV_KEY, in lg_input_mapping()
692 usage->type == EV_REL || usage->type == EV_ABS)) in lg_input_mapped()
693 clear_bit(usage->code, *bit); in lg_input_mapped()
696 if (usage->type == EV_ABS && (usage->code == ABS_X || in lg_input_mapped()
697 usage->code == ABS_Y || usage->code == ABS_Z || in lg_input_mapped()
698 usage->code == ABS_RZ)) { in lg_input_mapped()
723 struct hid_usage *usage, __s32 value) in lg_event() argument
[all …]
A Dhid-multitouch.c532 usage = devm_kzalloc(&hdev->dev, sizeof(*usage), GFP_KERNEL); in mt_allocate_usage()
533 if (!usage) in mt_allocate_usage()
552 return usage; in mt_allocate_usage()
685 if (!usage) in mt_store_field()
702 if (!usage) in mt_store_field()
739 prev_usage = &field->usage[usage->usage_index - 1]; in mt_touch_input_mapping()
1186 if (usage->type == EV_KEY && usage->code == BTN_LEFT) { in mt_process_mt_event()
1192 input_event(input, usage->type, usage->code, value); in mt_process_mt_event()
1553 usage = &rep->field[i]->usage[j]; in mt_set_modes()
1557 usage, in mt_set_modes()
[all …]
A 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()
A Dhid-ite.c43 struct hid_usage *usage, unsigned long **bit, in ite_input_mapping() argument
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() argument
82 if (usage->hid == HID_GD_RFKILL_BTN) { in ite_event()
A 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()
A 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()
A Dhid-evision.c18 struct hid_field *field, struct hid_usage *usage, in evision_input_mapping() argument
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()
A 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()
/linux-6.3-rc2/tools/verification/rv/src/
A Drv.c42 static const char *const usage[] = { in rv_list() local
57 for (i = 0; usage[i]; i++) in rv_list()
58 fprintf(stderr, "%s\n", usage[i]); in rv_list()
79 static const char *const usage[] = { in rv_mon() local
97 for (i = 0; usage[i]; i++) in rv_mon()
98 fprintf(stderr, "%s\n", usage[i]); in rv_mon()
104 for (i = 0; usage[i]; i++) in rv_mon()
105 fprintf(stderr, "%s\n", usage[i]); in rv_mon()
148 for (i = 0; usage[i]; i++) in usage()
149 fprintf(stderr, "%s\n", usage[i]); in usage()
[all …]
/linux-6.3-rc2/drivers/dma-buf/
A Dst-dma-resv.c65 enum dma_resv_usage usage = (unsigned long)arg; in test_signaling() local
89 dma_resv_add_fence(&resv, f, usage); in test_signaling()
90 if (dma_resv_test_signaled(&resv, usage)) { in test_signaling()
96 if (!dma_resv_test_signaled(&resv, usage)) { in test_signaling()
136 dma_resv_add_fence(&resv, f, usage); in test_for_each()
198 dma_resv_add_fence(&resv, f, usage); in test_for_each_unlocked()
202 dma_resv_iter_begin(&cursor, &resv, usage); in test_for_each_unlocked()
271 dma_resv_add_fence(&resv, f, usage); in test_get_fences()
305 enum dma_resv_usage usage; in dma_resv() local
309 for (usage = DMA_RESV_USAGE_KERNEL; usage <= DMA_RESV_USAGE_BOOKKEEP; in dma_resv()
[all …]
A Ddma-resv.c72 enum dma_resv_usage *usage) in dma_resv_list_entry() argument
79 if (usage) in dma_resv_list_entry()
80 *usage = tmp & DMA_RESV_LIST_MASK; in dma_resv_list_entry()
87 enum dma_resv_usage usage) in dma_resv_list_set() argument
89 long tmp = ((long)fence) | usage; in dma_resv_list_set()
209 enum dma_resv_usage usage; in dma_resv_reserve_fences() local
281 enum dma_resv_usage usage) in dma_resv_add_fence() argument
315 dma_resv_list_set(fobj, i, fence, usage); in dma_resv_add_fence()
337 enum dma_resv_usage usage) in dma_resv_replace_fences() argument
570 dma_resv_iter_begin(&cursor, obj, usage); in dma_resv_get_fences()
[all …]
/linux-6.3-rc2/mm/
A Dpage_counter.c17 unsigned long usage) in propagate_protected_usage() argument
25 protected = min(usage, READ_ONCE(c->min)); in propagate_protected_usage()
34 protected = min(usage, READ_ONCE(c->low)); in propagate_protected_usage()
53 new = atomic_long_sub_return(nr_pages, &counter->usage); in page_counter_cancel()
58 atomic_long_set(&counter->usage, new); in page_counter_cancel()
77 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge()
119 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
121 atomic_long_sub(nr_pages, &c->usage); in page_counter_try_charge()
175 long usage; in page_counter_set_max() local
188 usage = page_counter_read(counter); in page_counter_set_max()
[all …]
A Dsparse.c308 ms->usage = usage; in sparse_init_one_section()
358 return usage; in sparse_early_usemaps_alloc_pgdat_section()
516 if (!usage) { in sparse_init_nid()
539 usage = (void *) usage + mem_section_usage_size(); in sparse_init_nid()
803 kfree(ms->usage); in section_deactivate()
804 ms->usage = NULL; in section_deactivate()
837 if (!ms->usage) { in section_activate()
839 if (!usage) in section_activate()
841 ms->usage = usage; in section_activate()
846 if (usage) in section_activate()
[all …]
A Dbootmem_info.c48 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()
/linux-6.3-rc2/tools/usb/usbip/src/
A 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 …]
/linux-6.3-rc2/tools/power/acpi/tools/ec/
A Dec_access.c62 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()
119 usage(argv[0], EXIT_FAILURE); in parse_opts()
[all …]
/linux-6.3-rc2/include/linux/
A Ddma-resv.h198 enum dma_resv_usage usage; member
232 enum dma_resv_usage usage) in dma_resv_iter_begin() argument
235 cursor->usage = usage; in dma_resv_iter_begin()
306 #define dma_resv_for_each_fence(cursor, obj, usage, fence) \ argument
307 for (dma_resv_iter_begin(cursor, obj, usage), \
471 enum dma_resv_usage usage);
474 enum dma_resv_usage usage);
475 int dma_resv_get_fences(struct dma_resv *obj, enum dma_resv_usage usage,
477 int dma_resv_get_singleton(struct dma_resv *obj, enum dma_resv_usage usage,
480 long dma_resv_wait_timeout(struct dma_resv *obj, enum dma_resv_usage usage,
[all …]
/linux-6.3-rc2/net/sunrpc/auth_gss/
A Dgss_krb5_test.c29 const struct xdr_netobj *usage; member
858 .usage = &usage_checksum,
872 .usage = &usage_integrity,
879 .usage = &usage_checksum,
893 .usage = &usage_integrity,
1314 struct xdr_netobj usage = { in rfc6803_encrypt_case() local
1482 .usage = &usage_checksum,
1503 .usage = &usage_checksum,
1555 .usage = &usage_checksum,
1563 .usage = &usage_checksum,
[all …]

Completed in 50 milliseconds

12345678910>>...45