Lines Matching refs:lower

74  * 	lower	- state information used by the calling driver
85 kbtrans_processkey(struct kbtrans_lower *lower,
90 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (lower, "kbtrans_processkey: "
100 cb->kc_keypressed_raw(lower->kbtrans_upper, key);
103 cb->kc_keyreleased_raw(lower->kbtrans_upper, key);
112 kbtrans_translate(lower, cb, key, state);
119 * lower - state information used by the calling driver
129 kbtrans_translate(struct kbtrans_lower *lower,
142 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (lower, "KEY TRANSLATE "
145 if (lower->kbtrans_keyboard == NULL) {
155 shiftmask = lower->kbtrans_shiftmask;
167 ke = kbtrans_find_entry(lower, shiftmask, key);
174 cb->kc_cancel_repeat(lower->kbtrans_upper);
191 ke = kbtrans_find_entry(lower, shiftmask & ~NUMLOCKMASK,
199 cb->kc_cancel_repeat(lower->kbtrans_upper);
224 lower->kbtrans_keyboard->k_toggleshifts) {
226 lower->kbtrans_togglemask) {
236 switch (lower->kbtrans_state) {
243 if (lower->kbtrans_compose_map[entry] >= 0) {
244 lower->kbtrans_compose_key = entry;
245 lower->kbtrans_state = COMPOSE2;
250 lower->kbtrans_state = NORMAL;
251 lower->kbtrans_led_state &= ~LED_COMPOSE;
253 cb->kc_setled(lower->kbtrans_upper);
262 lower->kbtrans_state = NORMAL;
263 lower->kbtrans_led_state &= ~LED_COMPOSE;
265 cb->kc_setled(lower->kbtrans_upper);
267 good_compose = kbtrans_do_compose(lower,
268 lower->kbtrans_compose_key, entry,
271 if (lower->kbtrans_compat)
275 cb->kc_keypressed(lower->kbtrans_upper,
286 lower->kbtrans_state = NORMAL;
288 (lower->kbtrans_fltaccent_table[i].fa_entry
289 != lower->kbtrans_fltaccent_entry) ||
290 (lower->kbtrans_fltaccent_table[i].ascii != entry);
292 if (lower->kbtrans_fltaccent_table[i].fa_entry
300 cb->kc_keypressed(lower->kbtrans_upper, entrytype,
301 key, (lower->kbtrans_compat ?
303 lower->kbtrans_fltaccent_table[i].iso);
321 if (lower->kbtrans_repeatkey != key) {
322 cb->kc_cancel_repeat(lower->kbtrans_upper);
323 cb->kc_setup_repeat(lower->kbtrans_upper, entrytype,
327 } else if (key == lower->kbtrans_repeatkey) {
329 cb->kc_cancel_repeat(lower->kbtrans_upper);
333 cb->kc_keyreleased(lower->kbtrans_upper, key);
344 cb->kc_keypressed(lower->kbtrans_upper, entrytype, key,
345 entry | lower->kbtrans_buckybits);
352 if (shiftbit & lower->kbtrans_keyboard->k_toggleshifts) {
355 lower->kbtrans_led_state &=
358 cb->kc_setled(lower->kbtrans_upper);
361 lower->kbtrans_led_state &=
364 cb->kc_setled(lower->kbtrans_upper);
366 lower->kbtrans_togglemask &= ~shiftbit;
369 lower->kbtrans_led_state |=
372 cb->kc_setled(lower->kbtrans_upper);
374 lower->kbtrans_led_state |=
377 cb->kc_setled(lower->kbtrans_upper);
379 lower->kbtrans_togglemask |= shiftbit;
384 lower->kbtrans_shiftmask &= ~shiftbit;
386 lower->kbtrans_shiftmask |= shiftbit;
389 cb->kc_keypressed(lower->kbtrans_upper, entrytype, key,
397 lower->kbtrans_buckybits ^= 1 << (7 + (entry & 0x0F));
400 cb->kc_keypressed(lower->kbtrans_upper, entrytype, key,
416 lower->kbtrans_shiftmask &=
417 lower->kbtrans_keyboard->k_idleshifts;
419 lower->kbtrans_shiftmask |=
420 lower->kbtrans_togglemask;
422 lower->kbtrans_buckybits &=
423 lower->kbtrans_keyboard->k_idlebuckys;
425 cb->kc_cancel_repeat(lower->kbtrans_upper);
427 cb->kc_keypressed(lower->kbtrans_upper, entrytype, key,
434 lower->kbtrans_state = COMPOSE1;
435 lower->kbtrans_led_state |= LED_COMPOSE;
436 cb->kc_setled(lower->kbtrans_upper);
451 if (lower->kbtrans_state == NORMAL) {
452 lower->kbtrans_fltaccent_entry = entry;
453 lower->kbtrans_state = FLTACCENT;
458 cb->kc_keypressed(lower->kbtrans_upper, entrytype, key, entry);
463 cb->kc_keypressed(lower->kbtrans_upper, entrytype, key, entry);
474 cb->kc_keypressed(lower->kbtrans_upper, entrytype, key, entry);
486 kbtrans_do_compose(struct kbtrans_lower *lower,
500 if (lower->kbtrans_compose_map[second_entry] < 0)
512 ptr = lower->kbtrans_compose_table +
513 lower->kbtrans_compose_map[first_entry];
533 kbtrans_find_entry(struct kbtrans_lower *lower,
541 kp = lower->kbtrans_keyboard;