Lines Matching refs:upper
73 kbtrans_ischar(struct kbtrans *upper) in kbtrans_ischar() argument
83 if (*upper->kbtrans_polled_pending_chars != '\0') { in kbtrans_ischar()
90 upper->kbtrans_polled_buf[0] = '\0'; in kbtrans_ischar()
91 upper->kbtrans_polled_pending_chars = upper->kbtrans_polled_buf; in kbtrans_ischar()
93 cb = upper->kbtrans_streams_hw_callbacks; in kbtrans_ischar()
94 hw = upper->kbtrans_streams_hw; in kbtrans_ischar()
101 kbtrans_processkey(&upper->kbtrans_lower, in kbtrans_ischar()
106 if (*upper->kbtrans_polled_pending_chars != '\0') { in kbtrans_ischar()
119 kbtrans_getchar(struct kbtrans *upper) in kbtrans_getchar() argument
121 while (!kbtrans_ischar(upper)) in kbtrans_getchar()
124 return (*upper->kbtrans_polled_pending_chars++); in kbtrans_getchar()
128 kbtrans_polled_putcode(struct kbtrans *upper, char code) in kbtrans_polled_putcode() argument
138 if (upper->kbtrans_polled_buf[i] == '\0') { in kbtrans_polled_putcode()
139 upper->kbtrans_polled_buf[i] = code; in kbtrans_polled_putcode()
140 upper->kbtrans_polled_buf[i+1] = '\0'; in kbtrans_polled_putcode()
145 (upper, "kbtrans_polled_pressed: " in kbtrans_polled_putcode()
161 struct kbtrans *upper, in kbtrans_polled_pressed() argument
166 struct kbtrans_lower *lower = &upper->kbtrans_lower; in kbtrans_polled_pressed()
202 kbtrans_polled_putcode(upper, *cp); in kbtrans_polled_pressed()
213 kbtrans_polled_putcode(upper, in kbtrans_polled_pressed()
223 kbtrans_polled_putcode(upper, (char)entry); in kbtrans_polled_pressed()
235 kbtrans_polled_released(struct kbtrans *upper, kbtrans_key_t key) in kbtrans_polled_released() argument
245 kbtrans_polled_setled(struct kbtrans *upper) in kbtrans_polled_setled() argument
250 cb = upper->kbtrans_streams_hw_callbacks; in kbtrans_polled_setled()
251 hw = upper->kbtrans_streams_hw; in kbtrans_polled_setled()
253 cb->kbtrans_polled_setled(hw, upper->kbtrans_lower.kbtrans_led_state); in kbtrans_polled_setled()
264 struct kbtrans *upper, in kbtrans_polled_setup_repeat() argument
279 kbtrans_polled_cancel_repeat(struct kbtrans *upper) in kbtrans_polled_cancel_repeat() argument
285 upper->kbtrans_lower.kbtrans_repeatkey = 0; in kbtrans_polled_cancel_repeat()