Lines Matching defs:count
403 static ssize_t ivtv_read_pos(struct ivtv_stream *s, char __user *ubuf, size_t count,
406 ssize_t rc = count ? ivtv_read(s, ubuf, count, non_block) : 0;
409 IVTV_DEBUG_HI_FILE("read %zd from %s, got %zd\n", count, s->name, rc);
493 ssize_t ivtv_v4l2_read(struct file * filp, char __user *buf, size_t count, loff_t * pos)
500 IVTV_DEBUG_HI_FILE("read %zd bytes from %s\n", count, s->name);
506 rc = ivtv_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK);
536 static ssize_t ivtv_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos)
549 IVTV_DEBUG_HI_FILE("write %zd bytes to %s\n", count, s->name);
563 int elems = count / sizeof(struct v4l2_sliced_vbi_data);
594 while (count >= itv->dma_data_req_size) {
602 count -= itv->dma_data_req_size;
604 if (count == 0) {
612 while (q.length - q.bytesused < count && (buf = ivtv_dequeue(s, &s->q_io)))
614 while (q.length - q.bytesused < count && (buf = ivtv_dequeue(s, &s->q_free))) {
639 yi->stream_size + count > itv->dma_data_req_size)
643 rc = ivtv_buf_copy_from_user(s, buf, user_buf, count);
651 count -= rc;
702 if (count && !(filp->f_flags & O_NONBLOCK))
708 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos)
716 res = ivtv_write(filp, user_buf, count, pos);