Lines Matching refs:vc4
102 #define HDMI_READ(offset) readl(vc4->hdmi->hdmicore_regs + offset)
103 #define HDMI_WRITE(offset, val) writel(val, vc4->hdmi->hdmicore_regs + offset)
104 #define HD_READ(offset) readl(vc4->hdmi->hd_regs + offset)
105 #define HD_WRITE(offset, val) writel(val, vc4->hdmi->hd_regs + offset)
200 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_debugfs_regs() local
221 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_dump_regs() local
240 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_connector_detect() local
242 if (vc4->hdmi->hpd_gpio) { in vc4_hdmi_connector_detect()
243 if (gpio_get_value_cansleep(vc4->hdmi->hpd_gpio) ^ in vc4_hdmi_connector_detect()
244 vc4->hdmi->hpd_active_low) in vc4_hdmi_connector_detect()
246 cec_phys_addr_invalidate(vc4->hdmi->cec_adap); in vc4_hdmi_connector_detect()
250 if (drm_probe_ddc(vc4->hdmi->ddc)) in vc4_hdmi_connector_detect()
255 cec_phys_addr_invalidate(vc4->hdmi->cec_adap); in vc4_hdmi_connector_detect()
272 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_connector_get_modes() local
276 edid = drm_get_edid(connector, vc4->hdmi->ddc); in vc4_hdmi_connector_get_modes()
277 cec_s_phys_addr_from_edid(vc4->hdmi->cec_adap, edid); in vc4_hdmi_connector_get_modes()
350 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_stop_packet() local
364 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_write_infoframe() local
451 struct vc4_dev *vc4 = drm->dev_private; in vc4_hdmi_set_audio_infoframe() local
452 struct vc4_hdmi *hdmi = vc4->hdmi; in vc4_hdmi_set_audio_infoframe()
475 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_encoder_disable() local
476 struct vc4_hdmi *hdmi = vc4->hdmi; in vc4_hdmi_encoder_disable()
497 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_encoder_enable() local
498 struct vc4_hdmi *hdmi = vc4->hdmi; in vc4_hdmi_encoder_enable()
721 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_hdmi_audio_set_mai_clock() local
742 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_hdmi_set_n_cts() local
778 struct vc4_dev *vc4 = to_vc4_dev(encoder->dev); in vc4_hdmi_audio_startup() local
812 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_hdmi_audio_reset() local
846 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_hdmi_audio_hw_params() local
918 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_hdmi_audio_trigger() local
1145 struct vc4_dev *vc4 = priv; in vc4_cec_irq_handler_thread() local
1146 struct vc4_hdmi *hdmi = vc4->hdmi; in vc4_cec_irq_handler_thread()
1165 static void vc4_cec_read_msg(struct vc4_dev *vc4, u32 cntrl1) in vc4_cec_read_msg() argument
1167 struct cec_msg *msg = &vc4->hdmi->cec_rx_msg; in vc4_cec_read_msg()
1184 struct vc4_dev *vc4 = priv; in vc4_cec_irq_handler() local
1185 struct vc4_hdmi *hdmi = vc4->hdmi; in vc4_cec_irq_handler()
1196 vc4_cec_read_msg(vc4, cntrl1); in vc4_cec_irq_handler()
1212 struct vc4_dev *vc4 = cec_get_drvdata(adap); in vc4_hdmi_cec_adap_enable() local
1255 struct vc4_dev *vc4 = cec_get_drvdata(adap); in vc4_hdmi_cec_adap_log_addr() local
1266 struct vc4_dev *vc4 = cec_get_drvdata(adap); in vc4_hdmi_cec_adap_transmit() local
1299 struct vc4_dev *vc4 = drm->dev_private; in vc4_hdmi_bind() local
1384 vc4->hdmi = hdmi; in vc4_hdmi_bind()
1407 vc4, "vc4", in vc4_hdmi_bind()
1429 "vc4 hdmi cec", vc4); in vc4_hdmi_bind()
1464 struct vc4_dev *vc4 = drm->dev_private; in vc4_hdmi_unbind() local
1465 struct vc4_hdmi *hdmi = vc4->hdmi; in vc4_hdmi_unbind()
1476 vc4->hdmi = NULL; in vc4_hdmi_unbind()