Lines Matching refs:vc4_crtc

214 			     struct vc4_crtc *vc4_crtc)  in vc4_hvs_lut_load()  argument
217 struct drm_crtc *crtc = &vc4_crtc->base; in vc4_hvs_lut_load()
234 HVS_WRITE(SCALER_GAMDATA, vc4_crtc->lut_r[i]); in vc4_hvs_lut_load()
236 HVS_WRITE(SCALER_GAMDATA, vc4_crtc->lut_g[i]); in vc4_hvs_lut_load()
238 HVS_WRITE(SCALER_GAMDATA, vc4_crtc->lut_b[i]); in vc4_hvs_lut_load()
244 struct vc4_crtc *vc4_crtc) in vc4_hvs_update_gamma_lut() argument
246 struct drm_crtc_state *crtc_state = vc4_crtc->base.state; in vc4_hvs_update_gamma_lut()
252 vc4_crtc->lut_r[i] = drm_color_lut_extract(lut[i].red, 8); in vc4_hvs_update_gamma_lut()
253 vc4_crtc->lut_g[i] = drm_color_lut_extract(lut[i].green, 8); in vc4_hvs_update_gamma_lut()
254 vc4_crtc->lut_b[i] = drm_color_lut_extract(lut[i].blue, 8); in vc4_hvs_update_gamma_lut()
257 vc4_hvs_lut_load(hvs, vc4_crtc); in vc4_hvs_update_gamma_lut()
352 struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); in vc4_hvs_init_channel() local
403 vc4_hvs_lut_load(hvs, vc4_crtc); in vc4_hvs_init_channel()
494 struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); in vc4_hvs_update_dlist() local
505 if (!vc4_crtc->feeds_txp || vc4_state->txp_armed) { in vc4_hvs_update_dlist()
506 vc4_crtc->event = crtc->state->event; in vc4_hvs_update_dlist()
513 spin_lock_irqsave(&vc4_crtc->irq_lock, flags); in vc4_hvs_update_dlist()
514 vc4_crtc->current_dlist = vc4_state->mm.start; in vc4_hvs_update_dlist()
515 spin_unlock_irqrestore(&vc4_crtc->irq_lock, flags); in vc4_hvs_update_dlist()
521 struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); in vc4_hvs_atomic_begin() local
525 spin_lock_irqsave(&vc4_crtc->irq_lock, flags); in vc4_hvs_atomic_begin()
526 vc4_crtc->current_hvs_channel = vc4_state->assigned_channel; in vc4_hvs_atomic_begin()
527 spin_unlock_irqrestore(&vc4_crtc->irq_lock, flags); in vc4_hvs_atomic_begin()
536 struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); in vc4_hvs_atomic_enable() local
537 bool oneshot = vc4_crtc->feeds_txp; in vc4_hvs_atomic_enable()
564 struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); in vc4_hvs_atomic_flush() local
649 vc4_hvs_update_gamma_lut(hvs, vc4_crtc); in vc4_hvs_atomic_flush()