Lines Matching full:vc4

7  * DOC: VC4 HVS module.
70 struct drm_device *drm = &hvs->vc4->base; in vc4_hvs_dump_state()
96 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_debugfs_underrun() local
99 drm_printf(&p, "%d\n", atomic_read(&vc4->underrun)); in vc4_hvs_debugfs_underrun()
108 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_debugfs_dlist() local
109 struct vc4_hvs *hvs = vc4->hvs; in vc4_hvs_debugfs_dlist()
127 dlist_word = readl((u32 __iomem *)vc4->hvs->dlist + j); in vc4_hvs_debugfs_dlist()
214 struct drm_device *drm = &hvs->vc4->base; in vc4_hvs_lut_load()
260 struct drm_device *drm = &hvs->vc4->base; in vc4_hvs_get_fifo_frame_count()
288 struct vc4_dev *vc4 = hvs->vc4; in vc4_hvs_get_fifo_from_output() local
292 if (!vc4->is_vc5) in vc4_hvs_get_fifo_from_output()
348 struct vc4_dev *vc4 = hvs->vc4; in vc4_hvs_init_channel() local
349 struct drm_device *drm = &vc4->base; in vc4_hvs_init_channel()
372 if (!vc4->is_vc5) in vc4_hvs_init_channel()
393 ((!vc4->is_vc5) ? SCALER_DISPBKGND_GAMMA : 0) | in vc4_hvs_init_channel()
408 struct drm_device *drm = &hvs->vc4->base; in vc4_hvs_stop_channel()
442 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_atomic_check() local
460 spin_lock_irqsave(&vc4->hvs->mm_lock, flags); in vc4_hvs_atomic_check()
461 ret = drm_mm_insert_node(&vc4->hvs->dlist_mm, &vc4_state->mm, in vc4_hvs_atomic_check()
463 spin_unlock_irqrestore(&vc4->hvs->mm_lock, flags); in vc4_hvs_atomic_check()
473 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_install_dlist() local
474 struct vc4_hvs *hvs = vc4->hvs; in vc4_hvs_install_dlist()
530 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_atomic_enable() local
537 vc4_hvs_init_channel(vc4->hvs, crtc, mode, oneshot); in vc4_hvs_atomic_enable()
544 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_atomic_disable() local
549 vc4_hvs_stop_channel(vc4->hvs, chan); in vc4_hvs_atomic_disable()
558 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_atomic_flush() local
559 struct vc4_hvs *hvs = vc4->hvs; in vc4_hvs_atomic_flush()
567 u32 __iomem *dlist_start = vc4->hvs->dlist + vc4_state->mm.start; in vc4_hvs_atomic_flush()
651 struct drm_device *drm = &hvs->vc4->base; in vc4_hvs_mask_underrun()
668 struct drm_device *drm = &hvs->vc4->base; in vc4_hvs_unmask_underrun()
687 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_report_underrun() local
689 atomic_inc(&vc4->underrun); in vc4_hvs_report_underrun()
696 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_irq_handler() local
697 struct vc4_hvs *hvs = vc4->hvs; in vc4_hvs_irq_handler()
739 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_hvs_debugfs_init() local
740 struct vc4_hvs *hvs = vc4->hvs; in vc4_hvs_debugfs_init()
743 if (!vc4->hvs) in vc4_hvs_debugfs_init()
746 if (!vc4->is_vc5) in vc4_hvs_debugfs_init()
749 &vc4->load_tracker_enabled); in vc4_hvs_debugfs_init()
773 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_hvs_bind() local
782 hvs->vc4 = vc4; in vc4_hvs_bind()
793 if (vc4->is_vc5) { in vc4_hvs_bind()
807 if (!vc4->is_vc5) in vc4_hvs_bind()
828 if (!vc4->is_vc5) in vc4_hvs_bind()
844 vc4->hvs = hvs; in vc4_hvs_bind()
890 vc4_hvs_irq_handler, 0, "vc4 hvs", drm); in vc4_hvs_bind()
901 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_hvs_unbind() local
902 struct vc4_hvs *hvs = vc4->hvs; in vc4_hvs_unbind()
905 if (drm_mm_node_allocated(&vc4->hvs->mitchell_netravali_filter)) in vc4_hvs_unbind()
906 drm_mm_remove_node(&vc4->hvs->mitchell_netravali_filter); in vc4_hvs_unbind()
908 drm_mm_for_each_node_safe(node, next, &vc4->hvs->dlist_mm) in vc4_hvs_unbind()
911 drm_mm_takedown(&vc4->hvs->dlist_mm); in vc4_hvs_unbind()
913 drm_mm_for_each_node_safe(node, next, &vc4->hvs->lbm_mm) in vc4_hvs_unbind()
915 drm_mm_takedown(&vc4->hvs->lbm_mm); in vc4_hvs_unbind()
919 vc4->hvs = NULL; in vc4_hvs_unbind()