/drivers/platform/x86/ |
D | dell-wmi.c | 188 struct dell_bios_keymap_entry keymap[]; member 195 struct key_entry *keymap; member 430 static bool have_scancode(u32 scancode, const struct key_entry *keymap, int len) in have_scancode() argument 435 if (keymap[i].code == scancode) in have_scancode() 446 struct key_entry *keymap; in handle_dmi_entry() local 448 if (results->err || results->keymap) in handle_dmi_entry() 471 keymap = kcalloc(hotkey_num, sizeof(struct key_entry), GFP_KERNEL); in handle_dmi_entry() 472 if (!keymap) { in handle_dmi_entry() 479 &table->keymap[i]; in handle_dmi_entry() 499 keymap[pos].type = KE_IGNORE; in handle_dmi_entry() [all …]
|
D | fujitsu-tablet.c | 39 unsigned short keymap[KEYMAP_LEN]; member 240 idev->keycode = fujitsu.config.keymap; in input_fujitsu_setup() 241 idev->keycodesize = sizeof(fujitsu.config.keymap[0]); in input_fujitsu_setup() 242 idev->keycodemax = ARRAY_SIZE(fujitsu.config.keymap); in input_fujitsu_setup() 246 for (i = 0; i < ARRAY_SIZE(fujitsu.config.keymap); i++) in input_fujitsu_setup() 247 if (fujitsu.config.keymap[i]) in input_fujitsu_setup() 248 input_set_capability(idev, EV_KEY, fujitsu.config.keymap[i]); in input_fujitsu_setup() 291 keycode = fujitsu.config.keymap[i]; in fujitsu_interrupt() 309 memcpy(fujitsu.config.keymap, dmi->driver_data, in fujitsu_dmi_common() 310 sizeof(fujitsu.config.keymap)); in fujitsu_dmi_common()
|
/drivers/net/wireless/ath/ |
D | key.c | 391 if (test_bit(i, common->keymap) || in ath_reserve_key_cache_slot_tkip() 392 test_bit(i + 64, common->keymap)) in ath_reserve_key_cache_slot_tkip() 395 (test_bit(i + 32, common->keymap) || in ath_reserve_key_cache_slot_tkip() 396 test_bit(i + 64 + 32, common->keymap))) in ath_reserve_key_cache_slot_tkip() 416 if (!test_bit(i, common->keymap) && in ath_reserve_key_cache_slot() 417 (test_bit(i + 32, common->keymap) || in ath_reserve_key_cache_slot() 418 test_bit(i + 64, common->keymap) || in ath_reserve_key_cache_slot() 419 test_bit(i + 64 + 32, common->keymap))) in ath_reserve_key_cache_slot() 421 if (!test_bit(i + 32, common->keymap) && in ath_reserve_key_cache_slot() 422 (test_bit(i, common->keymap) || in ath_reserve_key_cache_slot() [all …]
|
/drivers/input/ |
D | matrix-keymap.c | 26 unsigned short *keymap = input_dev->keycode; in matrix_keypad_map_key() local 38 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; in matrix_keypad_map_key() 153 unsigned short *keymap, in matrix_keypad_build_keymap() argument 164 if (!keymap) { in matrix_keypad_build_keymap() 165 keymap = devm_kcalloc(input_dev->dev.parent, in matrix_keypad_build_keymap() 166 max_keys, sizeof(*keymap), in matrix_keypad_build_keymap() 168 if (!keymap) { in matrix_keypad_build_keymap() 175 input_dev->keycode = keymap; in matrix_keypad_build_keymap() 176 input_dev->keycodesize = sizeof(*keymap); in matrix_keypad_build_keymap() 183 unsigned int key = keymap_data->keymap[i]; in matrix_keypad_build_keymap()
|
D | Makefile | 13 obj-$(CONFIG_INPUT_SPARSEKMAP) += sparse-keymap.o 14 obj-$(CONFIG_INPUT_MATRIXKMAP) += matrix-keymap.o
|
D | Kconfig | 69 tristate "Sparse keymap support library" 72 device that uses sparse keymap. This option is only 79 module will be called sparse-keymap. 82 tristate "Matrix keymap support library" 85 device that uses matrix keymap. This option is only 92 module will be called matrix-keymap.
|
/drivers/media/usb/dvb-usb/ |
D | dvb-usb-remote.c | 14 struct rc_map_table *keymap, in legacy_dvb_usb_get_keymap_index() argument 28 if (keymap[index].scancode == scancode) in legacy_dvb_usb_get_keymap_index() 34 if (keymap[index].keycode == KEY_RESERVED || in legacy_dvb_usb_get_keymap_index() 35 keymap[index].keycode == KEY_UNKNOWN) { in legacy_dvb_usb_get_keymap_index() 49 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode() local 53 index = legacy_dvb_usb_get_keymap_index(ke, keymap, keymap_size); in legacy_dvb_usb_getkeycode() 57 ke->keycode = keymap[index].keycode; in legacy_dvb_usb_getkeycode() 60 ke->len = sizeof(keymap[index].scancode); in legacy_dvb_usb_getkeycode() 61 memcpy(&ke->scancode, &keymap[index].scancode, ke->len); in legacy_dvb_usb_getkeycode() 72 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_setkeycode() local [all …]
|
/drivers/input/misc/ |
D | sgi_btns.c | 49 unsigned short keymap[ARRAY_SIZE(sgi_map)]; member 62 for (i = 0; i < ARRAY_SIZE(bdev->keymap); i++) { in handle_buttons() 66 input_report_key(input, bdev->keymap[i], 1); in handle_buttons() 72 input_report_key(input, bdev->keymap[i], 0); in handle_buttons() 94 memcpy(bdev->keymap, sgi_map, sizeof(bdev->keymap)); in sgi_buttons_probe() 106 input->keycode = bdev->keymap; in sgi_buttons_probe() 107 input->keycodemax = ARRAY_SIZE(bdev->keymap); in sgi_buttons_probe() 113 __set_bit(bdev->keymap[i], input->keybit); in sgi_buttons_probe()
|
D | cobalt_btns.c | 30 unsigned short keymap[ARRAY_SIZE(cobalt_map)]; member 44 for (i = 0; i < ARRAY_SIZE(bdev->keymap); i++) { in handle_buttons() 48 input_report_key(input, bdev->keymap[i], 1); in handle_buttons() 54 input_report_key(input, bdev->keymap[i], 0); in handle_buttons() 77 memcpy(bdev->keymap, cobalt_map, sizeof(bdev->keymap)); in cobalt_buttons_probe() 89 input->keycode = bdev->keymap; in cobalt_buttons_probe() 90 input->keycodemax = ARRAY_SIZE(bdev->keymap); in cobalt_buttons_probe() 96 __set_bit(bdev->keymap[i], input->keybit); in cobalt_buttons_probe()
|
D | mc13783-pwrbutton.c | 39 unsigned short keymap[3]; member 68 input_report_key(priv->pwr, priv->keymap[0], val); in button_irq() 75 input_report_key(priv->pwr, priv->keymap[1], val); in button_irq() 82 input_report_key(priv->pwr, priv->keymap[2], val); in button_irq() 129 priv->keymap[0] = pdata->b1on_key; in mc13783_pwrbutton_probe() 148 priv->keymap[1] = pdata->b2on_key; in mc13783_pwrbutton_probe() 167 priv->keymap[2] = pdata->b3on_key; in mc13783_pwrbutton_probe() 193 pwr->keycode = priv->keymap; in mc13783_pwrbutton_probe() 194 pwr->keycodemax = ARRAY_SIZE(priv->keymap); in mc13783_pwrbutton_probe() 195 pwr->keycodesize = sizeof(priv->keymap[0]); in mc13783_pwrbutton_probe()
|
D | apanel.c | 56 unsigned short keymap[MAX_PANEL_KEYS]; member 103 report_key(idev, ap->keymap[i]); in apanel_poll() 150 .keymap = { 208 idev->keycode = ap->keymap; in apanel_probe() 209 idev->keycodesize = sizeof(ap->keymap[0]); in apanel_probe() 213 if (ap->keymap[i]) in apanel_probe() 214 set_bit(ap->keymap[i], idev->keybit); in apanel_probe()
|
D | wistron_btns.c | 43 module_param_named(keymap, keymap_name, charp, 0); 44 MODULE_PARM_DESC(keymap, "Keymap name, if it can't be autodetected [generic, 1557/MS2141]"); 223 static struct key_entry *keymap; /* = NULL; Current key map */ variable 232 keymap = dmi->driver_data; in dmi_matched() 233 for (key = keymap; key->type != KE_END; key++) { in dmi_matched() 990 for (key = keymap; key->type != KE_END; key++) in copy_keymap() 993 new_keymap = kmemdup(keymap, length * sizeof(struct key_entry), in copy_keymap() 998 keymap = new_keymap; in copy_keymap() 1008 keymap = keymap_wistron_ms2141; in select_keymap() 1010 keymap = keymap_aopen_1557; in select_keymap() [all …]
|
D | cm109.c | 123 unsigned short keymap[KEYMAP_SIZE]; member 288 static unsigned short (*keymap)(int) = keymap_kip1000; variable 325 keycode = dev->keymap[0xff + BIT(i)]; in cm109_report_special() 396 report_key(dev, dev->keymap[dev->irq_data->byte[HID_IR1]]); in cm109_urb_irq_callback() 792 input_dev->keycode = dev->keymap; in cm109_usb_probe() 794 input_dev->keycodemax = ARRAY_SIZE(dev->keymap); in cm109_usb_probe() 801 unsigned short k = keymap(i); in cm109_usb_probe() 802 dev->keymap[i] = k; in cm109_usb_probe() 896 keymap = keymap_kip1000; in cm109_select_keymap() 900 keymap = keymap_gtalk; in cm109_select_keymap() [all …]
|
D | keyspan_remote.c | 105 unsigned short keymap[ARRAY_SIZE(keyspan_key_table)]; member 172 input_report_key(input, remote->keymap[button], press); in keyspan_report_button() 504 memcpy(remote->keymap, keyspan_key_table, sizeof(remote->keymap)); in keyspan_probe() 510 input_dev->keycode = remote->keymap; in keyspan_probe() 512 input_dev->keycodemax = ARRAY_SIZE(remote->keymap); in keyspan_probe()
|
/drivers/input/keyboard/ |
D | jornada680_kbd.c | 68 unsigned short keymap[ARRAY_SIZE(jornada_scancodes)]; member 77 unsigned short *keymap = jornadakbd->keymap; in jornada_parse_kbd() local 96 keymap[scancode], in jornada_parse_kbd() 199 memcpy(jornadakbd->keymap, jornada_scancodes, in jornada680kbd_probe() 200 sizeof(jornadakbd->keymap)); in jornada680kbd_probe() 210 input_dev->keycode = jornadakbd->keymap; in jornada680kbd_probe() 217 if (jornadakbd->keymap[i]) in jornada680kbd_probe() 218 __set_bit(jornadakbd->keymap[i], input_dev->keybit); in jornada680kbd_probe()
|
D | davinci_keyscan.c | 59 unsigned short keymap[]; member 109 unsigned short *keymap = davinci_ks->keymap; in davinci_ks_interrupt() local 132 keycode = keymap[i]; in davinci_ks_interrupt() 169 if (!pdata->keymap) { in davinci_ks_probe() 181 memcpy(davinci_ks->keymap, pdata->keymap, in davinci_ks_probe() 236 __set_bit(davinci_ks->pdata->keymap[i], key_dev->keybit); in davinci_ks_probe() 245 key_dev->keycode = davinci_ks->keymap; in davinci_ks_probe() 246 key_dev->keycodesize = sizeof(davinci_ks->keymap[0]); in davinci_ks_probe()
|
D | jornada720_kbd.c | 48 unsigned short keymap[ARRAY_SIZE(jornada_std_keymap)]; member 76 input_report_key(input, jornadakbd->keymap[scan_code], in jornada720_kbd_interrupt() 105 memcpy(jornadakbd->keymap, jornada_std_keymap, in jornada720_kbd_probe() 112 input_dev->keycode = jornadakbd->keymap; in jornada720_kbd_probe() 118 for (i = 0; i < ARRAY_SIZE(jornadakbd->keymap); i++) in jornada720_kbd_probe() 119 __set_bit(jornadakbd->keymap[i], input_dev->keybit); in jornada720_kbd_probe()
|
D | omap4-keypad.c | 82 unsigned short *keymap; member 144 keypad_data->keymap[code], in omap4_keypad_irq_thread_fn() 329 keypad_data->keymap = kcalloc(max_keys, in omap4_keypad_probe() 330 sizeof(keypad_data->keymap[0]), in omap4_keypad_probe() 332 if (!keypad_data->keymap) { in omap4_keypad_probe() 340 keypad_data->keymap, input_dev); in omap4_keypad_probe() 370 kfree(keypad_data->keymap); in omap4_keypad_probe() 400 kfree(keypad_data->keymap); in omap4_keypad_remove()
|
D | lpc32xx-keys.c | 66 unsigned short *keymap; /* Pointer to key map for the scan matrix */ member 87 keycode = kscandat->keymap[scancode]; in lpc32xx_mod_states() 189 keymap_size = sizeof(kscandat->keymap[0]) * in lpc32xx_kscan_probe() 191 kscandat->keymap = devm_kzalloc(&pdev->dev, keymap_size, GFP_KERNEL); in lpc32xx_kscan_probe() 192 if (!kscandat->keymap) in lpc32xx_kscan_probe() 216 kscandat->keymap, kscandat->input); in lpc32xx_kscan_probe()
|
D | samsung-keypad.c | 247 uint32_t *keymap, num_rows = 0, num_cols = 0; in samsung_keypad_parse_dt() local 280 keymap = devm_kcalloc(dev, key_count, sizeof(uint32_t), GFP_KERNEL); in samsung_keypad_parse_dt() 281 if (!keymap) { in samsung_keypad_parse_dt() 285 keymap_data->keymap = keymap; in samsung_keypad_parse_dt() 292 *keymap++ = KEY(row, col, key_code); in samsung_keypad_parse_dt() 436 devm_kfree(&pdev->dev, (void *)pdata->keymap_data->keymap); in samsung_keypad_probe()
|
D | stmpe-keypad.c | 137 unsigned short keymap[STMPE_KEYPAD_KEYMAP_MAX_SIZE]; member 187 input_report_key(input, keypad->keymap[code], !up); in stmpe_keypad_irq() 322 if (keypad->keymap[code] != KEY_RESERVED) { in stmpe_keypad_fill_used_pins() 370 keypad->keymap, input); in stmpe_keypad_probe()
|
D | nspire-keypad.c | 38 struct matrix_keymap_data *keymap; member 54 unsigned short *keymap = input->keycode; in nspire_keypad_irq() local 84 input_report_key(input, keymap[code], in nspire_keypad_irq()
|
/drivers/hid/ |
D | hid-creative-sb0540.c | 120 unsigned short keymap[ARRAY_SIZE(creative_sb0540_key_table)]; member 142 return creative_sb0540->keymap[i]; in get_key() 194 input_dev->keycode = creative_sb0540->keymap; in creative_sb0540_input_configured() 196 input_dev->keycodemax = ARRAY_SIZE(creative_sb0540->keymap); in creative_sb0540_input_configured() 200 memcpy(creative_sb0540->keymap, creative_sb0540_key_table, in creative_sb0540_input_configured() 201 sizeof(creative_sb0540->keymap)); in creative_sb0540_input_configured() 203 set_bit(creative_sb0540->keymap[i], input_dev->keybit); in creative_sb0540_input_configured()
|
D | hid-appleir.c | 110 unsigned short keymap[ARRAY_SIZE(appleir_key_table)]; member 212 appleir->current_key = appleir->keymap[index]; in appleir_raw_event() 260 input_dev->keycode = appleir->keymap; in appleir_input_configured() 262 input_dev->keycodemax = ARRAY_SIZE(appleir->keymap); in appleir_input_configured() 266 memcpy(appleir->keymap, appleir_key_table, sizeof(appleir->keymap)); in appleir_input_configured() 268 set_bit(appleir->keymap[i], input_dev->keybit); in appleir_input_configured()
|
/drivers/s390/char/ |
D | keyboard.c | 156 unsigned short *keymap, keysym; in kbd_ascebc() local 161 keymap = kbd->key_maps[i]; in kbd_ascebc() 162 if (!keymap) in kbd_ascebc() 166 keysym = keymap[j]; in kbd_ascebc() 183 unsigned short *keymap, keysym; 188 keymap = kbd->key_maps[i]; 189 if (!keymap) 192 keysym = keymap[j];
|