Home
last modified time | relevance | path

Searched refs:vc4 (Results 1 – 17 of 17) sorted by relevance

/drivers/gpu/drm/vc4/
Dvc4_irq.c59 struct vc4_dev *vc4 = in vc4_overflow_mem_work() local
61 struct drm_device *dev = vc4->dev; in vc4_overflow_mem_work()
80 if (vc4->overflow_mem) { in vc4_overflow_mem_work()
84 spin_lock_irqsave(&vc4->job_lock, irqflags); in vc4_overflow_mem_work()
85 current_exec = vc4_first_bin_job(vc4); in vc4_overflow_mem_work()
87 current_exec = vc4_last_render_job(vc4); in vc4_overflow_mem_work()
89 vc4->overflow_mem->seqno = current_exec->seqno; in vc4_overflow_mem_work()
90 list_add_tail(&vc4->overflow_mem->unref_head, in vc4_overflow_mem_work()
92 vc4->overflow_mem = NULL; in vc4_overflow_mem_work()
94 spin_unlock_irqrestore(&vc4->job_lock, irqflags); in vc4_overflow_mem_work()
[all …]
Dvc4_gem.c38 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_queue_hangcheck() local
40 mod_timer(&vc4->hangcheck.timer, in vc4_queue_hangcheck()
70 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_get_hang_state_ioctl() local
75 spin_lock_irqsave(&vc4->job_lock, irqflags); in vc4_get_hang_state_ioctl()
76 kernel_state = vc4->hang_state; in vc4_get_hang_state_ioctl()
78 spin_unlock_irqrestore(&vc4->job_lock, irqflags); in vc4_get_hang_state_ioctl()
88 spin_unlock_irqrestore(&vc4->job_lock, irqflags); in vc4_get_hang_state_ioctl()
92 vc4->hang_state = NULL; in vc4_get_hang_state_ioctl()
93 spin_unlock_irqrestore(&vc4->job_lock, irqflags); in vc4_get_hang_state_ioctl()
142 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_save_hang_state() local
[all …]
Dvc4_bo.c24 static void vc4_bo_stats_dump(struct vc4_dev *vc4) in vc4_bo_stats_dump() argument
27 vc4->bo_stats.num_allocated); in vc4_bo_stats_dump()
29 vc4->bo_stats.size_allocated / 1024); in vc4_bo_stats_dump()
31 vc4->bo_stats.num_allocated - vc4->bo_stats.num_cached); in vc4_bo_stats_dump()
33 (vc4->bo_stats.size_allocated - in vc4_bo_stats_dump()
34 vc4->bo_stats.size_cached) / 1024); in vc4_bo_stats_dump()
36 vc4->bo_stats.num_cached); in vc4_bo_stats_dump()
38 vc4->bo_stats.size_cached / 1024); in vc4_bo_stats_dump()
46 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_bo_stats_debugfs() local
50 mutex_lock(&vc4->bo_lock); in vc4_bo_stats_debugfs()
[all …]
Dvc4_drv.c51 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_get_param_ioctl() local
60 ret = pm_runtime_get_sync(&vc4->v3d->pdev->dev); in vc4_get_param_ioctl()
64 pm_runtime_mark_last_busy(&vc4->v3d->pdev->dev); in vc4_get_param_ioctl()
65 pm_runtime_put_autosuspend(&vc4->v3d->pdev->dev); in vc4_get_param_ioctl()
68 ret = pm_runtime_get_sync(&vc4->v3d->pdev->dev); in vc4_get_param_ioctl()
72 pm_runtime_mark_last_busy(&vc4->v3d->pdev->dev); in vc4_get_param_ioctl()
73 pm_runtime_put_autosuspend(&vc4->v3d->pdev->dev); in vc4_get_param_ioctl()
76 ret = pm_runtime_get_sync(&vc4->v3d->pdev->dev); in vc4_get_param_ioctl()
80 pm_runtime_mark_last_busy(&vc4->v3d->pdev->dev); in vc4_get_param_ioctl()
81 pm_runtime_put_autosuspend(&vc4->v3d->pdev->dev); in vc4_get_param_ioctl()
[all …]
Dvc4_v3d.c114 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_v3d_debugfs_regs() local
130 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_v3d_debugfs_ident() local
150 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_v3d_init_hw() local
163 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_suspend() local
165 vc4_irq_uninstall(vc4->dev); in vc4_v3d_runtime_suspend()
173 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_resume() local
175 vc4_v3d_init_hw(vc4->dev); in vc4_v3d_runtime_resume()
178 enable_irq(vc4->dev->irq); in vc4_v3d_runtime_resume()
179 vc4_irq_postinstall(vc4->dev); in vc4_v3d_runtime_resume()
189 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_v3d_bind() local
[all …]
Dvc4_kms.c27 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_output_poll_changed() local
29 drm_fbdev_cma_hotplug_event(vc4->fbdev); in vc4_output_poll_changed()
43 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_atomic_complete_commit() local
66 up(&vc4->async_modeset); in vc4_atomic_complete_commit()
108 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_atomic_commit() local
146 ret = down_interruptible(&vc4->async_modeset); in vc4_atomic_commit()
155 up(&vc4->async_modeset); in vc4_atomic_commit()
213 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_kms_load() local
216 sema_init(&vc4->async_modeset, 1); in vc4_kms_load()
232 vc4->fbdev = drm_fbdev_cma_init(dev, 32, in vc4_kms_load()
[all …]
Dvc4_hvs.c65 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_dump_state() local
78 readl((u32 __iomem *)vc4->hvs->dlist + i + 0), in vc4_hvs_dump_state()
79 readl((u32 __iomem *)vc4->hvs->dlist + i + 1), in vc4_hvs_dump_state()
80 readl((u32 __iomem *)vc4->hvs->dlist + i + 2), in vc4_hvs_dump_state()
81 readl((u32 __iomem *)vc4->hvs->dlist + i + 3)); in vc4_hvs_dump_state()
90 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hvs_debugfs_regs() local
170 struct vc4_dev *vc4 = drm->dev_private; in vc4_hvs_bind() local
213 vc4->hvs = hvs; in vc4_hvs_bind()
221 struct vc4_dev *vc4 = drm->dev_private; in vc4_hvs_unbind() local
223 if (vc4->hvs->mitchell_netravali_filter.allocated) in vc4_hvs_unbind()
[all …]
Dvc4_hdmi.c56 #define HDMI_READ(offset) readl(vc4->hdmi->hdmicore_regs + offset)
57 #define HDMI_WRITE(offset, val) writel(val, vc4->hdmi->hdmicore_regs + offset)
58 #define HD_READ(offset) readl(vc4->hdmi->hd_regs + offset)
59 #define HD_WRITE(offset, val) writel(val, vc4->hdmi->hd_regs + offset)
129 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_debugfs_regs() local
150 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_dump_regs() local
169 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_hdmi_connector_detect() local
171 if (vc4->hdmi->hpd_gpio) { in vc4_hdmi_connector_detect()
172 if (gpio_get_value_cansleep(vc4->hdmi->hpd_gpio) ^ in vc4_hdmi_connector_detect()
173 vc4->hdmi->hpd_active_low) in vc4_hdmi_connector_detect()
[all …]
Dvc4_crtc.c158 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_crtc_get_scanoutpos() local
159 struct vc4_crtc *vc4_crtc = vc4->crtc[crtc_id]; in vc4_crtc_get_scanoutpos()
275 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_crtc_get_vblank_timestamp() local
276 struct vc4_crtc *vc4_crtc = vc4->crtc[crtc_id]; in vc4_crtc_get_vblank_timestamp()
295 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_crtc_lut_load() local
375 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_crtc_mode_set_nofb() local
480 struct vc4_dev *vc4 = to_vc4_dev(dev); in require_hvs_enabled() local
489 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_crtc_disable() local
530 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_crtc_enable() local
572 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_crtc_atomic_check() local
[all …]
Dvc4_drv.h165 struct vc4_dev *vc4; member
218 #define V3D_READ(offset) readl(vc4->v3d->regs + offset)
219 #define V3D_WRITE(offset, val) writel(val, vc4->v3d->regs + offset)
220 #define HVS_READ(offset) readl(vc4->hvs->regs + offset)
221 #define HVS_WRITE(offset, val) writel(val, vc4->hvs->regs + offset)
326 vc4_first_bin_job(struct vc4_dev *vc4) in vc4_first_bin_job() argument
328 return list_first_entry_or_null(&vc4->bin_job_list, in vc4_first_bin_job()
333 vc4_first_render_job(struct vc4_dev *vc4) in vc4_first_render_job() argument
335 return list_first_entry_or_null(&vc4->render_job_list, in vc4_first_render_job()
340 vc4_last_render_job(struct vc4_dev *vc4) in vc4_last_render_job() argument
[all …]
DMakefile6 vc4-y := \
23 vc4-$(CONFIG_DEBUG_FS) += vc4_debugfs.o
25 obj-$(CONFIG_DRM_VC4) += vc4.o
Dvc4_dpi.c163 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_dpi_debugfs_regs() local
164 struct vc4_dpi *dpi = vc4->dpi; in vc4_dpi_debugfs_regs()
397 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_dpi_bind() local
463 vc4->dpi = dpi; in vc4_dpi_bind()
477 struct vc4_dev *vc4 = to_vc4_dev(drm); in vc4_dpi_unbind() local
488 vc4->dpi = NULL; in vc4_dpi_unbind()
Dvc4_plane.c207 struct vc4_dev *vc4 = to_vc4_dev(plane->dev); in vc4_plane_destroy_state() local
213 spin_lock_irqsave(&vc4->hvs->mm_lock, irqflags); in vc4_plane_destroy_state()
215 spin_unlock_irqrestore(&vc4->hvs->mm_lock, irqflags); in vc4_plane_destroy_state()
495 struct vc4_dev *vc4 = to_vc4_dev(plane->dev); in vc4_plane_mode_set() local
516 spin_lock_irqsave(&vc4->hvs->mm_lock, irqflags); in vc4_plane_mode_set()
517 ret = drm_mm_insert_node(&vc4->hvs->lbm_mm, in vc4_plane_mode_set()
520 spin_unlock_irqrestore(&vc4->hvs->mm_lock, irqflags); in vc4_plane_mode_set()
637 u32 kernel = VC4_SET_FIELD(vc4->hvs->mitchell_netravali_filter.start, in vc4_plane_mode_set()
Dvc4_trace.h17 #define TRACE_SYSTEM vc4
/drivers/net/dsa/b53/
Db53_common.c353 u8 mgmt, vc0, vc1, vc4 = 0, vc5; in b53_enable_vlan() local
360 b53_read8(dev, B53_VLAN_PAGE, B53_VLAN_CTRL4_25, &vc4); in b53_enable_vlan()
363 b53_read8(dev, B53_VLAN_PAGE, B53_VLAN_CTRL4_63XX, &vc4); in b53_enable_vlan()
366 b53_read8(dev, B53_VLAN_PAGE, B53_VLAN_CTRL4, &vc4); in b53_enable_vlan()
375 vc4 &= ~VC4_ING_VID_CHECK_MASK; in b53_enable_vlan()
376 vc4 |= VC4_ING_VID_VIO_DROP << VC4_ING_VID_CHECK_S; in b53_enable_vlan()
388 vc4 &= ~VC4_ING_VID_CHECK_MASK; in b53_enable_vlan()
392 vc4 |= VC4_ING_VID_VIO_FWD << VC4_ING_VID_CHECK_S; in b53_enable_vlan()
394 vc4 |= VC4_ING_VID_VIO_TO_IMP << VC4_ING_VID_CHECK_S; in b53_enable_vlan()
414 b53_write8(dev, B53_VLAN_PAGE, B53_VLAN_CTRL4_25, vc4); in b53_enable_vlan()
[all …]
/drivers/gpu/drm/
DMakefile54 obj-$(CONFIG_DRM_VC4) += vc4/
DKconfig217 source "drivers/gpu/drm/vc4/Kconfig"