Lines Matching refs:this_round

287 		long this_round, size;  in vcs_read()  local
307 this_round = count; in vcs_read()
308 if (this_round > CON_BUF_SIZE) in vcs_read()
309 this_round = CON_BUF_SIZE; in vcs_read()
317 orig_count = this_round; in vcs_read()
330 if (nr > this_round/4) in vcs_read()
331 nr = this_round/4; in vcs_read()
335 this_round -= nr * 4; in vcs_read()
339 } while (this_round); in vcs_read()
344 while (this_round-- > 0) { in vcs_read()
362 this_round += p; in vcs_read()
363 if (this_round > CON_BUF_SIZE) { in vcs_read()
364 this_round = CON_BUF_SIZE; in vcs_read()
365 orig_count = this_round - p; in vcs_read()
369 if (tmp_count > this_round) in vcs_read()
370 tmp_count = this_round; in vcs_read()
373 this_round -= tmp_count; in vcs_read()
383 if (this_round < CON_BUF_SIZE) in vcs_read()
384 this_round++; in vcs_read()
388 if (this_round > 0) { in vcs_read()
402 this_round = (this_round + 1) >> 1; in vcs_read()
404 while (this_round) { in vcs_read()
406 this_round --; in vcs_read()
484 long this_round = count; in vcs_write() local
488 if (this_round > CON_BUF_SIZE) in vcs_write()
489 this_round = CON_BUF_SIZE; in vcs_write()
495 ret = copy_from_user(con_buf, buf, this_round); in vcs_write()
499 this_round -= ret; in vcs_write()
500 if (!this_round) { in vcs_write()
524 if (this_round > size - pos) in vcs_write()
525 this_round = size - pos; in vcs_write()
532 orig_count = this_round; in vcs_write()
540 while (this_round > 0) { in vcs_write()
543 this_round--; in vcs_write()
558 while (p < HEADER_SIZE && this_round > 0) { in vcs_write()
559 this_round--; in vcs_write()
567 if (this_round > 0) { in vcs_write()
569 if ((p & 1) && this_round > 0) { in vcs_write()
572 this_round--; in vcs_write()
591 while (this_round > 1) { in vcs_write()
597 this_round -= 2; in vcs_write()
604 if (this_round > 0) { in vcs_write()