Lines Matching defs:count
88 * count against the target hvc_struct so it should be released when finished.
152 unsigned count)
166 while (count > 0 || i > 0) {
167 if (count > 0 && i < sizeof(c)) {
174 --count;
248 /* callback when the kboject ref count reaches zero. */
355 if (hp->port.count++ > 0) {
359 } /* else count == 0 */
399 if (--hp->port.count == 0) {
425 if (hp->port.count < 0)
426 printk(KERN_ERR "hvc_close %X: oops, count is %d\n",
427 hp->vtermno, hp->port.count);
457 if (hp->port.count <= 0) {
462 hp->port.count = 0;
499 static int hvc_write(struct tty_struct *tty, const unsigned char *buf, int count)
510 if (hp->port.count <= 0)
513 while (count > 0) {
521 if (rsize > count)
522 rsize = count;
524 count -= rsize;
538 if (count) {
635 int i, n, count, poll_mask = 0;
677 count = tty_buffer_request_room(&hp->port, N_INBUF);
680 if (count == 0) {
685 n = hp->ops->get_chars(hp->vtermno, buf, count);
695 * num of bytes read, which may be > 'count'.