Lines Matching defs:count
76 if (tty->count > 1)
95 int count;
98 count = 0;
100 count = sclp_buffer_space(sclp_ttybuf) / sizeof(struct msg_buf);
102 count += NR_EMPTY_MSG_PER_SCCB;
104 return count;
135 int count;
140 count = sclp_tty_buffer_count++;
142 if (count)
172 static int sclp_tty_write_string(const unsigned char *str, int count, int may_fail)
180 if (count <= 0)
201 written = sclp_write(sclp_ttybuf, str, count);
203 if (written == count)
216 count -= written;
217 } while (count > 0);
234 sclp_tty_write(struct tty_struct *tty, const unsigned char *buf, int count)
240 return sclp_tty_write_string(buf, count, 1);
290 int count;
293 count = 0;
295 count = sclp_chars_in_buffer(sclp_ttybuf);
298 count += sclp_chars_in_buffer(t);
301 return count;
320 sclp_tty_input(unsigned char* buf, unsigned int count)
331 cchar = ctrlchar_handle(buf, count, tty);
341 if (count < 2 ||
342 (strncmp((const char *) buf + count - 2, "^n", 2) &&
343 strncmp((const char *) buf + count - 2, "\252n", 2))) {
345 tty_insert_flip_string(&sclp_port, buf, count);
348 tty_insert_flip_string(&sclp_port, buf, count - 2);
361 static int sclp_switch_cases(unsigned char *buf, int count)
369 while (count-- > 0) {
373 if (count && ip[1] == CASE_DELIMITER) {
379 count--;
409 int count;
412 count = sv->length - sizeof(*sv);
414 EBC_TOLOWER(str, count);
415 count = sclp_switch_cases(str, count);
417 sclp_ebcasc_str(str, count);
420 sclp_tty_input(str, count);