/linux/drivers/media/platform/ |
A D | video-mux.c | 57 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() 457 vmux->format_mbus = devm_kcalloc(dev, num_pads, in video_mux_probe() 463 for (i = 0; i < num_pads; i++) { in video_mux_probe() 470 ret = media_entity_pads_init(&vmux->subdev.entity, num_pads, in video_mux_probe() [all …]
|
/linux/drivers/media/mc/ |
A D | mc-entity.c | 203 if (num_pads >= MEDIA_ENTITY_MAX_PADS) in media_entity_pads_init() 206 entity->num_pads = num_pads; in media_entity_pads_init() 212 for (i = 0; i < num_pads; i++) { in media_entity_pads_init() 378 for (i = 0; i < entity->num_pads; i++) { in media_entity_get_fwnode_pad() 394 if (ret >= entity->num_pads) in media_entity_get_fwnode_pad() 448 bitmap_zero(active, entity->num_pads); in __media_pipeline_start() 449 bitmap_fill(has_no_links, entity->num_pads); in __media_pipeline_start() 489 if (!bitmap_full(active, entity->num_pads)) { in __media_pipeline_start() 495 active, entity->num_pads)); in __media_pipeline_start() 642 for (i = 0; i < entity->num_pads; i++) { in media_get_pad_index() [all …]
|
A D | mc-device.c | 116 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() 600 for (i = 0; i < entity->num_pads; i++) in __media_device_unregister_entity() 649 for (i = 0; i < entity->num_pads; i++) in media_device_register_entity()
|
/linux/drivers/media/usb/uvc/ |
A D | uvc_entity.c | 31 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()
|
A D | uvc_driver.c | 1033 unsigned int num_pads, unsigned int extra_size) in uvc_alloc_entity() argument 1041 if (num_pads) in uvc_alloc_entity() 1042 num_inputs = type & UVC_TERM_OUTPUT ? num_pads : num_pads - 1; in uvc_alloc_entity() 1045 size = sizeof(*entity) + extra_size + sizeof(*entity->pads) * num_pads in uvc_alloc_entity() 1074 entity->num_pads = num_pads; in uvc_alloc_entity() 1079 if (!UVC_ENTITY_IS_OTERM(entity) && num_pads) in uvc_alloc_entity() 1080 entity->pads[num_pads-1].flags = MEDIA_PAD_FL_SOURCE; in uvc_alloc_entity() 1083 entity->baSourceID = (u8 *)(&entity->pads[num_pads]); in uvc_alloc_entity() 2014 if (entity->num_pads != 2) in uvc_scan_fallback()
|
/linux/drivers/media/platform/vsp1/ |
A D | vsp1_entity.c | 190 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 634 entity->source_pad = num_pads - 1; in vsp1_entity_init() 638 num_pads, sizeof(*entity->pads), in vsp1_entity_init() 643 for (i = 0; i < num_pads - 1; ++i) in vsp1_entity_init() 646 entity->sources = devm_kcalloc(vsp1->dev, max(num_pads - 1, 1U), in vsp1_entity_init() 652 entity->pads[num_pads - 1].flags = num_pads > 1 ? MEDIA_PAD_FL_SOURCE in vsp1_entity_init() 656 ret = media_entity_pads_init(&entity->subdev.entity, num_pads, in vsp1_entity_init()
|
A D | vsp1_brx.c | 413 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()
|
A D | vsp1_entity.h | 129 const char *name, unsigned int num_pads,
|
/linux/drivers/staging/media/imx/ |
A D | imx-media-dev-common.c | 112 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/drivers/gpu/host1x/ |
A D | mipi.c | 97 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/drivers/staging/media/tegra-video/ |
A D | csi.c | 410 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() 483 unsigned int lanes, portno, num_pads; in tegra_csi_channels_alloc() local 530 num_pads = of_graph_get_endpoint_count(channel); in tegra_csi_channels_alloc() 531 if (num_pads == TEGRA_CSI_PADS_NUM) { in tegra_csi_channels_alloc() 533 lanes, num_pads); in tegra_csi_channels_alloc()
|
/linux/drivers/media/test-drivers/vimc/ |
A D | vimc-common.c | 183 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()
|
A D | vimc-common.h | 220 u16 num_pads,
|
A D | vimc-streamer.c | 30 for (i = 0; i < ent->num_pads; i++) { in vimc_get_source_entity()
|
/linux/include/media/ |
A D | v4l2-subdev.h | 998 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_try_format() 1016 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_try_crop() 1034 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_try_compose()
|
A D | media-entity.h | 298 u16 num_pads; member 650 int media_entity_pads_init(struct media_entity *entity, u16 num_pads,
|
/linux/drivers/media/platform/xilinx/ |
A D | xilinx-vipp.c | 102 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/Documentation/userspace-api/media/mediactl/ |
A D | media-ioc-g-topology.rst | 95 - ``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/drivers/pinctrl/ |
A D | pinctrl-lantiq.h | 76 unsigned int num_pads; member
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-subdev.c | 139 if (sd->entity.num_pads) { in check_pad() 140 if (pad >= sd->entity.num_pads) in check_pad() 882 if (sd->entity.num_pads) { in v4l2_subdev_alloc_state() 883 state->pads = kvmalloc_array(sd->entity.num_pads, in v4l2_subdev_alloc_state()
|
A D | v4l2-mem2mem.c | 995 int num_pads; in v4l2_m2m_register_entity() local 1003 num_pads = 1; in v4l2_m2m_register_entity() 1009 num_pads = 1; in v4l2_m2m_register_entity() 1016 num_pads = 2; in v4l2_m2m_register_entity() 1035 ret = media_entity_pads_init(entity, num_pads, pads); in v4l2_m2m_register_entity()
|
/linux/drivers/media/platform/rcar-vin/ |
A D | rcar-csi2.c | 1406 unsigned int i, num_pads; in rcsi2_probe() local 1451 num_pads = priv->info->use_isp ? 2 : NR_OF_RCAR_CSI2_PAD; in rcsi2_probe() 1454 for (i = RCAR_CSI2_SOURCE_VC0; i < num_pads; i++) in rcsi2_probe() 1457 ret = media_entity_pads_init(&priv->subdev.entity, num_pads, in rcsi2_probe()
|
/linux/drivers/media/platform/omap3isp/ |
A D | isp.h | 351 if (pad >= subdev->entity.num_pads) in isp_pad_buffer_type()
|
/linux/include/uapi/linux/ |
A D | media.h | 362 __u32 num_pads; member
|
/linux/drivers/media/platform/exynos4-is/ |
A D | media-dev.c | 80 for (i = 0; i < me->num_pads; i++) { in fimc_pipeline_prepare() 116 if (me->num_pads == 1) in fimc_pipeline_prepare() 938 if (sink->num_pads == 0) in __fimc_md_create_fimc_is_links() 989 pad = sensor->entity.num_pads - 1; in fimc_md_create_links()
|