Lines Matching refs:count

308 		   const unsigned char *msg, int count, int convertlf)  in sclp_vt220_add_msg()  argument
316 if (count > sclp_vt220_space_left(request)) in sclp_vt220_add_msg()
317 count = sclp_vt220_space_left(request); in sclp_vt220_add_msg()
318 if (count <= 0) in sclp_vt220_add_msg()
327 (from < count) && (to < sclp_vt220_space_left(request)); in sclp_vt220_add_msg()
346 memcpy(buffer, (const void *) msg, count); in sclp_vt220_add_msg()
347 sccb->header.length += count; in sclp_vt220_add_msg()
348 sccb->evbuf.length += count; in sclp_vt220_add_msg()
349 return count; in sclp_vt220_add_msg()
402 __sclp_vt220_write(const unsigned char *buf, int count, int do_schedule, in __sclp_vt220_write() argument
410 if (count <= 0) in __sclp_vt220_write()
436 buf, count, convertlf); in __sclp_vt220_write()
438 if (written == count) in __sclp_vt220_write()
449 count -= written; in __sclp_vt220_write()
450 } while (count > 0); in __sclp_vt220_write()
471 sclp_vt220_write(struct tty_struct *tty, const unsigned char *buf, int count) in sclp_vt220_write() argument
473 return __sclp_vt220_write(buf, count, 1, 0, 1); in sclp_vt220_write()
487 unsigned int count; in sclp_vt220_receiver_fn() local
490 count = evbuf->length - sizeof(struct evbuf_header); in sclp_vt220_receiver_fn()
499 count--; in sclp_vt220_receiver_fn()
500 tty_insert_flip_string(&sclp_vt220_port, buffer, count); in sclp_vt220_receiver_fn()
512 if (tty->count == 1) { in sclp_vt220_open()
529 if (tty->count == 1) in sclp_vt220_close()
569 int count; in sclp_vt220_write_room() local
572 count = 0; in sclp_vt220_write_room()
574 count = sclp_vt220_space_left(sclp_vt220_current_request); in sclp_vt220_write_room()
576 count += SCLP_VT220_MAX_CHARS_PER_BUFFER; in sclp_vt220_write_room()
578 return count; in sclp_vt220_write_room()
590 int count; in sclp_vt220_chars_in_buffer() local
593 count = 0; in sclp_vt220_chars_in_buffer()
595 count = sclp_vt220_chars_stored(sclp_vt220_current_request); in sclp_vt220_chars_in_buffer()
598 count += sclp_vt220_chars_stored(r); in sclp_vt220_chars_in_buffer()
601 return count; in sclp_vt220_chars_in_buffer()
792 sclp_vt220_con_write(struct console *con, const char *buf, unsigned int count) in sclp_vt220_con_write() argument
794 __sclp_vt220_write((const unsigned char *) buf, count, 1, 1, 0); in sclp_vt220_con_write()