#include <linux/device.h>
#include <linux/slab.h>
#include <media/v4l2-subdev.h>
#include "vsp1.h"
#include "vsp1_clu.h"
#include "vsp1_dl.h"
#define CLU_MIN_SIZE …
#define CLU_MAX_SIZE …
#define CLU_SIZE …
static inline void vsp1_clu_write(struct vsp1_clu *clu,
struct vsp1_dl_body *dlb, u32 reg, u32 data)
{ … }
#define V4L2_CID_VSP1_CLU_TABLE …
#define V4L2_CID_VSP1_CLU_MODE …
#define V4L2_CID_VSP1_CLU_MODE_2D …
#define V4L2_CID_VSP1_CLU_MODE_3D …
static int clu_set_table(struct vsp1_clu *clu, struct v4l2_ctrl *ctrl)
{ … }
static int clu_s_ctrl(struct v4l2_ctrl *ctrl)
{ … }
static const struct v4l2_ctrl_ops clu_ctrl_ops = …;
static const struct v4l2_ctrl_config clu_table_control = …;
static const char * const clu_mode_menu[] = …;
static const struct v4l2_ctrl_config clu_mode_control = …;
static const unsigned int clu_codes[] = …;
static int clu_enum_mbus_code(struct v4l2_subdev *subdev,
struct v4l2_subdev_state *sd_state,
struct v4l2_subdev_mbus_code_enum *code)
{ … }
static int clu_enum_frame_size(struct v4l2_subdev *subdev,
struct v4l2_subdev_state *sd_state,
struct v4l2_subdev_frame_size_enum *fse)
{ … }
static int clu_set_format(struct v4l2_subdev *subdev,
struct v4l2_subdev_state *sd_state,
struct v4l2_subdev_format *fmt)
{ … }
static const struct v4l2_subdev_pad_ops clu_pad_ops = …;
static const struct v4l2_subdev_ops clu_ops = …;
static void clu_configure_stream(struct vsp1_entity *entity,
struct v4l2_subdev_state *state,
struct vsp1_pipeline *pipe,
struct vsp1_dl_list *dl,
struct vsp1_dl_body *dlb)
{ … }
static void clu_configure_frame(struct vsp1_entity *entity,
struct vsp1_pipeline *pipe,
struct vsp1_dl_list *dl,
struct vsp1_dl_body *dlb)
{ … }
static void clu_destroy(struct vsp1_entity *entity)
{ … }
static const struct vsp1_entity_operations clu_entity_ops = …;
struct vsp1_clu *vsp1_clu_create(struct vsp1_device *vsp1)
{ … }