Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/media/platform/renesas/vsp1/
H A 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()
H A Dvsp1_entity.c381 if (fmt->pad == entity->source_pad) { in vsp1_subdev_set_pad_format()
407 format = vsp1_entity_get_pad_format(entity, config, entity->source_pad); in vsp1_subdev_set_pad_format()
440 static int vsp1_entity_link_setup_source(const struct media_pad *source_pad, in vsp1_entity_link_setup_source() argument
446 source = media_entity_to_vsp1_entity(source_pad->entity); in vsp1_entity_link_setup_source()
474 static int vsp1_entity_link_setup_sink(const struct media_pad *source_pad, in vsp1_entity_link_setup_sink() argument
482 source = media_entity_to_vsp1_entity(source_pad->entity); in vsp1_entity_link_setup_sink()
634 entity->source_pad = num_pads - 1; in vsp1_entity_init()
H A Dvsp1_entity.h111 unsigned int source_pad; member
H A 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()
/openbmc/linux/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-crossbar.c112 route->source_pad != xbar->num_sinks) { in __mxc_isi_crossbar_set_routing()
116 route->source_pad - xbar->num_sinks); in __mxc_isi_crossbar_set_routing()
128 u32 source_pad, u64 source_streams, in mxc_isi_crossbar_xlate_streams() argument
147 if (route->source_pad != source_pad || in mxc_isi_crossbar_xlate_streams()
158 source_pad - xbar->num_sinks); in mxc_isi_crossbar_xlate_streams()
199 route->source_pad = i + xbar->num_sinks; in mxc_isi_crossbar_init_cfg()
298 source_fmt = v4l2_subdev_state_get_stream_format(state, route->source_pad, in mxc_isi_crossbar_set_fmt()
/openbmc/linux/drivers/media/platform/rockchip/rkisp1/
H A 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()
400 struct media_pad *source_pad; in rkisp1_csi_s_stream() local
412 source_pad = media_entity_remote_source_pad_unique(&sd->entity); in rkisp1_csi_s_stream()
413 if (IS_ERR(source_pad)) { in rkisp1_csi_s_stream()
415 PTR_ERR(source_pad)); in rkisp1_csi_s_stream()
419 source = media_entity_to_v4l2_subdev(source_pad->entity); in rkisp1_csi_s_stream()
H A Drkisp1-dev.c132 int source_pad; in rkisp1_subdev_notifier_bound() local
137 source_pad = media_entity_get_fwnode_pad(&sd->entity, s_asd->source_ep, in rkisp1_subdev_notifier_bound()
139 if (source_pad < 0) { in rkisp1_subdev_notifier_bound()
142 return source_pad; in rkisp1_subdev_notifier_bound()
146 return rkisp1_csi_link_sensor(rkisp1, sd, s_asd, source_pad); in rkisp1_subdev_notifier_bound()
148 ret = media_create_pad_link(&sd->entity, source_pad, in rkisp1_subdev_notifier_bound()
H A Drkisp1-csi.h26 unsigned int source_pad);
H A Drkisp1-isp.c854 struct media_pad *source_pad; in rkisp1_isp_s_stream() local
867 source_pad = media_pad_remote_pad_unique(sink_pad); in rkisp1_isp_s_stream()
868 if (IS_ERR(source_pad)) { in rkisp1_isp_s_stream()
870 PTR_ERR(source_pad)); in rkisp1_isp_s_stream()
874 rkisp1->source = media_entity_to_v4l2_subdev(source_pad->entity); in rkisp1_isp_s_stream()
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-subdev.c923 if (route->source_pad >= sd->entity.num_pads) in subdev_do_ioctl()
926 if (!(pads[route->source_pad].flags & in subdev_do_ioctl()
1207 route_pad = route->source_pad; in __v4l2_link_validate_get_streams()
1537 new_configs.configs[idx].pad = route->source_pad; in v4l2_subdev_init_stream_configs()
1723 if (route->source_pad == pad && in v4l2_subdev_routing_find_opposite_end()
1734 *other_pad = route->source_pad; in v4l2_subdev_routing_find_opposite_end()
1819 if (route->source_pad >= sd->entity.num_pads || in v4l2_subdev_routing_validate()
1822 i, route->source_pad); in v4l2_subdev_routing_validate()
1877 i, "source", route->source_pad); in v4l2_subdev_routing_validate()
1909 route->source_pad == r->source_pad && in v4l2_subdev_routing_validate()
[all …]
/openbmc/linux/drivers/media/platform/xilinx/
H A Dxilinx-vipp.c198 struct media_pad *source_pad; in xvip_graph_build_dma() local
257 source_pad = &dma->pad; in xvip_graph_build_dma()
262 source_pad = &source->pads[link.remote_port]; in xvip_graph_build_dma()
271 source->name, source_pad->index, in xvip_graph_build_dma()
274 ret = media_create_pad_link(source, source_pad->index, in xvip_graph_build_dma()
280 source->name, source_pad->index, in xvip_graph_build_dma()
/openbmc/linux/drivers/media/platform/cadence/
H A Dcdns-csi2rx.c95 int source_pad; member
323 csi2rx->source_pad = media_entity_get_fwnode_pad(&s_subdev->entity, in csi2rx_async_bound()
326 if (csi2rx->source_pad < 0) { in csi2rx_async_bound()
329 return csi2rx->source_pad; in csi2rx_async_bound()
335 csi2rx->source_pad); in csi2rx_async_bound()
338 csi2rx->source_pad, in csi2rx_async_bound()
/openbmc/linux/drivers/media/platform/
H A Dvideo-mux.c56 u16 source_pad = entity->num_pads - 1; in video_mux_link_setup() local
93 source_pad); in video_mux_link_setup()
155 u16 source_pad = sd->entity.num_pads - 1; in video_mux_set_format() local
161 source_mbusformat = v4l2_subdev_get_pad_format(sd, sd_state, source_pad); in video_mux_set_format()
/openbmc/linux/drivers/media/platform/renesas/rcar-vin/
H A Drcar-core.c508 vin->parallel.source_pad = ret; in rvin_parallel_subdevice_attach()
521 code.pad = vin->parallel.source_pad; in rvin_parallel_subdevice_attach()
602 ret = media_create_pad_link(source, vin->parallel.source_pad, in rvin_parallel_notify_complete()
640 subdev->name, vin->parallel.source_pad, in rvin_parallel_notify_bound()
898 struct media_pad *source_pad = &source->pads[source_idx]; in rvin_csi2_create_link() local
901 if (media_entity_find_link(source_pad, sink_pad)) in rvin_csi2_create_link()
1002 struct media_pad *source_pad, *sink_pad; in rvin_isp_setup_links() local
1015 source_pad = &source->pads[source_idx]; in rvin_isp_setup_links()
1021 if (media_entity_find_link(source_pad, sink_pad)) in rvin_isp_setup_links()
H A Drcar-vin.h124 unsigned int source_pad; member
H A Drcar-v4l2.c219 .pad = vin->parallel.source_pad, in rvin_reset_format()
259 .pad = vin->parallel.source_pad, in rvin_try_format()
447 index = vin->parallel.source_pad; in rvin_remote_rectangle()
/openbmc/linux/drivers/media/mc/
H A Dmc-entity.c1119 media_create_pad_link(struct media_entity *source, u16 source_pad, in media_create_pad_link() argument
1131 WARN_ON(source_pad >= source->num_pads) || in media_create_pad_link()
1134 if (WARN_ON(!(source->pads[source_pad].flags & MEDIA_PAD_FL_SOURCE))) in media_create_pad_link()
1143 link->source = &source->pads[source_pad]; in media_create_pad_link()
1160 backlink->source = &source->pads[source_pad]; in media_create_pad_link()
1186 const u16 source_pad, in media_create_pad_links() argument
1199 return media_create_pad_link(source, source_pad, in media_create_pad_links()
1212 ret = media_create_pad_link(source, source_pad, in media_create_pad_links()
1235 ret = media_create_pad_link(source, source_pad, in media_create_pad_links()
1238 ret = media_create_pad_link(entity, source_pad, in media_create_pad_links()
/openbmc/linux/drivers/media/i2c/
H A Dds90ub960.c2576 if (!priv->stream_enable_mask[source_pad]) { in ub960_enable_streams()
2578 ub960_pad_to_port(priv, source_pad)); in ub960_enable_streams()
2587 if (route->source_pad != source_pad) in ub960_enable_streams()
2659 if (!priv->stream_enable_mask[source_pad]) in ub960_enable_streams()
2661 ub960_pad_to_port(priv, source_pad)); in ub960_enable_streams()
2670 u32 source_pad, u64 source_streams_mask) in ub960_disable_streams() argument
2681 if (route->source_pad != source_pad) in ub960_disable_streams()
2717 if (!priv->stream_enable_mask[source_pad]) in ub960_disable_streams()
2719 ub960_pad_to_port(priv, source_pad)); in ub960_disable_streams()
2803 if (route->source_pad != pad) in ub960_get_frame_desc()
[all …]
H A Dst-mipid02.c852 int source_pad; in mipid02_async_bound() local
857 source_pad = media_entity_get_fwnode_pad(&s_subdev->entity, in mipid02_async_bound()
860 if (source_pad < 0) { in mipid02_async_bound()
863 return source_pad; in mipid02_async_bound()
866 ret = media_create_pad_link(&s_subdev->entity, source_pad, in mipid02_async_bound()
H A 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()
1924 if (format->pad != state->source_pad) in adv76xx_get_format()
1968 if (format->pad != state->source_pad) in adv76xx_set_format()
2835 pdata->default_input < state->source_pad) { in adv76xx_core_init()
3612 state->source_pad = state->info->num_dv_ports in adv76xx_probe()
3614 for (i = 0; i < state->source_pad; ++i) in adv76xx_probe()
3616 state->pads[state->source_pad].flags = MEDIA_PAD_FL_SOURCE; in adv76xx_probe()
3619 err = media_entity_pads_init(&sd->entity, state->source_pad + 1, in adv76xx_probe()
/openbmc/linux/include/uapi/linux/
H A Dv4l2-subdev.h215 __u32 source_pad; member
/openbmc/linux/include/media/
H A Dmedia-entity.h789 u16 source_pad, struct media_entity *sink,
838 const u16 source_pad,
/openbmc/u-boot/drivers/net/
H A Daltera_tse.h62 u32 source_pad; member
/openbmc/linux/drivers/media/platform/ti/omap3isp/
H A Dispvideo.c960 struct media_pad *source_pad; in isp_video_check_external_subdevs() local
981 source_pad = media_pad_remote_pad_first(&ents[i]->pads[0]); in isp_video_check_external_subdevs()
982 if (source_pad == NULL) in isp_video_check_external_subdevs()
985 source = source_pad->entity; in isp_video_check_external_subdevs()
1000 fmt.pad = source_pad->index; in isp_video_check_external_subdevs()
/openbmc/linux/drivers/media/i2c/ccs/
H A Dccs.h189 unsigned short source_pad; member

12