Home
last modified time | relevance | path

Searched refs:hdmi (Results 1 – 25 of 487) sorted by relevance

12345678910>>...20

/Linux-v4.19/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi.c125 int (*configure)(struct dw_hdmi *hdmi,
182 void (*enable_audio)(struct dw_hdmi *hdmi);
183 void (*disable_audio)(struct dw_hdmi *hdmi);
196 static inline void hdmi_writeb(struct dw_hdmi *hdmi, u8 val, int offset) in hdmi_writeb() argument
198 regmap_write(hdmi->regm, offset << hdmi->reg_shift, val); in hdmi_writeb()
201 static inline u8 hdmi_readb(struct dw_hdmi *hdmi, int offset) in hdmi_readb() argument
205 regmap_read(hdmi->regm, offset << hdmi->reg_shift, &val); in hdmi_readb()
210 static void hdmi_modb(struct dw_hdmi *hdmi, u8 data, u8 mask, unsigned reg) in hdmi_modb() argument
212 regmap_update_bits(hdmi->regm, reg << hdmi->reg_shift, mask, data); in hdmi_modb()
215 static void hdmi_mask_writeb(struct dw_hdmi *hdmi, u8 data, unsigned int reg, in hdmi_mask_writeb() argument
[all …]
/Linux-v4.19/drivers/gpu/drm/sun4i/
Dsun4i_hdmi_i2c.c29 static int fifo_transfer(struct sun4i_hdmi *hdmi, u8 *buf, int len, bool read) in fifo_transfer() argument
45 (hdmi->variant->ddc_fifo_thres_incl ? 0 : 1); in fifo_transfer()
54 if (regmap_field_read_poll_timeout(hdmi->field_ddc_int_status, reg, in fifo_transfer()
63 readsb(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer()
65 writesb(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer()
68 regmap_field_force_write(hdmi->field_ddc_int_status, in fifo_transfer()
74 static int xfer_msg(struct sun4i_hdmi *hdmi, struct i2c_msg *msg) in xfer_msg() argument
80 if (hdmi->variant->ddc_fifo_has_dir) { in xfer_msg()
81 reg = readl(hdmi->base + SUN4I_HDMI_DDC_CTRL_REG); in xfer_msg()
86 writel(reg, hdmi->base + SUN4I_HDMI_DDC_CTRL_REG); in xfer_msg()
[all …]
Dsun4i_hdmi_enc.c48 static int sun4i_hdmi_setup_avi_infoframes(struct sun4i_hdmi *hdmi, in sun4i_hdmi_setup_avi_infoframes() argument
68 writeb(buffer[i], hdmi->base + SUN4I_HDMI_AVI_INFOFRAME_REG(i)); in sun4i_hdmi_setup_avi_infoframes()
87 struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); in sun4i_hdmi_disable() local
92 val = readl(hdmi->base + SUN4I_HDMI_VID_CTRL_REG); in sun4i_hdmi_disable()
94 writel(val, hdmi->base + SUN4I_HDMI_VID_CTRL_REG); in sun4i_hdmi_disable()
100 struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder); in sun4i_hdmi_enable() local
105 sun4i_hdmi_setup_avi_infoframes(hdmi, mode); in sun4i_hdmi_enable()
108 writel(val, hdmi->base + SUN4I_HDMI_PKT_CTRL_REG(0)); in sun4i_hdmi_enable()
111 if (hdmi->hdmi_monitor) in sun4i_hdmi_enable()
114 writel(val, hdmi->base + SUN4I_HDMI_VID_CTRL_REG); in sun4i_hdmi_enable()
[all …]
Dsun8i_dw_hdmi.c21 struct sun8i_dw_hdmi *hdmi = encoder_to_sun8i_dw_hdmi(encoder); in sun8i_dw_hdmi_encoder_mode_set() local
23 clk_set_rate(hdmi->clk_tmds, mode->crtc_clock * 1000); in sun8i_dw_hdmi_encoder_mode_set()
91 struct sun8i_dw_hdmi *hdmi; in sun8i_dw_hdmi_bind() local
97 hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); in sun8i_dw_hdmi_bind()
98 if (!hdmi) in sun8i_dw_hdmi_bind()
101 plat_data = &hdmi->plat_data; in sun8i_dw_hdmi_bind()
102 hdmi->dev = &pdev->dev; in sun8i_dw_hdmi_bind()
103 encoder = &hdmi->encoder; in sun8i_dw_hdmi_bind()
116 hdmi->rst_ctrl = devm_reset_control_get(dev, "ctrl"); in sun8i_dw_hdmi_bind()
117 if (IS_ERR(hdmi->rst_ctrl)) { in sun8i_dw_hdmi_bind()
[all …]
/Linux-v4.19/drivers/gpu/drm/zte/
Dzx_hdmi.c58 static inline u8 hdmi_readb(struct zx_hdmi *hdmi, u16 offset) in hdmi_readb() argument
60 return readl_relaxed(hdmi->mmio + offset * 4); in hdmi_readb()
63 static inline void hdmi_writeb(struct zx_hdmi *hdmi, u16 offset, u8 val) in hdmi_writeb() argument
65 writel_relaxed(val, hdmi->mmio + offset * 4); in hdmi_writeb()
68 static inline void hdmi_writeb_mask(struct zx_hdmi *hdmi, u16 offset, in hdmi_writeb_mask() argument
73 tmp = hdmi_readb(hdmi, offset); in hdmi_writeb_mask()
75 hdmi_writeb(hdmi, offset, tmp); in hdmi_writeb_mask()
78 static int zx_hdmi_infoframe_trans(struct zx_hdmi *hdmi, in zx_hdmi_infoframe_trans() argument
85 hdmi_writeb(hdmi, TPI_INFO_FSEL, fsel); in zx_hdmi_infoframe_trans()
89 DRM_DEV_ERROR(hdmi->dev, "failed to pack infoframe: %d\n", num); in zx_hdmi_infoframe_trans()
[all …]
/Linux-v4.19/drivers/gpu/drm/omapdrm/dss/
Dhdmi5.c49 static int hdmi_runtime_get(struct omap_hdmi *hdmi) in hdmi_runtime_get() argument
55 r = pm_runtime_get_sync(&hdmi->pdev->dev); in hdmi_runtime_get()
63 static void hdmi_runtime_put(struct omap_hdmi *hdmi) in hdmi_runtime_put() argument
69 r = pm_runtime_put_sync(&hdmi->pdev->dev); in hdmi_runtime_put()
75 struct omap_hdmi *hdmi = data; in hdmi_irq_handler() local
76 struct hdmi_wp_data *wp = &hdmi->wp; in hdmi_irq_handler()
99 v = hdmi_read_reg(hdmi->phy.base, HDMI_TXPHY_PAD_CFG_CTRL); in hdmi_irq_handler()
102 hdmi_write_reg(hdmi->phy.base, HDMI_TXPHY_PAD_CFG_CTRL, v); in hdmi_irq_handler()
109 REG_FLD_MOD(hdmi->phy.base, HDMI_TXPHY_PAD_CFG_CTRL, 0, 15, 15); in hdmi_irq_handler()
120 static int hdmi_init_regulator(struct omap_hdmi *hdmi) in hdmi_init_regulator() argument
[all …]
Dhdmi4.c48 static int hdmi_runtime_get(struct omap_hdmi *hdmi) in hdmi_runtime_get() argument
54 r = pm_runtime_get_sync(&hdmi->pdev->dev); in hdmi_runtime_get()
62 static void hdmi_runtime_put(struct omap_hdmi *hdmi) in hdmi_runtime_put() argument
68 r = pm_runtime_put_sync(&hdmi->pdev->dev); in hdmi_runtime_put()
74 struct omap_hdmi *hdmi = data; in hdmi_irq_handler() local
75 struct hdmi_wp_data *wp = &hdmi->wp; in hdmi_irq_handler()
101 u32 intr4 = hdmi_read_reg(hdmi->core.base, HDMI_CORE_SYS_INTR4); in hdmi_irq_handler()
103 hdmi_write_reg(hdmi->core.base, HDMI_CORE_SYS_INTR4, intr4); in hdmi_irq_handler()
105 hdmi4_cec_irq(&hdmi->core); in hdmi_irq_handler()
111 static int hdmi_init_regulator(struct omap_hdmi *hdmi) in hdmi_init_regulator() argument
[all …]
/Linux-v4.19/drivers/gpu/drm/mediatek/
Dmtk_hdmi.c187 static u32 mtk_hdmi_read(struct mtk_hdmi *hdmi, u32 offset) in mtk_hdmi_read() argument
189 return readl(hdmi->regs + offset); in mtk_hdmi_read()
192 static void mtk_hdmi_write(struct mtk_hdmi *hdmi, u32 offset, u32 val) in mtk_hdmi_write() argument
194 writel(val, hdmi->regs + offset); in mtk_hdmi_write()
197 static void mtk_hdmi_clear_bits(struct mtk_hdmi *hdmi, u32 offset, u32 bits) in mtk_hdmi_clear_bits() argument
199 void __iomem *reg = hdmi->regs + offset; in mtk_hdmi_clear_bits()
207 static void mtk_hdmi_set_bits(struct mtk_hdmi *hdmi, u32 offset, u32 bits) in mtk_hdmi_set_bits() argument
209 void __iomem *reg = hdmi->regs + offset; in mtk_hdmi_set_bits()
217 static void mtk_hdmi_mask(struct mtk_hdmi *hdmi, u32 offset, u32 val, u32 mask) in mtk_hdmi_mask() argument
219 void __iomem *reg = hdmi->regs + offset; in mtk_hdmi_mask()
[all …]
/Linux-v4.19/drivers/gpu/drm/rockchip/
Dinno_hdmi.c157 static inline u8 hdmi_readb(struct inno_hdmi *hdmi, u16 offset) in hdmi_readb() argument
159 return readl_relaxed(hdmi->regs + (offset) * 0x04); in hdmi_readb()
162 static inline void hdmi_writeb(struct inno_hdmi *hdmi, u16 offset, u32 val) in hdmi_writeb() argument
164 writel_relaxed(val, hdmi->regs + (offset) * 0x04); in hdmi_writeb()
167 static inline void hdmi_modb(struct inno_hdmi *hdmi, u16 offset, in hdmi_modb() argument
170 u8 temp = hdmi_readb(hdmi, offset) & ~msk; in hdmi_modb()
173 hdmi_writeb(hdmi, offset, temp); in hdmi_modb()
176 static void inno_hdmi_i2c_init(struct inno_hdmi *hdmi) in inno_hdmi_i2c_init() argument
180 ddc_bus_freq = (hdmi->tmds_rate >> 2) / HDMI_SCL_RATE; in inno_hdmi_i2c_init()
182 hdmi_writeb(hdmi, DDC_BUS_FREQ_L, ddc_bus_freq & 0xFF); in inno_hdmi_i2c_init()
[all …]
Ddw_hdmi-rockchip.c51 struct dw_hdmi *hdmi; member
165 static int rockchip_hdmi_parse_dt(struct rockchip_hdmi *hdmi) in rockchip_hdmi_parse_dt() argument
167 struct device_node *np = hdmi->dev->of_node; in rockchip_hdmi_parse_dt()
169 hdmi->regmap = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_hdmi_parse_dt()
170 if (IS_ERR(hdmi->regmap)) { in rockchip_hdmi_parse_dt()
171 DRM_DEV_ERROR(hdmi->dev, "Unable to get rockchip,grf\n"); in rockchip_hdmi_parse_dt()
172 return PTR_ERR(hdmi->regmap); in rockchip_hdmi_parse_dt()
175 hdmi->vpll_clk = devm_clk_get(hdmi->dev, "vpll"); in rockchip_hdmi_parse_dt()
176 if (PTR_ERR(hdmi->vpll_clk) == -ENOENT) { in rockchip_hdmi_parse_dt()
177 hdmi->vpll_clk = NULL; in rockchip_hdmi_parse_dt()
[all …]
/Linux-v4.19/drivers/gpu/drm/msm/hdmi/
Dhdmi.c25 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on) in msm_hdmi_set_mode() argument
30 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_set_mode()
33 if (!hdmi->hdmi_mode) { in msm_hdmi_set_mode()
35 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode()
44 hdmi_write(hdmi, REG_HDMI_CTRL, ctrl); in msm_hdmi_set_mode()
45 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_set_mode()
52 struct hdmi *hdmi = dev_id; in msm_hdmi_irq() local
55 msm_hdmi_connector_irq(hdmi->connector); in msm_hdmi_irq()
58 msm_hdmi_i2c_irq(hdmi->i2c); in msm_hdmi_irq()
61 if (hdmi->hdcp_ctrl) in msm_hdmi_irq()
[all …]
Dhdmi_bridge.c22 struct hdmi *hdmi; member
34 struct hdmi *hdmi = hdmi_bridge->hdmi; in msm_hdmi_power_on() local
35 const struct hdmi_platform_config *config = hdmi->config; in msm_hdmi_power_on()
38 pm_runtime_get_sync(&hdmi->pdev->dev); in msm_hdmi_power_on()
41 ret = regulator_enable(hdmi->pwr_regs[i]); in msm_hdmi_power_on()
49 DBG("pixclock: %lu", hdmi->pixclock); in msm_hdmi_power_on()
50 ret = clk_set_rate(hdmi->pwr_clks[0], hdmi->pixclock); in msm_hdmi_power_on()
58 ret = clk_prepare_enable(hdmi->pwr_clks[i]); in msm_hdmi_power_on()
70 struct hdmi *hdmi = hdmi_bridge->hdmi; in power_off() local
71 const struct hdmi_platform_config *config = hdmi->config; in power_off()
[all …]
Dhdmi_connector.c26 struct hdmi *hdmi; member
31 static void msm_hdmi_phy_reset(struct hdmi *hdmi) in msm_hdmi_phy_reset() argument
35 val = hdmi_read(hdmi, REG_HDMI_PHY_CTRL); in msm_hdmi_phy_reset()
39 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset()
43 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset()
49 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset()
53 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset()
61 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset()
65 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset()
71 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in msm_hdmi_phy_reset()
[all …]
Dhdmi_hdcp.c58 struct hdmi *hdmi; member
87 static int msm_hdmi_ddc_read(struct hdmi *hdmi, u16 addr, u8 offset, in msm_hdmi_ddc_read() argument
108 rc = i2c_transfer(hdmi->i2c, msgs, 2); in msm_hdmi_ddc_read()
125 static int msm_hdmi_ddc_write(struct hdmi *hdmi, u16 addr, u8 offset, in msm_hdmi_ddc_write() argument
150 rc = i2c_transfer(hdmi->i2c, msgs, 1); in msm_hdmi_ddc_write()
168 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_scm_wr() local
176 phy_addr = (u32)hdmi->mmio_phy_addr; in msm_hdmi_hdcp_scm_wr()
199 hdmi_write(hdmi, preg[i], pdata[i]); in msm_hdmi_hdcp_scm_wr()
207 struct hdmi *hdmi = hdcp_ctrl->hdmi; in msm_hdmi_hdcp_irq() local
211 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_irq()
[all …]
Dhdmi_i2c.c22 struct hdmi *hdmi; member
30 struct hdmi *hdmi = hdmi_i2c->hdmi; in init_ddc() local
32 hdmi_write(hdmi, REG_HDMI_DDC_CTRL, in init_ddc()
34 hdmi_write(hdmi, REG_HDMI_DDC_CTRL, in init_ddc()
37 hdmi_write(hdmi, REG_HDMI_DDC_SPEED, in init_ddc()
41 hdmi_write(hdmi, REG_HDMI_DDC_SETUP, in init_ddc()
45 hdmi_write(hdmi, REG_HDMI_DDC_REF, in init_ddc()
52 struct hdmi *hdmi = hdmi_i2c->hdmi; in ddc_clear_irq() local
53 struct drm_device *dev = hdmi->dev; in ddc_clear_irq()
60 hdmi_write(hdmi, REG_HDMI_DDC_INT_CTRL, in ddc_clear_irq()
[all …]
Dhdmi.h50 struct hdmi { struct
126 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on);
128 static inline void hdmi_write(struct hdmi *hdmi, u32 reg, u32 data) in hdmi_write() argument
130 msm_writel(data, hdmi->mmio + reg); in hdmi_write()
133 static inline u32 hdmi_read(struct hdmi *hdmi, u32 reg) in hdmi_read() argument
135 return msm_readl(hdmi->mmio + reg); in hdmi_read()
138 static inline u32 hdmi_qfprom_read(struct hdmi *hdmi, u32 reg) in hdmi_qfprom_read() argument
140 return msm_readl(hdmi->qfprom_mmio + reg); in hdmi_qfprom_read()
228 int msm_hdmi_audio_update(struct hdmi *hdmi);
229 int msm_hdmi_audio_info_setup(struct hdmi *hdmi, bool enabled,
[all …]
Dhdmi_audio.c85 int msm_hdmi_audio_update(struct hdmi *hdmi) in msm_hdmi_audio_update() argument
87 struct hdmi_audio *audio = &hdmi->audio; in msm_hdmi_audio_update()
98 DBG("video: power_on=%d, pixclock=%lu", hdmi->power_on, hdmi->pixclock); in msm_hdmi_audio_update()
100 if (enabled && !(hdmi->power_on && hdmi->pixclock)) { in msm_hdmi_audio_update()
106 arcs = get_arcs(hdmi->pixclock); in msm_hdmi_audio_update()
109 hdmi->pixclock); in msm_hdmi_audio_update()
115 acr_pkt_ctrl = hdmi_read(hdmi, REG_HDMI_ACR_PKT_CTRL); in msm_hdmi_audio_update()
116 vbi_pkt_ctrl = hdmi_read(hdmi, REG_HDMI_VBI_PKT_CTRL); in msm_hdmi_audio_update()
117 aud_pkt_ctrl = hdmi_read(hdmi, REG_HDMI_AUDIO_PKT_CTRL1); in msm_hdmi_audio_update()
118 infofrm_ctrl = hdmi_read(hdmi, REG_HDMI_INFOFRAME_CTRL0); in msm_hdmi_audio_update()
[all …]
/Linux-v4.19/drivers/gpu/drm/sti/
Dsti_hdmi.c159 struct sti_hdmi *hdmi; member
166 u32 hdmi_read(struct sti_hdmi *hdmi, int offset) in hdmi_read() argument
168 return readl(hdmi->regs + offset); in hdmi_read()
171 void hdmi_write(struct sti_hdmi *hdmi, u32 val, int offset) in hdmi_write() argument
173 writel(val, hdmi->regs + offset); in hdmi_write()
184 struct sti_hdmi *hdmi = arg; in hdmi_irq_thread() local
187 if (hdmi->irq_status & HDMI_INT_HOT_PLUG) { in hdmi_irq_thread()
188 hdmi->hpd = readl(hdmi->regs + HDMI_STA) & HDMI_STA_HOT_PLUG; in hdmi_irq_thread()
189 if (hdmi->drm_dev) in hdmi_irq_thread()
190 drm_helper_hpd_irq_event(hdmi->drm_dev); in hdmi_irq_thread()
[all …]
/Linux-v4.19/drivers/gpu/drm/tegra/
Dhdmi.c60 struct regulator *hdmi; member
104 static inline u32 tegra_hdmi_readl(struct tegra_hdmi *hdmi, in tegra_hdmi_readl() argument
107 u32 value = readl(hdmi->regs + (offset << 2)); in tegra_hdmi_readl()
109 trace_hdmi_readl(hdmi->dev, offset, value); in tegra_hdmi_readl()
114 static inline void tegra_hdmi_writel(struct tegra_hdmi *hdmi, u32 value, in tegra_hdmi_writel() argument
117 trace_hdmi_writel(hdmi->dev, offset, value); in tegra_hdmi_writel()
118 writel(value, hdmi->regs + (offset << 2)); in tegra_hdmi_writel()
469 static void tegra_hdmi_setup_audio_fs_tables(struct tegra_hdmi *hdmi) in tegra_hdmi_setup_audio_fs_tables() argument
492 tegra_hdmi_writel(hdmi, value, HDMI_NV_PDISP_AUDIO_FS(i)); in tegra_hdmi_setup_audio_fs_tables()
496 static void tegra_hdmi_write_aval(struct tegra_hdmi *hdmi, u32 value) in tegra_hdmi_write_aval() argument
[all …]
/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/dss/
Dhdmi5.c48 static struct omap_hdmi hdmi; variable
56 r = pm_runtime_get_sync(&hdmi.pdev->dev); in hdmi_runtime_get()
70 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put()
99 v = hdmi_read_reg(hdmi.phy.base, HDMI_TXPHY_PAD_CFG_CTRL); in hdmi_irq_handler()
102 hdmi_write_reg(hdmi.phy.base, HDMI_TXPHY_PAD_CFG_CTRL, v); in hdmi_irq_handler()
109 REG_FLD_MOD(hdmi.phy.base, HDMI_TXPHY_PAD_CFG_CTRL, 0, 15, 15); in hdmi_irq_handler()
124 if (hdmi.vdda_reg != NULL) in hdmi_init_regulator()
127 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda"); in hdmi_init_regulator()
133 hdmi.vdda_reg = reg; in hdmi_init_regulator()
142 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core()
[all …]
Dhdmi4.c44 static struct omap_hdmi hdmi; variable
52 r = pm_runtime_get_sync(&hdmi.pdev->dev); in hdmi_runtime_get()
66 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put()
105 if (hdmi.vdda_reg != NULL) in hdmi_init_regulator()
108 reg = devm_regulator_get(&hdmi.pdev->dev, "vdda"); in hdmi_init_regulator()
116 hdmi.vdda_reg = reg; in hdmi_init_regulator()
125 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core()
136 hdmi.core_enabled = true; in hdmi_power_on_core()
141 regulator_disable(hdmi.vdda_reg); in hdmi_power_on_core()
148 hdmi.core_enabled = false; in hdmi_power_off_core()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dhdmigv100.c33 const u32 hdmi = head * 0x400; in gv100_hdmi_ctrl() local
42 nvkm_mask(device, 0x6f0100 + hdmi, 0x00000001, 0x00000000); in gv100_hdmi_ctrl()
43 nvkm_mask(device, 0x6f00c0 + hdmi, 0x00000001, 0x00000000); in gv100_hdmi_ctrl()
44 nvkm_mask(device, 0x6f0000 + hdmi, 0x00000001, 0x00000000); in gv100_hdmi_ctrl()
49 nvkm_mask(device, 0x6f0000 + hdmi, 0x00000001, 0x00000000); in gv100_hdmi_ctrl()
51 nvkm_wr32(device, 0x6f0008 + hdmi, avi_infoframe.header); in gv100_hdmi_ctrl()
52 nvkm_wr32(device, 0x6f000c + hdmi, avi_infoframe.subpack0_low); in gv100_hdmi_ctrl()
53 nvkm_wr32(device, 0x6f0010 + hdmi, avi_infoframe.subpack0_high); in gv100_hdmi_ctrl()
54 nvkm_wr32(device, 0x6f0014 + hdmi, avi_infoframe.subpack1_low); in gv100_hdmi_ctrl()
55 nvkm_wr32(device, 0x6f0018 + hdmi, avi_infoframe.subpack1_high); in gv100_hdmi_ctrl()
[all …]
Dhdmigk104.c35 const u32 hdmi = head * 0x400; in gk104_hdmi_ctrl() local
44 nvkm_mask(device, 0x690100 + hdmi, 0x00000001, 0x00000000); in gk104_hdmi_ctrl()
45 nvkm_mask(device, 0x6900c0 + hdmi, 0x00000001, 0x00000000); in gk104_hdmi_ctrl()
46 nvkm_mask(device, 0x690000 + hdmi, 0x00000001, 0x00000000); in gk104_hdmi_ctrl()
51 nvkm_mask(device, 0x690000 + hdmi, 0x00000001, 0x00000000); in gk104_hdmi_ctrl()
53 nvkm_wr32(device, 0x690008 + hdmi, avi_infoframe.header); in gk104_hdmi_ctrl()
54 nvkm_wr32(device, 0x69000c + hdmi, avi_infoframe.subpack0_low); in gk104_hdmi_ctrl()
55 nvkm_wr32(device, 0x690010 + hdmi, avi_infoframe.subpack0_high); in gk104_hdmi_ctrl()
56 nvkm_wr32(device, 0x690014 + hdmi, avi_infoframe.subpack1_low); in gk104_hdmi_ctrl()
57 nvkm_wr32(device, 0x690018 + hdmi, avi_infoframe.subpack1_high); in gk104_hdmi_ctrl()
[all …]
/Linux-v4.19/drivers/media/i2c/adv748x/
Dadv748x-hdmi.c94 static void adv748x_hdmi_fill_format(struct adv748x_hdmi *hdmi, in adv748x_hdmi_fill_format() argument
100 fmt->field = hdmi->timings.bt.interlaced ? in adv748x_hdmi_fill_format()
106 fmt->width = hdmi->timings.bt.width; in adv748x_hdmi_fill_format()
107 fmt->height = hdmi->timings.bt.height; in adv748x_hdmi_fill_format()
224 struct adv748x_hdmi *hdmi = adv748x_sd_to_hdmi(sd); in adv748x_hdmi_s_dv_timings() local
225 struct adv748x_state *state = adv748x_hdmi_to_state(hdmi); in adv748x_hdmi_s_dv_timings()
231 if (v4l2_match_dv_timings(&hdmi->timings, timings, 0, false)) in adv748x_hdmi_s_dv_timings()
246 hdmi->timings = *timings; in adv748x_hdmi_s_dv_timings()
264 struct adv748x_hdmi *hdmi = adv748x_sd_to_hdmi(sd); in adv748x_hdmi_g_dv_timings() local
265 struct adv748x_state *state = adv748x_hdmi_to_state(hdmi); in adv748x_hdmi_g_dv_timings()
[all …]
/Linux-v4.19/include/drm/bridge/
Ddw_hdmi.h116 int (*init)(struct dw_hdmi *hdmi, void *data,
118 void (*disable)(struct dw_hdmi *hdmi, void *data);
119 enum drm_connector_status (*read_hpd)(struct dw_hdmi *hdmi, void *data);
120 void (*update_hpd)(struct dw_hdmi *hdmi, void *data,
122 void (*setup_hpd)(struct dw_hdmi *hdmi, void *data);
141 int (*configure_phy)(struct dw_hdmi *hdmi,
148 void dw_hdmi_remove(struct dw_hdmi *hdmi);
149 void dw_hdmi_unbind(struct dw_hdmi *hdmi);
154 void dw_hdmi_setup_rx_sense(struct dw_hdmi *hdmi, bool hpd, bool rx_sense);
156 void dw_hdmi_set_sample_rate(struct dw_hdmi *hdmi, unsigned int rate);
[all …]

12345678910>>...20