Lines Matching refs:dsi_trans

50 				    enum transcoder dsi_trans)  in header_credits_available()  argument
52 return (intel_de_read(dev_priv, DSI_CMD_TXCTL(dsi_trans)) & FREE_HEADER_CREDIT_MASK) in header_credits_available()
57 enum transcoder dsi_trans) in payload_credits_available() argument
59 return (intel_de_read(dev_priv, DSI_CMD_TXCTL(dsi_trans)) & FREE_PLOAD_CREDIT_MASK) in payload_credits_available()
64 enum transcoder dsi_trans, int hdr_credit) in wait_for_header_credits() argument
66 if (wait_for_us(header_credits_available(dev_priv, dsi_trans) >= in wait_for_header_credits()
76 enum transcoder dsi_trans, int payld_credit) in wait_for_payload_credits() argument
78 if (wait_for_us(payload_credits_available(dev_priv, dsi_trans) >= in wait_for_payload_credits()
101 enum transcoder dsi_trans; in wait_for_cmds_dispatched_to_panel() local
106 dsi_trans = dsi_port_to_transcoder(port); in wait_for_cmds_dispatched_to_panel()
107 wait_for_header_credits(dev_priv, dsi_trans, MAX_HEADER_CREDIT); in wait_for_cmds_dispatched_to_panel()
108 wait_for_payload_credits(dev_priv, dsi_trans, MAX_PLOAD_CREDIT); in wait_for_cmds_dispatched_to_panel()
124 dsi_trans = dsi_port_to_transcoder(port); in wait_for_cmds_dispatched_to_panel()
125 wait_for_header_credits(dev_priv, dsi_trans, MAX_HEADER_CREDIT); in wait_for_cmds_dispatched_to_panel()
130 dsi_trans = dsi_port_to_transcoder(port); in wait_for_cmds_dispatched_to_panel()
131 if (wait_for_us(!(intel_de_read(dev_priv, DSI_LP_MSG(dsi_trans)) & in wait_for_cmds_dispatched_to_panel()
142 enum transcoder dsi_trans = dsi_port_to_transcoder(host->port); in dsi_send_pkt_payld() local
156 if (!wait_for_payload_credits(i915, dsi_trans, 1)) in dsi_send_pkt_payld()
162 intel_de_write(i915, DSI_CMD_TXPYLD(dsi_trans), tmp); in dsi_send_pkt_payld()
174 enum transcoder dsi_trans = dsi_port_to_transcoder(host->port); in dsi_send_pkt_hdr() local
177 if (!wait_for_header_credits(dev_priv, dsi_trans, 1)) in dsi_send_pkt_hdr()
180 tmp = intel_de_read(dev_priv, DSI_CMD_TXHDR(dsi_trans)); in dsi_send_pkt_hdr()
199 intel_de_write(dev_priv, DSI_CMD_TXHDR(dsi_trans), tmp); in dsi_send_pkt_hdr()
725 enum transcoder dsi_trans; in gen11_dsi_configure_transcoder() local
728 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_configure_transcoder()
729 tmp = intel_de_read(dev_priv, DSI_TRANS_FUNC_CONF(dsi_trans)); in gen11_dsi_configure_transcoder()
818 intel_de_write(dev_priv, DSI_TRANS_FUNC_CONF(dsi_trans), tmp); in gen11_dsi_configure_transcoder()
824 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_configure_transcoder()
826 TRANS_DDI_FUNC_CTL2(dsi_trans)); in gen11_dsi_configure_transcoder()
829 TRANS_DDI_FUNC_CTL2(dsi_trans), tmp); in gen11_dsi_configure_transcoder()
837 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_configure_transcoder()
840 tmp = intel_de_read(dev_priv, TRANS_DDI_FUNC_CTL(dsi_trans)); in gen11_dsi_configure_transcoder()
866 intel_de_write(dev_priv, TRANS_DDI_FUNC_CTL(dsi_trans), tmp); in gen11_dsi_configure_transcoder()
871 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_configure_transcoder()
872 if (wait_for_us((intel_de_read(dev_priv, DSI_TRANS_FUNC_CONF(dsi_trans)) & in gen11_dsi_configure_transcoder()
887 enum transcoder dsi_trans; in gen11_dsi_set_transcoder_timings() local
958 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
959 intel_de_write(dev_priv, HTOTAL(dsi_trans), in gen11_dsi_set_transcoder_timings()
981 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
982 intel_de_write(dev_priv, HSYNC(dsi_trans), in gen11_dsi_set_transcoder_timings()
989 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
996 intel_de_write(dev_priv, VTOTAL(dsi_trans), in gen11_dsi_set_transcoder_timings()
1009 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
1010 intel_de_write(dev_priv, VSYNC(dsi_trans), in gen11_dsi_set_transcoder_timings()
1023 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
1024 intel_de_write(dev_priv, VSYNCSHIFT(dsi_trans), in gen11_dsi_set_transcoder_timings()
1032 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
1033 intel_de_write(dev_priv, VBLANK(dsi_trans), in gen11_dsi_set_transcoder_timings()
1044 enum transcoder dsi_trans; in gen11_dsi_enable_transcoder() local
1048 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_enable_transcoder()
1049 tmp = intel_de_read(dev_priv, PIPECONF(dsi_trans)); in gen11_dsi_enable_transcoder()
1051 intel_de_write(dev_priv, PIPECONF(dsi_trans), tmp); in gen11_dsi_enable_transcoder()
1054 if (intel_de_wait_for_set(dev_priv, PIPECONF(dsi_trans), in gen11_dsi_enable_transcoder()
1067 enum transcoder dsi_trans; in gen11_dsi_setup_timeouts() local
1085 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_setup_timeouts()
1088 tmp = intel_de_read(dev_priv, DSI_HSTX_TO(dsi_trans)); in gen11_dsi_setup_timeouts()
1091 intel_de_write(dev_priv, DSI_HSTX_TO(dsi_trans), tmp); in gen11_dsi_setup_timeouts()
1096 tmp = intel_de_read(dev_priv, DSI_LPRX_HOST_TO(dsi_trans)); in gen11_dsi_setup_timeouts()
1099 intel_de_write(dev_priv, DSI_LPRX_HOST_TO(dsi_trans), tmp); in gen11_dsi_setup_timeouts()
1104 tmp = intel_de_read(dev_priv, DSI_TA_TO(dsi_trans)); in gen11_dsi_setup_timeouts()
1107 intel_de_write(dev_priv, DSI_TA_TO(dsi_trans), tmp); in gen11_dsi_setup_timeouts()
1175 enum transcoder dsi_trans; in gen11_dsi_powerup_panel() local
1181 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_powerup_panel()
1187 tmp = intel_de_read(dev_priv, DSI_CMD_RXCTL(dsi_trans)); in gen11_dsi_powerup_panel()
1310 enum transcoder dsi_trans; in gen11_dsi_disable_transcoder() local
1314 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_disable_transcoder()
1317 tmp = intel_de_read(dev_priv, PIPECONF(dsi_trans)); in gen11_dsi_disable_transcoder()
1319 intel_de_write(dev_priv, PIPECONF(dsi_trans), tmp); in gen11_dsi_disable_transcoder()
1322 if (intel_de_wait_for_clear(dev_priv, PIPECONF(dsi_trans), in gen11_dsi_disable_transcoder()
1346 enum transcoder dsi_trans; in gen11_dsi_deconfigure_trancoder() local
1360 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_deconfigure_trancoder()
1361 tmp = intel_de_read(dev_priv, DSI_LP_MSG(dsi_trans)); in gen11_dsi_deconfigure_trancoder()
1364 intel_de_write(dev_priv, DSI_LP_MSG(dsi_trans), tmp); in gen11_dsi_deconfigure_trancoder()
1366 if (wait_for_us((intel_de_read(dev_priv, DSI_LP_MSG(dsi_trans)) & in gen11_dsi_deconfigure_trancoder()
1374 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_deconfigure_trancoder()
1375 tmp = intel_de_read(dev_priv, TRANS_DDI_FUNC_CTL(dsi_trans)); in gen11_dsi_deconfigure_trancoder()
1377 intel_de_write(dev_priv, TRANS_DDI_FUNC_CTL(dsi_trans), tmp); in gen11_dsi_deconfigure_trancoder()
1383 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_deconfigure_trancoder()
1385 TRANS_DDI_FUNC_CTL2(dsi_trans)); in gen11_dsi_deconfigure_trancoder()
1388 TRANS_DDI_FUNC_CTL2(dsi_trans), tmp); in gen11_dsi_deconfigure_trancoder()
1537 enum transcoder dsi_trans; in gen11_dsi_is_periodic_cmd_mode() local
1541 dsi_trans = TRANSCODER_DSI_1; in gen11_dsi_is_periodic_cmd_mode()
1543 dsi_trans = TRANSCODER_DSI_0; in gen11_dsi_is_periodic_cmd_mode()
1545 val = intel_de_read(dev_priv, DSI_TRANS_FUNC_CONF(dsi_trans)); in gen11_dsi_is_periodic_cmd_mode()
1721 enum transcoder dsi_trans; in gen11_dsi_get_hw_state() local
1733 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_get_hw_state()
1734 tmp = intel_de_read(dev_priv, TRANS_DDI_FUNC_CTL(dsi_trans)); in gen11_dsi_get_hw_state()
1753 tmp = intel_de_read(dev_priv, PIPECONF(dsi_trans)); in gen11_dsi_get_hw_state()