Lines Matching refs:this_round
400 unsigned int this_round, skip = 0; in vcs_read() local
423 this_round = count; in vcs_read()
424 if (this_round > CON_BUF_SIZE) in vcs_read()
425 this_round = CON_BUF_SIZE; in vcs_read()
433 ret = vcs_read_buf_uni(vc, con_buf, pos, this_round, in vcs_read()
438 vcs_read_buf_noattr(vc, con_buf, pos, this_round, in vcs_read()
441 this_round = vcs_read_buf(vc, con_buf, pos, this_round, in vcs_read()
453 ret = copy_to_user(buf, con_buf + skip, this_round); in vcs_read()
457 read += this_round - ret; in vcs_read()
461 buf += this_round; in vcs_read()
462 pos += this_round; in vcs_read()
463 read += this_round; in vcs_read()
464 count -= this_round; in vcs_read()
624 unsigned int this_round = count; in vcs_write() local
626 if (this_round > CON_BUF_SIZE) in vcs_write()
627 this_round = CON_BUF_SIZE; in vcs_write()
633 ret = copy_from_user(con_buf, buf, this_round); in vcs_write()
637 this_round -= ret; in vcs_write()
638 if (!this_round) { in vcs_write()
666 if (this_round > size - pos) in vcs_write()
667 this_round = size - pos; in vcs_write()
674 org = vcs_write_buf(vc, con_buf, pos, this_round, in vcs_write()
677 org = vcs_write_buf_noattr(vc, con_buf, pos, this_round, in vcs_write()
680 count -= this_round; in vcs_write()
681 written += this_round; in vcs_write()
682 buf += this_round; in vcs_write()
683 pos += this_round; in vcs_write()