Lines Matching refs:phys

236 		struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i];  in dpu_encoder_get_crc_values_cnt()  local
238 if (phys->hw_intf && phys->hw_intf->ops.setup_misr in dpu_encoder_get_crc_values_cnt()
239 && phys->hw_intf->ops.collect_misr) in dpu_encoder_get_crc_values_cnt()
255 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_setup_misr() local
257 if (!phys->hw_intf || !phys->hw_intf->ops.setup_misr) in dpu_encoder_setup_misr()
260 phys->hw_intf->ops.setup_misr(phys->hw_intf, true, 1); in dpu_encoder_setup_misr()
278 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_get_crc() local
280 if (!phys->hw_intf || !phys->hw_intf->ops.collect_misr) in dpu_encoder_get_crc()
283 rc = phys->hw_intf->ops.collect_misr(phys->hw_intf, &crcs[pos + entries_added]); in dpu_encoder_get_crc()
426 struct dpu_encoder_phys *phys = dpu_enc ? dpu_enc->cur_master : NULL; in dpu_encoder_get_vsync_count() local
427 return phys ? atomic_read(&phys->vsync_cnt) : 0; in dpu_encoder_get_vsync_count()
433 struct dpu_encoder_phys *phys; in dpu_encoder_get_linecount() local
437 phys = dpu_enc ? dpu_enc->cur_master : NULL; in dpu_encoder_get_linecount()
439 if (phys && phys->ops.get_line_count) in dpu_encoder_get_linecount()
440 linecount = phys->ops.get_line_count(phys); in dpu_encoder_get_linecount()
461 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_destroy() local
463 if (phys->ops.destroy) { in dpu_encoder_destroy()
464 phys->ops.destroy(phys); in dpu_encoder_destroy()
634 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_virt_atomic_check() local
636 if (phys->ops.atomic_check) in dpu_encoder_virt_atomic_check()
637 ret = phys->ops.atomic_check(phys, crtc_state, in dpu_encoder_virt_atomic_check()
729 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_irq_control() local
731 if (phys->ops.irq_control) in _dpu_encoder_irq_control()
732 phys->ops.irq_control(phys, enable); in _dpu_encoder_irq_control()
992 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_prepare_wb_job() local
994 if (phys->ops.prepare_wb_job) in dpu_encoder_prepare_wb_job()
995 phys->ops.prepare_wb_job(phys, job); in dpu_encoder_prepare_wb_job()
1009 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_cleanup_wb_job() local
1011 if (phys->ops.cleanup_wb_job) in dpu_encoder_cleanup_wb_job()
1012 phys->ops.cleanup_wb_job(phys, job); in dpu_encoder_cleanup_wb_job()
1097 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_virt_atomic_mode_set() local
1111 phys->hw_pp = dpu_enc->hw_pp[i]; in dpu_encoder_virt_atomic_mode_set()
1112 phys->hw_ctl = to_dpu_hw_ctl(hw_ctl[i]); in dpu_encoder_virt_atomic_mode_set()
1114 phys->cached_mode = crtc_state->adjusted_mode; in dpu_encoder_virt_atomic_mode_set()
1115 if (phys->ops.atomic_mode_set) in dpu_encoder_virt_atomic_mode_set()
1116 phys->ops.atomic_mode_set(phys, crtc_state, conn_state); in dpu_encoder_virt_atomic_mode_set()
1231 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_virt_disable() local
1233 if (phys->ops.disable) in dpu_encoder_virt_disable()
1234 phys->ops.disable(phys); in dpu_encoder_virt_disable()
1356 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_toggle_vblank_for_crtc() local
1358 if (phys->ops.control_vblank_irq) in dpu_encoder_toggle_vblank_for_crtc()
1359 phys->ops.control_vblank_irq(phys, enable); in dpu_encoder_toggle_vblank_for_crtc()
1454 struct dpu_encoder_phys *phys, uint32_t extra_flush_bits) in _dpu_encoder_trigger_flush() argument
1460 if (!phys->hw_pp) { in _dpu_encoder_trigger_flush()
1465 ctl = phys->hw_ctl; in _dpu_encoder_trigger_flush()
1471 pending_kickoff_cnt = dpu_encoder_phys_inc_pending(phys); in _dpu_encoder_trigger_flush()
1482 dpu_encoder_helper_get_intf_type(phys->intf_mode), in _dpu_encoder_trigger_flush()
1483 phys->intf_idx, phys->wb_idx, in _dpu_encoder_trigger_flush()
1492 static void _dpu_encoder_trigger_start(struct dpu_encoder_phys *phys) in _dpu_encoder_trigger_start() argument
1494 if (!phys) { in _dpu_encoder_trigger_start()
1499 if (!phys->hw_pp) { in _dpu_encoder_trigger_start()
1504 if (phys->ops.trigger_start && phys->enable_state != DPU_ENC_DISABLED) in _dpu_encoder_trigger_start()
1505 phys->ops.trigger_start(phys); in _dpu_encoder_trigger_start()
1592 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_kickoff_phys() local
1594 if (phys->enable_state == DPU_ENC_DISABLED) in _dpu_encoder_kickoff_phys()
1597 ctl = phys->hw_ctl; in _dpu_encoder_kickoff_phys()
1604 if (phys->split_role != ENC_ROLE_SLAVE) in _dpu_encoder_kickoff_phys()
1607 if (!phys->ops.needs_single_flush || in _dpu_encoder_kickoff_phys()
1608 !phys->ops.needs_single_flush(phys)) in _dpu_encoder_kickoff_phys()
1609 _dpu_encoder_trigger_flush(&dpu_enc->base, phys, 0x0); in _dpu_encoder_kickoff_phys()
1630 struct dpu_encoder_phys *phys; in dpu_encoder_trigger_kickoff_pending() local
1643 phys = dpu_enc->phys_encs[i]; in dpu_encoder_trigger_kickoff_pending()
1645 ctl = phys->hw_ctl; in dpu_encoder_trigger_kickoff_pending()
1650 if ((phys == dpu_enc->cur_master) && in dpu_encoder_trigger_kickoff_pending()
1885 struct dpu_encoder_phys *phys; in dpu_encoder_prepare_for_kickoff() local
1896 phys = dpu_enc->phys_encs[i]; in dpu_encoder_prepare_for_kickoff()
1897 if (phys->ops.prepare_for_kickoff) in dpu_encoder_prepare_for_kickoff()
1898 phys->ops.prepare_for_kickoff(phys); in dpu_encoder_prepare_for_kickoff()
1899 if (phys->enable_state == DPU_ENC_ERR_NEEDS_HW_RESET) in dpu_encoder_prepare_for_kickoff()
1922 struct dpu_encoder_phys *phys; in dpu_encoder_is_valid_for_commit() local
1928 phys = dpu_enc->phys_encs[i]; in dpu_encoder_is_valid_for_commit()
1929 if (phys->ops.is_valid_for_commit && !phys->ops.is_valid_for_commit(phys)) { in dpu_encoder_is_valid_for_commit()
1942 struct dpu_encoder_phys *phys; in dpu_encoder_kickoff() local
1964 phys = dpu_enc->phys_encs[i]; in dpu_encoder_kickoff()
1965 if (phys->ops.handle_post_kickoff) in dpu_encoder_kickoff()
1966 phys->ops.handle_post_kickoff(phys); in dpu_encoder_kickoff()
2083 struct dpu_encoder_phys *phys; in dpu_encoder_prepare_commit() local
2093 phys = dpu_enc->phys_encs[i]; in dpu_encoder_prepare_commit()
2094 if (phys->ops.prepare_commit) in dpu_encoder_prepare_commit()
2095 phys->ops.prepare_commit(phys); in dpu_encoder_prepare_commit()
2107 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_status_show() local
2110 phys->intf_idx - INTF_0, phys->wb_idx - WB_0, in _dpu_encoder_status_show()
2111 atomic_read(&phys->vsync_cnt), in _dpu_encoder_status_show()
2112 atomic_read(&phys->underrun_cnt)); in _dpu_encoder_status_show()
2114 seq_printf(s, "mode: %s\n", dpu_encoder_helper_get_intf_type(phys->intf_mode)); in _dpu_encoder_status_show()
2340 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_setup_display() local
2341 atomic_set(&phys->vsync_cnt, 0); in dpu_encoder_setup_display()
2342 atomic_set(&phys->underrun_cnt, 0); in dpu_encoder_setup_display()
2344 if (phys->intf_idx >= INTF_0 && phys->intf_idx < INTF_MAX) in dpu_encoder_setup_display()
2345 phys->hw_intf = dpu_rm_get_intf(&dpu_kms->rm, phys->intf_idx); in dpu_encoder_setup_display()
2347 if (phys->wb_idx >= WB_0 && phys->wb_idx < WB_MAX) in dpu_encoder_setup_display()
2348 phys->hw_wb = dpu_rm_get_wb(&dpu_kms->rm, phys->wb_idx); in dpu_encoder_setup_display()
2350 if (!phys->hw_intf && !phys->hw_wb) { in dpu_encoder_setup_display()
2355 if (phys->hw_intf && phys->hw_wb) { in dpu_encoder_setup_display()
2501 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_wait_for_event() local
2505 fn_wait = phys->ops.wait_for_commit_done; in dpu_encoder_wait_for_event()
2508 fn_wait = phys->ops.wait_for_tx_complete; in dpu_encoder_wait_for_event()
2511 fn_wait = phys->ops.wait_for_vblank; in dpu_encoder_wait_for_event()
2521 ret = fn_wait(phys); in dpu_encoder_wait_for_event()