/drivers/hid/ |
H A D | hid-ezkey.c | 26 #define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c)) 27 #define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c)) 30 struct hid_field *field, struct hid_usage *usage, 33 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) 36 switch (usage->hid & HID_USAGE) { 41 * totally broken way. We map this usage temporarily 52 struct hid_usage *usage, __s32 value) 55 !usage->type) 59 if (usage->type == EV_REL && usage 29 ez_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 51 ez_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument [all...] |
H A D | hid-gyration.c | 26 #define gy_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 29 struct hid_field *field, struct hid_usage *usage, 32 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) 36 switch (usage->hid & HID_USAGE) { 59 struct hid_usage *usage, __s32 value) 65 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK && 66 (usage->hid & 0xff) == 0x82) { 68 input_event(input, usage->type, usage->code, 1); 70 input_event(input, usage 28 gyration_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 58 gyration_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument [all...] |
H A D | hid-a4tech.c | 37 struct hid_field *field, struct hid_usage *usage, 42 if (usage->type == EV_REL && usage->code == REL_WHEEL) 45 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) 52 struct hid_usage *usage, __s32 value) 58 !usage->type) 64 if (usage->type == EV_REL && usage->code == REL_WHEEL) { 69 if (usage->hid == 0x000100b8) { 76 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage 36 a4_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 51 a4_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument [all...] |
H A D | hid-input.c | 63 #define map_abs(c) hid_map_usage(hidinput, usage, &bit, &max, EV_ABS, (c)) 64 #define map_rel(c) hid_map_usage(hidinput, usage, &bit, &max, EV_REL, (c)) 65 #define map_key(c) hid_map_usage(hidinput, usage, &bit, &max, EV_KEY, (c)) 66 #define map_led(c) hid_map_usage(hidinput, usage, &bit, &max, EV_LED, (c)) 68 #define map_abs_clear(c) hid_map_usage_clear(hidinput, usage, &bit, \ 70 #define map_key_clear(c) hid_map_usage_clear(hidinput, usage, &bit, \ 73 static bool match_scancode(struct hid_usage *usage, argument 76 return (usage->hid & (HID_USAGE_PAGE | HID_USAGE)) == scancode; 79 static bool match_keycode(struct hid_usage *usage, argument 85 return (usage 88 match_index(struct hid_usage *usage, unsigned int cur_idx, unsigned int idx) argument 104 struct hid_usage *usage; local 130 struct hid_usage *usage; local 147 struct hid_usage *usage; local 169 struct hid_usage *usage; local 438 hidinput_configure_usage(struct hid_input *hidinput, struct hid_field *field, struct hid_usage *usage) argument 924 hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) argument [all...] |
H A D | hid-kensington.c | 21 #define ks_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c)) 24 struct hid_field *field, struct hid_usage *usage, 27 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_MSVENDOR) 30 switch (usage->hid & HID_USAGE) { 23 ks_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-cypress.c | 31 * Some USB barcode readers from cypress have usage min and usage max in 57 struct hid_field *field, struct hid_usage *usage, 65 if (usage->type == EV_REL && usage->code == REL_WHEEL) 67 if (usage->hid == 0x00090005) 74 struct hid_usage *usage, __s32 value) 79 !usage->type || !(quirks & CP_2WHEEL_MOUSE_HACK)) 82 if (usage->hid == 0x00090005) { 91 if (usage 56 cp_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 73 cp_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument [all...] |
H A D | hid-tivo.c | 22 #define tivo_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 26 struct hid_field *field, struct hid_usage *usage, 29 switch (usage->hid & HID_USAGE_PAGE) { 31 switch (usage->hid & HID_USAGE) { 45 switch (usage->hid & HID_USAGE) { 25 tivo_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-speedlink.c | 31 struct hid_field *field, struct hid_usage *usage, 40 switch (usage->hid & HID_USAGE_PAGE) { 48 struct hid_usage *usage, __s32 value) 29 speedlink_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 47 speedlink_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument
|
H A D | hid-petalynx.c | 39 #define pl_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 42 struct hid_field *field, struct hid_usage *usage, 45 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_LOGIVENDOR) { 46 switch (usage->hid & HID_USAGE) { 58 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER) { 59 switch (usage->hid & HID_USAGE) { 41 pl_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-belkin.c | 28 #define belkin_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 31 struct hid_field *field, struct hid_usage *usage, 36 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER || 40 switch (usage->hid & HID_USAGE) { 30 belkin_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-cherry.c | 40 #define ch_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 43 struct hid_field *field, struct hid_usage *usage, 46 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) 49 switch (usage->hid & HID_USAGE) { 42 ch_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-chicony.c | 26 #define ch_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 29 struct hid_field *field, struct hid_usage *usage, 32 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_MSVENDOR) 36 switch (usage->hid & HID_USAGE) { 28 ch_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-lcpower.c | 21 #define ts_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 24 struct hid_field *field, struct hid_usage *usage, 27 if ((usage->hid & HID_USAGE_PAGE) != 0x0ffbc0000) 30 switch (usage->hid & HID_USAGE) { 23 ts_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-microsoft.c | 51 #define ms_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 53 static int ms_ergonomy_kb_quirk(struct hid_input *hi, struct hid_usage *usage, argument 58 switch (usage->hid & HID_USAGE) { 75 static int ms_presenter_8k_quirk(struct hid_input *hi, struct hid_usage *usage, argument 79 switch (usage->hid & HID_USAGE) { 92 struct hid_field *field, struct hid_usage *usage, 97 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_MSVENDOR) 101 int ret = ms_ergonomy_kb_quirk(hi, usage, bit, max); 107 ms_presenter_8k_quirk(hi, usage, bit, max)) 114 struct hid_field *field, struct hid_usage *usage, 91 ms_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 113 ms_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 125 ms_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument [all...] |
H A D | hid-monterey.c | 35 #define mr_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 38 struct hid_field *field, struct hid_usage *usage, 41 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) 44 switch (usage->hid & HID_USAGE) { 37 mr_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-sunplus.c | 37 #define sp_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 40 struct hid_field *field, struct hid_usage *usage, 43 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) 46 switch (usage->hid & HID_USAGE) { 39 sp_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-lg.c | 50 * a custom vendor usage page, providing only a combined value as 152 #define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 156 struct hid_usage *usage, unsigned long **bit, int *max) 158 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) 162 switch (usage->hid & HID_USAGE) { 188 static int lg_dinovo_mapping(struct hid_input *hi, struct hid_usage *usage, argument 191 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) 194 switch (usage->hid & HID_USAGE) { 204 static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, argument 207 if ((usage 155 lg_ultrax_remote_mapping(struct hid_input *hi, struct hid_usage *usage, unsigned long **bit, int *max) argument 265 lg_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 318 lg_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 335 lg_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument [all...] |
H A D | hid-apple.c | 169 struct hid_usage *usage, __s32 value) 174 if (usage->code == KEY_FN) { 176 input_event(input, usage->type, usage->code, value); 191 trans = apple_find_translation (table, usage->code); 194 if (test_bit(usage->code, asc->pressed_fn)) 204 set_bit(usage->code, asc->pressed_fn); 206 clear_bit(usage->code, asc->pressed_fn); 208 input_event(input, usage->type, trans->to, 216 (test_bit(usage 168 hidinput_apple_event(struct hid_device *hid, struct input_dev *input, struct hid_usage *usage, __s32 value) argument 250 apple_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) argument 312 apple_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 328 apple_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument [all...] |
H A D | hid-topseed.c | 27 #define ts_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 30 struct hid_field *field, struct hid_usage *usage, 33 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) 36 switch (usage->hid & HID_USAGE) { 29 ts_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-samsung.c | 19 * several key mappings used from the consumer usage page 99 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c)) 102 struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, 108 if (1 != ifnum || HID_UP_CONSUMER != (usage->hid & HID_USAGE_PAGE)) 112 usage->hid & HID_USAGE); 114 switch (usage->hid & HID_USAGE) { 143 struct hid_field *field, struct hid_usage *usage, 150 hi, field, usage, bit, max); 101 samsung_kbd_mouse_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 142 samsung_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-twinhan.c | 61 #define th_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 64 struct hid_field *field, struct hid_usage *usage, 67 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_KEYBOARD) 70 switch (usage->hid & HID_USAGE) { 63 twinhan_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
H A D | hid-multitouch.c | 257 struct hid_field *field, struct hid_usage *usage) 261 switch (usage->hid) { 285 static void mt_store_field(struct hid_usage *usage, struct mt_device *td, argument 293 f->usages[f->length++] = usage->hid; 297 struct hid_field *field, struct hid_usage *usage, 318 (usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON || 343 switch (usage->hid & HID_USAGE_PAGE) { 346 switch (usage->hid) { 348 hid_map_usage(hi, usage, bit, max, 354 mt_store_field(usage, t 256 mt_feature_mapping(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage) argument 296 mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 453 mt_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument 542 mt_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) argument [all...] |
H A D | hid-zydacron.c | 46 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c)) 49 struct hid_field *field, struct hid_usage *usage, 56 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) 60 usage->hid & HID_USAGE); 62 switch (usage->hid & HID_USAGE) { 48 zc_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) argument
|
/drivers/staging/usbip/userspace/src/ |
H A D | usbip.c | 42 printf("usage: %s", usbip_usage_string); 49 void (*usage)(void); member in struct:command 57 .usage = NULL 63 .usage = NULL 69 .usage = usbip_attach_usage 75 .usage = usbip_detach_usage 81 .usage = usbip_list_usage 87 .usage = usbip_bind_usage 93 .usage = usbip_unbind_usage 106 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { [all...] |
/drivers/isdn/i4l/ |
H A D | isdn_common.h | 30 extern void isdn_free_channel(int di, int ch, int usage);
|