linux/drivers/media/platform/rockchip/rga/rga-buf.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2017 Fuzhou Rockchip Electronics Co.Ltd
 * Author: Jacob Chen <[email protected]>
 */

#include <linux/pm_runtime.h>
#include <linux/scatterlist.h>

#include <media/v4l2-common.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-mem2mem.h>
#include <media/videobuf2-dma-sg.h>
#include <media/videobuf2-v4l2.h>

#include "rga-hw.h"
#include "rga.h"

static ssize_t fill_descriptors(struct rga_dma_desc *desc, size_t max_desc,
				struct sg_table *sgt)
{}

static int
rga_queue_setup(struct vb2_queue *vq,
		unsigned int *nbuffers, unsigned int *nplanes,
		unsigned int sizes[], struct device *alloc_devs[])
{}

static int rga_buf_init(struct vb2_buffer *vb)
{}

static int get_plane_offset(struct rga_frame *f, int plane)
{}

static int rga_buf_prepare(struct vb2_buffer *vb)
{}

static void rga_buf_queue(struct vb2_buffer *vb)
{}

static void rga_buf_cleanup(struct vb2_buffer *vb)
{}

static void rga_buf_return_buffers(struct vb2_queue *q,
				   enum vb2_buffer_state state)
{}

static int rga_buf_start_streaming(struct vb2_queue *q, unsigned int count)
{}

static void rga_buf_stop_streaming(struct vb2_queue *q)
{}

const struct vb2_ops rga_qops =;