Home
last modified time | relevance | path

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

12345

/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 …]
/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/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}>;
/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/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/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/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/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/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/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/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/drivers/pinctrl/intel/
H A Dpinctrl-intel.c1516 struct intel_pad_context *pads; in intel_pinctrl_pm_init() local
1519 pads = devm_kcalloc(pctrl->dev, soc->npins, sizeof(*pads), GFP_KERNEL); in intel_pinctrl_pm_init()
1520 if (!pads) in intel_pinctrl_pm_init()
1548 pctrl->context.pads = pads; in intel_pinctrl_pm_init()
1810 struct intel_pad_context *pads; in intel_pinctrl_suspend_noirq() local
1813 pads = pctrl->context.pads; in intel_pinctrl_suspend_noirq()
1823 pads[i].padcfg0 = val & ~PADCFG0_GPIORXSTATE; in intel_pinctrl_suspend_noirq()
1825 pads[i].padcfg1 = val; in intel_pinctrl_suspend_noirq()
1829 pads[i].padcfg2 = readl(padcfg); in intel_pinctrl_suspend_noirq()
1919 const struct intel_pad_context *pads; in intel_pinctrl_resume_noirq() local
[all …]
/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/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()
H A Dvimc-common.c186 if (ent->pads[i].flags & MEDIA_PAD_FL_SINK) in vimc_is_source()
362 struct media_pad *pads, in vimc_ent_sd_register() argument
386 ret = media_entity_pads_init(&sd->entity, num_pads, pads); in vimc_ent_sd_register()
/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/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/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.
/linux/drivers/media/platform/cadence/
H A Dcdns-csi2tx.c111 struct media_pad pads[CSI2TX_PAD_MAX]; member
337 struct media_pad *pad = &csi2tx->pads[i]; in csi2tx_start()
603 csi2tx->pads[CSI2TX_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in csi2tx_probe()
605 csi2tx->pads[i].flags = MEDIA_PAD_FL_SINK; in csi2tx_probe()
617 csi2tx->pads); in csi2tx_probe()
/linux/drivers/media/platform/sunxi/sun6i-csi/
H A Dsun6i_csi_bridge.c412 struct media_pad *local_pad = &bridge->pads[SUN6I_CSI_BRIDGE_PAD_SINK]; in sun6i_csi_bridge_s_stream()
775 struct media_pad *pads = bridge->pads; in sun6i_csi_bridge_setup() local
803 pads[SUN6I_CSI_BRIDGE_PAD_SINK].flags = MEDIA_PAD_FL_SINK; in sun6i_csi_bridge_setup()
804 pads[SUN6I_CSI_BRIDGE_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE | in sun6i_csi_bridge_setup()
808 SUN6I_CSI_BRIDGE_PAD_COUNT, pads); in sun6i_csi_bridge_setup()
/linux/drivers/media/platform/renesas/rzg2l-cru/
H A Drzg2l-csi2.c118 struct media_pad pads[NR_OF_RZG2L_CSI2_PAD]; member
301 remote_pad = media_pad_remote_pad_unique(&csi2->pads[RZG2L_CSI2_SINK]); in rzg2l_csi2_calc_mbps()
734 remote_pad = media_pad_remote_pad_unique(&csi2->pads[RZG2L_CSI2_SINK]); in rzg2l_csi2_get_frame_desc()
967 csi2->pads[RZG2L_CSI2_SINK].flags = MEDIA_PAD_FL_SINK | in rzg2l_csi2_probe()
974 csi2->pads[RZG2L_CSI2_SOURCE].flags = MEDIA_PAD_FL_SOURCE | in rzg2l_csi2_probe()
976 ret = media_entity_pads_init(&csi2->subdev.entity, ARRAY_SIZE(csi2->pads), in rzg2l_csi2_probe()
977 csi2->pads); in rzg2l_csi2_probe()
/linux/drivers/phy/tegra/
H A Dxusb.c88 struct device_node *pads, *np; in tegra_xusb_find_pad_node() local
90 pads = of_get_child_by_name(padctl->dev->of_node, "pads"); in tegra_xusb_find_pad_node()
91 if (!pads) in tegra_xusb_find_pad_node()
94 np = of_get_child_by_name(pads, name); in tegra_xusb_find_pad_node()
95 of_node_put(pads); in tegra_xusb_find_pad_node()
307 list_for_each_entry_safe_reverse(pad, tmp, &padctl->pads, list) { in __tegra_xusb_remove_pads()
365 const struct tegra_xusb_pad_soc *soc = padctl->soc->pads[i]; in tegra_xusb_setup_pads()
381 list_add_tail(&pad->list, &padctl->pads); in tegra_xusb_setup_pads()
384 list_for_each_entry(pad, &padctl->pads, list) in tegra_xusb_setup_pads()
1202 INIT_LIST_HEAD(&padctl->pads); in tegra_xusb_padctl_probe()
/linux/drivers/media/platform/sunxi/sun6i-mipi-csi2/
H A Dsun6i_mipi_csi2.h32 struct media_pad pads[SUN6I_MIPI_CSI2_PAD_COUNT]; member

12345