Lines Matching full:keycode

254 			unsigned short keycode;  in pxa27x_keypad_rotary_parse_dt()  local
256 keycode = code & 0xffff; in pxa27x_keypad_rotary_parse_dt()
257 keypad->keycodes[n] = keycode; in pxa27x_keypad_rotary_parse_dt()
258 __set_bit(keycode, input_dev->keybit); in pxa27x_keypad_rotary_parse_dt()
260 keycode = code >> 16; in pxa27x_keypad_rotary_parse_dt()
261 keypad->keycodes[n + 1] = keycode; in pxa27x_keypad_rotary_parse_dt()
262 __set_bit(keycode, input_dev->keybit); in pxa27x_keypad_rotary_parse_dt()
345 unsigned short keycode; in pxa27x_keypad_build_keycode() local
364 keycode = pdata->direct_key_map[i]; in pxa27x_keypad_build_keycode()
365 keypad->keycodes[MAX_MATRIX_KEY_NUM + i] = keycode; in pxa27x_keypad_build_keycode()
366 __set_bit(keycode, input_dev->keybit); in pxa27x_keypad_build_keycode()
371 keycode = pdata->rotary0_up_key; in pxa27x_keypad_build_keycode()
372 keypad->keycodes[MAX_MATRIX_KEY_NUM + 0] = keycode; in pxa27x_keypad_build_keycode()
373 __set_bit(keycode, input_dev->keybit); in pxa27x_keypad_build_keycode()
375 keycode = pdata->rotary0_down_key; in pxa27x_keypad_build_keycode()
376 keypad->keycodes[MAX_MATRIX_KEY_NUM + 1] = keycode; in pxa27x_keypad_build_keycode()
377 __set_bit(keycode, input_dev->keybit); in pxa27x_keypad_build_keycode()
388 keycode = pdata->rotary1_up_key; in pxa27x_keypad_build_keycode()
389 keypad->keycodes[MAX_MATRIX_KEY_NUM + 2] = keycode; in pxa27x_keypad_build_keycode()
390 __set_bit(keycode, input_dev->keybit); in pxa27x_keypad_build_keycode()
392 keycode = pdata->rotary1_down_key; in pxa27x_keypad_build_keycode()
393 keypad->keycodes[MAX_MATRIX_KEY_NUM + 3] = keycode; in pxa27x_keypad_build_keycode()
394 __set_bit(keycode, input_dev->keybit); in pxa27x_keypad_build_keycode()
496 unsigned char keycode = keypad->keycodes[code]; in report_rotary_event() local
500 input_report_key(dev, keycode, 1); in report_rotary_event()
503 input_report_key(dev, keycode, 0); in report_rotary_event()
722 /* Driver need build keycode from device tree or pdata */ in pxa27x_keypad_probe()
759 input_dev->keycode = keypad->keycodes; in pxa27x_keypad_probe()
780 dev_err(&pdev->dev, "failed to build keycode\n"); in pxa27x_keypad_probe()