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));
83 tk->input->keycodemax = ARRAY_SIZE(tk->codes);
84 tk->input->keycode = tk->codes;
85 tk->codes[0] = KEY_UP;
86 tk->codes[1] = KEY_DOWN;
87 tk->codes[2] = KEY_LEFT;
88 tk->codes[3] = KEY_RIGHT;
89 tk->codes[4] = KEY_ENTER;
90 tk->codes[5] = KEY_WPS_BUTTON;
95 tk->codes[6] = KEY_RESERVED;
98 for (i = 0; i < ARRAY_SIZE(tk->codes); i++)
99 __set_bit(tk->codes[i], tk->input->keybit);