• Home
  • Raw
  • Download

Lines Matching refs:pos

249 		unsigned int pos, unsigned int count, bool viewed)  in vcs_read_buf_uni()  argument
258 pos /= 4; in vcs_read_buf_uni()
259 row = pos / maxcol; in vcs_read_buf_uni()
260 col = pos % maxcol; in vcs_read_buf_uni()
277 unsigned int pos, unsigned int count, bool viewed) in vcs_read_buf_noattr() argument
282 org = screen_pos(vc, pos, viewed); in vcs_read_buf_noattr()
283 col = pos % maxcol; in vcs_read_buf_noattr()
284 pos += maxcol - col; in vcs_read_buf_noattr()
289 org = screen_pos(vc, pos, viewed); in vcs_read_buf_noattr()
291 pos += maxcol; in vcs_read_buf_noattr()
297 unsigned int pos, unsigned int count, bool viewed, in vcs_read_buf() argument
304 if (pos < HEADER_SIZE) { in vcs_read_buf()
310 *skip += pos; in vcs_read_buf()
311 count += pos; in vcs_read_buf()
314 filled = count - pos; in vcs_read_buf()
319 pos = HEADER_SIZE; in vcs_read_buf()
322 } else if (pos & 1) { in vcs_read_buf()
337 pos -= HEADER_SIZE; in vcs_read_buf()
338 pos /= 2; in vcs_read_buf()
339 col = pos % maxcol; in vcs_read_buf()
341 org = screen_pos(vc, pos, viewed); in vcs_read_buf()
342 pos += maxcol - col; in vcs_read_buf()
355 org = screen_pos(vc, pos, viewed); in vcs_read_buf()
357 pos += maxcol; in vcs_read_buf()
373 loff_t pos; in vcs_read() local
380 pos = *ppos; in vcs_read()
391 if (pos < 0) in vcs_read()
394 if (uni_mode && (pos | count) & 3) in vcs_read()
422 if (pos >= size) in vcs_read()
424 if (count > size - pos) in vcs_read()
425 count = size - pos; in vcs_read()
437 ret = vcs_read_buf_uni(vc, con_buf, pos, this_round, in vcs_read()
442 vcs_read_buf_noattr(vc, con_buf, pos, this_round, in vcs_read()
445 this_round = vcs_read_buf(vc, con_buf, pos, this_round, in vcs_read()
466 pos += this_round; in vcs_read()
480 unsigned int pos, unsigned int count, bool viewed, u16 **org0) in vcs_write_buf_noattr() argument
485 *org0 = org = screen_pos(vc, pos, viewed); in vcs_write_buf_noattr()
486 col = pos % maxcol; in vcs_write_buf_noattr()
487 pos += maxcol - col; in vcs_write_buf_noattr()
497 org = screen_pos(vc, pos, viewed); in vcs_write_buf_noattr()
499 pos += maxcol; in vcs_write_buf_noattr()
520 unsigned int pos, unsigned int count, bool viewed, u16 **org0) in vcs_write_buf() argument
527 if (pos < HEADER_SIZE) { in vcs_write_buf()
531 while (pos < HEADER_SIZE && count > 0) { in vcs_write_buf()
533 header[pos++] = *con_buf++; in vcs_write_buf()
542 pos -= HEADER_SIZE; in vcs_write_buf()
543 col = (pos/2) % maxcol; in vcs_write_buf()
545 *org0 = org = screen_pos(vc, pos/2, viewed); in vcs_write_buf()
548 if (pos & 1) { in vcs_write_buf()
554 pos++; in vcs_write_buf()
556 org = screen_pos(vc, pos/2, viewed); in vcs_write_buf()
561 pos /= 2; in vcs_write_buf()
562 pos += maxcol - col; in vcs_write_buf()
573 org = screen_pos(vc, pos, viewed); in vcs_write_buf()
575 pos += maxcol; in vcs_write_buf()
600 loff_t pos; in vcs_write() local
610 pos = *ppos; in vcs_write()
629 if (pos < 0 || pos > size) in vcs_write()
631 if (count > size - pos) in vcs_write()
632 count = size - pos; in vcs_write()
671 if (pos >= size) in vcs_write()
673 if (this_round > size - pos) in vcs_write()
674 this_round = size - pos; in vcs_write()
681 org = vcs_write_buf(vc, con_buf, pos, this_round, in vcs_write()
684 org = vcs_write_buf_noattr(vc, con_buf, pos, this_round, in vcs_write()
690 pos += this_round; in vcs_write()