Lines Matching refs:count
76 if (tty->count > 1) in sclp_tty_close()
95 int count; in sclp_tty_write_room() local
98 count = 0; in sclp_tty_write_room()
100 count = sclp_buffer_space(sclp_ttybuf) / sizeof(struct msg_buf); in sclp_tty_write_room()
102 count += NR_EMPTY_MSG_PER_SCCB; in sclp_tty_write_room()
104 return count; in sclp_tty_write_room()
135 int count; in __sclp_ttybuf_emit() local
140 count = sclp_tty_buffer_count++; in __sclp_ttybuf_emit()
142 if (count) in __sclp_ttybuf_emit()
172 static int sclp_tty_write_string(const unsigned char *str, int count, int may_fail) in sclp_tty_write_string() argument
180 if (count <= 0) in sclp_tty_write_string()
201 written = sclp_write(sclp_ttybuf, str, count); in sclp_tty_write_string()
203 if (written == count) in sclp_tty_write_string()
216 count -= written; in sclp_tty_write_string()
217 } while (count > 0); in sclp_tty_write_string()
238 sclp_tty_write(struct tty_struct *tty, const unsigned char *buf, int count) in sclp_tty_write() argument
244 return sclp_tty_write_string(buf, count, 1); in sclp_tty_write()
294 int count; in sclp_tty_chars_in_buffer() local
297 count = 0; in sclp_tty_chars_in_buffer()
299 count = sclp_chars_in_buffer(sclp_ttybuf); in sclp_tty_chars_in_buffer()
302 count += sclp_chars_in_buffer(t); in sclp_tty_chars_in_buffer()
305 return count; in sclp_tty_chars_in_buffer()
324 sclp_tty_input(unsigned char* buf, unsigned int count) in sclp_tty_input() argument
335 cchar = ctrlchar_handle(buf, count, tty); in sclp_tty_input()
345 if (count < 2 || in sclp_tty_input()
346 (strncmp((const char *) buf + count - 2, "^n", 2) && in sclp_tty_input()
347 strncmp((const char *) buf + count - 2, "\252n", 2))) { in sclp_tty_input()
349 tty_insert_flip_string(&sclp_port, buf, count); in sclp_tty_input()
352 tty_insert_flip_string(&sclp_port, buf, count - 2); in sclp_tty_input()
365 static int sclp_switch_cases(unsigned char *buf, int count) in sclp_switch_cases() argument
373 while (count-- > 0) { in sclp_switch_cases()
377 if (count && ip[1] == CASE_DELIMITER) { in sclp_switch_cases()
383 count--; in sclp_switch_cases()
413 int count; in sclp_get_input() local
416 count = sv->length - sizeof(*sv); in sclp_get_input()
418 EBC_TOLOWER(str, count); in sclp_get_input()
419 count = sclp_switch_cases(str, count); in sclp_get_input()
421 sclp_ebcasc_str(str, count); in sclp_get_input()
424 sclp_tty_input(str, count); in sclp_get_input()