Lines Matching defs:codes
24 u16 codes[7];
30 const int num_bits = min_t(int, ARRAY_SIZE(tk->codes), 16);
52 input_report_key(tk->input, tk->codes[i], test_bit(i, &key));
82 tk->input->keycodemax = ARRAY_SIZE(tk->codes);
83 tk->input->keycode = tk->codes;
84 tk->codes[0] = KEY_UP;
85 tk->codes[1] = KEY_DOWN;
86 tk->codes[2] = KEY_LEFT;
87 tk->codes[3] = KEY_RIGHT;
88 tk->codes[4] = KEY_ENTER;
89 tk->codes[5] = KEY_WPS_BUTTON;
94 tk->codes[6] = KEY_RESERVED;
97 for (i = 0; i < ARRAY_SIZE(tk->codes); i++)
98 __set_bit(tk->codes[i], tk->input->keybit);