| /kernel/linux/linux-6.6/drivers/gpu/drm/rockchip/ |
| D | rk3066_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Zheng Yang <zhengyang@rock-chips.com> 48 struct drm_connector connector; member 67 static struct rk3066_hdmi *connector_to_rk3066_hdmi(struct drm_connector *connector) in connector_to_rk3066_hdmi() argument 69 return container_of(connector, struct rk3066_hdmi, connector); in connector_to_rk3066_hdmi() 72 static inline u8 hdmi_readb(struct rk3066_hdmi *hdmi, u16 offset) in hdmi_readb() argument 74 return readl_relaxed(hdmi->regs + offset); in hdmi_readb() 77 static inline void hdmi_writeb(struct rk3066_hdmi *hdmi, u16 offset, u32 val) in hdmi_writeb() argument 79 writel_relaxed(val, hdmi->regs + offset); in hdmi_writeb() 82 static inline void hdmi_modb(struct rk3066_hdmi *hdmi, u16 offset, in hdmi_modb() argument [all …]
|
| D | inno_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Zheng Yang <zhengyang@rock-chips.com> 5 * Yakir Yang <ykk@rock-chips.com> 12 #include <linux/hdmi.h> 55 struct drm_connector connector; member 74 static struct inno_hdmi *connector_to_inno_hdmi(struct drm_connector *connector) in connector_to_inno_hdmi() argument 76 return container_of(connector, struct inno_hdmi, connector); in connector_to_inno_hdmi() 91 * R = 1.164*Y + 1.596*V - 204 92 * G = 1.164*Y - 0.391*U - 0.813*V + 154 93 * B = 1.164*Y + 2.018*U - 258 [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/ |
| D | rk3066_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Zheng Yang <zhengyang@rock-chips.com> 49 struct drm_connector connector; member 63 static inline u8 hdmi_readb(struct rk3066_hdmi *hdmi, u16 offset) in hdmi_readb() argument 65 return readl_relaxed(hdmi->regs + offset); in hdmi_readb() 68 static inline void hdmi_writeb(struct rk3066_hdmi *hdmi, u16 offset, u32 val) in hdmi_writeb() argument 70 writel_relaxed(val, hdmi->regs + offset); in hdmi_writeb() 73 static inline void hdmi_modb(struct rk3066_hdmi *hdmi, u16 offset, in hdmi_modb() argument 76 u8 temp = hdmi_readb(hdmi, offset) & ~msk; in hdmi_modb() 79 hdmi_writeb(hdmi, offset, temp); in hdmi_modb() [all …]
|
| D | inno_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Zheng Yang <zhengyang@rock-chips.com> 5 * Yakir Yang <ykk@rock-chips.com> 12 #include <linux/hdmi.h> 58 struct drm_connector connector; member 82 * R = 1.164*Y + 1.596*V - 204 83 * G = 1.164*Y - 0.391*U - 0.813*V + 154 84 * B = 1.164*Y + 2.018*U - 258 93 * R = Y + 1.402*V - 248 94 * G = Y - 0.344*U - 0.714*V + 135 [all …]
|
| /kernel/linux/linux-5.10/drivers/media/cec/platform/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 14 The CEC bus is present in the HDMI connector and enables communication 25 CEC bus is present in the HDMI connector and enables communication 37 This driver if for the new AO-CEC module found in G12A SoCs, 40 CEC bus is present in the HDMI connector and enables communication 44 tristate "Generic GPIO-based CEC driver" 51 This is a generic GPIO-based CEC driver. 52 The CEC bus is present in the HDMI connector and enables communication 61 This is a driver for Samsung S5P HDMI CEC interface. It uses the 63 CEC bus is present in the HDMI connector and enables communication [all …]
|
| /kernel/linux/linux-6.6/drivers/media/cec/platform/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 14 The CEC bus is present in the HDMI connector and enables communication 25 CEC bus is present in the HDMI connector and enables communication 37 This driver if for the new AO-CEC module found in G12A SoCs, 40 CEC bus is present in the HDMI connector and enables communication 44 tristate "Generic GPIO-based CEC driver" 51 This is a generic GPIO-based CEC driver. 52 The CEC bus is present in the HDMI connector and enables communication 61 This is a driver for Samsung S5P HDMI CEC interface. It uses the 63 CEC bus is present in the HDMI connector and enables communication [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/zte/ |
| D | zx_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/hdmi.h> 25 #include <sound/hdmi-codec.h> 39 struct drm_connector connector; member 55 static inline u8 hdmi_readb(struct zx_hdmi *hdmi, u16 offset) in hdmi_readb() argument 57 return readl_relaxed(hdmi->mmio + offset * 4); in hdmi_readb() 60 static inline void hdmi_writeb(struct zx_hdmi *hdmi, u16 offset, u8 val) in hdmi_writeb() argument 62 writel_relaxed(val, hdmi->mmio + offset * 4); in hdmi_writeb() 65 static inline void hdmi_writeb_mask(struct zx_hdmi *hdmi, u16 offset, in hdmi_writeb_mask() argument 70 tmp = hdmi_readb(hdmi, offset); in hdmi_writeb_mask() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/sti/ |
| D | sti_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/hdmi.h> 26 #include <sound/hdmi-codec.h> 96 #define HDMI_IFRAME_CFG_DI_N(x, n) ((x) << ((n-1)*4)) /* n from 1 to 6 */ 164 struct sti_hdmi *hdmi; member 177 u32 hdmi_read(struct sti_hdmi *hdmi, int offset) in hdmi_read() argument 179 return readl(hdmi->regs + offset); in hdmi_read() 182 void hdmi_write(struct sti_hdmi *hdmi, u32 val, int offset) in hdmi_write() argument 184 writel(val, hdmi->regs + offset); in hdmi_write() 188 * HDMI interrupt handler threaded [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/loongson/ |
| D | lsdc_output_7a2000.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 * Display pipe 0 is attached with a built-in transparent VGA encoder and 19 * a built-in HDMI encoder. 20 * Display pipe 1 has only one built-in HDMI encoder connected. 22 * | +-----+ | | | 23 * | CRTC0 -+--> | VGA | ----> VGA Connector ---> | VGA Monitor |<---+ 24 * | | +-----+ | |_____________| | 26 * | | +------+ | | | | 27 * | +--> | HDMI | ----> HDMI Connector --> | HDMI Monitor |<--+ 28 * | +------+ | |______________| | [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
| D | sun4i_hdmi_enc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Maxime Ripard <maxime.ripard@free-electrons.com> 41 drm_connector_to_sun4i_hdmi(struct drm_connector *connector) in drm_connector_to_sun4i_hdmi() argument 43 return container_of(connector, struct sun4i_hdmi, in drm_connector_to_sun4i_hdmi() 44 connector); in drm_connector_to_sun4i_hdmi() 47 static int sun4i_hdmi_setup_avi_infoframes(struct sun4i_hdmi *hdmi, in sun4i_hdmi_setup_avi_infoframes() argument 55 &hdmi->connector, mode); in sun4i_hdmi_setup_avi_infoframes() 68 writeb(buffer[i], hdmi->base + SUN4I_HDMI_AVI_INFOFRAME_REG(i)); in sun4i_hdmi_setup_avi_infoframes() 77 struct drm_display_mode *mode = &crtc_state->mode; in sun4i_hdmi_atomic_check() 79 if (mode->flags & DRM_MODE_FLAG_DBLCLK) in sun4i_hdmi_atomic_check() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/sti/ |
| D | sti_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/hdmi.h> 25 #include <sound/hdmi-codec.h> 95 #define HDMI_IFRAME_CFG_DI_N(x, n) ((x) << ((n-1)*4)) /* n from 1 to 6 */ 163 struct sti_hdmi *hdmi; member 170 u32 hdmi_read(struct sti_hdmi *hdmi, int offset) in hdmi_read() argument 172 return readl(hdmi->regs + offset); in hdmi_read() 175 void hdmi_write(struct sti_hdmi *hdmi, u32 val, int offset) in hdmi_write() argument 177 writel(val, hdmi->regs + offset); in hdmi_write() 181 * HDMI interrupt handler threaded [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/display/connector/ |
| D | hdmi-connector.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/display/connector/hdmi-connector.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: HDMI Connector 10 - Laurent Pinchart <Laurent.pinchart@ideasonboard.com> 14 const: hdmi-connector 17 description: The HDMI connector type 19 - a # Standard full size 20 - b # Never deployed? [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
| D | sun4i_hdmi_enc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Maxime Ripard <maxime.ripard@free-electrons.com> 40 drm_connector_to_sun4i_hdmi(struct drm_connector *connector) in drm_connector_to_sun4i_hdmi() argument 42 return container_of(connector, struct sun4i_hdmi, in drm_connector_to_sun4i_hdmi() 43 connector); in drm_connector_to_sun4i_hdmi() 46 static int sun4i_hdmi_setup_avi_infoframes(struct sun4i_hdmi *hdmi, in sun4i_hdmi_setup_avi_infoframes() argument 54 &hdmi->connector, mode); in sun4i_hdmi_setup_avi_infoframes() 67 writeb(buffer[i], hdmi->base + SUN4I_HDMI_AVI_INFOFRAME_REG(i)); in sun4i_hdmi_setup_avi_infoframes() 76 struct drm_display_mode *mode = &crtc_state->mode; in sun4i_hdmi_atomic_check() 78 if (mode->flags & DRM_MODE_FLAG_DBLCLK) in sun4i_hdmi_atomic_check() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/connector/ |
| D | hdmi-connector.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/display/connector/hdmi-connector.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: HDMI Connector 10 - Laurent Pinchart <Laurent.pinchart@ideasonboard.com> 14 const: hdmi-connector 17 description: The HDMI connector type 19 - a # Standard full size 20 - b # Never deployed? [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
| D | intel_hdmi.c | 3 * Copyright © 2006-2009 Intel Corporation 30 #include <linux/hdmi.h> 64 return to_i915(hdmi_to_dig_port(intel_hdmi)->base.base.dev); in intel_hdmi_to_i915() 75 drm_WARN(&dev_priv->drm, in assert_hdmi_port_disabled() 76 intel_de_read(dev_priv, intel_hdmi->hdmi_reg) & enabled_bits, in assert_hdmi_port_disabled() 77 "HDMI port enabled, expecting disabled\n"); in assert_hdmi_port_disabled() 84 drm_WARN(&dev_priv->drm, in assert_hdmi_transcoder_func_disabled() 87 "HDMI transcoder function enabled, expecting disabled\n"); in assert_hdmi_transcoder_func_disabled() 206 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in g4x_write_infoframe() 210 drm_WARN(&dev_priv->drm, !(val & VIDEO_DIP_ENABLE), in g4x_write_infoframe() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/meson/ |
| D | meson_encoder_hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include <media/cec-notifier.h> 29 #include <linux/media-bus-format.h> 42 struct drm_connector *connector; member 56 return drm_bridge_attach(bridge->encoder, encoder_hdmi->next_bridge, in meson_encoder_hdmi_attach() 57 &encoder_hdmi->bridge, flags); in meson_encoder_hdmi_attach() 64 cec_notifier_conn_unregister(encoder_hdmi->cec_notifier); in meson_encoder_hdmi_detach() 65 encoder_hdmi->cec_notifier = NULL; in meson_encoder_hdmi_detach() 71 struct meson_drm *priv = encoder_hdmi->priv; in meson_encoder_hdmi_set_vclk() 78 vclk_freq = mode->clock * 1000ULL; in meson_encoder_hdmi_set_vclk() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/bridge/synopsys/ |
| D | dw-hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * DesignWare High-Definition Multimedia Interface (HDMI) driver 5 * Copyright (C) 2013-2015 Mentor Graphics Inc. 6 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. 12 #include <linux/hdmi.h> 19 #include <linux/dma-mapping.h> 22 #include <media/cec-notifier.h> 24 #include <uapi/linux/media-bus-format.h> 37 #include "dw-hdmi-audio.h" 38 #include "dw-hdmi-cec.h" [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
| D | intel_hdmi.c | 3 * Copyright © 2006-2009 Intel Corporation 30 #include <linux/hdmi.h> 62 return hdmi_to_dig_port(intel_hdmi)->base.base.dev; in intel_hdmi_to_dev() 75 intel_de_read(dev_priv, intel_hdmi->hdmi_reg) & enabled_bits, in assert_hdmi_port_disabled() 76 "HDMI port enabled, expecting disabled\n"); in assert_hdmi_port_disabled() 83 drm_WARN(&dev_priv->drm, in assert_hdmi_transcoder_func_disabled() 86 "HDMI transcoder function enabled, expecting disabled\n"); in assert_hdmi_transcoder_func_disabled() 92 container_of(&encoder->base, struct intel_digital_port, in enc_to_intel_hdmi() 94 return &dig_port->hdmi; in enc_to_intel_hdmi() 97 static struct intel_hdmi *intel_attached_hdmi(struct intel_connector *connector) in intel_attached_hdmi() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/bridge/synopsys/ |
| D | dw-hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * DesignWare High-Definition Multimedia Interface (HDMI) driver 5 * Copyright (C) 2013-2015 Mentor Graphics Inc. 6 * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. 12 #include <linux/hdmi.h> 20 #include <linux/dma-mapping.h> 23 #include <media/cec-notifier.h> 25 #include <uapi/linux/media-bus-format.h> 38 #include "dw-hdmi-audio.h" 39 #include "dw-hdmi-cec.h" [all …]
|
| /kernel/linux/linux-6.6/include/media/ |
| D | cec-notifier.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * cec-notifier.h - notify CEC drivers of physical address changes 6 * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved. 23 * cec_notifier_conn_register - find or create a new cec_notifier for the given 24 * HDMI device and connector tuple. 25 * @hdmi_dev: HDMI device that sends the events. 26 * @port_name: the connector name from which the event occurs. May be NULL 27 * if there is always only one HDMI connector created by the HDMI device. 28 * @conn_info: the connector info from which the event occurs (may be NULL) 30 * If a notifier for device @dev and connector @port_name already exists, then [all …]
|
| /kernel/linux/linux-5.10/include/media/ |
| D | cec-notifier.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * cec-notifier.h - notify CEC drivers of physical address changes 6 * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved. 23 * cec_notifier_conn_register - find or create a new cec_notifier for the given 24 * HDMI device and connector tuple. 25 * @hdmi_dev: HDMI device that sends the events. 26 * @port_name: the connector name from which the event occurs. May be NULL 27 * if there is always only one HDMI connector created by the HDMI device. 28 * @conn_info: the connector info from which the event occurs (may be NULL) 30 * If a notifier for device @dev and connector @port_name already exists, then [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/msm/hdmi/ |
| D | hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <sound/hdmi-codec.h> 14 #include "hdmi.h" 16 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on) in msm_hdmi_set_mode() argument 21 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 24 if (!hdmi->hdmi_mode) { in msm_hdmi_set_mode() 26 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 35 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 36 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 37 DBG("HDMI Core: %s, HDMI_CTRL=0x%08x", in msm_hdmi_set_mode() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
| D | hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/hdmi.h> 21 #include <sound/hdmi-codec.h> 33 #include "hdmi.h" 66 struct regulator *hdmi; member 112 static inline u32 tegra_hdmi_readl(struct tegra_hdmi *hdmi, in tegra_hdmi_readl() argument 115 u32 value = readl(hdmi->regs + (offset << 2)); in tegra_hdmi_readl() 117 trace_hdmi_readl(hdmi->dev, offset, value); in tegra_hdmi_readl() 122 static inline void tegra_hdmi_writel(struct tegra_hdmi *hdmi, u32 value, in tegra_hdmi_writel() argument 125 trace_hdmi_writel(hdmi->dev, offset, value); in tegra_hdmi_writel() [all …]
|
| /kernel/linux/linux-6.6/include/drm/ |
| D | drm_connector.h | 29 #include <linux/hdmi.h> 54 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */ 58 * enum drm_connector_status - status for a &drm_connector 60 * This enum is used to track the connector status. There are no separate 65 * @connector_status_connected: The connector is definitely connected to 70 * @connector_status_disconnected: The connector isn't connected to a 72 * HDMI (which can be realiable probed) this means there's really 73 * nothing there. It is driver-dependent whether a connector with this 78 * @connector_status_unknown: The connector's status could not be 80 * flicker (like load-detection when the connector is in use), or when a [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/msm/hdmi/ |
| D | hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #include <sound/hdmi-codec.h> 17 #include "hdmi.h" 19 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on) in msm_hdmi_set_mode() argument 24 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 27 if (!hdmi->hdmi_mode) { in msm_hdmi_set_mode() 29 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 38 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode() 39 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_set_mode() 40 DBG("HDMI Core: %s, HDMI_CTRL=0x%08x", in msm_hdmi_set_mode() [all …]
|