Lines Matching refs:encoder_hdmi

52 	struct meson_encoder_hdmi *encoder_hdmi = bridge_to_meson_encoder_hdmi(bridge);  in meson_encoder_hdmi_attach()  local
54 return drm_bridge_attach(bridge->encoder, encoder_hdmi->next_bridge, in meson_encoder_hdmi_attach()
55 &encoder_hdmi->bridge, flags); in meson_encoder_hdmi_attach()
60 struct meson_encoder_hdmi *encoder_hdmi = bridge_to_meson_encoder_hdmi(bridge); in meson_encoder_hdmi_detach() local
62 cec_notifier_conn_unregister(encoder_hdmi->cec_notifier); in meson_encoder_hdmi_detach()
63 encoder_hdmi->cec_notifier = NULL; in meson_encoder_hdmi_detach()
66 static void meson_encoder_hdmi_set_vclk(struct meson_encoder_hdmi *encoder_hdmi, in meson_encoder_hdmi_set_vclk() argument
69 struct meson_drm *priv = encoder_hdmi->priv; in meson_encoder_hdmi_set_vclk()
79 if (encoder_hdmi->output_bus_fmt == MEDIA_BUS_FMT_UYYVYY8_0_5X24) in meson_encoder_hdmi_set_vclk()
100 encoder_hdmi->output_bus_fmt == MEDIA_BUS_FMT_UYYVYY8_0_5X24) in meson_encoder_hdmi_set_vclk()
120 struct meson_encoder_hdmi *encoder_hdmi = bridge_to_meson_encoder_hdmi(bridge); in meson_encoder_hdmi_mode_valid() local
121 struct meson_drm *priv = encoder_hdmi->priv; in meson_encoder_hdmi_mode_valid()
189 struct meson_encoder_hdmi *encoder_hdmi = bridge_to_meson_encoder_hdmi(bridge); in meson_encoder_hdmi_atomic_enable() local
192 struct meson_drm *priv = encoder_hdmi->priv; in meson_encoder_hdmi_atomic_enable()
218 if (encoder_hdmi->output_bus_fmt == MEDIA_BUS_FMT_UYYVYY8_0_5X24) { in meson_encoder_hdmi_atomic_enable()
221 } else if (encoder_hdmi->output_bus_fmt == MEDIA_BUS_FMT_UYVY8_1X16) in meson_encoder_hdmi_atomic_enable()
228 meson_encoder_hdmi_set_vclk(encoder_hdmi, mode); in meson_encoder_hdmi_atomic_enable()
230 if (encoder_hdmi->output_bus_fmt == MEDIA_BUS_FMT_UYYVYY8_0_5X24) in meson_encoder_hdmi_atomic_enable()
234 else if (encoder_hdmi->output_bus_fmt == MEDIA_BUS_FMT_UYVY8_1X16) in meson_encoder_hdmi_atomic_enable()
253 struct meson_encoder_hdmi *encoder_hdmi = bridge_to_meson_encoder_hdmi(bridge); in meson_encoder_hdmi_atomic_disable() local
254 struct meson_drm *priv = encoder_hdmi->priv; in meson_encoder_hdmi_atomic_disable()
305 struct meson_encoder_hdmi *encoder_hdmi = bridge_to_meson_encoder_hdmi(bridge); in meson_encoder_hdmi_atomic_check() local
308 struct meson_drm *priv = encoder_hdmi->priv; in meson_encoder_hdmi_atomic_check()
310 encoder_hdmi->output_bus_fmt = bridge_state->output_bus_cfg.format; in meson_encoder_hdmi_atomic_check()
312 dev_dbg(priv->dev, "output_bus_fmt %lx\n", encoder_hdmi->output_bus_fmt); in meson_encoder_hdmi_atomic_check()
323 struct meson_encoder_hdmi *encoder_hdmi = bridge_to_meson_encoder_hdmi(bridge); in meson_encoder_hdmi_hpd_notify() local
326 if (!encoder_hdmi->cec_notifier) in meson_encoder_hdmi_hpd_notify()
330 edid = drm_bridge_get_edid(encoder_hdmi->next_bridge, encoder_hdmi->connector); in meson_encoder_hdmi_hpd_notify()
334 cec_notifier_set_phys_addr_from_edid(encoder_hdmi->cec_notifier, edid); in meson_encoder_hdmi_hpd_notify()
336 cec_notifier_phys_addr_invalidate(encoder_hdmi->cec_notifier); in meson_encoder_hdmi_hpd_notify()