Home
last modified time | relevance | path

Searched refs:source_pad (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.1.9/drivers/media/platform/renesas/vsp1/
Dvsp1_brx.c158 if (fmt->pad != brx->entity.source_pad) { in brx_set_format()
172 for (i = 0; i <= brx->entity.source_pad; ++i) { in brx_set_format()
191 if (sel->pad == brx->entity.source_pad) in brx_get_selection()
228 if (sel->pad == brx->entity.source_pad) in brx_set_selection()
248 brx->entity.source_pad); in brx_set_selection()
297 brx->entity.source_pad); in brx_configure_stream()
339 for (i = 0; i < brx->entity.source_pad; ++i) { in brx_configure_stream()
Dvsp1_entity.c382 if (fmt->pad == entity->source_pad) { in vsp1_subdev_set_pad_format()
408 format = vsp1_entity_get_pad_format(entity, config, entity->source_pad); in vsp1_subdev_set_pad_format()
441 static int vsp1_entity_link_setup_source(const struct media_pad *source_pad, in vsp1_entity_link_setup_source() argument
447 source = media_entity_to_vsp1_entity(source_pad->entity); in vsp1_entity_link_setup_source()
475 static int vsp1_entity_link_setup_sink(const struct media_pad *source_pad, in vsp1_entity_link_setup_sink() argument
483 source = media_entity_to_vsp1_entity(source_pad->entity); in vsp1_entity_link_setup_sink()
635 entity->source_pad = num_pads - 1; in vsp1_entity_init()
Dvsp1_entity.h111 unsigned int source_pad; member
Dvsp1_drm.c338 format.pad = brx->source_pad; in vsp1_du_pipeline_setup_brx()
350 format.format.code, BRX_NAME(brx), brx->source_pad); in vsp1_du_pipeline_setup_brx()
413 for (i = 0; i < pipe->brx->source_pad; ++i) { in vsp1_du_pipeline_setup_inputs()
452 pipe->brx, pipe->brx->source_pad, in vsp1_du_pipeline_setup_inputs()
/linux-6.1.9/drivers/media/platform/rockchip/rkisp1/
Drkisp1-csi.c52 unsigned int source_pad) in rkisp1_csi_link_sensor() argument
66 ret = media_create_pad_link(&sd->entity, source_pad, in rkisp1_csi_link_sensor()
384 struct media_pad *source_pad; in rkisp1_csi_s_stream() local
396 source_pad = media_entity_remote_source_pad_unique(&sd->entity); in rkisp1_csi_s_stream()
397 if (IS_ERR(source_pad)) { in rkisp1_csi_s_stream()
399 PTR_ERR(source_pad)); in rkisp1_csi_s_stream()
403 source = media_entity_to_v4l2_subdev(source_pad->entity); in rkisp1_csi_s_stream()
Drkisp1-dev.c131 int source_pad; in rkisp1_subdev_notifier_bound() local
136 source_pad = media_entity_get_fwnode_pad(&sd->entity, s_asd->source_ep, in rkisp1_subdev_notifier_bound()
138 if (source_pad < 0) { in rkisp1_subdev_notifier_bound()
141 return source_pad; in rkisp1_subdev_notifier_bound()
145 return rkisp1_csi_link_sensor(rkisp1, sd, s_asd, source_pad); in rkisp1_subdev_notifier_bound()
147 ret = media_create_pad_link(&sd->entity, source_pad, in rkisp1_subdev_notifier_bound()
Drkisp1-csi.h26 unsigned int source_pad);
Drkisp1-isp.c840 struct media_pad *source_pad; in rkisp1_isp_s_stream() local
853 source_pad = media_pad_remote_pad_unique(sink_pad); in rkisp1_isp_s_stream()
854 if (IS_ERR(source_pad)) { in rkisp1_isp_s_stream()
856 PTR_ERR(source_pad)); in rkisp1_isp_s_stream()
860 rkisp1->source = media_entity_to_v4l2_subdev(source_pad->entity); in rkisp1_isp_s_stream()
/linux-6.1.9/drivers/media/platform/cadence/
Dcdns-csi2rx.c85 int source_pad; member
254 csi2rx->source_pad = media_entity_get_fwnode_pad(&s_subdev->entity, in csi2rx_async_bound()
257 if (csi2rx->source_pad < 0) { in csi2rx_async_bound()
260 return csi2rx->source_pad; in csi2rx_async_bound()
266 csi2rx->source_pad); in csi2rx_async_bound()
269 csi2rx->source_pad, in csi2rx_async_bound()
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Datomisp_fops.c325 uint16_t source_pad) in atomisp_get_css_buf_type() argument
331 if (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_CAPTURE) in atomisp_get_css_buf_type()
333 else if (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_PREVIEW) in atomisp_get_css_buf_type()
342 if (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_CAPTURE) in atomisp_get_css_buf_type()
344 else if (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_PREVIEW) in atomisp_get_css_buf_type()
346 else if (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_VIDEO) in atomisp_get_css_buf_type()
353 if (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_CAPTURE || in atomisp_get_css_buf_type()
354 source_pad == ATOMISP_SUBDEV_PAD_SOURCE_VIDEO || in atomisp_get_css_buf_type()
355 (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_PREVIEW && in atomisp_get_css_buf_type()
363 source_pad == ATOMISP_SUBDEV_PAD_SOURCE_CAPTURE || in atomisp_get_css_buf_type()
[all …]
Datomisp_cmd.c1937 int source_pad) in atomisp_update_grid_info() argument
1942 if (atomisp_css_get_grid_info(asd, pipe_id, source_pad)) in atomisp_update_grid_info()
4722 unsigned int source_pad) in atomisp_set_fmt_to_isp() argument
4822 if (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_PREVIEW || in atomisp_set_fmt_to_isp()
4823 source_pad == ATOMISP_SUBDEV_PAD_SOURCE_VIDEO) in atomisp_set_fmt_to_isp()
4831 } else if (source_pad != ATOMISP_SUBDEV_PAD_SOURCE_PREVIEW || in atomisp_set_fmt_to_isp()
4866 if (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_PREVIEW || in atomisp_set_fmt_to_isp()
4867 source_pad == ATOMISP_SUBDEV_PAD_SOURCE_VIDEO) { in atomisp_set_fmt_to_isp()
4890 } else if (source_pad == ATOMISP_SUBDEV_PAD_SOURCE_PREVIEW) { in atomisp_set_fmt_to_isp()
4978 atomisp_update_grid_info(asd, pipe_id, source_pad); in atomisp_set_fmt_to_isp()
[all …]
Datomisp_compat.h122 int source_pad);
294 u16 source_pad,
Datomisp_subdev.h379 unsigned int source_pad);
/linux-6.1.9/drivers/media/platform/xilinx/
Dxilinx-vipp.c191 struct media_pad *source_pad; in xvip_graph_build_dma() local
250 source_pad = &dma->pad; in xvip_graph_build_dma()
255 source_pad = &source->pads[link.remote_port]; in xvip_graph_build_dma()
264 source->name, source_pad->index, in xvip_graph_build_dma()
267 ret = media_create_pad_link(source, source_pad->index, in xvip_graph_build_dma()
273 source->name, source_pad->index, in xvip_graph_build_dma()
/linux-6.1.9/drivers/media/mc/
Dmc-entity.c1014 media_create_pad_link(struct media_entity *source, u16 source_pad, in media_create_pad_link() argument
1021 WARN_ON(source_pad >= source->num_pads) || in media_create_pad_link()
1024 if (WARN_ON(!(source->pads[source_pad].flags & MEDIA_PAD_FL_SOURCE))) in media_create_pad_link()
1033 link->source = &source->pads[source_pad]; in media_create_pad_link()
1050 backlink->source = &source->pads[source_pad]; in media_create_pad_link()
1073 const u16 source_pad, in media_create_pad_links() argument
1086 return media_create_pad_link(source, source_pad, in media_create_pad_links()
1099 ret = media_create_pad_link(source, source_pad, in media_create_pad_links()
1122 ret = media_create_pad_link(source, source_pad, in media_create_pad_links()
1125 ret = media_create_pad_link(entity, source_pad, in media_create_pad_links()
/linux-6.1.9/drivers/media/platform/
Dvideo-mux.c57 u16 source_pad = entity->num_pads - 1; in video_mux_link_setup() local
89 vmux->format_mbus[source_pad] = vmux->format_mbus[vmux->active]; in video_mux_link_setup()
182 u16 source_pad = sd->entity.num_pads - 1; in video_mux_set_format() local
190 source_pad, in video_mux_set_format()
/linux-6.1.9/drivers/media/platform/renesas/rcar-vin/
Drcar-core.c510 vin->parallel.source_pad = ret; in rvin_parallel_subdevice_attach()
523 code.pad = vin->parallel.source_pad; in rvin_parallel_subdevice_attach()
604 ret = media_create_pad_link(source, vin->parallel.source_pad, in rvin_parallel_notify_complete()
642 subdev->name, vin->parallel.source_pad, in rvin_parallel_notify_bound()
900 struct media_pad *source_pad = &source->pads[source_idx]; in rvin_csi2_create_link() local
903 if (media_entity_find_link(source_pad, sink_pad)) in rvin_csi2_create_link()
1004 struct media_pad *source_pad, *sink_pad; in rvin_isp_setup_links() local
1017 source_pad = &source->pads[source_idx]; in rvin_isp_setup_links()
1023 if (media_entity_find_link(source_pad, sink_pad)) in rvin_isp_setup_links()
Drcar-vin.h123 unsigned int source_pad; member
/linux-6.1.9/drivers/media/i2c/
Dst-mipid02.c827 int source_pad; in mipid02_async_bound() local
832 source_pad = media_entity_get_fwnode_pad(&s_subdev->entity, in mipid02_async_bound()
835 if (source_pad < 0) { in mipid02_async_bound()
838 return source_pad; in mipid02_async_bound()
841 ret = media_create_pad_link(&s_subdev->entity, source_pad, in mipid02_async_bound()
Dadv7604.c176 unsigned int source_pad; member
1485 if (timings->pad >= state->source_pad) in adv76xx_enum_dv_timings()
1499 if (cap->pad >= state->source_pad) in adv76xx_dv_timings_cap()
1921 if (format->pad != state->source_pad) in adv76xx_get_format()
1965 if (format->pad != state->source_pad) in adv76xx_set_format()
2824 pdata->default_input < state->source_pad) { in adv76xx_core_init()
3601 state->source_pad = state->info->num_dv_ports in adv76xx_probe()
3603 for (i = 0; i < state->source_pad; ++i) in adv76xx_probe()
3605 state->pads[state->source_pad].flags = MEDIA_PAD_FL_SOURCE; in adv76xx_probe()
3608 err = media_entity_pads_init(&sd->entity, state->source_pad + 1, in adv76xx_probe()
/linux-6.1.9/include/media/
Dmedia-entity.h765 u16 source_pad, struct media_entity *sink,
814 const u16 source_pad,
/linux-6.1.9/drivers/media/platform/ti/omap3isp/
Dispvideo.c965 struct media_pad *source_pad; in isp_video_check_external_subdevs() local
984 source_pad = media_pad_remote_pad_first(&ents[i]->pads[0]); in isp_video_check_external_subdevs()
985 if (source_pad == NULL) in isp_video_check_external_subdevs()
988 source = source_pad->entity; in isp_video_check_external_subdevs()
1003 fmt.pad = source_pad->index; in isp_video_check_external_subdevs()
/linux-6.1.9/drivers/media/i2c/ccs/
Dccs.h202 unsigned short source_pad; member
Dccs-core.c2058 if (fmt->pad == ssd->source_pad) in __ccs_get_format()
2059 r = &ssd->crop[ssd->source_pad]; in __ccs_get_format()
2224 if (fmt->pad == ssd->source_pad) { in ccs_set_format()
2523 if (sel->pad == ssd->source_pad) in __ccs_sel_supported()
2945 u16 source_pad, u16 sink_pad, u32 link_flags) in ccs_register_subdev() argument
2965 rval = media_create_pad_link(&ssd->sd.entity, source_pad, in ccs_register_subdev()
3043 ssd->source_pad = num_pads - 1; in ccs_create_subdev()
3051 ssd->crop[ssd->source_pad] = ssd->compose; in ccs_create_subdev()
3052 ssd->pads[ssd->source_pad].flags = MEDIA_PAD_FL_SOURCE; in ccs_create_subdev()
/linux-6.1.9/drivers/media/platform/verisilicon/
Dhantro.h156 struct media_pad source_pad; member

12