Lines Matching defs:offset
99 /* offset in the buf from which to consume data */
100 size_t offset;
457 buf->offset = 0;
479 buf->offset = 0;
519 port->stats.bytes_discarded += buf->len - buf->offset;
672 out_count = min(out_count, buf->len - buf->offset);
677 ret = copy_to_user(out_buf, buf->buf + buf->offset, out_count);
681 memcpy((__force char *)out_buf, buf->buf + buf->offset,
685 buf->offset += out_count;
687 if (buf->offset == buf->len) {
868 unsigned int offset, len;
880 sg_set_page(&(sgl->sg[sgl->n]), buf->page, len, buf->offset);
889 offset = sd->pos & ~PAGE_MASK;
892 if (len + offset > PAGE_SIZE)
893 len = PAGE_SIZE - offset;
896 memcpy(page_address(page) + offset, src + buf->offset, len);
899 sg_set_page(&(sgl->sg[sgl->n]), page, len, offset);
1573 cpkt = (struct virtio_console_control *)(buf->buf + buf->offset);
1627 memcpy(&size, buf->buf + buf->offset + sizeof(*cpkt),
1667 name_size = buf->len - buf->offset - sizeof(*cpkt) + 1;
1675 strncpy(port->name, buf->buf + buf->offset + sizeof(*cpkt),
1716 buf->offset = 0;