Lines Matching refs:upper
202 progressbar_key_abort_thread(struct kbtrans *upper) in progressbar_key_abort_thread() argument
207 if (ldi_ident_from_stream(upper->kbtrans_streams_readq, &li) != 0) { in progressbar_key_abort_thread()
210 mutex_enter(&upper->progressbar_key_abort_lock); in progressbar_key_abort_thread()
211 while (upper->progressbar_key_abort_flag == 0) in progressbar_key_abort_thread()
212 cv_wait(&upper->progressbar_key_abort_cv, in progressbar_key_abort_thread()
213 &upper->progressbar_key_abort_lock); in progressbar_key_abort_thread()
214 if (upper->progressbar_key_abort_flag == 1) { in progressbar_key_abort_thread()
215 mutex_exit(&upper->progressbar_key_abort_lock); in progressbar_key_abort_thread()
218 mutex_exit(&upper->progressbar_key_abort_lock); in progressbar_key_abort_thread()
235 struct kbtrans *upper; in kbtrans_streams_init() local
267 upper = kmem_zalloc(sizeof (struct kbtrans), KM_SLEEP); in kbtrans_streams_init()
269 *ret_kbd = upper; in kbtrans_streams_init()
271 upper->kbtrans_polled_buf[0] = '\0'; in kbtrans_streams_init()
272 upper->kbtrans_polled_pending_chars = upper->kbtrans_polled_buf; in kbtrans_streams_init()
274 upper->kbtrans_streams_hw = hw; in kbtrans_streams_init()
275 upper->kbtrans_streams_hw_callbacks = hw_cb; in kbtrans_streams_init()
276 upper->kbtrans_streams_readq = q; in kbtrans_streams_init()
277 upper->kbtrans_streams_iocpending = NULL; in kbtrans_streams_init()
278 upper->kbtrans_streams_translatable = TR_CAN; in kbtrans_streams_init()
279 upper->kbtrans_overflow_cnt = 0; in kbtrans_streams_init()
280 upper->kbtrans_streams_translate_mode = TR_ASCII; in kbtrans_streams_init()
283 kbtrans_set_translation_callback(upper); in kbtrans_streams_init()
285 lower = &upper->kbtrans_lower; in kbtrans_streams_init()
296 lower->kbtrans_upper = upper; in kbtrans_streams_init()
320 upper->kbtrans_streams_vuid_addr.ascii = ASCII_FIRST; in kbtrans_streams_init()
321 upper->kbtrans_streams_vuid_addr.top = TOP_FIRST; in kbtrans_streams_init()
322 upper->kbtrans_streams_vuid_addr.vkey = VKEY_FIRST; in kbtrans_streams_init()
325 upper->kbtrans_streams_num_downs_entries = kbtrans_downs_size; in kbtrans_streams_init()
326 upper->kbtrans_streams_downs_bytes = in kbtrans_streams_init()
328 upper->kbtrans_streams_downs = in kbtrans_streams_init()
329 kmem_zalloc(upper->kbtrans_streams_downs_bytes, KM_SLEEP); in kbtrans_streams_init()
330 upper->kbtrans_streams_abortable = B_FALSE; in kbtrans_streams_init()
332 upper->kbtrans_streams_flags = KBTRANS_STREAMS_OPEN; in kbtrans_streams_init()
334 upper->progressbar_key_abort_flag = 0; in kbtrans_streams_init()
335 cv_init(&upper->progressbar_key_abort_cv, NULL, CV_DEFAULT, NULL); in kbtrans_streams_init()
337 mutex_init(&upper->progressbar_key_abort_lock, NULL, MUTEX_SPIN, in kbtrans_streams_init()
339 tid = thread_create(NULL, 0, progressbar_key_abort_thread, upper, in kbtrans_streams_init()
341 upper->progressbar_key_abort_t_did = tid->t_did; in kbtrans_streams_init()
343 DPRINTF(PRINT_L1, PRINT_MASK_OPEN, (upper, "kbtrans_streams_init " in kbtrans_streams_init()
354 kbtrans_streams_fini(struct kbtrans *upper) in kbtrans_streams_fini() argument
361 upper->kbtrans_streams_flags = 0; in kbtrans_streams_fini()
364 if (upper->kbtrans_streams_bufcallid) { in kbtrans_streams_fini()
365 qunbufcall(upper->kbtrans_streams_readq, in kbtrans_streams_fini()
366 upper->kbtrans_streams_bufcallid); in kbtrans_streams_fini()
368 if (upper->kbtrans_streams_rptid) { in kbtrans_streams_fini()
369 (void) quntimeout(upper->kbtrans_streams_readq, in kbtrans_streams_fini()
370 upper->kbtrans_streams_rptid); in kbtrans_streams_fini()
372 kmem_free(upper->kbtrans_streams_downs, in kbtrans_streams_fini()
373 upper->kbtrans_streams_downs_bytes); in kbtrans_streams_fini()
375 mutex_enter(&upper->progressbar_key_abort_lock); in kbtrans_streams_fini()
376 if (upper->progressbar_key_abort_flag == 0) { in kbtrans_streams_fini()
377 upper->progressbar_key_abort_flag = 2; in kbtrans_streams_fini()
378 cv_signal(&upper->progressbar_key_abort_cv); in kbtrans_streams_fini()
379 mutex_exit(&upper->progressbar_key_abort_lock); in kbtrans_streams_fini()
380 thread_join(upper->progressbar_key_abort_t_did); in kbtrans_streams_fini()
382 mutex_exit(&upper->progressbar_key_abort_lock); in kbtrans_streams_fini()
384 cv_destroy(&upper->progressbar_key_abort_cv); in kbtrans_streams_fini()
385 mutex_destroy(&upper->progressbar_key_abort_lock); in kbtrans_streams_fini()
387 kmem_free(upper, sizeof (struct kbtrans)); in kbtrans_streams_fini()
389 DPRINTF(PRINT_L1, PRINT_MASK_CLOSE, (upper, "kbtrans_streams_fini " in kbtrans_streams_fini()
399 kbtrans_streams_releaseall(struct kbtrans *upper) in kbtrans_streams_releaseall() argument
407 for (i = 0, ke = upper->kbtrans_streams_downs; in kbtrans_streams_releaseall()
408 i < upper->kbtrans_streams_num_downs_entries; i++, ke++) { in kbtrans_streams_releaseall()
413 kbtrans_keyreleased(upper, ke->key_station); in kbtrans_streams_releaseall()
431 kbtrans_streams_message(struct kbtrans *upper, register mblk_t *mp) in kbtrans_streams_message() argument
433 queue_t *q = upper->kbtrans_streams_readq; in kbtrans_streams_message()
436 DPRINTF(PRINT_L1, PRINT_MASK_ALL, (upper, in kbtrans_streams_message()
445 ret = kbtrans_ioctl(upper, mp); in kbtrans_streams_message()
465 DPRINTF(PRINT_L1, PRINT_MASK_ALL, (upper, in kbtrans_streams_message()
480 kbtrans_streams_key(struct kbtrans *upper, kbtrans_key_t key, in kbtrans_streams_key() argument
486 lower = &upper->kbtrans_lower; in kbtrans_streams_key()
490 mutex_enter(&upper->progressbar_key_abort_lock); in kbtrans_streams_key()
491 if (upper->progressbar_key_abort_flag == 0) { in kbtrans_streams_key()
492 upper->progressbar_key_abort_flag = 1; in kbtrans_streams_key()
493 cv_signal(&upper->progressbar_key_abort_cv); in kbtrans_streams_key()
495 mutex_exit(&upper->progressbar_key_abort_lock); in kbtrans_streams_key()
497 if (upper->kbtrans_streams_abortable) { in kbtrans_streams_key()
498 switch (upper->kbtrans_streams_abort_state) { in kbtrans_streams_key()
505 upper->kbtrans_streams_abort_state = in kbtrans_streams_key()
507 upper->kbtrans_streams_abort1_key = key; in kbtrans_streams_key()
513 upper->kbtrans_streams_abort_state = in kbtrans_streams_key()
515 upper->kbtrans_streams_new_abort1_key = key; in kbtrans_streams_key()
519 upper->kbtrans_streams_abort_state = ABORT_NORMAL; in kbtrans_streams_key()
526 upper->kbtrans_streams_callback, in kbtrans_streams_key()
527 upper->kbtrans_streams_abort1_key, in kbtrans_streams_key()
532 upper->kbtrans_streams_abort_state = ABORT_NORMAL; in kbtrans_streams_key()
537 upper->kbtrans_streams_callback, in kbtrans_streams_key()
538 upper->kbtrans_streams_new_abort1_key, in kbtrans_streams_key()
545 kbtrans_processkey(lower, upper->kbtrans_streams_callback, key, state); in kbtrans_streams_key()
556 kbtrans_streams_set_keyboard(struct kbtrans *upper, int id, struct keyboard *k) in kbtrans_streams_set_keyboard() argument
558 upper->kbtrans_lower.kbtrans_keyboard = k; in kbtrans_streams_set_keyboard()
559 upper->kbtrans_streams_id = id; in kbtrans_streams_set_keyboard()
570 kbtrans_streams_has_reset(struct kbtrans *upper) in kbtrans_streams_has_reset() argument
585 kbtrans_streams_enable(struct kbtrans *upper) in kbtrans_streams_enable() argument
588 kbtrans_setled(upper); in kbtrans_streams_enable()
597 kbtrans_streams_setled(struct kbtrans *upper, int led_state) in kbtrans_streams_setled() argument
601 lower = &upper->kbtrans_lower; in kbtrans_streams_setled()
623 kbtrans_streams_set_queue(struct kbtrans *upper, queue_t *q) in kbtrans_streams_set_queue() argument
626 upper->kbtrans_streams_readq = q; in kbtrans_streams_set_queue()
634 kbtrans_streams_get_queue(struct kbtrans *upper) in kbtrans_streams_get_queue() argument
636 return (upper->kbtrans_streams_readq); in kbtrans_streams_get_queue()
644 kbtrans_streams_untimeout(struct kbtrans *upper) in kbtrans_streams_untimeout() argument
647 if (upper->kbtrans_streams_bufcallid) { in kbtrans_streams_untimeout()
648 qunbufcall(upper->kbtrans_streams_readq, in kbtrans_streams_untimeout()
649 upper->kbtrans_streams_bufcallid); in kbtrans_streams_untimeout()
650 upper->kbtrans_streams_bufcallid = 0; in kbtrans_streams_untimeout()
652 if (upper->kbtrans_streams_rptid) { in kbtrans_streams_untimeout()
653 (void) quntimeout(upper->kbtrans_streams_readq, in kbtrans_streams_untimeout()
654 upper->kbtrans_streams_rptid); in kbtrans_streams_untimeout()
655 upper->kbtrans_streams_rptid = 0; in kbtrans_streams_untimeout()
667 struct kbtrans *upper = (struct kbtrans *)arg; in kbtrans_reioctl() local
670 upper->kbtrans_streams_bufcallid = 0; in kbtrans_reioctl()
672 if ((mp = upper->kbtrans_streams_iocpending) != NULL) { in kbtrans_reioctl()
674 upper->kbtrans_streams_iocpending = NULL; in kbtrans_reioctl()
675 (void) kbtrans_ioctl(upper, mp); in kbtrans_reioctl()
684 kbtrans_ioctl(struct kbtrans *upper, register mblk_t *mp) in kbtrans_ioctl() argument
698 lower = &upper->kbtrans_lower; in kbtrans_ioctl()
702 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, in kbtrans_ioctl()
707 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "VUIDSFORMAT\n")); in kbtrans_ioctl()
715 if (new_translate == upper->kbtrans_streams_translate_mode) in kbtrans_ioctl()
717 upper->kbtrans_streams_translate_mode = new_translate; in kbtrans_ioctl()
719 kbtrans_set_translation_callback(upper); in kbtrans_ioctl()
721 kbtrans_flush(upper); in kbtrans_ioctl()
725 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCTRANS\n")); in kbtrans_ioctl()
730 if (new_translate == upper->kbtrans_streams_translate_mode) in kbtrans_ioctl()
732 upper->kbtrans_streams_translate_mode = new_translate; in kbtrans_ioctl()
733 kbtrans_set_translation_callback(upper); in kbtrans_ioctl()
735 kbtrans_flush(upper); in kbtrans_ioctl()
739 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCSLED\n")); in kbtrans_ioctl()
746 kbtrans_setled(upper); in kbtrans_ioctl()
750 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCGLED\n")); in kbtrans_ioctl()
765 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "VUIDGFORMAT\n")); in kbtrans_ioctl()
771 (upper->kbtrans_streams_translate_mode == TR_EVENT || in kbtrans_ioctl()
772 upper->kbtrans_streams_translate_mode == TR_UNTRANS_EVENT) ? in kbtrans_ioctl()
782 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCGTRANS\n")); in kbtrans_ioctl()
787 *(int *)datap->b_wptr = upper->kbtrans_streams_translate_mode; in kbtrans_ioctl()
796 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "VUIDSADDR\n")); in kbtrans_ioctl()
805 addr_ptr = &upper->kbtrans_streams_vuid_addr.ascii; in kbtrans_ioctl()
809 addr_ptr = &upper->kbtrans_streams_vuid_addr.top; in kbtrans_ioctl()
813 addr_ptr = &upper->kbtrans_streams_vuid_addr.vkey; in kbtrans_ioctl()
822 kbtrans_flush(upper); in kbtrans_ioctl()
827 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "VUIDGADDR\n")); in kbtrans_ioctl()
837 upper->kbtrans_streams_vuid_addr.ascii; in kbtrans_ioctl()
842 upper->kbtrans_streams_vuid_addr.top; in kbtrans_ioctl()
847 upper->kbtrans_streams_vuid_addr.vkey; in kbtrans_ioctl()
856 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCTRANSABLE\n")); in kbtrans_ioctl()
867 if (upper->kbtrans_streams_translatable != translate) in kbtrans_ioctl()
868 upper->kbtrans_streams_translatable = translate; in kbtrans_ioctl()
871 DPRINTF(PRINT_L4, PRINT_MASK_ALL, (upper, in kbtrans_ioctl()
876 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCGTRANSABLE\n")); in kbtrans_ioctl()
881 *(int *)datap->b_wptr = upper->kbtrans_streams_translatable; in kbtrans_ioctl()
890 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCSCOMPAT\n")); in kbtrans_ioctl()
899 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCGCOMPAT\n")); in kbtrans_ioctl()
913 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCSETKEY %d\n", in kbtrans_ioctl()
918 err = kbtrans_setkey(&upper->kbtrans_lower, in kbtrans_ioctl()
928 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCGETKEY %d\n", in kbtrans_ioctl()
933 err = kbtrans_getkey(&upper->kbtrans_lower, in kbtrans_ioctl()
941 err = kbtrans_skey(&upper->kbtrans_lower, in kbtrans_ioctl()
954 err = kbtrans_gkey(&upper->kbtrans_lower, in kbtrans_ioctl()
959 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCSDIRECT\n")); in kbtrans_ioctl()
960 kbtrans_flush(upper); in kbtrans_ioctl()
964 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCSGDIRECT\n")); in kbtrans_ioctl()
978 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCTYPE\n")); in kbtrans_ioctl()
983 *(int *)datap->b_wptr = upper->kbtrans_streams_id; in kbtrans_ioctl()
1000 upper->kbtrans_streams_abortable = in kbtrans_ioctl()
1012 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCGRPTCOUNT\n")); in kbtrans_ioctl()
1031 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCSRPTCOUNT\n")); in kbtrans_ioctl()
1049 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCGRPTDELAY\n")); in kbtrans_ioctl()
1068 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCSRPTDELAY\n")); in kbtrans_ioctl()
1088 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCGRPTRATE\n")); in kbtrans_ioctl()
1107 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "KIOCSRPTRATE\n")); in kbtrans_ioctl()
1124 DPRINTF(PRINT_L0, PRINT_MASK_ALL, (upper, "unknown\n")); in kbtrans_ioctl()
1137 putnext(upper->kbtrans_streams_readq, mp); in kbtrans_ioctl()
1149 if (upper->kbtrans_streams_iocpending != NULL) in kbtrans_ioctl()
1150 freemsg(upper->kbtrans_streams_iocpending); in kbtrans_ioctl()
1151 upper->kbtrans_streams_iocpending = mp; in kbtrans_ioctl()
1152 if (upper->kbtrans_streams_bufcallid) { in kbtrans_ioctl()
1153 qunbufcall(upper->kbtrans_streams_readq, in kbtrans_ioctl()
1154 upper->kbtrans_streams_bufcallid); in kbtrans_ioctl()
1156 upper->kbtrans_streams_bufcallid = in kbtrans_ioctl()
1157 qbufcall(upper->kbtrans_streams_readq, ioctlrespsize, BPRI_HI, in kbtrans_ioctl()
1158 kbtrans_reioctl, upper); in kbtrans_ioctl()
1170 kbtrans_flush(register struct kbtrans *upper) in kbtrans_flush() argument
1175 if ((q = upper->kbtrans_streams_readq) != NULL && q->q_next != NULL) in kbtrans_flush()
1179 bzero(upper->kbtrans_streams_downs, upper->kbtrans_streams_downs_bytes); in kbtrans_flush()
1181 kbtrans_cancelrpt(upper); in kbtrans_flush()
1189 kbtrans_setled(struct kbtrans *upper) in kbtrans_setled() argument
1191 upper->kbtrans_streams_hw_callbacks->kbtrans_streams_setled( in kbtrans_setled()
1192 upper->kbtrans_streams_hw, in kbtrans_setled()
1193 upper->kbtrans_lower.kbtrans_led_state); in kbtrans_setled()
1204 struct kbtrans *upper = arg; in kbtrans_rpt() local
1205 struct kbtrans_lower *lower = &upper->kbtrans_lower; in kbtrans_rpt()
1211 upper->kbtrans_streams_rptid = 0; in kbtrans_rpt()
1212 upper->kbtrans_streams_count++; in kbtrans_rpt()
1220 if (upper->kbtrans_streams_count > kbtrans_repeat_count) in kbtrans_rpt()
1225 kbtrans_keyreleased(upper, lower->kbtrans_repeatkey); in kbtrans_rpt()
1228 upper->kbtrans_streams_callback, in kbtrans_rpt()
1232 upper->kbtrans_streams_rptid = in kbtrans_rpt()
1233 qtimeout(upper->kbtrans_streams_readq, kbtrans_rpt, in kbtrans_rpt()
1234 (caddr_t)upper, kbtrans_repeat_rate); in kbtrans_rpt()
1243 kbtrans_cancelrpt(struct kbtrans *upper) in kbtrans_cancelrpt() argument
1245 upper->kbtrans_lower.kbtrans_repeatkey = 0; in kbtrans_cancelrpt()
1247 if (upper->kbtrans_streams_rptid != 0) { in kbtrans_cancelrpt()
1248 (void) quntimeout(upper->kbtrans_streams_readq, in kbtrans_cancelrpt()
1249 upper->kbtrans_streams_rptid); in kbtrans_cancelrpt()
1250 upper->kbtrans_streams_rptid = 0; in kbtrans_cancelrpt()
1260 kbtrans_send_esc_event(char c, register struct kbtrans *upper) in kbtrans_send_esc_event() argument
1273 kbtrans_queueevent(upper, &fe); in kbtrans_send_esc_event()
1275 kbtrans_queueevent(upper, &fe); in kbtrans_send_esc_event()
1306 kbtrans_keypressed(struct kbtrans *upper, uchar_t key_station, in kbtrans_keypressed() argument
1311 struct kbtrans_lower *lower = &upper->kbtrans_lower; in kbtrans_keypressed()
1346 id_addr = upper->kbtrans_streams_vuid_addr.ascii; in kbtrans_keypressed()
1349 id_addr = upper->kbtrans_streams_vuid_addr.top; in kbtrans_keypressed()
1352 id_addr = upper->kbtrans_streams_vuid_addr.vkey; in kbtrans_keypressed()
1360 kbtrans_queuepress(upper, key_station, fe); in kbtrans_keypressed()
1368 kbtrans_queuepress(struct kbtrans *upper, in kbtrans_queuepress() argument
1381 for (i = 0, ke = upper->kbtrans_streams_downs; in kbtrans_queuepress()
1382 i < upper->kbtrans_streams_num_downs_entries; i++, ke++) { in kbtrans_queuepress()
1404 ke = upper->kbtrans_streams_downs; in kbtrans_queuepress()
1409 kbtrans_queueevent(upper, fe); in kbtrans_queuepress()
1417 kbtrans_keyreleased(register struct kbtrans *upper, uchar_t key_station) in kbtrans_keyreleased() argument
1425 if (upper->kbtrans_streams_translate_mode != TR_EVENT && in kbtrans_keyreleased()
1426 upper->kbtrans_streams_translate_mode != TR_UNTRANS_EVENT) { in kbtrans_keyreleased()
1432 for (i = 0, ke = upper->kbtrans_streams_downs; in kbtrans_keyreleased()
1433 i < upper->kbtrans_streams_num_downs_entries; in kbtrans_keyreleased()
1439 kbtrans_queueevent(upper, &ke->event); in kbtrans_keyreleased()
1456 kbtrans_putcode(register struct kbtrans *upper, uint_t code) in kbtrans_putcode() argument
1463 if (!canputnext(upper->kbtrans_streams_readq)) { in kbtrans_putcode()
1503 (void) putnext(upper->kbtrans_streams_readq, bp); in kbtrans_putcode()
1537 kbtrans_queueevent(struct kbtrans *upper, Firm_event *fe) in kbtrans_queueevent() argument
1542 if ((q = upper->kbtrans_streams_readq) == NULL) in kbtrans_queueevent()
1552 kbtrans_flush(upper); in kbtrans_queueevent()
1553 upper->kbtrans_overflow_cnt++; in kbtrans_queueevent()
1575 kbtrans_set_translation_callback(register struct kbtrans *upper) in kbtrans_set_translation_callback() argument
1577 switch (upper->kbtrans_streams_translate_mode) { in kbtrans_set_translation_callback()
1581 upper->vt_switch_keystate = VT_SWITCH_KEY_NONE; in kbtrans_set_translation_callback()
1584 upper->kbtrans_lower.kbtrans_shiftmask &= in kbtrans_set_translation_callback()
1586 upper->kbtrans_lower.kbtrans_togglemask &= in kbtrans_set_translation_callback()
1589 upper->kbtrans_streams_callback = &ascii_callback; in kbtrans_set_translation_callback()
1594 upper->kbtrans_streams_callback = &trans_event_callback; in kbtrans_set_translation_callback()
1599 upper->kbtrans_streams_callback = &untrans_event_callback; in kbtrans_set_translation_callback()
1612 kbtrans_untrans_keypressed_raw(struct kbtrans *upper, kbtrans_key_t key) in kbtrans_untrans_keypressed_raw() argument
1627 kbtrans_queuepress(upper, key, &fe); in kbtrans_untrans_keypressed_raw()
1637 kbtrans_untrans_keyreleased_raw(struct kbtrans *upper, kbtrans_key_t key) in kbtrans_untrans_keyreleased_raw() argument
1642 kbtrans_keyreleased(upper, key); in kbtrans_untrans_keyreleased_raw()
1674 kbtrans_vt_compose(struct kbtrans *upper, unsigned short keyid, in kbtrans_vt_compose() argument
1700 (upper->vt_switch_keystate - VT_SWITCH_KEY_ALT) * in kbtrans_vt_compose()
1710 kbtrans_putbuf(buf, upper->kbtrans_streams_readq); in kbtrans_vt_compose()
1722 kbtrans_ascii_keypressed(struct kbtrans *upper, uint_t entrytype, in kbtrans_ascii_keypressed() argument
1729 struct kbtrans_lower *lower = &upper->kbtrans_lower; in kbtrans_ascii_keypressed()
1744 upper->vt_switch_keystate = VT_SWITCH_KEY_ALT; in kbtrans_ascii_keypressed()
1746 upper->vt_switch_keystate = VT_SWITCH_KEY_ALTGR; in kbtrans_ascii_keypressed()
1758 if (upper->vt_switch_keystate > VT_SWITCH_KEY_NONE) { in kbtrans_ascii_keypressed()
1768 kbtrans_vt_compose(upper, keyid, B_FALSE, buf); in kbtrans_ascii_keypressed()
1809 kbtrans_putbuf(buf, upper->kbtrans_streams_readq); in kbtrans_ascii_keypressed()
1814 if (upper->vt_switch_keystate > VT_SWITCH_KEY_NONE) { in kbtrans_ascii_keypressed()
1820 kbtrans_vt_compose(upper, keyid, B_TRUE, buf); in kbtrans_ascii_keypressed()
1836 kbtrans_putcode(upper, (uchar_t)*cp); in kbtrans_ascii_keypressed()
1848 kbtrans_putcode(upper, in kbtrans_ascii_keypressed()
1861 kbtrans_putcode(upper, entry); in kbtrans_ascii_keypressed()
1878 kbtrans_ascii_keyreleased(struct kbtrans *upper, kbtrans_key_t key) in kbtrans_ascii_keyreleased() argument
1881 upper->vt_switch_keystate = VT_SWITCH_KEY_NONE; in kbtrans_ascii_keyreleased()
1892 kbtrans_ascii_setup_repeat(struct kbtrans *upper, uint_t entrytype, in kbtrans_ascii_setup_repeat() argument
1895 struct kbtrans_lower *lower = &upper->kbtrans_lower; in kbtrans_ascii_setup_repeat()
1901 kbtrans_cancelrpt(upper); in kbtrans_ascii_setup_repeat()
1912 upper->kbtrans_streams_count = 0; in kbtrans_ascii_setup_repeat()
1913 upper->kbtrans_streams_rptid = qtimeout(upper->kbtrans_streams_readq, in kbtrans_ascii_setup_repeat()
1914 kbtrans_rpt, (caddr_t)upper, kbtrans_repeat_delay); in kbtrans_ascii_setup_repeat()
1924 kbtrans_trans_event_keypressed(struct kbtrans *upper, uint_t entrytype, in kbtrans_trans_event_keypressed() argument
1929 struct kbtrans_lower *lower = &upper->kbtrans_lower; in kbtrans_trans_event_keypressed()
1946 kbtrans_keypressed(upper, key, &fe, fe.id); in kbtrans_trans_event_keypressed()
1959 kbtrans_keypressed(upper, key, &fe, fe.id); in kbtrans_trans_event_keypressed()
1979 kbtrans_keypressed(upper, key, &fe, fe.id); in kbtrans_trans_event_keypressed()
2004 kbtrans_send_esc_event(*cp, upper); in kbtrans_trans_event_keypressed()
2027 kbtrans_keypressed(upper, key, &fe, fe.id); in kbtrans_trans_event_keypressed()
2051 kbtrans_streams_releaseall(upper); in kbtrans_trans_event_keypressed()
2069 kbtrans_queueevent(upper, &fe); in kbtrans_trans_event_keypressed()
2079 kbtrans_trans_event_keyreleased(struct kbtrans *upper, kbtrans_key_t key) in kbtrans_trans_event_keyreleased() argument
2084 kbtrans_keyreleased(upper, key); in kbtrans_trans_event_keyreleased()
2094 kbtrans_trans_event_setup_repeat(struct kbtrans *upper, uint_t entrytype, in kbtrans_trans_event_setup_repeat() argument
2097 struct kbtrans_lower *lower = &upper->kbtrans_lower; in kbtrans_trans_event_setup_repeat()
2112 kbtrans_cancelrpt(upper); in kbtrans_trans_event_setup_repeat()
2123 upper->kbtrans_streams_count = 0; in kbtrans_trans_event_setup_repeat()
2124 upper->kbtrans_streams_rptid = qtimeout(upper->kbtrans_streams_readq, in kbtrans_trans_event_setup_repeat()
2125 kbtrans_rpt, (caddr_t)upper, kbtrans_repeat_delay); in kbtrans_trans_event_setup_repeat()