Home
last modified time | relevance | path

Searched refs:pads (Results 1 – 25 of 150) sorted by relevance

123456

/linux/drivers/media/platform/st/stm32/stm32-dcmipp/
H A Ddcmipp-common.c19 struct media_pad *pads; in dcmipp_pads_init() local
23 pads = kzalloc_objs(*pads, num_pads); in dcmipp_pads_init()
24 if (!pads) in dcmipp_pads_init()
29 pads[i].index = i; in dcmipp_pads_init()
30 pads[i].flags = pads_flags[i]; in dcmipp_pads_init()
33 return pads; in dcmipp_pads_init()
55 ved->pads = dcmipp_pads_init(num_pads, pads_flag); in dcmipp_ent_sd_register()
56 if (IS_ERR(ved->pads)) in dcmipp_ent_sd_register()
57 return PTR_ERR(ved->pads); in dcmipp_ent_sd_register()
77 ret = media_entity_pads_init(&sd->entity, num_pads, ved->pads); in dcmipp_ent_sd_register()
[all …]
H A Ddcmipp-bytecap.c403 pad = media_pad_remote_pad_first(&vcap->vdev.entity.pads[0]); in dcmipp_bytecap_start_streaming()
417 ret = media_pipeline_start(entity->pads, &vcap->pipe); in dcmipp_bytecap_start_streaming()
454 media_pipeline_stop(entity->pads); in dcmipp_bytecap_start_streaming()
498 media_pipeline_stop(vcap->vdev.entity.pads); in dcmipp_bytecap_stop_streaming()
648 dcmipp_pads_cleanup(vcap->ved.pads); in dcmipp_bytecap_release()
875 vcap->ved.pads = dcmipp_pads_init(1, &pad_flag); in dcmipp_bytecap_ent_init()
876 if (IS_ERR(vcap->ved.pads)) { in dcmipp_bytecap_ent_init()
877 ret = PTR_ERR(vcap->ved.pads); in dcmipp_bytecap_ent_init()
885 ret = media_entity_pads_init(&vcap->vdev.entity, 1, vcap->ved.pads); in dcmipp_bytecap_ent_init()
961 dcmipp_pads_cleanup(vcap->ved.pads); in dcmipp_bytecap_ent_init()
/linux/Documentation/userspace-api/media/mediactl/
H A Dmedia-ioc-enum-links.rst13 MEDIA_IOC_ENUM_LINKS - Enumerate all pads and links for a given entity
34 To enumerate pads and/or links for a given entity, applications set the
39 the ``pads`` and ``links`` fields. They then call the
42 If the ``pads`` field is not NULL, the driver fills the ``pads`` array
43 with information about the entity's pads. The array must have enough
44 room to store all the entity's pads. The number of pads can be retrieved
52 Only forward links that originate at one of the entity's source pads are
69 - \*\ ``pads``
70 - Pointer to a pads array allocated by the application. Ignored if
/linux/drivers/media/mc/
H A Dmc-entity.c158 list_add_tail(&gobj->list, &mdev->pads); in media_gobj_create()
195 struct media_pad *pads) in media_entity_pads_init() argument
206 entity->pads = pads; in media_entity_pads_init()
272 if (entity->pads[pad0].flags & entity->pads[pad1].flags & in media_entity_has_pad_interdep()
581 list_for_each_entry(ppad, &pipe->pads, list) { in media_pipeline_add_pad()
597 list_add_tail(&ppad->list, &pipe->pads); in media_pipeline_add_pad()
709 while (!list_empty(&pipe->pads)) { in media_pipeline_cleanup()
712 ppad = list_first_entry(&pipe->pads, typeof(*ppad), list); in media_pipeline_cleanup()
729 INIT_LIST_HEAD(&pipe->pads); in media_pipeline_populate()
754 list_for_each_entry(ppad, &pipe->pads, list) in media_pipeline_populate()
[all …]
H A Dmc-device.c116 entd->pads = ent->num_pads; in media_device_enum_entities()
160 if (links->pads) { in media_device_enum_links()
167 media_device_kpad_to_upad(&entity->pads[p], &pad); in media_device_enum_links()
168 if (copy_to_user(&links->pads[p], &pad, sizeof(pad))) in media_device_enum_links()
219 link = media_entity_find_link(&source->pads[linkd->source.index], in media_device_setup_link()
220 &sink->pads[linkd->sink.index]); in media_device_setup_link()
484 compat_uptr_t pads; /* struct media_pad_desc * */ member
499 || get_user(pads_ptr, &ulinks->pads) in media_device_enum_links32()
503 links.pads = compat_ptr(pads_ptr); in media_device_enum_links32()
703 INIT_LIST_HEAD(&mdev->pads); in media_device_init()
/linux/drivers/gpu/host1x/
H A Dmipi.c96 const struct tegra_mipi_pad *pads; member
133 unsigned long pads; member
242 dev->pads = args.args[0]; in tegra_mipi_request()
341 if (device->pads & BIT(i)) { in tegra_mipi_start_calibration()
351 tegra_mipi_writel(device->mipi, data, soc->pads[i].data); in tegra_mipi_start_calibration()
353 if (soc->has_clk_lane && soc->pads[i].clk != 0) in tegra_mipi_start_calibration()
354 tegra_mipi_writel(device->mipi, clk, soc->pads[i].clk); in tegra_mipi_start_calibration()
403 .pads = tegra114_mipi_pads,
430 .pads = tegra124_mipi_pads,
447 .pads = tegra124_mipi_pads,
[all …]
/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra234-p3768-0000+p3767.dtsi63 pads {
138 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
139 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
146 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
147 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>,
148 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>,
149 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>,
150 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
H A Dtegra234-p3740-0002+p3701-0008.dts126 pads {
213 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
214 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
221 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
222 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>,
223 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>,
224 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-3}>,
225 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>,
226 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>,
227 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-2}>;
/linux/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-crossbar.c162 pad = media_pad_remote_pad_first(&xbar->pads[sink_pad]); in mxc_isi_crossbar_xlate_streams()
259 media_pad_is_streaming(&xbar->pads[fmt->pad])) in mxc_isi_crossbar_set_fmt()
457 xbar->pads = kzalloc_objs(*xbar->pads, num_pads); in mxc_isi_crossbar_init()
458 if (!xbar->pads) in mxc_isi_crossbar_init()
468 xbar->pads[i].flags = MEDIA_PAD_FL_SINK in mxc_isi_crossbar_init()
471 xbar->pads[i + xbar->num_sinks].flags = MEDIA_PAD_FL_SOURCE; in mxc_isi_crossbar_init()
473 ret = media_entity_pads_init(&sd->entity, num_pads, xbar->pads); in mxc_isi_crossbar_init()
486 kfree(xbar->pads); in mxc_isi_crossbar_init()
495 kfree(xbar->pads); in mxc_isi_crossbar_cleanup()
/linux/drivers/input/joystick/
H A Dgamecon.c72 struct gc_pad pads[GC_MAX_DEVICES]; member
213 if (gc->pads[i].type != GC_N64) in gc_n64_process_packet()
216 dev = gc->pads[i].dev; in gc_n64_process_packet()
370 pad = &gc->pads[i]; in gc_nes_process_packet()
478 pad = &gc->pads[i]; in gc_multi_process_packet()
562 struct gc_pad *pad = &gc->pads[j]; in gc_psx_command()
601 struct gc_pad *pad = &gc->pads[i]; in gc_psx_read_packet()
717 pad = &gc->pads[i]; in gc_psx_process_packet()
797 struct gc_pad *pad = &gc->pads[idx]; in gc_setup_pad()
923 int *pads, n_pads; in gc_attach() local
[all …]
/linux/drivers/media/dvb-core/
H A Ddvbdev.c213 kfree(dvbdev->pads); in dvb_media_device_free()
215 dvbdev->pads = NULL; in dvb_media_device_free()
265 struct media_pad *pads = &dvbdev->tsout_pads[i]; in dvb_create_tsout_entity() local
274 pads->flags = MEDIA_PAD_FL_SINK; in dvb_create_tsout_entity()
276 ret = media_entity_pads_init(entity, 1, pads); in dvb_create_tsout_entity()
336 dvbdev->pads = kzalloc_objs(*dvbdev->pads, npads); in dvb_create_media_entity()
337 if (!dvbdev->pads) { in dvb_create_media_entity()
347 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; in dvb_create_media_entity()
348 dvbdev->pads[1].flags = MEDIA_PAD_FL_SOURCE; in dvb_create_media_entity()
352 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; in dvb_create_media_entity()
[all …]
/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtmips.c32 struct pinctrl_pin_desc *pads; member
282 p->pads = devm_kcalloc(p->dev, p->max_pins, in mtmips_pinctrl_pins()
284 if (!p->pads || !p->gpio) in mtmips_pinctrl_pins()
307 p->pads[i].number = i; in mtmips_pinctrl_pins()
308 p->pads[i].name = name; in mtmips_pinctrl_pins()
310 p->desc->pins = p->pads; in mtmips_pinctrl_pins()
/linux/drivers/pinctrl/actions/
H A Dpinctrl-owl.h21 .pads = group_name##_pads, \
39 .pads = group_name##_pads, \
55 .pads = group_name##_pads, \
210 unsigned int *pads; member
/linux/drivers/media/dvb-frontends/
H A Dau8522_decoder.c712 state->pads[AU8522_PAD_IF_INPUT].flags = MEDIA_PAD_FL_SINK; in au8522_probe()
713 state->pads[AU8522_PAD_IF_INPUT].sig_type = PAD_SIGNAL_ANALOG; in au8522_probe()
714 state->pads[AU8522_PAD_VID_OUT].flags = MEDIA_PAD_FL_SOURCE; in au8522_probe()
715 state->pads[AU8522_PAD_VID_OUT].sig_type = PAD_SIGNAL_DV; in au8522_probe()
716 state->pads[AU8522_PAD_AUDIO_OUT].flags = MEDIA_PAD_FL_SOURCE; in au8522_probe()
717 state->pads[AU8522_PAD_AUDIO_OUT].sig_type = PAD_SIGNAL_AUDIO; in au8522_probe()
720 ret = media_entity_pads_init(&sd->entity, ARRAY_SIZE(state->pads), in au8522_probe()
721 state->pads); in au8522_probe()
/linux/Documentation/driver-api/media/
H A Dmc-core.rst19 through pads.
32 A link is a point-to-point oriented connection between two pads, either
65 Drivers initialize entity pads by calling
90 defined in ``include/media/media-entity.h``. Each entity stores its pads in
91 a pads array managed by the entity driver. Drivers usually embed the array in
94 Pads are identified by their entity and their 0-based index in the pads
120 to all links originating at or targeting any of its pads.
163 Helper functions can be used to find a link between two given pads, or a pad
194 source devices (such as a sensors) and flowing through media entity pads
209 The function will mark all the pads which are part of the pipeline as streaming.
[all …]
/linux/drivers/staging/media/sunxi/sun6i-isp/
H A Dsun6i_isp_proc.c171 struct media_pad *local_pad = &proc->pads[SUN6I_ISP_PROC_PAD_SINK_CSI]; in sun6i_isp_proc_s_stream()
499 struct media_pad *pads = proc->pads; in sun6i_isp_proc_setup() local
522 pads[SUN6I_ISP_PROC_PAD_SINK_CSI].flags = MEDIA_PAD_FL_SINK | in sun6i_isp_proc_setup()
524 pads[SUN6I_ISP_PROC_PAD_SINK_PARAMS].flags = MEDIA_PAD_FL_SINK | in sun6i_isp_proc_setup()
526 pads[SUN6I_ISP_PROC_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in sun6i_isp_proc_setup()
529 pads); in sun6i_isp_proc_setup()
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dcommon.c19 struct media_pad *pad = &entity->pads[0]; in fimc_find_remote_sensor()
34 pad = &sd->entity.pads[0]; in fimc_find_remote_sensor()
/linux/Documentation/admin-guide/media/
H A Dimx7.rst47 This is the video multiplexer. It has two sink pads to select from either camera
88 # Configure pads for pipeline
113 - entity 1: csi (2 pads, 2 links)
129 - entity 10: csi-mux (3 pads, 2 links)
141 - entity 14: imx7-mipi-csis.0 (2 pads, 2 links)
171 # Configure pads for pipeline
195 - entity 1: csi (2 pads, 2 links)
/linux/drivers/media/v4l2-core/
H A Dv4l2-subdev.c230 if (which == V4L2_SUBDEV_FORMAT_TRY && (!state || !state->pads)) in check_state()
360 if (!(sd->entity.pads[pad].flags & MEDIA_PAD_FL_SOURCE)) in call_get_frame_desc()
1048 const struct media_pad *pads = sd->entity.pads; in subdev_do_ioctl() local
1057 if (!(pads[route->sink_pad].flags & in subdev_do_ioctl()
1064 if (!(pads[route->source_pad].flags & in subdev_do_ioctl()
1623 state->pads = kvzalloc_objs(*state->pads, sd->entity.num_pads); in __v4l2_subdev_state_alloc()
1624 if (!state->pads) { in __v4l2_subdev_state_alloc()
1646 if (state && state->pads) in __v4l2_subdev_state_alloc()
1647 kvfree(state->pads); in __v4l2_subdev_state_alloc()
1664 kvfree(state->pads); in __v4l2_subdev_state_free()
[all …]
/linux/drivers/media/i2c/adv748x/
H A Dadv748x-csi2.c159 src = adv748x_get_remote_sd(&tx->pads[ADV748X_CSI2_SINK]); in adv748x_csi2_s_stream()
346 tx->pads[ADV748X_CSI2_SINK].flags = MEDIA_PAD_FL_SINK; in adv748x_csi2_init()
347 tx->pads[ADV748X_CSI2_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in adv748x_csi2_init()
350 tx->pads); in adv748x_csi2_init()
/linux/Documentation/devicetree/bindings/pci/
H A Dnvidia,tegra20-pcie.txt17 "pads": PADS registers
174 reg-names = "pads", "afi", "cs";
275 reg-names = "pads", "afi", "cs";
380 reg-names = "pads", "afi", "cs";
452 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;
459 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>;
476 reg-names = "pads", "afi", "cs";
546 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>,
547 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>,
548 <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>,
[all …]
/linux/Documentation/input/devices/
H A Djoystick-parport.rst59 for your pads, use either keyboard or joystick port, and make a pass-through
71 Unfortunately, there are pads that need a lot more of power, and parallel
92 NES and SNES pads have two input bits, Clock and Latch, which drive the
278 want to use them on one parallel port together with NES/SNES/PSX pads. This is
305 for the NES / SNES pads in section 2.1 of this file - that is, one data pin
387 The Sega Genesis (in Europe sold as Sega MegaDrive) pads are an extension
388 to the Sega Master System pads. They use more buttons (3+1, 5+1, 6+1). Use
417 Genesis 6 pads use, it needs one more select pin. Anyway, it is still
487 described above, allows to connect a different group of joysticks and pads.
528 work but you can try lowering it for better performance. If your pads don't
[all …]
/linux/drivers/media/test-drivers/vimc/
H A Dvimc-scaler.c29 struct media_pad pads[2]; member
400 vscaler->pads[VIMC_SCALER_SINK].flags = MEDIA_PAD_FL_SINK; in vimc_scaler_add()
401 vscaler->pads[VIMC_SCALER_SRC].flags = MEDIA_PAD_FL_SOURCE; in vimc_scaler_add()
406 vscaler->pads, &vimc_scaler_internal_ops, in vimc_scaler_add()
/linux/drivers/staging/media/imx/
H A Dimx-media-internal-sd.c141 if (media_entity_find_link(&src->entity.pads[link->local_pad], in create_internal_link()
142 &sink->entity.pads[link->remote_pad])) in create_internal_link()
170 pad = &sd->entity.pads[i]; in create_ipu_internal_links()
/linux/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-dv.rst20 Note that these devices can have multiple input or output pads which are
22 receive or transmit video from/to only one of those pads, the other pads
29 These pads appear in several of the controls in this section as
31 1, etc. The maximum value of the control is the set of valid pads.

123456