#include <linux/init.h>
#include <linux/module.h>
#include <media/v4l2-ctrls.h>
#include "vimc-common.h"
static const struct vimc_pix_map vimc_pix_map_list[] = …;
bool vimc_is_source(struct media_entity *ent)
{ … }
const struct vimc_pix_map *vimc_pix_map_by_index(unsigned int i)
{ … }
u32 vimc_mbus_code_by_index(unsigned int index)
{ … }
const struct vimc_pix_map *vimc_pix_map_by_code(u32 code)
{ … }
const struct vimc_pix_map *vimc_pix_map_by_pixelformat(u32 pixelformat)
{ … }
static int vimc_get_pix_format(struct media_pad *pad,
struct v4l2_pix_format *fmt)
{ … }
int vimc_vdev_link_validate(struct media_link *link)
{ … }
static const struct media_entity_operations vimc_ent_sd_mops = …;
int vimc_ent_sd_register(struct vimc_ent_device *ved,
struct v4l2_subdev *sd,
struct v4l2_device *v4l2_dev,
const char *const name,
u32 function,
u16 num_pads,
struct media_pad *pads,
const struct v4l2_subdev_internal_ops *int_ops,
const struct v4l2_subdev_ops *sd_ops)
{ … }