Home
last modified time | relevance | path

Searched +full:lvds +full:- +full:encoder (Results 1 – 25 of 221) sorted by relevance

123456789

/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
Dsun4i_lvds.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
23 struct drm_encoder encoder; member
36 drm_encoder_to_sun4i_lvds(struct drm_encoder *encoder) in drm_encoder_to_sun4i_lvds() argument
38 return container_of(encoder, struct sun4i_lvds, in drm_encoder_to_sun4i_lvds()
39 encoder); in drm_encoder_to_sun4i_lvds()
44 struct sun4i_lvds *lvds = in sun4i_lvds_get_modes() local
47 return drm_panel_get_modes(lvds->panel, connector); in sun4i_lvds_get_modes()
68 static void sun4i_lvds_encoder_enable(struct drm_encoder *encoder) in sun4i_lvds_encoder_enable() argument
70 struct sun4i_lvds *lvds = drm_encoder_to_sun4i_lvds(encoder); in sun4i_lvds_encoder_enable() local
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
Drockchip_lvds.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Mark Yao <mark.yao@rock-chips.com>
6 * Sandy Huang <hjc@rock-chips.com>
42 container_of(c, struct rockchip_lvds, encoder)
45 * rockchip_lvds_soc_data - rockchip lvds Soc private data
46 * @probe: LVDS platform probe function
47 * @helper_funcs: LVDS connector helper functions
50 int (*probe)(struct platform_device *pdev, struct rockchip_lvds *lvds);
61 int output; /* rgb lvds or dual lvds output */
67 struct drm_encoder encoder; member
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/sun4i/
Dsun4i_lvds.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
21 struct drm_encoder encoder; member
34 drm_encoder_to_sun4i_lvds(struct drm_encoder *encoder) in drm_encoder_to_sun4i_lvds() argument
36 return container_of(encoder, struct sun4i_lvds, in drm_encoder_to_sun4i_lvds()
37 encoder); in drm_encoder_to_sun4i_lvds()
42 struct sun4i_lvds *lvds = in sun4i_lvds_get_modes() local
44 struct sun4i_tcon *tcon = lvds->tcon; in sun4i_lvds_get_modes()
46 return drm_panel_get_modes(tcon->panel); in sun4i_lvds_get_modes()
56 struct sun4i_lvds *lvds = drm_connector_to_sun4i_lvds(connector); in sun4i_lvds_connector_destroy() local
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/rockchip/
Drockchip_lvds.c4 * Mark Yao <mark.yao@rock-chips.com>
5 * Sandy Huang <hjc@rock-chips.com>
45 container_of(c, struct rockchip_lvds, encoder)
48 * rockchip_lvds_soc_data - rockchip lvds Soc private data
49 * @ch1_offset: lvds channel 1 registe offset
50 * grf_soc_con6: general registe offset for LVDS contrl
51 * grf_soc_con7: general registe offset for LVDS contrl
67 int output; /* rgb lvds or dual lvds output */
73 struct drm_encoder encoder; member
77 static inline void lvds_writel(struct rockchip_lvds *lvds, u32 offset, u32 val) in lvds_writel() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/
Drcar_lvds.c1 // SPDX-License-Identifier: GPL-2.0
3 * rcar_lvds.c -- R-Car LVDS Encoder
5 * Copyright (C) 2013-2018 Renesas Electronics Corporation
47 #define RCAR_LVDS_QUIRK_LANES BIT(0) /* LVDS lanes 1 and 3 inverted */
51 #define RCAR_LVDS_QUIRK_DUAL_LINK BIT(4) /* Supports dual-link operation */
56 void (*pll_setup)(struct rcar_lvds *lvds, unsigned int freq);
86 static void rcar_lvds_write(struct rcar_lvds *lvds, u32 reg, u32 data) in rcar_lvds_write() argument
88 iowrite32(data, lvds->mmio + reg); in rcar_lvds_write()
91 /* -----------------------------------------------------------------------------
97 struct rcar_lvds *lvds = connector_to_rcar_lvds(connector); in rcar_lvds_connector_get_modes() local
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/bridge/
Drenesas,lvds.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/display/bridge/renesas,lvds.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas R-Car LVDS Encoder
10 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
13 These DT bindings describe the LVDS encoder embedded in the Renesas R-Car
14 Gen2, R-Car Gen3, RZ/G1 and RZ/G2 SoCs.
19 - renesas,r8a7742-lvds # for RZ/G1H compatible LVDS encoders
20 - renesas,r8a7743-lvds # for RZ/G1M compatible LVDS encoders
[all …]
Dlvds-codec.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/display/bridge/lvds-codec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Transparent LVDS encoders and decoders
10 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
13 This binding supports transparent LVDS encoders and decoders that don't
16 LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple
18 to LVDS panels. This binding targets devices compatible with the following
21 [JEIDA] "Digital Interface Standards for Monitor", JEIDA-59-1999, February
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/
Dcdv_intel_lvds.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2006-2011 Intel Corporation
25 * LVDS I2C backlight control macros
60 struct drm_psb_private *dev_priv = dev->dev_private; in cdv_intel_lvds_get_max_backlight()
70 retval = ((dev_priv->regs.saveBLC_PWM_CTL & in cdv_intel_lvds_get_max_backlight()
84 struct drm_psb_private *dev_priv = dev->dev_private; in cdv_intel_lvds_set_backlight()
95 blc_pwm_ctl = dev_priv->regs.saveBLC_PWM_CTL & in cdv_intel_lvds_set_backlight()
97 dev_priv->regs.saveBLC_PWM_CTL = (blc_pwm_ctl | in cdv_intel_lvds_set_backlight()
106 struct drm_encoder *encoder, bool on) in cdv_intel_lvds_set_power() argument
108 struct drm_psb_private *dev_priv = dev->dev_private; in cdv_intel_lvds_set_power()
[all …]
Dpsb_intel_lvds.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2006-2007 Intel Corporation
23 * LVDS I2C backlight control macros
62 struct drm_psb_private *dev_priv = dev->dev_private; in psb_intel_lvds_get_max_backlight()
69 ret = dev_priv->regs.saveBLC_PWM_CTL; in psb_intel_lvds_get_max_backlight()
77 dev_err(dev->dev, "BL bug: Reg %08x save %08X\n", in psb_intel_lvds_get_max_backlight()
78 REG_READ(BLC_PWM_CTL), dev_priv->regs.saveBLC_PWM_CTL); in psb_intel_lvds_get_max_backlight()
83 * Set LVDS backlight level by I2C command
92 (struct drm_psb_private *)dev->dev_private; in psb_lvds_i2c_set_brightness()
94 struct psb_intel_i2c_chan *lvds_i2c_bus = dev_priv->lvds_i2c_bus; in psb_lvds_i2c_set_brightness()
[all …]
Doaktrail_lvds.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2006-2009 Intel Corporation
14 #include <asm/intel-mid.h>
24 /* The max/min PWM frequency in BPCR[31:17] - */
26 * 15-bit field of the and then*/
27 /* shifts to the left by one bit to get the actual 16-bit
28 * value that the 15-bits correspond to.*/
40 struct drm_psb_private *dev_priv = dev->dev_private; in oaktrail_lvds_set_power()
51 dev_priv->is_lvds_on = true; in oaktrail_lvds_set_power()
52 if (dev_priv->ops->lvds_bl_power) in oaktrail_lvds_set_power()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/gma500/
Dcdv_intel_lvds.c2 * Copyright © 2006-2011 Intel Corporation
15 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
36 * LVDS I2C backlight control macros
71 struct drm_psb_private *dev_priv = dev->dev_private; in cdv_intel_lvds_get_max_backlight()
81 retval = ((dev_priv->regs.saveBLC_PWM_CTL & in cdv_intel_lvds_get_max_backlight()
90 * Set LVDS backlight level by I2C command
95 struct drm_psb_private *dev_priv = dev->dev_private;
96 struct psb_intel_i2c_chan *lvds_i2c_bus = dev_priv->lvds_i2c_bus;
102 .addr = lvds_i2c_bus->slave_addr,
113 if (dev_priv->lvds_bl->pol == BLC_POLARITY_INVERSE)
[all …]
Dpsb_intel_lvds.c2 * Copyright © 2006-2007 Intel Corporation
15 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
34 * LVDS I2C backlight control macros
73 struct drm_psb_private *dev_priv = dev->dev_private; in psb_intel_lvds_get_max_backlight()
80 ret = dev_priv->regs.saveBLC_PWM_CTL; in psb_intel_lvds_get_max_backlight()
88 dev_err(dev->dev, "BL bug: Reg %08x save %08X\n", in psb_intel_lvds_get_max_backlight()
89 REG_READ(BLC_PWM_CTL), dev_priv->regs.saveBLC_PWM_CTL); in psb_intel_lvds_get_max_backlight()
94 * Set LVDS backlight level by I2C command
103 (struct drm_psb_private *)dev->dev_private; in psb_lvds_i2c_set_brightness()
105 struct psb_intel_i2c_chan *lvds_i2c_bus = dev_priv->lvds_i2c_bus; in psb_lvds_i2c_set_brightness()
[all …]
Doaktrail_lvds.c2 * Copyright © 2006-2009 Intel Corporation
15 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
25 #include <asm/intel-mid.h>
34 /* The max/min PWM frequency in BPCR[31:17] - */
36 * 15-bit field of the and then*/
37 /* shifts to the left by one bit to get the actual 16-bit
38 * value that the 15-bits correspond to.*/
50 struct drm_psb_private *dev_priv = dev->dev_private; in oaktrail_lvds_set_power()
61 dev_priv->is_lvds_on = true; in oaktrail_lvds_set_power()
62 if (dev_priv->ops->lvds_bl_power) in oaktrail_lvds_set_power()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/radeon/
Dradeon_legacy_encoders.c2 * Copyright 2007-8 Advanced Micro Devices, Inc.
37 static void radeon_legacy_encoder_disable(struct drm_encoder *encoder) in radeon_legacy_encoder_disable() argument
39 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_legacy_encoder_disable()
42 encoder_funcs = encoder->helper_private; in radeon_legacy_encoder_disable()
43 encoder_funcs->dpms(encoder, DRM_MODE_DPMS_OFF); in radeon_legacy_encoder_disable()
44 radeon_encoder->active_device = 0; in radeon_legacy_encoder_disable()
47 static void radeon_legacy_lvds_update(struct drm_encoder *encoder, int mode) in radeon_legacy_lvds_update() argument
49 struct drm_device *dev = encoder->dev; in radeon_legacy_lvds_update()
50 struct radeon_device *rdev = dev->dev_private; in radeon_legacy_lvds_update()
51 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_legacy_lvds_update()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_legacy_encoders.c2 * Copyright 2007-8 Advanced Micro Devices, Inc.
43 static void radeon_legacy_encoder_disable(struct drm_encoder *encoder) in radeon_legacy_encoder_disable() argument
45 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_legacy_encoder_disable()
48 encoder_funcs = encoder->helper_private; in radeon_legacy_encoder_disable()
49 encoder_funcs->dpms(encoder, DRM_MODE_DPMS_OFF); in radeon_legacy_encoder_disable()
50 radeon_encoder->active_device = 0; in radeon_legacy_encoder_disable()
53 static void radeon_legacy_lvds_update(struct drm_encoder *encoder, int mode) in radeon_legacy_lvds_update() argument
55 struct drm_device *dev = encoder->dev; in radeon_legacy_lvds_update()
56 struct radeon_device *rdev = dev->dev_private; in radeon_legacy_lvds_update()
57 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); in radeon_legacy_lvds_update()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_lvds.c2 * Copyright © 2006-2007 Intel Corporation
49 /* Private structure for the integrated LVDS support */
77 static struct intel_lvds_encoder *to_lvds_encoder(struct drm_encoder *encoder) in to_lvds_encoder() argument
79 return container_of(encoder, struct intel_lvds_encoder, base.base); in to_lvds_encoder()
98 static bool intel_lvds_get_hw_state(struct intel_encoder *encoder, in intel_lvds_get_hw_state() argument
101 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_lvds_get_hw_state()
102 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_lvds_get_hw_state()
107 encoder->power_domain); in intel_lvds_get_hw_state()
111 ret = intel_lvds_port_enabled(dev_priv, lvds_encoder->reg, pipe); in intel_lvds_get_hw_state()
113 intel_display_power_put(dev_priv, encoder->power_domain, wakeref); in intel_lvds_get_hw_state()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/i915/
Dintel_lvds.c2 * Copyright © 2006-2007 Intel Corporation
44 /* Private structure for the integrated LVDS support */
76 static struct intel_lvds_encoder *to_lvds_encoder(struct drm_encoder *encoder) in to_lvds_encoder() argument
78 return container_of(encoder, struct intel_lvds_encoder, base.base); in to_lvds_encoder()
102 static bool intel_lvds_get_hw_state(struct intel_encoder *encoder, in intel_lvds_get_hw_state() argument
105 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_lvds_get_hw_state()
106 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_lvds_get_hw_state()
110 encoder->power_domain)) in intel_lvds_get_hw_state()
113 ret = intel_lvds_port_enabled(dev_priv, lvds_encoder->reg, pipe); in intel_lvds_get_hw_state()
115 intel_display_power_put(dev_priv, encoder->power_domain); in intel_lvds_get_hw_state()
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/display/bridge/
Dlvds-transmitter.txt1 Parallel to LVDS Encoder
2 ------------------------
4 This binding supports the parallel to LVDS encoders that don't require any
7 LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple
9 to LVDS panels. This binding targets devices compatible with the following
12 [JEIDA] "Digital Interface Standards for Monitor", JEIDA-59-1999, February
14 [LDI] "Open LVDS Display Interface", May 1999 (Version 0.95), National
19 Those devices have been marketed under the FPD-Link and FlatLink brand names
25 - compatible: Must be "lvds-encoder"
32 - Video port 0 for parallel input
[all …]
Drenesas,lvds.txt1 Renesas R-Car LVDS Encoder
4 These DT bindings describe the LVDS encoder embedded in the Renesas R-Car
5 Gen2, R-Car Gen3 and RZ/G SoCs.
9 - compatible : Shall contain one of
10 - "renesas,r8a7743-lvds" for R8A7743 (RZ/G1M) compatible LVDS encoders
11 - "renesas,r8a7790-lvds" for R8A7790 (R-Car H2) compatible LVDS encoders
12 - "renesas,r8a7791-lvds" for R8A7791 (R-Car M2-W) compatible LVDS encoders
13 - "renesas,r8a7793-lvds" for R8A7793 (R-Car M2-N) compatible LVDS encoders
14 - "renesas,r8a7795-lvds" for R8A7795 (R-Car H3) compatible LVDS encoders
15 - "renesas,r8a7796-lvds" for R8A7796 (R-Car M3-W) compatible LVDS encoders
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdgpu/
Datombios_encoders.c2 * Copyright 2007-11 Advanced Micro Devices, Inc.
69 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_get_backlight_level()
70 struct amdgpu_device *adev = dev->dev_private; in amdgpu_atombios_encoder_get_backlight_level()
72 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_get_backlight_level()
82 struct drm_encoder *encoder = &amdgpu_encoder->base; in amdgpu_atombios_encoder_set_backlight_level() local
83 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_set_backlight_level()
84 struct amdgpu_device *adev = dev->dev_private; in amdgpu_atombios_encoder_set_backlight_level()
87 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_set_backlight_level()
90 if ((amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) && in amdgpu_atombios_encoder_set_backlight_level()
91 amdgpu_encoder->enc_priv) { in amdgpu_atombios_encoder_set_backlight_level()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Datombios_encoders.c2 * Copyright 2007-11 Advanced Micro Devices, Inc.
72 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_get_backlight_level()
75 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_get_backlight_level()
85 struct drm_encoder *encoder = &amdgpu_encoder->base; in amdgpu_atombios_encoder_set_backlight_level() local
86 struct drm_device *dev = amdgpu_encoder->base.dev; in amdgpu_atombios_encoder_set_backlight_level()
90 if (!(adev->mode_info.firmware_flags & ATOM_BIOS_INFO_BL_CONTROLLED_BY_GPU)) in amdgpu_atombios_encoder_set_backlight_level()
93 if ((amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) && in amdgpu_atombios_encoder_set_backlight_level()
94 amdgpu_encoder->enc_priv) { in amdgpu_atombios_encoder_set_backlight_level()
95 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_set_backlight_level()
96 dig->backlight_level = level; in amdgpu_atombios_encoder_set_backlight_level()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_of.c1 // SPDX-License-Identifier: GPL-2.0-only
27 * drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node
41 if (tmp->port == port) in drm_of_crtc_port_mask()
52 * drm_of_find_possible_crtcs - find the possible CRTCs for an encoder port
54 * @port: encoder port to scan for endpoints
58 * encoder.
85 * drm_of_component_match_add - Add a component helper OF node match rule
103 * drm_of_component_probe - Generic probe function for a component based master
123 if (!dev->of_node) in drm_of_component_probe()
124 return -EINVAL; in drm_of_component_probe()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/rcar-du/
Drcar_lvds.c1 // SPDX-License-Identifier: GPL-2.0
3 * rcar_lvds.c -- R-Car LVDS Encoder
5 * Copyright (C) 2013-2018 Renesas Electronics Corporation
34 #define RCAR_LVDS_QUIRK_LANES (1 << 0) /* LVDS lanes 1 and 3 inverted */
68 static void rcar_lvds_write(struct rcar_lvds *lvds, u32 reg, u32 data) in rcar_lvds_write() argument
70 iowrite32(data, lvds->mmio + reg); in rcar_lvds_write()
73 /* -----------------------------------------------------------------------------
79 struct rcar_lvds *lvds = connector_to_rcar_lvds(connector); in rcar_lvds_connector_get_modes() local
81 return drm_panel_get_modes(lvds->panel); in rcar_lvds_connector_get_modes()
87 struct rcar_lvds *lvds = connector_to_rcar_lvds(connector); in rcar_lvds_connector_atomic_check() local
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_lcdc_encoder.c36 static struct mdp4_kms *get_kms(struct drm_encoder *encoder) in get_kms() argument
38 struct msm_drm_private *priv = encoder->dev->dev_private; in get_kms()
39 return to_mdp4_kms(to_mdp_kms(priv->kms)); in get_kms()
46 struct drm_device *dev = mdp4_lcdc_encoder->base.dev; in bs_init()
47 struct lcdc_platform_data *lcdc_pdata = mdp4_find_pdata("lvds.0"); in bs_init()
50 dev_err(dev->dev, "could not find lvds pdata\n"); in bs_init()
54 if (lcdc_pdata->bus_scale_table) { in bs_init()
55 mdp4_lcdc_encoder->bsc = msm_bus_scale_register_client( in bs_init()
56 lcdc_pdata->bus_scale_table); in bs_init()
57 DBG("lvds : bus scale client: %08x", mdp4_lcdc_encoder->bsc); in bs_init()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_lcdc_encoder.c1 // SPDX-License-Identifier: GPL-2.0-only
27 static struct mdp4_kms *get_kms(struct drm_encoder *encoder) in get_kms() argument
29 struct msm_drm_private *priv = encoder->dev->dev_private; in get_kms()
30 return to_mdp4_kms(to_mdp_kms(priv->kms)); in get_kms()
33 static void mdp4_lcdc_encoder_destroy(struct drm_encoder *encoder) in mdp4_lcdc_encoder_destroy() argument
36 to_mdp4_lcdc_encoder(encoder); in mdp4_lcdc_encoder_destroy()
37 drm_encoder_cleanup(encoder); in mdp4_lcdc_encoder_destroy()
46 static struct drm_connector *get_connector(struct drm_encoder *encoder) in get_connector() argument
48 struct drm_device *dev = encoder->dev; in get_connector()
51 list_for_each_entry(connector, &dev->mode_config.connector_list, head) in get_connector()
[all …]

123456789