Lines Matching refs:dw_hdmi

138 	int (*configure)(struct dw_hdmi *hdmi,
143 struct dw_hdmi { struct
204 void (*enable_audio)(struct dw_hdmi *hdmi); argument
205 void (*disable_audio)(struct dw_hdmi *hdmi); argument
223 static inline void hdmi_writeb(struct dw_hdmi *hdmi, u8 val, int offset) in hdmi_writeb() argument
228 static inline u8 hdmi_readb(struct dw_hdmi *hdmi, int offset) in hdmi_readb()
237 static void handle_plugged_change(struct dw_hdmi *hdmi, bool plugged) in handle_plugged_change()
243 int dw_hdmi_set_plugged_cb(struct dw_hdmi *hdmi, hdmi_codec_plugged_cb fn, in dw_hdmi_set_plugged_cb()
259 static void hdmi_modb(struct dw_hdmi *hdmi, u8 data, u8 mask, unsigned reg) in hdmi_modb()
264 static void hdmi_mask_writeb(struct dw_hdmi *hdmi, u8 data, unsigned int reg, in hdmi_mask_writeb()
270 static void dw_hdmi_i2c_init(struct dw_hdmi *hdmi) in dw_hdmi_i2c_init()
299 static bool dw_hdmi_i2c_unwedge(struct dw_hdmi *hdmi) in dw_hdmi_i2c_unwedge()
346 static int dw_hdmi_i2c_wait(struct dw_hdmi *hdmi) in dw_hdmi_i2c_wait()
370 static int dw_hdmi_i2c_read(struct dw_hdmi *hdmi, in dw_hdmi_i2c_read()
404 static int dw_hdmi_i2c_write(struct dw_hdmi *hdmi, in dw_hdmi_i2c_write()
437 struct dw_hdmi *hdmi = i2c_get_adapdata(adap); in dw_hdmi_i2c_xfer()
517 static struct i2c_adapter *dw_hdmi_i2c_adapter(struct dw_hdmi *hdmi) in dw_hdmi_i2c_adapter()
552 static void hdmi_set_cts_n(struct dw_hdmi *hdmi, unsigned int cts, in hdmi_set_cts_n()
647 void dw_hdmi_set_channel_status(struct dw_hdmi *hdmi, in dw_hdmi_set_channel_status()
659 static void hdmi_set_clk_regenerator(struct dw_hdmi *hdmi, in hdmi_set_clk_regenerator()
699 static void hdmi_init_clk_regenerator(struct dw_hdmi *hdmi) in hdmi_init_clk_regenerator()
706 static void hdmi_clk_regenerator_update_pixel_clock(struct dw_hdmi *hdmi) in hdmi_clk_regenerator_update_pixel_clock()
714 void dw_hdmi_set_sample_width(struct dw_hdmi *hdmi, unsigned int width) in dw_hdmi_set_sample_width()
722 void dw_hdmi_set_sample_non_pcm(struct dw_hdmi *hdmi, unsigned int non_pcm) in dw_hdmi_set_sample_non_pcm()
730 void dw_hdmi_set_sample_rate(struct dw_hdmi *hdmi, unsigned int rate) in dw_hdmi_set_sample_rate()
740 void dw_hdmi_set_channel_count(struct dw_hdmi *hdmi, unsigned int cnt) in dw_hdmi_set_channel_count()
767 void dw_hdmi_set_channel_allocation(struct dw_hdmi *hdmi, unsigned int ca) in dw_hdmi_set_channel_allocation()
777 static void hdmi_enable_audio_clk(struct dw_hdmi *hdmi, bool enable) in hdmi_enable_audio_clk()
786 static u8 *hdmi_audio_get_eld(struct dw_hdmi *hdmi) in hdmi_audio_get_eld()
794 static void dw_hdmi_gp_audio_enable(struct dw_hdmi *hdmi) in dw_hdmi_gp_audio_enable()
864 static void dw_hdmi_gp_audio_disable(struct dw_hdmi *hdmi) in dw_hdmi_gp_audio_disable()
877 static void dw_hdmi_ahb_audio_enable(struct dw_hdmi *hdmi) in dw_hdmi_ahb_audio_enable()
882 static void dw_hdmi_ahb_audio_disable(struct dw_hdmi *hdmi) in dw_hdmi_ahb_audio_disable()
887 static void dw_hdmi_i2s_audio_enable(struct dw_hdmi *hdmi) in dw_hdmi_i2s_audio_enable()
893 static void dw_hdmi_i2s_audio_disable(struct dw_hdmi *hdmi) in dw_hdmi_i2s_audio_disable()
898 void dw_hdmi_audio_enable(struct dw_hdmi *hdmi) in dw_hdmi_audio_enable()
910 void dw_hdmi_audio_disable(struct dw_hdmi *hdmi) in dw_hdmi_audio_disable()
1015 static void hdmi_video_sample(struct dw_hdmi *hdmi) in hdmi_video_sample()
1083 static int is_color_space_conversion(struct dw_hdmi *hdmi) in is_color_space_conversion()
1095 static int is_color_space_decimation(struct dw_hdmi *hdmi) in is_color_space_decimation()
1107 static int is_color_space_interpolation(struct dw_hdmi *hdmi) in is_color_space_interpolation()
1119 static bool is_csc_needed(struct dw_hdmi *hdmi) in is_csc_needed()
1126 static void dw_hdmi_update_csc_coeffs(struct dw_hdmi *hdmi) in dw_hdmi_update_csc_coeffs()
1170 static void hdmi_video_csc(struct dw_hdmi *hdmi) in hdmi_video_csc()
1213 static void hdmi_video_packetize(struct dw_hdmi *hdmi) in hdmi_video_packetize()
1343 static inline void hdmi_phy_test_clear(struct dw_hdmi *hdmi, in hdmi_phy_test_clear()
1350 static bool hdmi_phy_wait_i2c_done(struct dw_hdmi *hdmi, int msec) in hdmi_phy_wait_i2c_done()
1364 void dw_hdmi_phy_i2c_write(struct dw_hdmi *hdmi, unsigned short data, in dw_hdmi_phy_i2c_write()
1380 static bool dw_hdmi_support_scdc(struct dw_hdmi *hdmi, in dw_hdmi_support_scdc()
1420 void dw_hdmi_set_high_tmds_clock_ratio(struct dw_hdmi *hdmi, in dw_hdmi_set_high_tmds_clock_ratio()
1435 static void dw_hdmi_phy_enable_powerdown(struct dw_hdmi *hdmi, bool enable) in dw_hdmi_phy_enable_powerdown()
1442 static void dw_hdmi_phy_enable_tmds(struct dw_hdmi *hdmi, u8 enable) in dw_hdmi_phy_enable_tmds()
1449 static void dw_hdmi_phy_enable_svsret(struct dw_hdmi *hdmi, u8 enable) in dw_hdmi_phy_enable_svsret()
1456 void dw_hdmi_phy_gen2_pddq(struct dw_hdmi *hdmi, u8 enable) in dw_hdmi_phy_gen2_pddq()
1464 void dw_hdmi_phy_gen2_txpwron(struct dw_hdmi *hdmi, u8 enable) in dw_hdmi_phy_gen2_txpwron()
1472 static void dw_hdmi_phy_sel_data_en_pol(struct dw_hdmi *hdmi, u8 enable) in dw_hdmi_phy_sel_data_en_pol()
1479 static void dw_hdmi_phy_sel_interface_control(struct dw_hdmi *hdmi, u8 enable) in dw_hdmi_phy_sel_interface_control()
1486 void dw_hdmi_phy_gen1_reset(struct dw_hdmi *hdmi) in dw_hdmi_phy_gen1_reset()
1494 void dw_hdmi_phy_gen2_reset(struct dw_hdmi *hdmi) in dw_hdmi_phy_gen2_reset()
1502 void dw_hdmi_phy_i2c_set_addr(struct dw_hdmi *hdmi, u8 address) in dw_hdmi_phy_i2c_set_addr()
1510 static void dw_hdmi_phy_power_off(struct dw_hdmi *hdmi) in dw_hdmi_phy_power_off()
1544 static int dw_hdmi_phy_power_on(struct dw_hdmi *hdmi) in dw_hdmi_phy_power_on()
1585 static int hdmi_phy_configure_dwc_hdmi_3d_tx(struct dw_hdmi *hdmi, in hdmi_phy_configure_dwc_hdmi_3d_tx()
1637 static int hdmi_phy_configure(struct dw_hdmi *hdmi, in hdmi_phy_configure()
1678 static int dw_hdmi_phy_init(struct dw_hdmi *hdmi, void *data, in dw_hdmi_phy_init()
1697 static void dw_hdmi_phy_disable(struct dw_hdmi *hdmi, void *data) in dw_hdmi_phy_disable()
1702 enum drm_connector_status dw_hdmi_phy_read_hpd(struct dw_hdmi *hdmi, in dw_hdmi_phy_read_hpd()
1710 void dw_hdmi_phy_update_hpd(struct dw_hdmi *hdmi, void *data, in dw_hdmi_phy_update_hpd()
1725 void dw_hdmi_phy_setup_hpd(struct dw_hdmi *hdmi, void *data) in dw_hdmi_phy_setup_hpd()
1758 static void hdmi_tx_hdcp_config(struct dw_hdmi *hdmi) in hdmi_tx_hdcp_config()
1777 static void hdmi_config_AVI(struct dw_hdmi *hdmi, in hdmi_config_AVI()
1904 static void hdmi_config_vendor_specific_infoframe(struct dw_hdmi *hdmi, in hdmi_config_vendor_specific_infoframe()
1958 static void hdmi_config_drm_infoframe(struct dw_hdmi *hdmi, in hdmi_config_drm_infoframe()
1994 static void hdmi_av_composer(struct dw_hdmi *hdmi, in hdmi_av_composer()
2169 static void dw_hdmi_enable_video_path(struct dw_hdmi *hdmi) in dw_hdmi_enable_video_path()
2210 static void dw_hdmi_clear_overflow(struct dw_hdmi *hdmi) in dw_hdmi_clear_overflow()
2248 static void hdmi_disable_overflow_interrupts(struct dw_hdmi *hdmi) in hdmi_disable_overflow_interrupts()
2254 static int dw_hdmi_setup(struct dw_hdmi *hdmi, in dw_hdmi_setup()
2346 static void initialize_hdmi_ih_mutes(struct dw_hdmi *hdmi) in initialize_hdmi_ih_mutes()
2397 static void dw_hdmi_poweron(struct dw_hdmi *hdmi) in dw_hdmi_poweron()
2408 static void dw_hdmi_poweroff(struct dw_hdmi *hdmi) in dw_hdmi_poweroff()
2418 static void dw_hdmi_update_power(struct dw_hdmi *hdmi) in dw_hdmi_update_power()
2452 static void dw_hdmi_update_phy_mask(struct dw_hdmi *hdmi) in dw_hdmi_update_phy_mask()
2460 static enum drm_connector_status dw_hdmi_detect(struct dw_hdmi *hdmi) in dw_hdmi_detect()
2478 static struct edid *dw_hdmi_get_edid(struct dw_hdmi *hdmi, in dw_hdmi_get_edid()
2508 struct dw_hdmi *hdmi = container_of(connector, struct dw_hdmi, in dw_hdmi_connector_detect()
2515 struct dw_hdmi *hdmi = container_of(connector, struct dw_hdmi, in dw_hdmi_connector_get_modes()
2558 struct dw_hdmi *hdmi = container_of(connector, struct dw_hdmi, in dw_hdmi_connector_force()
2583 static int dw_hdmi_connector_create(struct dw_hdmi *hdmi) in dw_hdmi_connector_create()
2892 struct dw_hdmi *hdmi = bridge->driver_private; in dw_hdmi_bridge_atomic_check()
2910 struct dw_hdmi *hdmi = bridge->driver_private; in dw_hdmi_bridge_attach()
2921 struct dw_hdmi *hdmi = bridge->driver_private; in dw_hdmi_bridge_detach()
2934 struct dw_hdmi *hdmi = bridge->driver_private; in dw_hdmi_bridge_mode_valid()
2953 struct dw_hdmi *hdmi = bridge->driver_private; in dw_hdmi_bridge_mode_set()
2966 struct dw_hdmi *hdmi = bridge->driver_private; in dw_hdmi_bridge_atomic_disable()
2979 struct dw_hdmi *hdmi = bridge->driver_private; in dw_hdmi_bridge_atomic_enable()
2996 struct dw_hdmi *hdmi = bridge->driver_private; in dw_hdmi_bridge_detect()
3004 struct dw_hdmi *hdmi = bridge->driver_private; in dw_hdmi_bridge_get_edid()
3030 static irqreturn_t dw_hdmi_i2c_irq(struct dw_hdmi *hdmi) in dw_hdmi_i2c_irq()
3050 struct dw_hdmi *hdmi = dev_id; in dw_hdmi_hardirq()
3066 void dw_hdmi_setup_rx_sense(struct dw_hdmi *hdmi, bool hpd, bool rx_sense) in dw_hdmi_setup_rx_sense()
3096 struct dw_hdmi *hdmi = dev_id; in dw_hdmi_irq()
3199 static int dw_hdmi_detect_phy(struct dw_hdmi *hdmi) in dw_hdmi_detect_phy()
3244 static void dw_hdmi_cec_enable(struct dw_hdmi *hdmi) in dw_hdmi_cec_enable()
3252 static void dw_hdmi_cec_disable(struct dw_hdmi *hdmi) in dw_hdmi_cec_disable()
3281 static void dw_hdmi_init_hw(struct dw_hdmi *hdmi) in dw_hdmi_init_hw()
3300 static int dw_hdmi_parse_dt(struct dw_hdmi *hdmi) in dw_hdmi_parse_dt()
3345 struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev, in dw_hdmi_probe()
3353 struct dw_hdmi *hdmi; in dw_hdmi_probe()
3643 void dw_hdmi_remove(struct dw_hdmi *hdmi) in dw_hdmi_remove()
3669 struct dw_hdmi *dw_hdmi_bind(struct platform_device *pdev, in dw_hdmi_bind()
3673 struct dw_hdmi *hdmi; in dw_hdmi_bind()
3690 void dw_hdmi_unbind(struct dw_hdmi *hdmi) in dw_hdmi_unbind()
3696 void dw_hdmi_resume(struct dw_hdmi *hdmi) in dw_hdmi_resume()