Lines Matching refs:phys

290 		struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i];  in dpu_encoder_get_crc_values_cnt()  local
292 if (phys->hw_intf && phys->hw_intf->ops.setup_misr in dpu_encoder_get_crc_values_cnt()
293 && phys->hw_intf->ops.collect_misr) in dpu_encoder_get_crc_values_cnt()
309 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_setup_misr() local
311 if (!phys->hw_intf || !phys->hw_intf->ops.setup_misr) in dpu_encoder_setup_misr()
314 phys->hw_intf->ops.setup_misr(phys->hw_intf); in dpu_encoder_setup_misr()
332 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_get_crc() local
334 if (!phys->hw_intf || !phys->hw_intf->ops.collect_misr) in dpu_encoder_get_crc()
337 rc = phys->hw_intf->ops.collect_misr(phys->hw_intf, &crcs[pos + entries_added]); in dpu_encoder_get_crc()
479 struct dpu_encoder_phys *phys = dpu_enc ? dpu_enc->cur_master : NULL; in dpu_encoder_get_vsync_count() local
480 return phys ? atomic_read(&phys->vsync_cnt) : 0; in dpu_encoder_get_vsync_count()
486 struct dpu_encoder_phys *phys; in dpu_encoder_get_linecount() local
490 phys = dpu_enc ? dpu_enc->cur_master : NULL; in dpu_encoder_get_linecount()
492 if (phys && phys->ops.get_line_count) in dpu_encoder_get_linecount()
493 linecount = phys->ops.get_line_count(phys); in dpu_encoder_get_linecount()
807 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_irq_enable() local
809 phys->ops.irq_enable(phys); in _dpu_encoder_irq_enable()
827 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_irq_disable() local
829 phys->ops.irq_disable(phys); in _dpu_encoder_irq_disable()
1101 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_prepare_wb_job() local
1103 if (phys->ops.prepare_wb_job) in dpu_encoder_prepare_wb_job()
1104 phys->ops.prepare_wb_job(phys, job); in dpu_encoder_prepare_wb_job()
1118 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_cleanup_wb_job() local
1120 if (phys->ops.cleanup_wb_job) in dpu_encoder_cleanup_wb_job()
1121 phys->ops.cleanup_wb_job(phys, job); in dpu_encoder_cleanup_wb_job()
1192 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_virt_atomic_mode_set() local
1194 phys->hw_pp = dpu_enc->hw_pp[i]; in dpu_encoder_virt_atomic_mode_set()
1195 if (!phys->hw_pp) { in dpu_encoder_virt_atomic_mode_set()
1201 phys->hw_ctl = i < num_ctl ? to_dpu_hw_ctl(hw_ctl[i]) : NULL; in dpu_encoder_virt_atomic_mode_set()
1202 if (!phys->hw_ctl) { in dpu_encoder_virt_atomic_mode_set()
1208 phys->cached_mode = crtc_state->adjusted_mode; in dpu_encoder_virt_atomic_mode_set()
1209 if (phys->ops.atomic_mode_set) in dpu_encoder_virt_atomic_mode_set()
1210 phys->ops.atomic_mode_set(phys, crtc_state, conn_state); in dpu_encoder_virt_atomic_mode_set()
1351 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_virt_atomic_disable() local
1353 if (phys->ops.disable) in dpu_encoder_virt_atomic_disable()
1354 phys->ops.disable(phys); in dpu_encoder_virt_atomic_disable()
1461 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_toggle_vblank_for_crtc() local
1463 if (phys->ops.control_vblank_irq) in dpu_encoder_toggle_vblank_for_crtc()
1464 phys->ops.control_vblank_irq(phys, enable); in dpu_encoder_toggle_vblank_for_crtc()
1535 struct dpu_encoder_phys *phys, uint32_t extra_flush_bits) in _dpu_encoder_trigger_flush() argument
1541 if (!phys->hw_pp) { in _dpu_encoder_trigger_flush()
1546 ctl = phys->hw_ctl; in _dpu_encoder_trigger_flush()
1552 pending_kickoff_cnt = dpu_encoder_phys_inc_pending(phys); in _dpu_encoder_trigger_flush()
1563 dpu_encoder_helper_get_intf_type(phys->intf_mode), in _dpu_encoder_trigger_flush()
1564 phys->hw_intf ? phys->hw_intf->idx : -1, in _dpu_encoder_trigger_flush()
1565 phys->hw_wb ? phys->hw_wb->idx : -1, in _dpu_encoder_trigger_flush()
1574 static void _dpu_encoder_trigger_start(struct dpu_encoder_phys *phys) in _dpu_encoder_trigger_start() argument
1576 if (!phys) { in _dpu_encoder_trigger_start()
1581 if (!phys->hw_pp) { in _dpu_encoder_trigger_start()
1586 if (phys->ops.trigger_start && phys->enable_state != DPU_ENC_DISABLED) in _dpu_encoder_trigger_start()
1587 phys->ops.trigger_start(phys); in _dpu_encoder_trigger_start()
1676 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_kickoff_phys() local
1678 if (phys->enable_state == DPU_ENC_DISABLED) in _dpu_encoder_kickoff_phys()
1681 ctl = phys->hw_ctl; in _dpu_encoder_kickoff_phys()
1688 if (phys->split_role != ENC_ROLE_SLAVE) in _dpu_encoder_kickoff_phys()
1691 if (!phys->ops.needs_single_flush || in _dpu_encoder_kickoff_phys()
1692 !phys->ops.needs_single_flush(phys)) in _dpu_encoder_kickoff_phys()
1693 _dpu_encoder_trigger_flush(&dpu_enc->base, phys, 0x0); in _dpu_encoder_kickoff_phys()
1714 struct dpu_encoder_phys *phys; in dpu_encoder_trigger_kickoff_pending() local
1727 phys = dpu_enc->phys_encs[i]; in dpu_encoder_trigger_kickoff_pending()
1729 ctl = phys->hw_ctl; in dpu_encoder_trigger_kickoff_pending()
1733 if ((phys == dpu_enc->cur_master) && in dpu_encoder_trigger_kickoff_pending()
1936 struct dpu_encoder_phys *phys; in dpu_encoder_prepare_for_kickoff() local
1947 phys = dpu_enc->phys_encs[i]; in dpu_encoder_prepare_for_kickoff()
1948 if (phys->ops.prepare_for_kickoff) in dpu_encoder_prepare_for_kickoff()
1949 phys->ops.prepare_for_kickoff(phys); in dpu_encoder_prepare_for_kickoff()
1950 if (phys->enable_state == DPU_ENC_ERR_NEEDS_HW_RESET) in dpu_encoder_prepare_for_kickoff()
1973 struct dpu_encoder_phys *phys; in dpu_encoder_is_valid_for_commit() local
1979 phys = dpu_enc->phys_encs[i]; in dpu_encoder_is_valid_for_commit()
1980 if (phys->ops.is_valid_for_commit && !phys->ops.is_valid_for_commit(phys)) { in dpu_encoder_is_valid_for_commit()
1993 struct dpu_encoder_phys *phys; in dpu_encoder_kickoff() local
2014 phys = dpu_enc->phys_encs[i]; in dpu_encoder_kickoff()
2015 if (phys->ops.handle_post_kickoff) in dpu_encoder_kickoff()
2016 phys->ops.handle_post_kickoff(phys); in dpu_encoder_kickoff()
2258 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_status_show() local
2261 phys->hw_intf ? phys->hw_intf->idx - INTF_0 : -1, in _dpu_encoder_status_show()
2262 phys->hw_wb ? phys->hw_wb->idx - WB_0 : -1, in _dpu_encoder_status_show()
2263 atomic_read(&phys->vsync_cnt), in _dpu_encoder_status_show()
2264 atomic_read(&phys->underrun_cnt), in _dpu_encoder_status_show()
2267 seq_printf(s, "mode: %s\n", dpu_encoder_helper_get_intf_type(phys->intf_mode)); in _dpu_encoder_status_show()
2541 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_wait_for_commit_done() local
2543 if (phys->ops.wait_for_commit_done) { in dpu_encoder_wait_for_commit_done()
2545 ret = phys->ops.wait_for_commit_done(phys); in dpu_encoder_wait_for_commit_done()
2582 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_wait_for_tx_complete() local
2584 if (phys->ops.wait_for_tx_complete) { in dpu_encoder_wait_for_tx_complete()
2586 ret = phys->ops.wait_for_tx_complete(phys); in dpu_encoder_wait_for_tx_complete()