/linux/drivers/media/platform/st/stm32/stm32-dcmipp/ |
H A D | dcmipp-common.c | 17 struct media_pad *dcmipp_pads_init(u16 num_pads, const unsigned long *pads_flags) in dcmipp_pads_init() argument 23 pads = kcalloc(num_pads, sizeof(*pads), GFP_KERNEL); in dcmipp_pads_init() 28 for (i = 0; i < num_pads; i++) { in dcmipp_pads_init() 45 u16 num_pads, in dcmipp_ent_sd_register() argument 55 ved->pads = dcmipp_pads_init(num_pads, pads_flag); in dcmipp_ent_sd_register() 77 ret = media_entity_pads_init(&sd->entity, num_pads, ved->pads); in dcmipp_ent_sd_register()
|
H A D | dcmipp-common.h | 105 struct media_pad *dcmipp_pads_init(u16 num_pads, 144 u16 num_pads,
|
/linux/drivers/media/usb/uvc/ |
H A D | uvc_entity.c | 31 for (i = 0; i < entity->num_pads; ++i) { in uvc_mc_create_links() 40 if (remote == NULL || remote->num_pads == 0) 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()
|
/linux/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_entity.c | 364 for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { in vsp1_entity_init_state() 563 const char *name, unsigned int num_pads, in vsp1_entity_init() argument 585 entity->source_pad = num_pads - 1; in vsp1_entity_init() 589 num_pads, sizeof(*entity->pads), in vsp1_entity_init() 594 for (i = 0; i < num_pads - 1; ++i) in vsp1_entity_init() 597 entity->sources = devm_kcalloc(vsp1->dev, max(num_pads - 1, 1U), in vsp1_entity_init() 603 entity->pads[num_pads - 1].flags = num_pads > 1 ? MEDIA_PAD_FL_SOURCE in vsp1_entity_init() 607 ret = media_entity_pads_init(&entity->subdev.entity, num_pads, in vsp1_entity_init()
|
H A D | vsp1_brx.c | 401 unsigned int num_pads; in vsp1_brx_create() local 414 num_pads = vsp1->info->num_bru_inputs + 1; in vsp1_brx_create() 417 num_pads = 3; in vsp1_brx_create() 421 ret = vsp1_entity_init(vsp1, &brx->entity, name, num_pads, &brx_ops, in vsp1_brx_create()
|
H A D | vsp1_entity.h | 139 const char *name, unsigned int num_pads,
|
/linux/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-isys-subdev.c | 154 sd->entity.num_pads > 1) in ipu6_isys_subdev_set_fmt() 342 unsigned int num_pads = num_sink_pads + num_source_pads; in ipu6_isys_subdev_init() local 356 asd->pad = devm_kcalloc(&asd->isys->adev->auxdev.dev, num_pads, in ipu6_isys_subdev_init() 365 for (i = num_sink_pads; i < num_pads; i++) in ipu6_isys_subdev_init() 368 ret = media_entity_pads_init(&asd->sd.entity, num_pads, asd->pad); in ipu6_isys_subdev_init()
|
/linux/drivers/gpu/host1x/ |
H 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/imx/ |
H A D | imx-media-dev-common.c | 97 for (i = 0; i < entity->num_pads; i++) { in imx_media_add_vdev_to_pad() 131 entity->num_pads, sizeof(*vdev_lists), in imx_media_alloc_pad_vdev_lists() 139 for (i = 0; i < entity->num_pads; i++) in imx_media_alloc_pad_vdev_lists() 217 for (i = 0; i < entity->num_pads; i++) { in imx_media_inherit_controls() 311 for (i = 0; i < entity->num_pads; i++) { in imx_media_notify()
|
H A D | imx-media-utils.c | 438 for (pad = 0; pad < sd->entity.num_pads; pad++) { in imx_media_init_state() 664 for (i = 0; i < me->num_pads; i++) { in imx_media_pipeline_pad()
|
H A D | imx-media-internal-sd.c | 168 for (i = 0; i < sd->entity.num_pads; i++) { in create_ipu_internal_links()
|
/linux/drivers/media/platform/nxp/imx8-isi/ |
H A D | imx8-isi-crossbar.c | 436 unsigned int num_pads; in mxc_isi_crossbar_init() local 457 num_pads = xbar->num_sinks + xbar->num_sources; in mxc_isi_crossbar_init() 459 xbar->pads = kcalloc(num_pads, sizeof(*xbar->pads), GFP_KERNEL); in mxc_isi_crossbar_init() 476 ret = media_entity_pads_init(&sd->entity, num_pads, xbar->pads); in mxc_isi_crossbar_init()
|
/linux/drivers/media/test-drivers/vimc/ |
H A D | vimc-common.c | 185 for (i = 0; i < ent->num_pads; i++) in vimc_is_source() 361 u16 num_pads, in vimc_ent_sd_register() argument 386 ret = media_entity_pads_init(&sd->entity, num_pads, pads); in vimc_ent_sd_register()
|
H A D | vimc-common.h | 229 u16 num_pads,
|
H A D | vimc-streamer.c | 30 for (i = 0; i < ent->num_pads; i++) { in vimc_get_source_entity()
|
H A D | vimc-scaler.c | 87 for (i = 0; i < sd->entity.num_pads; i++) { in vimc_scaler_init_state()
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-subdev.c | 180 if (sd->entity.num_pads) { in check_pad() 181 if (pad >= sd->entity.num_pads) in check_pad() 1029 if (route->sink_pad >= sd->entity.num_pads) in subdev_do_ioctl() 1036 if (route->source_pad >= sd->entity.num_pads) in subdev_do_ioctl() 1584 if (!(sd->flags & V4L2_SUBDEV_FL_STREAMS) && sd->entity.num_pads) { in __v4l2_subdev_state_alloc() 1585 state->pads = kvcalloc(sd->entity.num_pads, in __v4l2_subdev_state_alloc() 1711 if (pad >= state->sd->entity.num_pads) in __v4l2_subdev_state_get_format() 1745 if (pad >= state->sd->entity.num_pads) in __v4l2_subdev_state_get_crop() 1779 if (pad >= state->sd->entity.num_pads) in __v4l2_subdev_state_get_compose() 1815 if (pad >= state->sd->entity.num_pads) in __v4l2_subdev_state_get_interval() [all …]
|
H A D | v4l2-dev.c | 1140 if (entity->num_pads != 1) in video_device_pipeline_start() 1152 if (entity->num_pads != 1) in __video_device_pipeline_start() 1163 if (WARN_ON(entity->num_pads != 1)) in video_device_pipeline_stop() 1174 if (WARN_ON(entity->num_pads != 1)) in __video_device_pipeline_stop() 1185 if (entity->num_pads != 1) in video_device_pipeline_alloc_start() 1196 if (WARN_ON(entity->num_pads != 1)) in video_device_pipeline()
|
H A D | v4l2-mem2mem.c | 1049 int num_pads; in v4l2_m2m_register_entity() local 1057 num_pads = 1; in v4l2_m2m_register_entity() 1063 num_pads = 1; in v4l2_m2m_register_entity() 1070 num_pads = 2; in v4l2_m2m_register_entity() 1089 ret = media_entity_pads_init(entity, num_pads, pads); in v4l2_m2m_register_entity()
|
/linux/drivers/media/mc/ |
H 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()
|
/linux/drivers/media/platform/xilinx/ |
H A D | xilinx-vipp.c | 109 if (link.local_port >= local->num_pads) { in xvip_graph_build_one() 146 if (link.remote_port >= remote->num_pads) { in xvip_graph_build_one() 241 if (link.remote_port >= ent->entity->num_pads) { in xvip_graph_build_dma()
|
/linux/Documentation/userspace-api/media/mediactl/ |
H 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/ |
H A D | pinctrl-lantiq.h | 77 unsigned int num_pads; member
|
/linux/drivers/media/platform/ti/omap3isp/ |
H A D | isp.h | 360 if (pad >= subdev->entity.num_pads) in isp_pad_buffer_type()
|
/linux/include/uapi/linux/ |
H A D | media.h | 360 __u32 num_pads; member
|