Lines Matching refs:this_round

236 		long this_round, size;  in vcs_read()  local
256 this_round = count; in vcs_read()
257 if (this_round > CON_BUF_SIZE) in vcs_read()
258 this_round = CON_BUF_SIZE; in vcs_read()
266 orig_count = this_round; in vcs_read()
272 while (this_round-- > 0) { in vcs_read()
289 this_round += p; in vcs_read()
290 if (this_round > CON_BUF_SIZE) { in vcs_read()
291 this_round = CON_BUF_SIZE; in vcs_read()
292 orig_count = this_round - p; in vcs_read()
296 if (tmp_count > this_round) in vcs_read()
297 tmp_count = this_round; in vcs_read()
300 this_round -= tmp_count; in vcs_read()
310 if (this_round < CON_BUF_SIZE) in vcs_read()
311 this_round++; in vcs_read()
315 if (this_round > 0) { in vcs_read()
329 this_round = (this_round + 1) >> 1; in vcs_read()
331 while (this_round) { in vcs_read()
333 this_round --; in vcs_read()
412 long this_round = count; in vcs_write() local
416 if (this_round > CON_BUF_SIZE) in vcs_write()
417 this_round = CON_BUF_SIZE; in vcs_write()
423 ret = copy_from_user(con_buf, buf, this_round); in vcs_write()
427 this_round -= ret; in vcs_write()
428 if (!this_round) { in vcs_write()
452 if (this_round > size - pos) in vcs_write()
453 this_round = size - pos; in vcs_write()
460 orig_count = this_round; in vcs_write()
468 while (this_round > 0) { in vcs_write()
471 this_round--; in vcs_write()
486 while (p < HEADER_SIZE && this_round > 0) { in vcs_write()
487 this_round--; in vcs_write()
495 if (this_round > 0) { in vcs_write()
497 if ((p & 1) && this_round > 0) { in vcs_write()
500 this_round--; in vcs_write()
519 while (this_round > 1) { in vcs_write()
525 this_round -= 2; in vcs_write()
532 if (this_round > 0) { in vcs_write()