Lines Matching refs:this_round
403 unsigned int this_round, skip = 0; in vcs_read() local
426 this_round = count; in vcs_read()
427 if (this_round > CON_BUF_SIZE) in vcs_read()
428 this_round = CON_BUF_SIZE; in vcs_read()
436 ret = vcs_read_buf_uni(vc, con_buf, pos, this_round, in vcs_read()
441 vcs_read_buf_noattr(vc, con_buf, pos, this_round, in vcs_read()
444 this_round = vcs_read_buf(vc, con_buf, pos, this_round, in vcs_read()
456 ret = copy_to_user(buf, con_buf + skip, this_round); in vcs_read()
460 read += this_round - ret; in vcs_read()
464 buf += this_round; in vcs_read()
465 pos += this_round; in vcs_read()
466 read += this_round; in vcs_read()
467 count -= this_round; in vcs_read()
634 unsigned int this_round = count; in vcs_write() local
636 if (this_round > CON_BUF_SIZE) in vcs_write()
637 this_round = CON_BUF_SIZE; in vcs_write()
643 ret = copy_from_user(con_buf, buf, this_round); in vcs_write()
647 this_round -= ret; in vcs_write()
648 if (!this_round) { in vcs_write()
672 if (this_round > size - pos) in vcs_write()
673 this_round = size - pos; in vcs_write()
680 org = vcs_write_buf(vc, con_buf, pos, this_round, in vcs_write()
683 org = vcs_write_buf_noattr(vc, con_buf, pos, this_round, in vcs_write()
686 count -= this_round; in vcs_write()
687 written += this_round; in vcs_write()
688 buf += this_round; in vcs_write()
689 pos += this_round; in vcs_write()