Lines Matching defs:pos
610 buf->pos = 0;
615 ubuf->pos = 0;
788 size_t count, loff_t *pos)
806 if (*pos) {
839 rem = ubuf->actual_size - ubuf->pos;
842 p = ubuf->data + ubuf->pos;
845 "%s() count=%d cnt=%d rem=%d buf=%p buf->pos=%d\n",
846 __func__, (int)count, cnt, rem, ubuf, ubuf->pos);
857 ubuf->pos += cnt;
862 if (ubuf->pos > ubuf->actual_size)
863 printk(KERN_ERR "read() pos > actual, huh?\n");
865 if (ubuf->pos == ubuf->actual_size) {
870 ubuf->pos = 0;