fileio 301 drivers/iio/buffer/industrialio-buffer-dma.c if (PAGE_ALIGN(queue->fileio.block_size) == PAGE_ALIGN(size)) fileio 304 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.block_size = size; fileio 305 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.active_block = NULL; fileio 308 drivers/iio/buffer/industrialio-buffer-dma.c for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { fileio 309 drivers/iio/buffer/industrialio-buffer-dma.c block = queue->fileio.blocks[i]; fileio 326 drivers/iio/buffer/industrialio-buffer-dma.c for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { fileio 327 drivers/iio/buffer/industrialio-buffer-dma.c if (queue->fileio.blocks[i]) { fileio 328 drivers/iio/buffer/industrialio-buffer-dma.c block = queue->fileio.blocks[i]; fileio 346 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.blocks[i] = block; fileio 494 drivers/iio/buffer/industrialio-buffer-dma.c if (!queue->fileio.active_block) { fileio 500 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.pos = 0; fileio 501 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.active_block = block; fileio 503 drivers/iio/buffer/industrialio-buffer-dma.c block = queue->fileio.active_block; fileio 507 drivers/iio/buffer/industrialio-buffer-dma.c if (n > block->bytes_used - queue->fileio.pos) fileio 508 drivers/iio/buffer/industrialio-buffer-dma.c n = block->bytes_used - queue->fileio.pos; fileio 510 drivers/iio/buffer/industrialio-buffer-dma.c if (copy_to_user(user_buffer, block->vaddr + queue->fileio.pos, n)) { fileio 515 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.pos += n; fileio 517 drivers/iio/buffer/industrialio-buffer-dma.c if (queue->fileio.pos == block->bytes_used) { fileio 518 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.active_block = NULL; fileio 552 drivers/iio/buffer/industrialio-buffer-dma.c if (queue->fileio.active_block) fileio 553 drivers/iio/buffer/industrialio-buffer-dma.c data_available += queue->fileio.active_block->size; fileio 644 drivers/iio/buffer/industrialio-buffer-dma.c for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { fileio 645 drivers/iio/buffer/industrialio-buffer-dma.c if (!queue->fileio.blocks[i]) fileio 647 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.blocks[i]->state = IIO_BLOCK_STATE_DEAD; fileio 654 drivers/iio/buffer/industrialio-buffer-dma.c for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { fileio 655 drivers/iio/buffer/industrialio-buffer-dma.c if (!queue->fileio.blocks[i]) fileio 657 drivers/iio/buffer/industrialio-buffer-dma.c iio_buffer_block_put(queue->fileio.blocks[i]); fileio 658 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.blocks[i] = NULL; fileio 660 drivers/iio/buffer/industrialio-buffer-dma.c queue->fileio.active_block = NULL; fileio 2365 drivers/media/common/videobuf2/videobuf2-core.c if (q->is_output && q->fileio && q->queued_count < q->num_buffers) fileio 2454 drivers/media/common/videobuf2/videobuf2-core.c struct vb2_fileio_data *fileio; fileio 2486 drivers/media/common/videobuf2/videobuf2-core.c fileio = kzalloc(sizeof(*fileio), GFP_KERNEL); fileio 2487 drivers/media/common/videobuf2/videobuf2-core.c if (fileio == NULL) fileio 2490 drivers/media/common/videobuf2/videobuf2-core.c fileio->read_once = q->fileio_read_once; fileio 2491 drivers/media/common/videobuf2/videobuf2-core.c fileio->write_immediately = q->fileio_write_immediately; fileio 2497 drivers/media/common/videobuf2/videobuf2-core.c fileio->count = count; fileio 2498 drivers/media/common/videobuf2/videobuf2-core.c fileio->memory = VB2_MEMORY_MMAP; fileio 2499 drivers/media/common/videobuf2/videobuf2-core.c fileio->type = q->type; fileio 2500 drivers/media/common/videobuf2/videobuf2-core.c q->fileio = fileio; fileio 2501 drivers/media/common/videobuf2/videobuf2-core.c ret = vb2_core_reqbufs(q, fileio->memory, &fileio->count); fileio 2518 drivers/media/common/videobuf2/videobuf2-core.c fileio->bufs[i].vaddr = vb2_plane_vaddr(q->bufs[i], 0); fileio 2519 drivers/media/common/videobuf2/videobuf2-core.c if (fileio->bufs[i].vaddr == NULL) { fileio 2523 drivers/media/common/videobuf2/videobuf2-core.c fileio->bufs[i].size = vb2_plane_size(q->bufs[i], 0); fileio 2537 drivers/media/common/videobuf2/videobuf2-core.c fileio->bufs[i].queued = 1; fileio 2543 drivers/media/common/videobuf2/videobuf2-core.c fileio->initial_index = q->num_buffers; fileio 2544 drivers/media/common/videobuf2/videobuf2-core.c fileio->cur_index = q->num_buffers; fileio 2557 drivers/media/common/videobuf2/videobuf2-core.c fileio->count = 0; fileio 2558 drivers/media/common/videobuf2/videobuf2-core.c vb2_core_reqbufs(q, fileio->memory, &fileio->count); fileio 2561 drivers/media/common/videobuf2/videobuf2-core.c q->fileio = NULL; fileio 2562 drivers/media/common/videobuf2/videobuf2-core.c kfree(fileio); fileio 2572 drivers/media/common/videobuf2/videobuf2-core.c struct vb2_fileio_data *fileio = q->fileio; fileio 2574 drivers/media/common/videobuf2/videobuf2-core.c if (fileio) { fileio 2576 drivers/media/common/videobuf2/videobuf2-core.c q->fileio = NULL; fileio 2577 drivers/media/common/videobuf2/videobuf2-core.c fileio->count = 0; fileio 2578 drivers/media/common/videobuf2/videobuf2-core.c vb2_core_reqbufs(q, fileio->memory, &fileio->count); fileio 2579 drivers/media/common/videobuf2/videobuf2-core.c kfree(fileio); fileio 2597 drivers/media/common/videobuf2/videobuf2-core.c struct vb2_fileio_data *fileio; fileio 2631 drivers/media/common/videobuf2/videobuf2-core.c fileio = q->fileio; fileio 2636 drivers/media/common/videobuf2/videobuf2-core.c index = fileio->cur_index; fileio 2647 drivers/media/common/videobuf2/videobuf2-core.c fileio->dq_count += 1; fileio 2649 drivers/media/common/videobuf2/videobuf2-core.c fileio->cur_index = index; fileio 2650 drivers/media/common/videobuf2/videobuf2-core.c buf = &fileio->bufs[index]; fileio 2667 drivers/media/common/videobuf2/videobuf2-core.c buf = &fileio->bufs[index]; fileio 2701 drivers/media/common/videobuf2/videobuf2-core.c if (buf->pos == buf->size || (!read && fileio->write_immediately)) { fileio 2707 drivers/media/common/videobuf2/videobuf2-core.c if (read && fileio->read_once && fileio->dq_count == 1) { fileio 2730 drivers/media/common/videobuf2/videobuf2-core.c fileio->q_count += 1; fileio 2735 drivers/media/common/videobuf2/videobuf2-core.c if (fileio->initial_index < q->num_buffers) fileio 2736 drivers/media/common/videobuf2/videobuf2-core.c fileio->initial_index++; fileio 2744 drivers/media/common/videobuf2/videobuf2-core.c fileio->cur_index = fileio->initial_index; fileio 2851 drivers/media/common/videobuf2/videobuf2-core.c if (WARN_ON(q->fileio)) fileio 1074 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vdev->queue->fileio) fileio 1098 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vdev->queue->fileio) fileio 1113 drivers/media/common/videobuf2/videobuf2-v4l2.c void *fileio; fileio 1124 drivers/media/common/videobuf2/videobuf2-v4l2.c fileio = q->fileio; fileio 1129 drivers/media/common/videobuf2/videobuf2-v4l2.c if (!fileio && q->fileio) fileio 117 include/linux/iio/buffer-dma.h struct iio_dma_buffer_queue_fileio fileio; fileio 606 include/media/videobuf2-core.h struct vb2_fileio_data *fileio; fileio 1083 include/media/videobuf2-core.h return q->fileio;