Lines Matching refs:kcrtc_st

47 static void komeda_crtc_update_clock_ratio(struct komeda_crtc_state *kcrtc_st)  in komeda_crtc_update_clock_ratio()  argument
51 if (!kcrtc_st->base.active) { in komeda_crtc_update_clock_ratio()
52 kcrtc_st->clock_ratio = 0; in komeda_crtc_update_clock_ratio()
56 pxlclk = kcrtc_st->base.adjusted_mode.crtc_clock * 1000ULL; in komeda_crtc_update_clock_ratio()
57 aclk = komeda_crtc_get_aclk(kcrtc_st); in komeda_crtc_update_clock_ratio()
59 kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); in komeda_crtc_update_clock_ratio()
81 struct komeda_crtc_state *kcrtc_st = to_kcrtc_st(crtc_state); in komeda_crtc_atomic_check() local
85 komeda_crtc_update_clock_ratio(kcrtc_st); in komeda_crtc_atomic_check()
88 err = komeda_build_display_data_flow(kcrtc, kcrtc_st); in komeda_crtc_atomic_check()
94 err = komeda_release_unclaimed_resources(kcrtc->slave, kcrtc_st); in komeda_crtc_atomic_check()
98 err = komeda_release_unclaimed_resources(kcrtc->master, kcrtc_st); in komeda_crtc_atomic_check()
114 struct komeda_crtc_state *kcrtc_st = to_kcrtc_st(kcrtc->base.state); in komeda_crtc_prepare() local
115 struct drm_display_mode *mode = &kcrtc_st->base.adjusted_mode; in komeda_crtc_prepare()
141 err = clk_set_rate(mdev->aclk, komeda_crtc_get_aclk(kcrtc_st)); in komeda_crtc_prepare()
249 struct komeda_crtc_state *kcrtc_st = to_kcrtc_st(crtc->state); in komeda_crtc_do_flush() local
258 kcrtc_st->active_pipes, kcrtc_st->affected_pipes); in komeda_crtc_do_flush()
261 if (has_bit(master->id, kcrtc_st->affected_pipes)) in komeda_crtc_do_flush()
264 if (slave && has_bit(slave->id, kcrtc_st->affected_pipes)) in komeda_crtc_do_flush()
272 mdev->funcs->flush(mdev, master->id, kcrtc_st->active_pipes); in komeda_crtc_do_flush()
415 unsigned long komeda_crtc_get_aclk(struct komeda_crtc_state *kcrtc_st) in komeda_crtc_get_aclk() argument
417 struct drm_crtc *crtc = kcrtc_st->base.crtc; in komeda_crtc_get_aclk()
419 unsigned long pxlclk = kcrtc_st->base.adjusted_mode.crtc_clock * 1000; in komeda_crtc_get_aclk()