Lines Matching refs:count
310 const unsigned char *msg, int count, int convertlf) in sclp_vt220_add_msg() argument
318 if (count > sclp_vt220_space_left(request)) in sclp_vt220_add_msg()
319 count = sclp_vt220_space_left(request); in sclp_vt220_add_msg()
320 if (count <= 0) in sclp_vt220_add_msg()
329 (from < count) && (to < sclp_vt220_space_left(request)); in sclp_vt220_add_msg()
348 memcpy(buffer, (const void *) msg, count); in sclp_vt220_add_msg()
349 sccb->header.length += count; in sclp_vt220_add_msg()
350 sccb->evbuf.length += count; in sclp_vt220_add_msg()
351 return count; in sclp_vt220_add_msg()
404 __sclp_vt220_write(const unsigned char *buf, int count, int do_schedule, in __sclp_vt220_write() argument
412 if (count <= 0) in __sclp_vt220_write()
438 buf, count, convertlf); in __sclp_vt220_write()
440 if (written == count) in __sclp_vt220_write()
451 count -= written; in __sclp_vt220_write()
452 } while (count > 0); in __sclp_vt220_write()
473 sclp_vt220_write(struct tty_struct *tty, const unsigned char *buf, int count) in sclp_vt220_write() argument
475 return __sclp_vt220_write(buf, count, 1, 0, 1); in sclp_vt220_write()
492 static void sclp_vt220_handle_input(const char *buffer, unsigned int count) in sclp_vt220_handle_input() argument
496 for (i = 0; i < count; i++) { in sclp_vt220_handle_input()
522 static void sclp_vt220_handle_input(const char *buffer, unsigned int count) in sclp_vt220_handle_input() argument
524 tty_insert_flip_string(&sclp_vt220_port, buffer, count); in sclp_vt220_handle_input()
536 unsigned int count; in sclp_vt220_receiver_fn() local
539 count = evbuf->length - sizeof(struct evbuf_header); in sclp_vt220_receiver_fn()
549 count--; in sclp_vt220_receiver_fn()
550 sclp_vt220_handle_input(buffer, count); in sclp_vt220_receiver_fn()
562 if (tty->count == 1) { in sclp_vt220_open()
579 if (tty->count == 1) in sclp_vt220_close()
619 int count; in sclp_vt220_write_room() local
622 count = 0; in sclp_vt220_write_room()
624 count = sclp_vt220_space_left(sclp_vt220_current_request); in sclp_vt220_write_room()
626 count += SCLP_VT220_MAX_CHARS_PER_BUFFER; in sclp_vt220_write_room()
628 return count; in sclp_vt220_write_room()
640 int count; in sclp_vt220_chars_in_buffer() local
643 count = 0; in sclp_vt220_chars_in_buffer()
645 count = sclp_vt220_chars_stored(sclp_vt220_current_request); in sclp_vt220_chars_in_buffer()
648 count += sclp_vt220_chars_stored(r); in sclp_vt220_chars_in_buffer()
651 return count; in sclp_vt220_chars_in_buffer()
842 sclp_vt220_con_write(struct console *con, const char *buf, unsigned int count) in sclp_vt220_con_write() argument
844 __sclp_vt220_write((const unsigned char *) buf, count, 1, 1, 0); in sclp_vt220_con_write()