Home
last modified time | relevance | path

Searched refs:num_pads (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.1.9/drivers/media/platform/
Dvideo-mux.c57 u16 source_pad = entity->num_pads - 1; in video_mux_link_setup()
182 u16 source_pad = sd->entity.num_pads - 1; in video_mux_set_format()
323 for (i = 0; i < sd->entity.num_pads; i++) { in video_mux_init_cfg()
411 unsigned int num_pads = 0; in video_mux_probe() local
434 num_pads = max(num_pads, endpoint.port + 1); in video_mux_probe()
437 if (num_pads < 2) { in video_mux_probe()
438 dev_err(dev, "Not enough ports %d\n", num_pads); in video_mux_probe()
450 vmux->pads = devm_kcalloc(dev, num_pads, sizeof(*vmux->pads), in video_mux_probe()
455 vmux->format_mbus = devm_kcalloc(dev, num_pads, in video_mux_probe()
461 for (i = 0; i < num_pads; i++) { in video_mux_probe()
[all …]
/linux-6.1.9/drivers/media/usb/uvc/
Duvc_entity.c31 for (i = 0; i < entity->num_pads; ++i) { in uvc_mc_create_links()
49 remote_pad = remote->num_pads - 1; in uvc_mc_create_links()
117 entity->num_pads, entity->pads); in uvc_mc_init_entity()
126 entity->num_pads, entity->pads); in uvc_mc_init_entity()
Duvc_driver.c761 unsigned int num_pads, unsigned int extra_size) in uvc_alloc_entity() argument
769 if (num_pads) in uvc_alloc_entity()
770 num_inputs = type & UVC_TERM_OUTPUT ? num_pads : num_pads - 1; in uvc_alloc_entity()
773 size = sizeof(*entity) + extra_size + sizeof(*entity->pads) * num_pads in uvc_alloc_entity()
802 entity->num_pads = num_pads; in uvc_alloc_entity()
807 if (!UVC_ENTITY_IS_OTERM(entity) && num_pads) in uvc_alloc_entity()
808 entity->pads[num_pads-1].flags = MEDIA_PAD_FL_SOURCE; in uvc_alloc_entity()
811 entity->baSourceID = (u8 *)(&entity->pads[num_pads]); in uvc_alloc_entity()
1746 if (entity->num_pads != 2) in uvc_scan_fallback()
/linux-6.1.9/drivers/media/platform/renesas/vsp1/
Dvsp1_entity.c190 for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { in vsp1_entity_init_cfg()
613 const char *name, unsigned int num_pads, in vsp1_entity_init() argument
635 entity->source_pad = num_pads - 1; in vsp1_entity_init()
639 num_pads, sizeof(*entity->pads), in vsp1_entity_init()
644 for (i = 0; i < num_pads - 1; ++i) in vsp1_entity_init()
647 entity->sources = devm_kcalloc(vsp1->dev, max(num_pads - 1, 1U), in vsp1_entity_init()
653 entity->pads[num_pads - 1].flags = num_pads > 1 ? MEDIA_PAD_FL_SOURCE in vsp1_entity_init()
657 ret = media_entity_pads_init(&entity->subdev.entity, num_pads, in vsp1_entity_init()
Dvsp1_brx.c413 unsigned int num_pads; in vsp1_brx_create() local
426 num_pads = vsp1->info->num_bru_inputs + 1; in vsp1_brx_create()
429 num_pads = 3; in vsp1_brx_create()
433 ret = vsp1_entity_init(vsp1, &brx->entity, name, num_pads, &brx_ops, in vsp1_brx_create()
Dvsp1_entity.h129 const char *name, unsigned int num_pads,
/linux-6.1.9/drivers/staging/media/imx/
Dimx-media-dev-common.c112 for (i = 0; i < entity->num_pads; i++) { in imx_media_add_vdev_to_pad()
146 entity->num_pads, sizeof(*vdev_lists), in imx_media_alloc_pad_vdev_lists()
154 for (i = 0; i < entity->num_pads; i++) in imx_media_alloc_pad_vdev_lists()
232 for (i = 0; i < entity->num_pads; i++) { in imx_media_inherit_controls()
326 for (i = 0; i < entity->num_pads; i++) { in imx_media_notify()
/linux-6.1.9/drivers/gpu/host1x/
Dmipi.c97 unsigned int num_pads; member
338 for (i = 0; i < soc->num_pads; i++) { in tegra_mipi_start_calibration()
404 .num_pads = ARRAY_SIZE(tegra114_mipi_pads),
431 .num_pads = ARRAY_SIZE(tegra124_mipi_pads),
448 .num_pads = ARRAY_SIZE(tegra124_mipi_pads),
478 .num_pads = ARRAY_SIZE(tegra210_mipi_pads),
/linux-6.1.9/drivers/staging/media/tegra-video/
Dcsi.c410 unsigned int num_pads) in tegra_csi_channel_alloc() argument
437 chan->numpads = num_pads; in tegra_csi_channel_alloc()
438 if (num_pads & 0x2) { in tegra_csi_channel_alloc()
484 unsigned int lanes, portno, num_pads; in tegra_csi_channels_alloc() local
531 num_pads = of_graph_get_endpoint_count(channel); in tegra_csi_channels_alloc()
532 if (num_pads == TEGRA_CSI_PADS_NUM) { in tegra_csi_channels_alloc()
534 lanes, num_pads); in tegra_csi_channels_alloc()
/linux-6.1.9/drivers/media/mc/
Dmc-entity.c194 int media_entity_pads_init(struct media_entity *entity, u16 num_pads, in media_entity_pads_init() argument
201 if (num_pads >= MEDIA_ENTITY_MAX_PADS) in media_entity_pads_init()
204 entity->num_pads = num_pads; in media_entity_pads_init()
243 if (pad0 >= entity->num_pads || pad1 >= entity->num_pads) in media_entity_has_pad_interdep()
996 for (i = 0; i < entity->num_pads; i++) { in media_get_pad_index()
1021 WARN_ON(source_pad >= source->num_pads) || in media_create_pad_link()
1022 WARN_ON(sink_pad >= sink->num_pads)) in media_create_pad_link()
1359 for (i = 0; i < entity->num_pads; i++) { in media_entity_get_fwnode_pad()
1375 if (ret >= entity->num_pads) in media_entity_get_fwnode_pad()
Dmc-device.c116 entd->pads = ent->num_pads; in media_device_enum_entities()
163 for (p = 0; p < entity->num_pads; p++) { in media_device_enum_links()
215 if (linkd->source.index >= source->num_pads || in media_device_setup_link()
216 linkd->sink.index >= sink->num_pads) in media_device_setup_link()
318 if (i > topo->num_pads) { in media_device_get_topology()
335 topo->num_pads = i; in media_device_get_topology()
/linux-6.1.9/drivers/media/test-drivers/vimc/
Dvimc-common.c183 for (i = 0; i < ent->num_pads; i++) in vimc_is_source()
359 u16 num_pads, in vimc_ent_sd_register() argument
382 ret = media_entity_pads_init(&sd->entity, num_pads, pads); in vimc_ent_sd_register()
Dvimc-common.h228 u16 num_pads,
Dvimc-streamer.c30 for (i = 0; i < ent->num_pads; i++) { in vimc_get_source_entity()
/linux-6.1.9/include/media/
Dmedia-entity.h336 u16 num_pads; member
365 iter < &(entity)->pads[(entity)->num_pads]; \
697 int media_entity_pads_init(struct media_entity *entity, u16 num_pads,
Dv4l2-subdev.h1055 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_pad_format()
1075 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_pad_crop()
1095 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_pad_compose()
/linux-6.1.9/drivers/media/v4l2-core/
Dv4l2-dev.c1105 if (entity->num_pads != 1) in video_device_pipeline_start()
1117 if (entity->num_pads != 1) in __video_device_pipeline_start()
1128 if (WARN_ON(entity->num_pads != 1)) in video_device_pipeline_stop()
1139 if (WARN_ON(entity->num_pads != 1)) in __video_device_pipeline_stop()
1150 if (entity->num_pads != 1) in video_device_pipeline_alloc_start()
1161 if (WARN_ON(entity->num_pads != 1)) in video_device_pipeline()
Dv4l2-subdev.c139 if (sd->entity.num_pads) { in check_pad()
140 if (pad >= sd->entity.num_pads) in check_pad()
977 if (sd->entity.num_pads) { in __v4l2_subdev_state_alloc()
978 state->pads = kvcalloc(sd->entity.num_pads, in __v4l2_subdev_state_alloc()
1050 if (format->pad >= sd->entity.num_pads) in v4l2_subdev_get_fmt()
Dv4l2-mem2mem.c1046 int num_pads; in v4l2_m2m_register_entity() local
1054 num_pads = 1; in v4l2_m2m_register_entity()
1060 num_pads = 1; in v4l2_m2m_register_entity()
1067 num_pads = 2; in v4l2_m2m_register_entity()
1086 ret = media_entity_pads_init(entity, num_pads, pads); in v4l2_m2m_register_entity()
/linux-6.1.9/drivers/media/platform/xilinx/
Dxilinx-vipp.c102 if (link.local_port >= local->num_pads) { in xvip_graph_build_one()
139 if (link.remote_port >= remote->num_pads) { in xvip_graph_build_one()
239 if (link.remote_port >= ent->entity->num_pads) { in xvip_graph_build_dma()
/linux-6.1.9/drivers/pinctrl/
Dpinctrl-lantiq.h76 unsigned int num_pads; member
/linux-6.1.9/Documentation/userspace-api/media/mediactl/
Dmedia-ioc-g-topology.rst95 - ``num_pads``
106 won't store the pads. It will just update ``num_pads``
289 num_interfaces, num_links or num_pads are non-zero and are
/linux-6.1.9/include/uapi/linux/
Dmedia.h360 __u32 num_pads; member
/linux-6.1.9/drivers/media/platform/ti/omap3isp/
Disp.h351 if (pad >= subdev->entity.num_pads) in isp_pad_buffer_type()
/linux-6.1.9/drivers/media/platform/renesas/rcar-vin/
Drcar-csi2.c1499 unsigned int i, num_pads; in rcsi2_probe() local
1544 num_pads = priv->info->use_isp ? 2 : NR_OF_RCAR_CSI2_PAD; in rcsi2_probe()
1547 for (i = RCAR_CSI2_SOURCE_VC0; i < num_pads; i++) in rcsi2_probe()
1550 ret = media_entity_pads_init(&priv->subdev.entity, num_pads, in rcsi2_probe()

12