/linux/drivers/media/platform/st/stm32/stm32-dcmipp/ |
H A D | dcmipp-common.c | 16 /* Helper function to allocate and initialize pads */ 19 struct media_pad *pads; in dcmipp_pads_init() local 22 /* Allocate memory for the pads */ in dcmipp_pads_init() 23 pads = kcalloc(num_pads, sizeof(*pads), GFP_KERNEL); in dcmipp_pads_init() 24 if (!pads) in dcmipp_pads_init() 27 /* Initialize the 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() 54 /* Allocate the pads. Should be released from the sd_int_op release */ in dcmipp_ent_sd_register() [all …]
|
H A D | dcmipp-common.h | 65 * @pads: the list of pads of the node 87 struct media_pad *pads; member 98 * dcmipp_pads_init - initialize pads 100 * @num_pads: number of pads to initialize 103 * Helper functions to allocate/initialize pads 109 * dcmipp_pads_cleanup - free pads 111 * @pads: pointer to the pads 113 * Helper function to free the pads initialized with dcmipp_pads_init 115 static inline void dcmipp_pads_cleanup(struct media_pad *pads) in dcmipp_pads_cleanup() argument 117 kfree(pads); in dcmipp_pads_cleanup() [all …]
|
/linux/Documentation/userspace-api/media/mediactl/ |
H A D | media-ioc-enum-links.rst | 13 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/platform/nxp/imx8-isi/ |
H A D | imx8-isi-pipe.c | 40 .pads = BIT(MXC_ISI_PIPE_PAD_SINK), 45 .pads = BIT(MXC_ISI_PIPE_PAD_SOURCE), 52 .pads = BIT(MXC_ISI_PIPE_PAD_SINK), 57 .pads = BIT(MXC_ISI_PIPE_PAD_SINK) 65 .pads = BIT(MXC_ISI_PIPE_PAD_SINK) 71 .pads = BIT(MXC_ISI_PIPE_PAD_SINK) 77 .pads = BIT(MXC_ISI_PIPE_PAD_SINK) 83 .pads = BIT(MXC_ISI_PIPE_PAD_SINK) 89 .pads = BIT(MXC_ISI_PIPE_PAD_SINK) 95 .pads = BIT(MXC_ISI_PIPE_PAD_SINK) [all …]
|
H A D | imx8-isi-crossbar.c | 162 pad = media_pad_remote_pad_first(&xbar->pads[sink_pad]); in mxc_isi_crossbar_xlate_streams() 224 * The media bus code on source pads is identical to the in mxc_isi_crossbar_enum_mbus_code() 259 media_pad_is_streaming(&xbar->pads[fmt->pad])) in mxc_isi_crossbar_set_fmt() 459 xbar->pads = kcalloc(num_pads, sizeof(*xbar->pads), GFP_KERNEL); in mxc_isi_crossbar_init() 460 if (!xbar->pads) in mxc_isi_crossbar_init() 471 xbar->pads[i].flags = MEDIA_PAD_FL_SINK in mxc_isi_crossbar_init() 474 xbar->pads[i + xbar->num_sinks].flags = MEDIA_PAD_FL_SOURCE; in mxc_isi_crossbar_init() 476 ret = media_entity_pads_init(&sd->entity, num_pads, xbar->pads); in mxc_isi_crossbar_init() 489 kfree(xbar->pads); in mxc_isi_crossbar_init() 498 kfree(xbar->pads); in mxc_isi_crossbar_cleanup()
|
/linux/include/media/ |
H A D | media-entity.h | 105 * @pads: List of media_pipeline_pad 111 struct list_head pads; member 118 * @list: Entry in the media_pad pads list 124 * pipeline, and stored in the &media_pad.pads list. media_pipeline_stop() 227 * @index: Pad index in the entity pads array, numbered from 0 to n 262 * @has_pad_interdep: Return whether two pads of the entity are 263 * interdependent. If two pads are interdependent they are 264 * part of the same pipeline and enabling one of the pads 270 * Optional: If the operation isn't implemented all pads 328 * @num_pads: Number of sink and source pads. [all …]
|
/linux/drivers/media/mc/ |
H A D | mc-entity.c | 158 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() 243 * media_entity_has_pad_interdep - Check interdependency between two pads 250 * and @pad1. If two pads are interdependent they are part of the same pipeline 251 * and enabling one of the pads means that the other pad will become "locked" 256 * has_pad_interdep operation is not implemented, all pads of the entity are 260 * The function returns false if both pads are sinks or sources. 264 * Return: true if the pads are connected internally and false otherwise. 272 if (entity->pads[pad0].flags & entity->pads[pad1].flags & in media_entity_has_pad_interdep() [all …]
|
/linux/Documentation/devicetree/bindings/phy/ |
H A D | nvidia,tegra20-usb-phy.yaml | 50 - description: UTMI pads control registers clock 56 - description: UTMI pads control registers clock 72 - const: utmi-pads 78 - const: utmi-pads 90 - description: UTMI pads reset 98 - const: utmi-pads 271 - const: utmi-pads 288 - const: utmi-pads 340 clock-names = "reg", "pll_u", "utmi-pads"; 342 reset-names = "usb", "utmi-pads"; [all …]
|
/linux/Documentation/devicetree/bindings/display/ |
H A D | arm,pl11x.yaml | 94 arm,pl11x,tft-r0g0b0-pads: 103 CLD[23:0] pads are wired up. 111 arm,pl11x,tft-r0g0b0-pads = <4 15 20>; 113 arm,pl11x,tft-r0g0b0-pads = <1 7 13>; 115 arm,pl11x,tft-r0g0b0-pads = <3 11 19>; 117 arm,pl11x,tft-r0g0b0-pads = <3 10 19>; 119 arm,pl11x,tft-r0g0b0-pads = <0 8 16>; 121 arm,pl11x,tft-r0g0b0-pads = <16 8 0>;
|
/linux/drivers/staging/media/tegra-video/ |
H A D | csi.h | 25 /* each CSI channel can have one sink and one source pads */ 46 * @pads: media pads for the subdevice entity 47 * @numpads: number of pads. 59 * @mipi: mipi device for corresponding csi channel pads, or NULL if not applicable (TPG, error) 65 struct media_pad pads[TEGRA_CSI_PADS_NUM]; member
|
/linux/drivers/gpu/host1x/ |
H A D | mipi.c | 96 const struct tegra_mipi_pad *pads; member 133 unsigned long pads; member 185 * supplies the DSI pads. This must be kept enabled until none of the in tegra_mipi_power_down() 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() 380 * sequence codes before waiting for pads idle state to apply the in tegra_mipi_start_calibration() 403 .pads = tegra114_mipi_pads, [all …]
|
/linux/drivers/input/joystick/ |
H A D | gamecon.c | 72 struct gc_pad pads[GC_MAX_DEVICES]; member 119 #define GC_N64_OUT 0x1d /* output bits to the 4 pads */ 158 * Each pad uses one bit per byte. So all pads connected to this port 213 if (gc->pads[i].type != GC_N64) in gc_n64_process_packet() 216 dev = gc->pads[i].dev; in gc_n64_process_packet() 316 #define GC_NES_LENGTH 8 /* The NES pads use 8 bits of data */ 334 * Each pad uses one bit per byte. So all pads connected to 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() [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | nvidia,tegra20-pcie.txt | 17 "pads": PADS registers 171 reg = <0x80003000 0x00000800 /* PADS registers */ 174 reg-names = "pads", "afi", "cs"; 272 reg = <0x00003000 0x00000800 /* PADS registers */ 275 reg-names = "pads", "afi", "cs"; 377 reg = <0x0 0x01003000 0x0 0x00000800 /* PADS registers */ 380 reg-names = "pads", "afi", "cs"; 452 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>; 459 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>; 473 reg = <0x0 0x01003000 0x0 0x00000800 /* PADS registers */ [all …]
|
/linux/drivers/staging/media/omap4iss/ |
H A D | iss_ipipe.h | 22 /* Sink and source IPIPE pads */ 31 * @pads: Sink and source media entity pads 42 struct media_pad pads[IPIPE_PADS_NUM]; member
|
H A D | iss_resizer.h | 23 /* Sink and source RESIZER pads */ 32 * @pads: Sink and source media entity pads 44 struct media_pad pads[RESIZER_PADS_NUM]; member
|
H A D | iss_ipipeif.h | 24 /* Sink and source IPIPEIF pads */ 34 * @pads: Sink and source media entity pads 61 struct media_pad pads[IPIPEIF_PADS_NUM]; member
|
/linux/Documentation/admin-guide/media/ |
H A D | imx.rst | 142 four source pads, corresponding to the four MIPI CSI-2 demuxed virtual 143 channel outputs. Multiple source pads can be enabled to independently 165 These are the video multiplexers. They have two or more sink pads to 172 the four MIPI CSI-2 virtual channels (a total of five sink pads). The 173 other mux sits in front of IPU1-CSI1, and again has five sink pads to 179 channel 0 (two sink pads). The other mux sits in front of IPU2-CSI1 to 181 sink pads). 190 This entity has two source pads. The first source pad can link directly 257 sink and source pads. The ipuX_csiY entity then applies the best 280 has two sink pads and a single source pad. [all …]
|
H A D | imx7.rst | 47 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/arch/powerpc/include/asm/ |
H A D | spu_csa.h | 95 * struct spu_problem_collapsed - condensed problem state area, w/o pads. 120 * struct spu_priv1_collapsed - condensed privileged 1 area, w/o pads. 184 * struct spu_priv2_collapsed - condensed privileged 2 area, w/o pads. 211 * @prob: Collapsed Problem State Area, w/o pads. 212 * @priv1: Collapsed Privileged 1 Area, w/o pads. 213 * @priv2: Collapsed Privileged 2 Area, w/o pads.
|
/linux/drivers/media/platform/ |
H A D | video-mux.c | 26 struct media_pad *pads; member 128 pad = media_pad_remote_pad_first(&sd->entity.pads[vmux->active]); in video_mux_s_stream() 154 struct media_pad *pad = &vmux->pads[sdformat->pad]; in video_mux_set_format() 269 /* Source pad mirrors active sink pad, no limitations on sink pads */ in video_mux_set_format() 413 * total number of pads. in video_mux_probe() 435 vmux->pads = devm_kcalloc(dev, num_pads, sizeof(*vmux->pads), in video_mux_probe() 437 if (!vmux->pads) in video_mux_probe() 441 vmux->pads[i].flags = (i < num_pads - 1) ? MEDIA_PAD_FL_SINK in video_mux_probe() 446 vmux->pads); in video_mux_probe()
|
/linux/drivers/media/dvb-core/ |
H A D | dvbdev.c | 208 kfree(dvbdev->pads); in dvb_media_device_free() 210 dvbdev->pads = NULL; in dvb_media_device_free() 262 struct media_pad *pads = &dvbdev->tsout_pads[i]; in dvb_create_tsout_entity() local 271 pads->flags = MEDIA_PAD_FL_SINK; in dvb_create_tsout_entity() 273 ret = media_entity_pads_init(entity, 1, pads); in dvb_create_tsout_entity() 317 * fixed. As we don't have yet dynamic support for PADs at in dvb_create_media_entity() 333 dvbdev->pads = kcalloc(npads, sizeof(*dvbdev->pads), in dvb_create_media_entity() 335 if (!dvbdev->pads) { in dvb_create_media_entity() 345 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; in dvb_create_media_entity() 346 dvbdev->pads[1].flags = MEDIA_PAD_FL_SOURCE; in dvb_create_media_entity() [all …]
|
/linux/Documentation/devicetree/bindings/ata/ |
H A D | cortina,gemini-sata-bridge.yaml | 58 ata0 slave interface brought out on IDE pads 61 ata1 slave interface brought out on IDE pads 64 ata0 master and slave interfaces brought out on IDE pads 67 ata1 master and slave interfaces brought out on IDE pads
|
/linux/drivers/media/test-drivers/vimc/ |
H A D | vimc-common.h | 163 * vimc_is_source - returns true if the entity has only source pads 215 * @num_pads: number of pads to initialize 216 * @pads: the array of pads of the entity, the caller should set the 217 * flags of the pads 230 struct media_pad *pads,
|
/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtmips.c | 32 struct pinctrl_pin_desc *pads; member 281 /* the pads needed to tell pinctrl about our pins */ in mtmips_pinctrl_pins() 282 p->pads = devm_kcalloc(p->dev, p->max_pins, in mtmips_pinctrl_pins() 284 if (!p->pads || !p->gpio) in mtmips_pinctrl_pins() 299 /* set the pads */ 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/staging/media/atomisp/pci/ |
H A D | atomisp_csi2.c | 63 * csi2_get_format - Handle get format by pads subdev method 129 * csi2_set_format - Handle set format by pads subdev method 171 struct media_pad *pads = csi2->pads; in mipi_csi2_init_entities() local 181 pads[CSI2_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in mipi_csi2_init_entities() 182 pads[CSI2_PAD_SINK].flags = MEDIA_PAD_FL_SINK; in mipi_csi2_init_entities() 186 ret = media_entity_pads_init(me, CSI2_PADS_NUM, pads); in mipi_csi2_init_entities()
|