Lines Matching refs:dsi_trans
54 enum transcoder dsi_trans) in header_credits_available() argument
56 return (intel_de_read(dev_priv, DSI_CMD_TXCTL(dsi_trans)) & FREE_HEADER_CREDIT_MASK) in header_credits_available()
61 enum transcoder dsi_trans) in payload_credits_available() argument
63 return (intel_de_read(dev_priv, DSI_CMD_TXCTL(dsi_trans)) & FREE_PLOAD_CREDIT_MASK) in payload_credits_available()
68 enum transcoder dsi_trans, int hdr_credit) in wait_for_header_credits() argument
70 if (wait_for_us(header_credits_available(dev_priv, dsi_trans) >= in wait_for_header_credits()
80 enum transcoder dsi_trans, int payld_credit) in wait_for_payload_credits() argument
82 if (wait_for_us(payload_credits_available(dev_priv, dsi_trans) >= in wait_for_payload_credits()
105 enum transcoder dsi_trans; in wait_for_cmds_dispatched_to_panel() local
110 dsi_trans = dsi_port_to_transcoder(port); in wait_for_cmds_dispatched_to_panel()
111 wait_for_header_credits(dev_priv, dsi_trans, MAX_HEADER_CREDIT); in wait_for_cmds_dispatched_to_panel()
112 wait_for_payload_credits(dev_priv, dsi_trans, MAX_PLOAD_CREDIT); in wait_for_cmds_dispatched_to_panel()
128 dsi_trans = dsi_port_to_transcoder(port); in wait_for_cmds_dispatched_to_panel()
129 wait_for_header_credits(dev_priv, dsi_trans, MAX_HEADER_CREDIT); in wait_for_cmds_dispatched_to_panel()
134 dsi_trans = dsi_port_to_transcoder(port); in wait_for_cmds_dispatched_to_panel()
135 if (wait_for_us(!(intel_de_read(dev_priv, DSI_LP_MSG(dsi_trans)) & in wait_for_cmds_dispatched_to_panel()
146 enum transcoder dsi_trans = dsi_port_to_transcoder(host->port); in dsi_send_pkt_payld() local
160 if (!wait_for_payload_credits(i915, dsi_trans, 1)) in dsi_send_pkt_payld()
166 intel_de_write(i915, DSI_CMD_TXPYLD(dsi_trans), tmp); in dsi_send_pkt_payld()
178 enum transcoder dsi_trans = dsi_port_to_transcoder(host->port); in dsi_send_pkt_hdr() local
181 if (!wait_for_header_credits(dev_priv, dsi_trans, 1)) in dsi_send_pkt_hdr()
184 tmp = intel_de_read(dev_priv, DSI_CMD_TXHDR(dsi_trans)); in dsi_send_pkt_hdr()
203 intel_de_write(dev_priv, DSI_CMD_TXHDR(dsi_trans), tmp); in dsi_send_pkt_hdr()
688 enum transcoder dsi_trans; in gen11_dsi_configure_transcoder() local
691 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_configure_transcoder()
692 tmp = intel_de_read(dev_priv, DSI_TRANS_FUNC_CONF(dsi_trans)); in gen11_dsi_configure_transcoder()
781 intel_de_write(dev_priv, DSI_TRANS_FUNC_CONF(dsi_trans), tmp); in gen11_dsi_configure_transcoder()
787 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_configure_transcoder()
789 TRANS_DDI_FUNC_CTL2(dev_priv, dsi_trans), in gen11_dsi_configure_transcoder()
798 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_configure_transcoder()
802 TRANS_DDI_FUNC_CTL(dev_priv, dsi_trans)); in gen11_dsi_configure_transcoder()
829 TRANS_DDI_FUNC_CTL(dev_priv, dsi_trans), tmp); in gen11_dsi_configure_transcoder()
834 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_configure_transcoder()
835 if (wait_for_us((intel_de_read(dev_priv, DSI_TRANS_FUNC_CONF(dsi_trans)) & in gen11_dsi_configure_transcoder()
850 enum transcoder dsi_trans; in gen11_dsi_set_transcoder_timings() local
921 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
922 intel_de_write(dev_priv, TRANS_HTOTAL(dev_priv, dsi_trans), in gen11_dsi_set_transcoder_timings()
944 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
946 TRANS_HSYNC(dev_priv, dsi_trans), in gen11_dsi_set_transcoder_timings()
953 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
960 intel_de_write(dev_priv, TRANS_VTOTAL(dev_priv, dsi_trans), in gen11_dsi_set_transcoder_timings()
973 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
975 TRANS_VSYNC(dev_priv, dsi_trans), in gen11_dsi_set_transcoder_timings()
988 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
990 TRANS_VSYNCSHIFT(dev_priv, dsi_trans), in gen11_dsi_set_transcoder_timings()
1003 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_set_transcoder_timings()
1005 TRANS_VBLANK(dev_priv, dsi_trans), in gen11_dsi_set_transcoder_timings()
1016 enum transcoder dsi_trans; in gen11_dsi_enable_transcoder() local
1019 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_enable_transcoder()
1020 intel_de_rmw(dev_priv, TRANSCONF(dev_priv, dsi_trans), 0, in gen11_dsi_enable_transcoder()
1024 if (intel_de_wait_for_set(dev_priv, TRANSCONF(dev_priv, dsi_trans), in gen11_dsi_enable_transcoder()
1037 enum transcoder dsi_trans; in gen11_dsi_setup_timeouts() local
1055 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_setup_timeouts()
1058 intel_de_rmw(dev_priv, DSI_HSTX_TO(dsi_trans), in gen11_dsi_setup_timeouts()
1065 intel_de_rmw(dev_priv, DSI_LPRX_HOST_TO(dsi_trans), in gen11_dsi_setup_timeouts()
1072 intel_de_rmw(dev_priv, DSI_TA_TO(dsi_trans), in gen11_dsi_setup_timeouts()
1143 enum transcoder dsi_trans; in gen11_dsi_powerup_panel() local
1149 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_powerup_panel()
1155 tmp = intel_de_read(dev_priv, DSI_CMD_RXCTL(dsi_trans)); in gen11_dsi_powerup_panel()
1281 enum transcoder dsi_trans; in gen11_dsi_disable_transcoder() local
1284 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_disable_transcoder()
1287 intel_de_rmw(dev_priv, TRANSCONF(dev_priv, dsi_trans), in gen11_dsi_disable_transcoder()
1291 if (intel_de_wait_for_clear(dev_priv, TRANSCONF(dev_priv, dsi_trans), in gen11_dsi_disable_transcoder()
1313 enum transcoder dsi_trans; in gen11_dsi_deconfigure_trancoder() local
1325 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_deconfigure_trancoder()
1326 tmp = intel_de_read(dev_priv, DSI_LP_MSG(dsi_trans)); in gen11_dsi_deconfigure_trancoder()
1329 intel_de_write(dev_priv, DSI_LP_MSG(dsi_trans), tmp); in gen11_dsi_deconfigure_trancoder()
1331 if (wait_for_us((intel_de_read(dev_priv, DSI_LP_MSG(dsi_trans)) & in gen11_dsi_deconfigure_trancoder()
1339 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_deconfigure_trancoder()
1341 TRANS_DDI_FUNC_CTL(dev_priv, dsi_trans), in gen11_dsi_deconfigure_trancoder()
1348 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_deconfigure_trancoder()
1350 TRANS_DDI_FUNC_CTL2(dev_priv, dsi_trans), in gen11_dsi_deconfigure_trancoder()
1509 enum transcoder dsi_trans; in gen11_dsi_is_periodic_cmd_mode() local
1513 dsi_trans = TRANSCODER_DSI_1; in gen11_dsi_is_periodic_cmd_mode()
1515 dsi_trans = TRANSCODER_DSI_0; in gen11_dsi_is_periodic_cmd_mode()
1517 val = intel_de_read(dev_priv, DSI_TRANS_FUNC_CONF(dsi_trans)); in gen11_dsi_is_periodic_cmd_mode()
1693 enum transcoder dsi_trans; in gen11_dsi_get_hw_state() local
1705 dsi_trans = dsi_port_to_transcoder(port); in gen11_dsi_get_hw_state()
1707 TRANS_DDI_FUNC_CTL(dev_priv, dsi_trans)); in gen11_dsi_get_hw_state()
1726 tmp = intel_de_read(dev_priv, TRANSCONF(dev_priv, dsi_trans)); in gen11_dsi_get_hw_state()