Lines Matching refs:this_round
269 long this_round, size; in vcs_read() local
289 this_round = count; in vcs_read()
290 if (this_round > CON_BUF_SIZE) in vcs_read()
291 this_round = CON_BUF_SIZE; in vcs_read()
299 orig_count = this_round; in vcs_read()
312 if (nr > this_round/4) in vcs_read()
313 nr = this_round/4; in vcs_read()
317 this_round -= nr * 4; in vcs_read()
321 } while (this_round); in vcs_read()
326 while (this_round-- > 0) { in vcs_read()
343 this_round += p; in vcs_read()
344 if (this_round > CON_BUF_SIZE) { in vcs_read()
345 this_round = CON_BUF_SIZE; in vcs_read()
346 orig_count = this_round - p; in vcs_read()
350 if (tmp_count > this_round) in vcs_read()
351 tmp_count = this_round; in vcs_read()
354 this_round -= tmp_count; in vcs_read()
364 if (this_round < CON_BUF_SIZE) in vcs_read()
365 this_round++; in vcs_read()
369 if (this_round > 0) { in vcs_read()
383 this_round = (this_round + 1) >> 1; in vcs_read()
385 while (this_round) { in vcs_read()
387 this_round --; in vcs_read()
465 long this_round = count; in vcs_write() local
469 if (this_round > CON_BUF_SIZE) in vcs_write()
470 this_round = CON_BUF_SIZE; in vcs_write()
476 ret = copy_from_user(con_buf, buf, this_round); in vcs_write()
480 this_round -= ret; in vcs_write()
481 if (!this_round) { in vcs_write()
505 if (this_round > size - pos) in vcs_write()
506 this_round = size - pos; in vcs_write()
513 orig_count = this_round; in vcs_write()
521 while (this_round > 0) { in vcs_write()
524 this_round--; in vcs_write()
539 while (p < HEADER_SIZE && this_round > 0) { in vcs_write()
540 this_round--; in vcs_write()
548 if (this_round > 0) { in vcs_write()
550 if ((p & 1) && this_round > 0) { in vcs_write()
553 this_round--; in vcs_write()
572 while (this_round > 1) { in vcs_write()
578 this_round -= 2; in vcs_write()
585 if (this_round > 0) { in vcs_write()