Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/media/platform/
Dvideo-mux.c49 u16 source_pad = entity->num_pads - 1; in video_mux_link_setup()
172 u16 source_pad = sd->entity.num_pads - 1; in video_mux_set_format()
312 for (i = 0; i < sd->entity.num_pads; i++) { in video_mux_init_cfg()
371 unsigned int num_pads = 0; in video_mux_probe() local
394 num_pads = max(num_pads, endpoint.port + 1); in video_mux_probe()
397 if (num_pads < 2) { in video_mux_probe()
398 dev_err(dev, "Not enough ports %d\n", num_pads); in video_mux_probe()
412 vmux->pads = devm_kcalloc(dev, num_pads, sizeof(*vmux->pads), in video_mux_probe()
417 vmux->format_mbus = devm_kcalloc(dev, num_pads, in video_mux_probe()
423 for (i = 0; i < num_pads; i++) { in video_mux_probe()
[all …]
/Linux-v5.4/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()
81 entity->num_pads, entity->pads); in uvc_mc_init_entity()
90 entity->num_pads, entity->pads); in uvc_mc_init_entity()
Duvc_driver.c946 unsigned int num_pads, unsigned int extra_size) in uvc_alloc_entity() argument
954 num_inputs = (type & UVC_TERM_OUTPUT) ? num_pads : num_pads - 1; in uvc_alloc_entity()
955 size = sizeof(*entity) + extra_size + sizeof(*entity->pads) * num_pads in uvc_alloc_entity()
965 entity->num_pads = num_pads; in uvc_alloc_entity()
971 entity->pads[num_pads-1].flags = MEDIA_PAD_FL_SOURCE; in uvc_alloc_entity()
974 entity->baSourceID = (u8 *)(&entity->pads[num_pads]); in uvc_alloc_entity()
1768 if (entity->num_pads != 2) in uvc_scan_fallback()
/Linux-v5.4/drivers/media/platform/vimc/
Dvimc-common.c201 struct media_pad *vimc_pads_init(u16 num_pads, const unsigned long *pads_flag) in vimc_pads_init() argument
207 pads = kcalloc(num_pads, sizeof(*pads), GFP_KERNEL); in vimc_pads_init()
212 for (i = 0; i < num_pads; i++) { in vimc_pads_init()
228 for (i = 0; i < ent->num_pads; i++) { in vimc_pipeline_s_stream()
371 u16 num_pads, in vimc_ent_sd_register() argument
379 ved->pads = vimc_pads_init(num_pads, pads_flag); in vimc_ent_sd_register()
401 ret = media_entity_pads_init(&sd->entity, num_pads, ved->pads); in vimc_ent_sd_register()
Dvimc-common.h122 struct media_pad *vimc_pads_init(u16 num_pads,
191 u16 num_pads,
Dvimc-streamer.c31 for (i = 0; i < ent->num_pads; i++) { in vimc_get_source_entity()
/Linux-v5.4/drivers/media/mc/
Dmc-entity.c197 int media_entity_pads_init(struct media_entity *entity, u16 num_pads, in media_entity_pads_init() argument
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()
377 for (i = 0; i < entity->num_pads; i++) { in media_entity_get_fwnode_pad()
393 if (ret >= entity->num_pads) in media_entity_get_fwnode_pad()
447 bitmap_zero(active, entity->num_pads); in __media_pipeline_start()
448 bitmap_fill(has_no_links, entity->num_pads); in __media_pipeline_start()
486 bitmap_or(active, active, has_no_links, entity->num_pads); in __media_pipeline_start()
488 if (!bitmap_full(active, entity->num_pads)) { in __media_pipeline_start()
[all …]
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()
616 for (i = 0; i < entity->num_pads; i++) in media_device_register_entity()
668 for (i = 0; i < entity->num_pads; i++) in __media_device_unregister_entity()
/Linux-v5.4/drivers/media/platform/vsp1/
Dvsp1_entity.c188 for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { in vsp1_entity_init_cfg()
610 const char *name, unsigned int num_pads, in vsp1_entity_init() argument
631 entity->source_pad = num_pads - 1; in vsp1_entity_init()
635 num_pads, sizeof(*entity->pads), in vsp1_entity_init()
640 for (i = 0; i < num_pads - 1; ++i) in vsp1_entity_init()
643 entity->sources = devm_kcalloc(vsp1->dev, max(num_pads - 1, 1U), in vsp1_entity_init()
649 entity->pads[num_pads - 1].flags = num_pads > 1 ? MEDIA_PAD_FL_SOURCE in vsp1_entity_init()
653 ret = media_entity_pads_init(&entity->subdev.entity, num_pads, in vsp1_entity_init()
Dvsp1_brx.c411 unsigned int num_pads; in vsp1_brx_create() local
424 num_pads = vsp1->info->num_bru_inputs + 1; in vsp1_brx_create()
427 num_pads = 3; in vsp1_brx_create()
431 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-v5.4/drivers/staging/media/imx/
Dimx-media-dev-common.c120 for (i = 0; i < entity->num_pads; i++) { in imx_media_add_vdev_to_pad()
154 entity->num_pads, sizeof(*vdev_lists), in imx_media_alloc_pad_vdev_lists()
162 for (i = 0; i < entity->num_pads; i++) in imx_media_alloc_pad_vdev_lists()
242 for (i = 0; i < entity->num_pads; i++) { in imx_media_inherit_controls()
332 for (i = 0; i < entity->num_pads; i++) { in imx_media_notify()
Dimx-media-of.c92 if (link->local_port >= sd->entity.num_pads) in create_of_link()
Dimx-media-internal-sd.c168 for (i = 0; i < sd->entity.num_pads; i++) { in create_ipu_internal_links()
/Linux-v5.4/drivers/gpu/host1x/
Dmipi.c97 unsigned int num_pads; member
337 for (i = 0; i < soc->num_pads; i++) { in tegra_mipi_calibrate()
401 .num_pads = ARRAY_SIZE(tegra114_mipi_pads),
428 .num_pads = ARRAY_SIZE(tegra124_mipi_pads),
445 .num_pads = ARRAY_SIZE(tegra124_mipi_pads),
475 .num_pads = ARRAY_SIZE(tegra210_mipi_pads),
/Linux-v5.4/drivers/media/v4l2-core/
Dv4l2-subdev.c28 if (sd->entity.num_pads) { in subdev_fh_init()
127 if (sd->entity.num_pads) { in check_pad()
128 if (pad >= sd->entity.num_pads) in check_pad()
752 if (!sd->entity.num_pads) in v4l2_subdev_alloc_pad_config()
755 cfg = kvmalloc_array(sd->entity.num_pads, sizeof(*cfg), in v4l2_subdev_alloc_pad_config()
Dv4l2-mem2mem.c731 int num_pads; in v4l2_m2m_register_entity() local
739 num_pads = 1; in v4l2_m2m_register_entity()
745 num_pads = 1; in v4l2_m2m_register_entity()
752 num_pads = 2; in v4l2_m2m_register_entity()
771 ret = media_entity_pads_init(entity, num_pads, pads); in v4l2_m2m_register_entity()
/Linux-v5.4/include/media/
Dv4l2-subdev.h938 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_try_format()
956 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_try_crop()
974 if (WARN_ON(pad >= sd->entity.num_pads)) in v4l2_subdev_get_try_compose()
Dmedia-entity.h296 u16 num_pads; member
648 int media_entity_pads_init(struct media_entity *entity, u16 num_pads,
/Linux-v5.4/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-v5.4/drivers/pinctrl/
Dpinctrl-lantiq.h76 unsigned int num_pads; member
/Linux-v5.4/Documentation/media/uapi/mediactl/
Dmedia-ioc-g-topology.rst103 - ``num_pads``
114 won't store the pads. It will just update ``num_pads``
302 num_interfaces, num_links or num_pads are non-zero and are
/Linux-v5.4/include/uapi/linux/
Dmedia.h361 __u32 num_pads; member
/Linux-v5.4/drivers/media/platform/omap3isp/
Disp.h351 if (pad >= subdev->entity.num_pads) in isp_pad_buffer_type()
/Linux-v5.4/drivers/media/platform/exynos4-is/
Dmedia-dev.c79 for (i = 0; i < me->num_pads; i++) { in fimc_pipeline_prepare()
115 if (me->num_pads == 1) in fimc_pipeline_prepare()
911 if (sink->num_pads == 0) in __fimc_md_create_fimc_is_links()
962 pad = sensor->entity.num_pads - 1; in fimc_md_create_links()

12