Home
last modified time | relevance | path

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

12345678910>>...42

/linux/drivers/hid/
A Dhid-input.c73 return (usage->type == EV_KEY && usage->code == keycode); in match_keycode()
98 usage = report->field[i]->usage + j; in hidinput_find_key()
99 if (usage->type == EV_KEY || usage->type == 0) { in hidinput_find_key()
139 if (usage) { in hidinput_getkeycode()
169 usage->code, usage->hid); in hidinput_setkeycode()
1254 (usage->hat_min < usage->hat_max || usage->hat_dir)) { in hidinput_configure_usage()
1336 if (usage->hat_min < usage->hat_max || usage->hat_dir) { in hidinput_hid_event()
1339 hat_dir = (value - usage->hat_min) * 8 / (usage->hat_max - usage->hat_min + 1) + 1; in hidinput_hid_event()
1356 input_event(input, usage->type, usage->code, 0); in hidinput_hid_event()
1637 usage = &report->field[i]->usage[j]; in __hidinput_change_resolution_multipliers()
[all …]
A Dhid-apple.c209 if (usage->code == fn_keycode) { in hidinput_apple_event()
212 usage->hid, value); in hidinput_apple_event()
254 usage->hid, value); in hidinput_apple_event()
262 usage->code); in hidinput_apple_event()
266 set_bit(usage->code, in hidinput_apple_event()
269 clear_bit(usage->code, in hidinput_apple_event()
317 !usage->type) in apple_event()
321 usage->code == REL_HWHEEL) { in apple_event()
323 usage->code, usage->hid, -value); in apple_event()
329 usage, value)) in apple_event()
[all …]
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-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-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-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.c521 usage = devm_kzalloc(&hdev->dev, sizeof(*usage), GFP_KERNEL); in mt_allocate_usage()
522 if (!usage) in mt_allocate_usage()
541 return usage; in mt_allocate_usage()
674 if (!usage) in mt_store_field()
691 if (!usage) in mt_store_field()
728 prev_usage = &field->usage[usage->usage_index - 1]; in mt_touch_input_mapping()
1153 if (usage->type == EV_KEY && usage->code == BTN_LEFT) { in mt_process_mt_event()
1159 input_event(input, usage->type, usage->code, value); in mt_process_mt_event()
1520 usage = &rep->field[i]->usage[j]; in mt_set_modes()
1524 usage, in mt_set_modes()
[all …]
A Dhid-lenovo.c189 if (usage->hid == HID_GD_WHEEL) in lenovo_input_mapping_cptkbd()
224 if (usage->hid == HID_GD_Z) { in lenovo_input_mapping_scrollpoint()
240 switch (usage->usage_index) { in lenovo_input_mapping_tp10_ultrabook_kbd()
263 if (usage->hid == 0x00070072) in lenovo_input_mapping_tp10_ultrabook_kbd()
278 switch (usage->usage_index) { in lenovo_input_mapping_x1_tab_kbd()
324 usage, bit, max); in lenovo_input_mapping()
328 usage, bit, max); in lenovo_input_mapping()
336 usage, bit, max); in lenovo_input_mapping()
514 if (usage->type == EV_KEY && usage->code == KEY_FN_ESC && value == 1) { in lenovo_event_tp10ubkbd()
533 if (usage->type == EV_REL && (usage->code == REL_WHEEL || in lenovo_event_cptkbd()
[all …]
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-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-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-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()
640 hid_map_usage_clear(input, usage, bit, max, EV_KEY, in corsair_input_mapping()
[all …]
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/mm/
A Dsparse.c308 ms->usage = usage; in sparse_init_one_section()
358 return usage; in sparse_early_usemaps_alloc_pgdat_section()
515 if (!usage) { in sparse_init_nid()
538 usage = (void *) usage + mem_section_usage_size(); in sparse_init_nid()
800 kfree(ms->usage); in section_deactivate()
801 ms->usage = NULL; in section_deactivate()
833 if (!ms->usage) { in section_activate()
835 if (!usage) in section_activate()
837 ms->usage = usage; in section_activate()
842 if (usage) in section_activate()
[all …]
A 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()
59 atomic_long_set(&counter->usage, new); in page_counter_cancel()
78 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge()
120 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
122 atomic_long_sub(nr_pages, &c->usage); in page_counter_try_charge()
177 long usage; in page_counter_set_max() local
190 usage = page_counter_read(counter); in page_counter_set_max()
192 if (usage > nr_pages) in page_counter_set_max()
[all …]
A Dbootmem_info.c47 struct mem_section_usage *usage; in register_page_bootmem_info_section() local
67 usage = ms->usage; in register_page_bootmem_info_section()
68 page = virt_to_page(usage); in register_page_bootmem_info_section()
82 struct mem_section_usage *usage; in register_page_bootmem_info_section() local
91 usage = ms->usage; in register_page_bootmem_info_section()
92 page = virt_to_page(usage); in register_page_bootmem_info_section()
/linux/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/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/Documentation/userspace-api/ioctl/
A Dcdrom.rst103 usage::
124 usage::
147 usage::
178 usage::
207 usage::
232 usage::
263 usage::
288 usage::
314 usage::
341 usage::
[all …]
/linux/kernel/
A Dcred.c42 .usage = ATOMIC_INIT(4),
107 atomic_read(&cred->usage), in put_cred_rcu()
110 if (atomic_read(&cred->usage) != 0) in put_cred_rcu()
138 atomic_read(&cred->usage), in __put_cred()
224 atomic_set(&new->usage, 1); in cred_alloc_blank()
270 atomic_set(&new->usage, 1); in prepare_creds()
453 atomic_read(&new->usage), in commit_creds()
536 atomic_read(&new->usage), in abort_creds()
559 atomic_read(&new->usage), in override_creds()
582 atomic_read(&old->usage), in override_creds()
[all …]
/linux/net/rxrpc/
A Dconn_object.c107 if (!conn || atomic_read(&conn->usage) == 0) in rxrpc_find_connection_rcu()
117 if (!conn || atomic_read(&conn->usage) == 0) { in rxrpc_find_connection_rcu()
283 int n = atomic_read(&conn->usage); in rxrpc_see_connection()
295 int n = atomic_inc_return(&conn->usage); in rxrpc_get_connection()
338 n = atomic_dec_return(&conn->usage); in rxrpc_put_service_conn()
356 ASSERTCMP(atomic_read(&conn->usage), ==, 0); in rxrpc_destroy_connection()
395 ASSERTCMP(atomic_read(&conn->usage), >, 0); in rxrpc_service_connection_reaper()
396 if (likely(atomic_read(&conn->usage) > 1)) in rxrpc_service_connection_reaper()
421 if (atomic_cmpxchg(&conn->usage, 1, 0) != 1) in rxrpc_service_connection_reaper()
445 ASSERTCMP(atomic_read(&conn->usage), ==, 0); in rxrpc_service_connection_reaper()
[all …]
/linux/fs/fscache/
A Doperation.c41 atomic_set(&op->usage, 1); in fscache_operation_init()
71 ASSERTCMP(atomic_read(&op->usage), >, 0); in fscache_enqueue_operation()
80 atomic_inc(&op->usage); in fscache_enqueue_operation()
169 ASSERTCMP(atomic_read(&op->usage), >, 0); in fscache_submit_exclusive_op()
196 atomic_inc(&op->usage); in fscache_submit_exclusive_op()
200 atomic_inc(&op->usage); in fscache_submit_exclusive_op()
216 atomic_inc(&op->usage); in fscache_submit_exclusive_op()
282 atomic_inc(&op->usage); in fscache_submit_op()
286 atomic_inc(&op->usage); in fscache_submit_op()
298 atomic_inc(&op->usage); in fscache_submit_op()
[all …]

Completed in 77 milliseconds

12345678910>>...42