Home
last modified time | relevance | path

Searched refs:imxmd (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/staging/media/imx/
H A Dimx-media-dev-common.c24 static void imx_media_create_csi2_links(struct imx_media_dev *imxmd) in imx_media_create_csi2_links() argument
28 list_for_each_entry(sd, &imxmd->v4l2_dev.subdevs, list) { in imx_media_create_csi2_links()
37 list_for_each_entry(sd, &imxmd->v4l2_dev.subdevs, list) { in imx_media_create_csi2_links()
51 static int imx_media_add_vdev_to_pad(struct imx_media_dev *imxmd, in imx_media_add_vdev_to_pad() argument
70 v4l2_warn(&imxmd->v4l2_dev, "%s:%u has no vdev list!\n", in imx_media_add_vdev_to_pad()
85 dev_dbg(imxmd->md.dev, "adding %s to pad %s:%u\n", in imx_media_add_vdev_to_pad()
88 pad_vdev = devm_kzalloc(imxmd->md.dev, sizeof(*pad_vdev), GFP_KERNEL); in imx_media_add_vdev_to_pad()
106 ret = imx_media_add_vdev_to_pad(imxmd, vdev, in imx_media_add_vdev_to_pad()
121 static int imx_media_alloc_pad_vdev_lists(struct imx_media_dev *imxmd) in imx_media_alloc_pad_vdev_lists() argument
128 list_for_each_entry(sd, &imxmd->v4l2_dev.subdevs, list) { in imx_media_alloc_pad_vdev_lists()
[all …]
H A Dimx-media-internal-sd.c133 static int create_internal_link(struct imx_media_dev *imxmd, in create_internal_link() argument
145 dev_dbg(imxmd->md.dev, "%s:%d -> %s:%d\n", in create_internal_link()
152 v4l2_err(&imxmd->v4l2_dev, "%s failed: %d\n", __func__, ret); in create_internal_link()
157 static int create_ipu_internal_links(struct imx_media_dev *imxmd, in create_ipu_internal_links() argument
179 sink = imxmd->sync_sd[ipu_id][link->remote]; in create_ipu_internal_links()
181 ret = create_internal_link(imxmd, sd, sink, link); in create_ipu_internal_links()
190 int imx_media_register_ipu_internal_subdevs(struct imx_media_dev *imxmd, in imx_media_register_ipu_internal_subdevs() argument
201 v4l2_err(&imxmd->v4l2_dev, "invalid IPU device!\n"); in imx_media_register_ipu_internal_subdevs()
207 v4l2_err(&imxmd->v4l2_dev, "invalid IPU id %d!\n", ipu_id); in imx_media_register_ipu_internal_subdevs()
211 mutex_lock(&imxmd->mutex); in imx_media_register_ipu_internal_subdevs()
[all …]
H A Dimx-media-of.c19 static int imx_media_of_add_csi(struct imx_media_dev *imxmd, in imx_media_of_add_csi() argument
26 dev_dbg(imxmd->md.dev, "%s: %pOFn not enabled\n", __func__, in imx_media_of_add_csi()
32 asd = v4l2_async_nf_add_fwnode(&imxmd->notifier, in imx_media_of_add_csi()
38 dev_dbg(imxmd->md.dev, "%s: already added %pOFn\n", in imx_media_of_add_csi()
45 int imx_media_add_of_subdevs(struct imx_media_dev *imxmd, in imx_media_add_of_subdevs() argument
56 ret = imx_media_of_add_csi(imxmd, csi_np); in imx_media_add_of_subdevs()
H A Dimx-media.h204 void imx_media_add_video_device(struct imx_media_dev *imxmd,
225 int imx_media_pipeline_set_stream(struct imx_media_dev *imxmd,
233 int imx_media_dev_notifier_register(struct imx_media_dev *imxmd,
247 int imx_media_register_ipu_internal_subdevs(struct imx_media_dev *imxmd,
249 void imx_media_unregister_ipu_internal_subdevs(struct imx_media_dev *imxmd);
H A Dimx-media-utils.c633 void imx_media_add_video_device(struct imx_media_dev *imxmd, in imx_media_add_video_device() argument
636 mutex_lock(&imxmd->mutex); in imx_media_add_video_device()
638 list_add_tail(&vdev->list, &imxmd->vdev_list); in imx_media_add_video_device()
640 mutex_unlock(&imxmd->mutex); in imx_media_add_video_device()
751 int imx_media_pipeline_set_stream(struct imx_media_dev *imxmd, in imx_media_pipeline_set_stream() argument
762 mutex_lock(&imxmd->md.graph_mutex); in imx_media_pipeline_set_stream()
765 ret = __media_pipeline_start(entity->pads, &imxmd->pipe); in imx_media_pipeline_set_stream()
778 mutex_unlock(&imxmd->md.graph_mutex); in imx_media_pipeline_set_stream()