Lines Matching full:phys

437 	/* Query resources used by phys encs, expected to be without overlap */  in dpu_encoder_get_hw_resources()
441 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_get_hw_resources() local
443 if (phys->ops.get_hw_resources) in dpu_encoder_get_hw_resources()
444 phys->ops.get_hw_resources(phys, hw_res); in dpu_encoder_get_hw_resources()
464 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_destroy() local
466 if (phys->ops.destroy) { in dpu_encoder_destroy()
467 phys->ops.destroy(phys); in dpu_encoder_destroy()
610 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_virt_atomic_check() local
612 if (phys->ops.atomic_check) in dpu_encoder_virt_atomic_check()
613 ret = phys->ops.atomic_check(phys, crtc_state, in dpu_encoder_virt_atomic_check()
615 else if (phys->ops.mode_fixup) in dpu_encoder_virt_atomic_check()
616 if (!phys->ops.mode_fixup(phys, mode, adj_mode)) in dpu_encoder_virt_atomic_check()
621 "mode unsupported, phys idx %d\n", i); in dpu_encoder_virt_atomic_check()
663 DPU_ERROR("invalid num phys enc %d/%d\n", in _dpu_encoder_update_vsync_source()
709 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_irq_control() local
711 if (phys->ops.irq_control) in _dpu_encoder_irq_control()
712 phys->ops.irq_control(phys, enable); in _dpu_encoder_irq_control()
1056 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_virt_mode_set() local
1070 phys->hw_pp = dpu_enc->hw_pp[i]; in dpu_encoder_virt_mode_set()
1071 phys->hw_ctl = to_dpu_hw_ctl(hw_ctl[i]); in dpu_encoder_virt_mode_set()
1080 if (hw_intf->idx == phys->intf_idx) in dpu_encoder_virt_mode_set()
1081 phys->hw_intf = hw_intf; in dpu_encoder_virt_mode_set()
1084 if (!phys->hw_intf) { in dpu_encoder_virt_mode_set()
1090 phys->connector = conn->state->connector; in dpu_encoder_virt_mode_set()
1091 if (phys->ops.mode_set) in dpu_encoder_virt_mode_set()
1092 phys->ops.mode_set(phys, mode, adj_mode); in dpu_encoder_virt_mode_set()
1243 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_virt_disable() local
1245 if (phys->ops.disable) in dpu_encoder_virt_disable()
1246 phys->ops.disable(phys); in dpu_encoder_virt_disable()
1250 /* after phys waits for frame-done, should be no more frames pending */ in dpu_encoder_virt_disable()
1350 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_toggle_vblank_for_crtc() local
1352 if (phys->ops.control_vblank_irq) in dpu_encoder_toggle_vblank_for_crtc()
1353 phys->ops.control_vblank_irq(phys, enable); in dpu_encoder_toggle_vblank_for_crtc()
1448 * phys: Pointer to physical encoder structure
1452 struct dpu_encoder_phys *phys, uint32_t extra_flush_bits) in _dpu_encoder_trigger_flush() argument
1458 if (!phys->hw_pp) { in _dpu_encoder_trigger_flush()
1463 ctl = phys->hw_ctl; in _dpu_encoder_trigger_flush()
1469 pending_kickoff_cnt = dpu_encoder_phys_inc_pending(phys); in _dpu_encoder_trigger_flush()
1479 trace_dpu_enc_trigger_flush(DRMID(drm_enc), phys->intf_idx, in _dpu_encoder_trigger_flush()
1486 * phys: Pointer to physical encoder structure
1488 static void _dpu_encoder_trigger_start(struct dpu_encoder_phys *phys) in _dpu_encoder_trigger_start() argument
1490 if (!phys) { in _dpu_encoder_trigger_start()
1495 if (!phys->hw_pp) { in _dpu_encoder_trigger_start()
1500 if (phys->ops.trigger_start && phys->enable_state != DPU_ENC_DISABLED) in _dpu_encoder_trigger_start()
1501 phys->ops.trigger_start(phys); in _dpu_encoder_trigger_start()
1584 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_kickoff_phys() local
1586 if (phys->enable_state == DPU_ENC_DISABLED) in _dpu_encoder_kickoff_phys()
1589 ctl = phys->hw_ctl; in _dpu_encoder_kickoff_phys()
1596 if (phys->split_role != ENC_ROLE_SLAVE) in _dpu_encoder_kickoff_phys()
1599 if (!phys->ops.needs_single_flush || in _dpu_encoder_kickoff_phys()
1600 !phys->ops.needs_single_flush(phys)) in _dpu_encoder_kickoff_phys()
1601 _dpu_encoder_trigger_flush(&dpu_enc->base, phys, 0x0); in _dpu_encoder_kickoff_phys()
1622 struct dpu_encoder_phys *phys; in dpu_encoder_trigger_kickoff_pending() local
1635 phys = dpu_enc->phys_encs[i]; in dpu_encoder_trigger_kickoff_pending()
1637 ctl = phys->hw_ctl; in dpu_encoder_trigger_kickoff_pending()
1642 if ((phys == dpu_enc->cur_master) && in dpu_encoder_trigger_kickoff_pending()
1793 struct dpu_encoder_phys *phys; in dpu_encoder_prepare_for_kickoff() local
1804 phys = dpu_enc->phys_encs[i]; in dpu_encoder_prepare_for_kickoff()
1805 if (phys->ops.prepare_for_kickoff) in dpu_encoder_prepare_for_kickoff()
1806 phys->ops.prepare_for_kickoff(phys); in dpu_encoder_prepare_for_kickoff()
1807 if (phys->enable_state == DPU_ENC_ERR_NEEDS_HW_RESET) in dpu_encoder_prepare_for_kickoff()
1814 /* if any phys needs reset, reset all phys, in-order */ in dpu_encoder_prepare_for_kickoff()
1826 struct dpu_encoder_phys *phys; in dpu_encoder_kickoff() local
1843 /* All phys encs are ready to go, trigger the kickoff */ in dpu_encoder_kickoff()
1846 /* allow phys encs to handle any post-kickoff business */ in dpu_encoder_kickoff()
1848 phys = dpu_enc->phys_encs[i]; in dpu_encoder_kickoff()
1849 if (phys->ops.handle_post_kickoff) in dpu_encoder_kickoff()
1850 phys->ops.handle_post_kickoff(phys); in dpu_encoder_kickoff()
1867 struct dpu_encoder_phys *phys; in dpu_encoder_prepare_commit() local
1877 phys = dpu_enc->phys_encs[i]; in dpu_encoder_prepare_commit()
1878 if (phys->ops.prepare_commit) in dpu_encoder_prepare_commit()
1879 phys->ops.prepare_commit(phys); in dpu_encoder_prepare_commit()
1891 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in _dpu_encoder_status_show() local
1894 phys->intf_idx - INTF_0, in _dpu_encoder_status_show()
1895 atomic_read(&phys->vsync_cnt), in _dpu_encoder_status_show()
1896 atomic_read(&phys->underrun_cnt)); in _dpu_encoder_status_show()
1898 switch (phys->intf_mode) { in _dpu_encoder_status_show()
2103 DPU_ERROR_ENC(dpu_enc, "failed to add phys encs\n"); in dpu_encoder_setup_display()
2108 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_setup_display() local
2109 atomic_set(&phys->vsync_cnt, 0); in dpu_encoder_setup_display()
2110 atomic_set(&phys->underrun_cnt, 0); in dpu_encoder_setup_display()
2251 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i]; in dpu_encoder_wait_for_event() local
2255 fn_wait = phys->ops.wait_for_commit_done; in dpu_encoder_wait_for_event()
2258 fn_wait = phys->ops.wait_for_tx_complete; in dpu_encoder_wait_for_event()
2261 fn_wait = phys->ops.wait_for_vblank; in dpu_encoder_wait_for_event()
2271 ret = fn_wait(phys); in dpu_encoder_wait_for_event()