Lines Matching refs:dw_dp

347 struct dw_dp {  struct
385 struct dw_dp *left; argument
386 struct dw_dp *right; argument
495 static int dw_dp_hdcp_init_keys(struct dw_dp *dp) in dw_dp_hdcp_init_keys()
530 static int dw_dp_hdcp_rng_init(struct dw_dp *dp) in dw_dp_hdcp_rng_init()
543 static int dw_dp_hw_hdcp_init(struct dw_dp *dp) in dw_dp_hw_hdcp_init()
557 static bool dw_dp_hdcp2_capable(struct dw_dp *dp) in dw_dp_hdcp2_capable()
576 static int _dw_dp_hdcp2_disable(struct dw_dp *dp) in _dw_dp_hdcp2_disable()
590 static int dw_dp_hdcp2_auth_check(struct dw_dp *dp) in dw_dp_hdcp2_auth_check()
626 static int _dw_dp_hdcp2_enable(struct dw_dp *dp) in _dw_dp_hdcp2_enable()
639 static bool dw_dp_hdcp_capable(struct dw_dp *dp) in dw_dp_hdcp_capable()
653 static int _dw_dp_hdcp_disable(struct dw_dp *dp) in _dw_dp_hdcp_disable()
666 static int dw_dp_hdcp_auth_check(struct dw_dp *dp) in dw_dp_hdcp_auth_check()
704 static int _dw_dp_hdcp_enable(struct dw_dp *dp) in _dw_dp_hdcp_enable()
733 static int dw_dp_hdcp_enable(struct dw_dp *dp, u8 content_type) in dw_dp_hdcp_enable()
770 static int dw_dp_hdcp_disable(struct dw_dp *dp) in dw_dp_hdcp_disable()
786 static int _dw_dp_hdcp_check_link(struct dw_dp *dp) in _dw_dp_hdcp_check_link()
801 static int dw_dp_hdcp_check_link(struct dw_dp *dp) in dw_dp_hdcp_check_link()
854 struct dw_dp *dp = in dw_dp_hdcp_check_work()
855 container_of(hdcp, struct dw_dp, hdcp); in dw_dp_hdcp_check_work()
866 struct dw_dp *dp = in dp_dp_hdcp_prop_work()
867 container_of(hdcp, struct dw_dp, hdcp); in dp_dp_hdcp_prop_work()
878 static void dw_dp_hdcp_init(struct dw_dp *dp) in dw_dp_hdcp_init()
885 static void dw_dp_handle_hdcp_event(struct dw_dp *dp) in dw_dp_handle_hdcp_event()
926 static inline struct dw_dp *connector_to_dp(struct drm_connector *c) in connector_to_dp()
928 return container_of(c, struct dw_dp, connector); in connector_to_dp()
931 static inline struct dw_dp *encoder_to_dp(struct drm_encoder *e) in encoder_to_dp()
933 return container_of(e, struct dw_dp, encoder); in encoder_to_dp()
936 static inline struct dw_dp *bridge_to_dp(struct drm_bridge *b) in bridge_to_dp()
938 return container_of(b, struct dw_dp, bridge); in bridge_to_dp()
948 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_match_by_id()
954 static struct dw_dp *dw_dp_find_by_id(struct device_driver *drv, in dw_dp_find_by_id()
966 static void dw_dp_phy_set_pattern(struct dw_dp *dp, u32 pattern) in dw_dp_phy_set_pattern()
972 static void dw_dp_phy_xmit_enable(struct dw_dp *dp, u32 lanes) in dw_dp_phy_xmit_enable()
992 static bool dw_dp_bandwidth_ok(struct dw_dp *dp, in dw_dp_bandwidth_ok()
1006 static bool dw_dp_detect(struct dw_dp *dp) in dw_dp_detect()
1021 struct dw_dp *dp = connector_to_dp(connector); in dw_dp_connector_detect()
1037 struct dw_dp *dp = connector_to_dp(connector); in dw_dp_connector_force()
1100 struct dw_dp *dp = connector_to_dp(connector); in dw_dp_atomic_connector_get_property()
1154 struct dw_dp *dp = connector_to_dp(connector); in dw_dp_atomic_connector_set_property()
1191 struct dw_dp *dp = connector_to_dp(connector); in dw_dp_update_hdr_property()
1206 struct dw_dp *dp = connector_to_dp(connector); in dw_dp_connector_get_modes()
1316 struct dw_dp *dp = connector_to_dp(conn); in dw_dp_connector_atomic_check()
1383 static int dw_dp_link_power_up(struct dw_dp *dp) in dw_dp_link_power_up()
1408 static int dw_dp_link_power_down(struct dw_dp *dp) in dw_dp_link_power_down()
1439 static int dw_dp_link_probe(struct dw_dp *dp) in dw_dp_link_probe()
1489 static int dw_dp_phy_update_vs_emph(struct dw_dp *dp, unsigned int rate, unsigned int lanes, in dw_dp_phy_update_vs_emph()
1531 static int dw_dp_link_train_update_vs_emph(struct dw_dp *dp) in dw_dp_link_train_update_vs_emph()
1539 static int dw_dp_phy_configure(struct dw_dp *dp, unsigned int rate, in dw_dp_phy_configure()
1571 static int dw_dp_link_configure(struct dw_dp *dp) in dw_dp_link_configure()
1636 static int dw_dp_link_train_set_pattern(struct dw_dp *dp, u32 pattern) in dw_dp_link_train_set_pattern()
1746 static int dw_dp_link_clock_recovery(struct dw_dp *dp) in dw_dp_link_clock_recovery()
1792 static int dw_dp_link_channel_equalization(struct dw_dp *dp) in dw_dp_link_channel_equalization()
1838 static int dw_dp_link_downgrade(struct dw_dp *dp) in dw_dp_link_downgrade()
1864 static int dw_dp_link_train_full(struct dw_dp *dp) in dw_dp_link_train_full()
1922 static int dw_dp_link_train_fast(struct dw_dp *dp) in dw_dp_link_train_fast()
1980 static int dw_dp_link_train(struct dw_dp *dp) in dw_dp_link_train()
2005 static int dw_dp_send_sdp(struct dw_dp *dp, struct dw_dp_sdp *sdp) in dw_dp_send_sdp()
2077 static int dw_dp_send_vsc_sdp(struct dw_dp *dp) in dw_dp_send_vsc_sdp()
2124 static ssize_t dw_dp_hdr_metadata_infoframe_sdp_pack(struct dw_dp *dp, in dw_dp_hdr_metadata_infoframe_sdp_pack()
2160 static int dw_dp_send_hdr_metadata_infoframe_sdp(struct dw_dp *dp) in dw_dp_send_hdr_metadata_infoframe_sdp()
2180 static int dw_dp_video_set_pixel_mode(struct dw_dp *dp, u8 pixel_mode) in dw_dp_video_set_pixel_mode()
2197 static bool dw_dp_video_need_vsc_sdp(struct dw_dp *dp) in dw_dp_video_need_vsc_sdp()
2214 static int dw_dp_video_set_msa(struct dw_dp *dp, u8 color_format, u8 bpc, in dw_dp_video_set_msa()
2266 static void dw_dp_video_disable(struct dw_dp *dp) in dw_dp_video_disable()
2272 static int dw_dp_video_enable(struct dw_dp *dp) in dw_dp_video_enable()
2447 struct dw_dp *dp = arg; in dw_dp_hpd_irq_handler()
2471 static void dw_dp_hpd_init(struct dw_dp *dp) in dw_dp_hpd_init()
2493 static void dw_dp_aux_init(struct dw_dp *dp) in dw_dp_aux_init()
2500 static void dw_dp_init(struct dw_dp *dp) in dw_dp_init()
2516 struct dw_dp *dp = encoder_to_dp(encoder); in dw_dp_encoder_disable()
2529 static void dw_dp_mode_fixup(struct dw_dp *dp, struct drm_display_mode *adjusted_mode) in dw_dp_mode_fixup()
2565 struct dw_dp *dp = encoder_to_dp(encoder); in dw_dp_encoder_atomic_check()
2635 static int dw_dp_aux_write_data(struct dw_dp *dp, const u8 *buffer, size_t size) in dw_dp_aux_write_data()
2652 static int dw_dp_aux_read_data(struct dw_dp *dp, u8 *buffer, size_t size) in dw_dp_aux_read_data()
2672 struct dw_dp *dp = container_of(aux, struct dw_dp, aux); in dw_dp_aux_transfer()
2736 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_mode_valid()
2767 static void _dw_dp_loader_protect(struct dw_dp *dp, bool on) in _dw_dp_loader_protect()
2819 struct dw_dp *dp = encoder_to_dp(encoder); in dw_dp_loader_protect()
2828 static int dw_dp_connector_init(struct dw_dp *dp) in dw_dp_connector_init()
2926 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_attach()
2986 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_detach()
2994 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_atomic_pre_enable()
3012 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_atomic_post_disable()
3018 static bool dw_dp_needs_link_retrain(struct dw_dp *dp) in dw_dp_needs_link_retrain()
3033 static void dw_dp_link_disable(struct dw_dp *dp) in dw_dp_link_disable()
3048 static int dw_dp_link_enable(struct dw_dp *dp) in dw_dp_link_enable()
3072 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_atomic_enable()
3114 static void dw_dp_reset(struct dw_dp *dp) in dw_dp_reset()
3137 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_atomic_disable()
3152 static bool dw_dp_detect_dpcd(struct dw_dp *dp) in dw_dp_detect_dpcd()
3185 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_detect()
3215 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_get_edid()
3236 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_atomic_get_output_bus_fmts()
3311 struct dw_dp *dp = bridge_to_dp(bridge); in dw_dp_bridge_atomic_check()
3347 static int dw_dp_link_retrain(struct dw_dp *dp) in dw_dp_link_retrain()
3374 static u8 dw_dp_autotest_phy_pattern(struct dw_dp *dp) in dw_dp_autotest_phy_pattern()
3389 static void dw_dp_handle_test_request(struct dw_dp *dp) in dw_dp_handle_test_request()
3420 static void dw_dp_hdcp_handle_cp_irq(struct dw_dp *dp) in dw_dp_hdcp_handle_cp_irq()
3427 static void dw_dp_check_service_irq(struct dw_dp *dp) in dw_dp_check_service_irq()
3450 static void dw_dp_phy_pattern_update(struct dw_dp *dp) in dw_dp_phy_pattern_update()
3505 static void dw_dp_process_phy_request(struct dw_dp *dp) in dw_dp_process_phy_request()
3535 static void dw_dp_phy_test(struct dw_dp *dp) in dw_dp_phy_test()
3556 static bool dw_dp_hpd_short_pulse(struct dw_dp *dp) in dw_dp_hpd_short_pulse()
3578 struct dw_dp *dp = container_of(work, struct dw_dp, hpd_work); in dw_dp_hpd_work()
3607 static void dw_dp_handle_hpd_event(struct dw_dp *dp) in dw_dp_handle_hpd_event()
3640 struct dw_dp *dp = data; in dw_dp_irq_handler()
3666 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_audio_hw_params()
3725 static int dw_dp_audio_infoframe_send(struct dw_dp *dp) in dw_dp_audio_infoframe_send()
3773 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_audio_startup()
3788 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_audio_shutdown()
3806 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_audio_hook_plugged_cb()
3818 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_audio_get_eld()
3834 static int dw_dp_register_audio_driver(struct dw_dp *dp) in dw_dp_register_audio_driver()
3856 struct dw_dp *dp = data; in dw_dp_unregister_audio_driver()
3867 struct dw_dp *dp = data; in dw_dp_aux_unregister()
3874 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_bind()
3895 struct dw_dp *secondary = dp->right; in dw_dp_bind()
3918 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_unbind()
3963 static u32 dw_dp_parse_link_frequencies(struct dw_dp *dp) in dw_dp_parse_link_frequencies()
3999 static int dw_dp_parse_dt(struct dw_dp *dp) in dw_dp_parse_dt()
4013 struct dw_dp *dp; in dw_dp_probe()
4158 struct dw_dp *secondary = dw_dp_find_by_id(dev->driver, !dp->id); in dw_dp_probe()
4176 struct dw_dp *dp = platform_get_drvdata(pdev); in dw_dp_remove()
4186 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_runtime_suspend()
4197 struct dw_dp *dp = dev_get_drvdata(dev); in dw_dp_runtime_resume()