Lines Matching refs:k
64 kbd_layout_t * k) in parse_keyboard_layout() argument
73 if (!k) in parse_keyboard_layout()
74 k = qemu_mallocz(sizeof(kbd_layout_t)); in parse_keyboard_layout()
92 parse_keyboard_layout(table, line + 8, k); in parse_keyboard_layout()
109 add_to_key_range(&k->keypad_range, keycode); in parse_keyboard_layout()
110 add_to_key_range(&k->numlock_range, keysym); in parse_keyboard_layout()
118 k->keysym2keycode[keysym] = keycode; in parse_keyboard_layout()
120 if (k->extra_count >= MAX_EXTRA_COUNT) { in parse_keyboard_layout()
127 k->extra_count, keysym, keycode); in parse_keyboard_layout()
129 k->keysym2keycode_extra[k->extra_count]. in parse_keyboard_layout()
131 k->keysym2keycode_extra[k->extra_count]. in parse_keyboard_layout()
133 k->extra_count++; in parse_keyboard_layout()
141 return k; in parse_keyboard_layout()
153 kbd_layout_t *k = kbd_layout; in keysym2scancode() local
155 if (k->keysym2keycode[keysym] == 0) in keysym2scancode()
158 return k->keysym2keycode[keysym]; in keysym2scancode()
165 for (i = 0; i < k->extra_count; i++) in keysym2scancode()
166 if (k->keysym2keycode_extra[i].keysym == keysym) in keysym2scancode()
167 return k->keysym2keycode_extra[i].keycode; in keysym2scancode()
174 kbd_layout_t *k = kbd_layout; in keycode_is_keypad() local
177 for (kr = k->keypad_range; kr; kr = kr->next) in keycode_is_keypad()
185 kbd_layout_t *k = kbd_layout; in keysym_is_numlock() local
188 for (kr = k->numlock_range; kr; kr = kr->next) in keysym_is_numlock()