Lines Matching defs:pos
611 buf->pos = 0;
616 ubuf->pos = 0;
789 size_t count, loff_t *pos)
807 if (*pos) {
840 rem = ubuf->actual_size - ubuf->pos;
843 p = ubuf->data + ubuf->pos;
846 "%s() count=%d cnt=%d rem=%d buf=%p buf->pos=%d\n",
847 __func__, (int)count, cnt, rem, ubuf, ubuf->pos);
858 ubuf->pos += cnt;
863 if (ubuf->pos > ubuf->actual_size)
864 printk(KERN_ERR "read() pos > actual, huh?\n");
866 if (ubuf->pos == ubuf->actual_size) {
871 ubuf->pos = 0;