Home
last modified time | relevance | path

Searched refs:pads (Results 1 – 25 of 121) 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()
248 * media_entity_has_pad_interdep - Check interdependency between two pads
255 * and @pad1. If two pads are interdependent they are part of the same pipeline
256 * and enabling one of the pads means that the other pad will become "locked"
261 * has_pad_interdep operation is not implemented, all pads of the entity are
265 * The function returns false if both pads are sinks or sources.
269 * Return: true if the pads ar in media_entity_has_pad_interdep()
[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
276 /* the pads needed to tell pinctrl about our pins */ in mtmips_pinctrl_pins()
277 p->pads = devm_kzalloc_objs(p->dev, struct pinctrl_pin_desc, in mtmips_pinctrl_pins()
279 if (!p->pads || !p->gpio) in mtmips_pinctrl_pins()
294 /* set the pads */ in mtmips_pinctrl_pins()
302 p->pads[i].number = i; in mtmips_pinctrl_pins()
303 p->pads[i].name = name; in mtmips_pinctrl_pins()
305 p->desc->pins = p->pads; in mtmips_pinctrl_pins()
/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()
500 struct media_pad *pads = proc->pads; in sun6i_isp_proc_setup()
523 pads[SUN6I_ISP_PROC_PAD_SINK_CSI].flags = MEDIA_PAD_FL_SINK | in sun6i_isp_proc_setup()
525 pads[SUN6I_ISP_PROC_PAD_SINK_PARAMS].flags = MEDIA_PAD_FL_SINK | in sun6i_isp_proc_setup()
527 pads[SUN6I_ISP_PROC_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in sun6i_isp_proc_setup()
530 pads); in sun6i_isp_proc_setup()
499 struct media_pad *pads = proc->pads; sun6i_isp_proc_setup() local
/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/pinctrl/intel/
H A Dpinctrl-intel.c1516 struct intel_pad_context *pads; in intel_pinctrl_pm_init() local
1519 pads = devm_kzalloc_objs(pctrl->dev, *pads, soc->npins); in intel_pinctrl_pm_init()
1520 if (!pads) in intel_pinctrl_pm_init()
1548 pctrl->context.pads = pads; in intel_pinctrl_pm_init()
1829 struct intel_pad_context *pads; in intel_pinctrl_suspend_noirq()
1832 pads = pctrl->context.pads; in intel_pinctrl_suspend_noirq()
1842 pads[ in intel_pinctrl_suspend_noirq()
1810 struct intel_pad_context *pads; intel_pinctrl_suspend_noirq() local
1919 const struct intel_pad_context *pads; intel_pinctrl_resume_noirq() local
[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()
173 * The CSI2 bus pads are ignorant to the data sizes or formats.
347 tx->pads[ADV748X_CSI2_SINK].flags = MEDIA_PAD_FL_SINK; in adv748x_csi2_init()
348 tx->pads[ADV748X_CSI2_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in adv748x_csi2_init()
351 tx->pads); in adv748x_csi2_init()
/linux/Documentation/devicetree/bindings/pci/
H A Dnvidia,tegra20-pcie.txt
/linux/drivers/media/test-drivers/vimc/
H A Dvimc-scaler.c29 struct media_pad pads[2]; member
403 vscaler->pads[VIMC_SCALER_SINK].flags = MEDIA_PAD_FL_SINK; in vimc_scaler_add()
404 vscaler->pads[VIMC_SCALER_SRC].flags = MEDIA_PAD_FL_SOURCE; in vimc_scaler_add()
409 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/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/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()
H A Dimx-media-dev-common.c49 * Continues upstream from the pad entity's sink pads.
96 /* move upstream from this entity's sink pads */ in imx_media_add_vdev_to_pad()
98 struct media_pad *pad = &entity->pads[i]; in imx_media_add_vdev_to_pad()
145 /* form the vdev lists in all imx-media source pads */
193 * Continues upstream from the entity's sink pads.
217 struct media_pad *pad, *spad = &entity->pads[i]; in imx_media_inherit_controls()
311 struct media_pad *pad = &entity->pads[i]; in imx_media_notify()
/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
336 /* Only consider our enabled input pads */ in csi2tx_start()
338 struct media_pad *pad = &csi2tx->pads[i]; in csi2tx_start()
602 /* Create our media pads */ in csi2tx_probe()
604 csi2tx->pads[CSI2TX_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in csi2tx_probe()
606 csi2tx->pads[i].flags = MEDIA_PAD_FL_SINK; in csi2tx_probe()
609 * Only the input pads are considered to have a format at the in csi2tx_probe()
618 csi2tx->pads); in csi2tx_probe()
/linux/drivers/media/platform/sunxi/sun6i-csi/
H A Dsun6i_csi_bridge.c392 struct media_pad *local_pad = &bridge->pads[SUN6I_CSI_BRIDGE_PAD_SINK];
502 * initialize both pads identically. in sun6i_csi_bridge_mbus_format_prepare()
748 struct media_pad *pads = bridge->pads; in sun6i_csi_bridge_source_setup()
774 pads[SUN6I_CSI_BRIDGE_PAD_SINK].flags = MEDIA_PAD_FL_SINK; in sun6i_csi_bridge_setup()
775 pads[SUN6I_CSI_BRIDGE_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE | in sun6i_csi_bridge_setup() local
779 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()
735 remote_pad = media_pad_remote_pad_unique(&csi2->pads[RZG2L_CSI2_SINK]); in rzg2l_csi2_get_frame_desc()
968 csi2->pads[RZG2L_CSI2_SINK].flags = MEDIA_PAD_FL_SINK | in rzg2l_csi2_probe()
975 csi2->pads[RZG2L_CSI2_SOURCE].flags = MEDIA_PAD_FL_SOURCE | in rzg2l_csi2_probe()
977 ret = media_entity_pads_init(&csi2->subdev.entity, ARRAY_SIZE(csi2->pads), in rzg2l_csi2_probe()
978 csi2->pads); in rzg2l_csi2_probe()
/linux/drivers/phy/tegra/
H A Dxusb.c100 struct device_node *pads, *np;
102 pads = of_get_child_by_name(padctl->dev->of_node, "pads"); in tegra_xusb_pad_find_phy_node()
103 if (!pads) in tegra_xusb_pad_find_phy_node()
106 np = of_get_child_by_name(pads, name); in tegra_xusb_pad_find_phy_node()
107 of_node_put(pads); in tegra_xusb_pad_find_phy_node()
318 list_for_each_entry_safe_reverse(pad, tmp, &padctl->pads, list) { in tegra_xusb_remove_pads()
376 const struct tegra_xusb_pad_soc *soc = padctl->soc->pads[i]; in tegra_xusb_setup_pads()
392 list_add_tail(&pad->list, &padctl->pads); in tegra_xusb_lane_check()
395 list_for_each_entry(pad, &padctl->pads, lis in tegra_xusb_lane_check()
88 struct device_node *pads, *np; tegra_xusb_find_pad_node() local
[all...]

12345