Home
last modified time | relevance | path

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

123

/drivers/gpu/drm/vc4/
A Dvc4_irq.c63 struct vc4_dev *vc4 = in vc4_overflow_mem_work() local
72 if (!vc4->bin_bo) in vc4_overflow_mem_work()
75 bo = vc4->bin_bo; in vc4_overflow_mem_work()
101 vc4->bin_alloc_used &= ~vc4->bin_alloc_overflow; in vc4_overflow_mem_work()
167 vc4->finished_seqno++; in vc4_irq_finish_render_job()
228 spin_lock(&vc4->job_lock); in vc4_irq()
249 if (!vc4->v3d) in vc4_irq_prepare()
269 if (!vc4->v3d) in vc4_irq_enable()
286 if (!vc4->v3d) in vc4_irq_disable()
296 synchronize_irq(vc4->irq); in vc4_irq_disable()
[all …]
A Dvc4_bo.c59 if (vc4->purgeable.num) in vc4_bo_stats_print()
61 vc4->purgeable.size / 1024, vc4->purgeable.num); in vc4_bo_stats_print()
259 vc4->purgeable.num++; in vc4_bo_add_to_purgeable_pool()
284 vc4->purgeable.num--; in vc4_bo_remove_from_purgeable_pool_locked()
611 struct vc4_dev *vc4 = in vc4_bo_cache_time_work() local
682 struct vc4_dev *vc4 = timer_container_of(vc4, t, bo_cache.time_timer); in vc4_bo_cache_time_timer() local
768 if (!vc4->v3d) in vc4_grab_bin_bo()
995 if (!vc4->v3d) in vc4_bo_debugfs_init()
1017 vc4->bo_labels = kcalloc(VC4_BO_TYPE_COUNT, sizeof(*vc4->bo_labels), in vc4_bo_cache_init()
1019 if (!vc4->bo_labels) in vc4_bo_cache_init()
[all …]
A Dvc4_v3d.c117 vc4_v3d_pm_put(vc4); in vc4_v3d_debugfs_ident()
273 vc4->bin_bo = bo; in bin_bo_alloc()
336 if (vc4->bin_bo) in vc4_v3d_bin_bo_get()
358 vc4->bin_bo = NULL; in bin_bo_release()
375 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_suspend() local
387 struct vc4_dev *vc4 = v3d->vc4; in vc4_v3d_runtime_resume() local
408 if (!vc4->v3d) in vc4_v3d_debugfs_init()
441 vc4->v3d = v3d; in vc4_v3d_bind()
442 v3d->vc4 = vc4; in vc4_v3d_bind()
451 vc4->irq = ret; in vc4_v3d_bind()
[all …]
A Dvc4_gem.c83 if (!vc4->v3d) { in vc4_get_hang_state_ioctl()
105 vc4->hang_state = NULL; in vc4_get_hang_state_ioctl()
280 if (vc4->hang_state) { in vc4_save_hang_state()
318 struct vc4_dev *vc4 = in vc4_reset_work() local
329 struct vc4_dev *vc4 = timer_container_of(vc4, t, hangcheck.timer); in vc4_hangcheck_elapsed() local
889 vc4_v3d_pm_put(vc4); in vc4_complete_exec()
1027 if (!vc4->v3d) { in vc4_submit_cl_ioctl()
1049 exec->dev = vc4; in vc4_submit_cl_ioctl()
1197 WARN_ON(vc4->emit_seqno != vc4->finished_seqno); in vc4_gem_destroy()
1202 if (vc4->bin_bo) { in vc4_gem_destroy()
[all …]
A Dvc4_perfmon.c20 struct vc4_dev *vc4; in vc4_perfmon_get() local
25 vc4 = perfmon->dev; in vc4_perfmon_get()
34 struct vc4_dev *vc4; in vc4_perfmon_put() local
39 vc4 = perfmon->dev; in vc4_perfmon_put()
64 vc4->active_perfmon = perfmon; in vc4_perfmon_start()
85 vc4->active_perfmon = NULL; in vc4_perfmon_stop()
113 vc4file->dev = vc4; in vc4_perfmon_open_file()
157 if (!vc4->v3d) { in vc4_perfmon_create_ioctl()
177 perfmon->dev = vc4; in vc4_perfmon_create_ioctl()
211 if (!vc4->v3d) { in vc4_perfmon_destroy_ioctl()
[all …]
A Dvc4_hvs.c422 struct vc4_dev *vc4 = hvs->vc4; in vc4_hvs_lut_load() local
475 struct vc4_dev *vc4 = hvs->vc4; in vc4_hvs_get_fifo_frame_count() local
534 struct vc4_dev *vc4 = hvs->vc4; in vc4_hvs_get_fifo_from_output() local
621 struct vc4_dev *vc4 = hvs->vc4; in vc4_hvs_init_channel() local
686 struct vc4_dev *vc4 = hvs->vc4; in vc6_hvs_init_channel() local
721 struct vc4_dev *vc4 = hvs->vc4; in __vc4_hvs_stop_channel() local
753 struct vc4_dev *vc4 = hvs->vc4; in __vc6_hvs_stop_channel() local
781 struct vc4_dev *vc4 = hvs->vc4; in vc4_hvs_stop_channel() local
1058 struct vc4_dev *vc4 = hvs->vc4; in vc4_hvs_mask_underrun() local
1080 struct vc4_dev *vc4 = hvs->vc4; in vc4_hvs_unmask_underrun() local
[all …]
A Dvc4_kms.c109 drm_atomic_private_obj_init(&vc4->base, &vc4->ctm_manager, &ctm_state->base, in vc4_ctm_obj_init()
137 struct vc4_hvs *hvs = vc4->hvs; in vc4_ctm_commit()
275 drm_WARN_ON(&vc4->base, in vc5_hvs_pv_muxing_commit()
337 WARN_ON_ONCE(vc4->gen != VC4_GEN_6_C && vc4->gen != VC4_GEN_6_D); in vc6_hvs_pv_muxing_commit()
429 if (vc4->gen == VC4_GEN_5) { in vc4_atomic_commit_tail()
447 if (vc4->gen <= VC4_GEN_5) in vc4_atomic_commit_tail()
448 vc4_ctm_commit(vc4, state); in vc4_atomic_commit_tail()
450 switch (vc4->gen) { in vc4_atomic_commit_tail()
482 if (vc4->gen == VC4_GEN_5) { in vc4_atomic_commit_tail()
740 drm_atomic_private_obj_init(&vc4->base, &vc4->load_tracker, in vc4_load_tracker_obj_init()
[all …]
A Dvc4_drv.c105 if (!vc4->v3d) in vc4_get_param_ioctl()
114 vc4_v3d_pm_put(vc4); in vc4_get_param_ioctl()
121 vc4_v3d_pm_put(vc4); in vc4_get_param_ioctl()
128 vc4_v3d_pm_put(vc4); in vc4_get_param_ioctl()
157 vc4file->dev = vc4; in vc4_open()
274 component_unbind_all(vc4->dev, &vc4->base); in vc4_component_unbind_all()
293 struct vc4_dev *vc4; in vc4_drm_bind() local
324 if (IS_ERR(vc4)) in vc4_drm_bind()
326 vc4->gen = gen; in vc4_drm_bind()
327 vc4->dev = dev; in vc4_drm_bind()
[all …]
A Dvc4_crtc.c85 struct vc4_hvs *hvs = vc4->hvs; in vc4_crtc_get_cob_allocation()
93 if (vc4->gen >= VC4_GEN_6_C) { in vc4_crtc_get_cob_allocation()
114 struct vc4_hvs *hvs = vc4->hvs; in vc4_crtc_get_scanout_position()
134 if (vc4->gen >= VC4_GEN_6_C) in vc4_crtc_get_scanout_position()
147 if (vc4->gen >= VC4_GEN_6_C) in vc4_crtc_get_scanout_position()
289 if (vc4->gen == VC4_GEN_4) in vc4_get_fifo_full_level()
456 if (vc4->gen >= VC4_GEN_5) in vc4_crtc_config_pv()
461 if (vc4->gen >= VC4_GEN_6_C) in vc4_crtc_config_pv()
492 if (vc4->gen >= VC4_GEN_6_C) in require_hvs_enabled()
967 if (vc4->gen == VC4_GEN_4) in vc4_async_set_fence_cb()
[all …]
A Dvc4_drv.h293 struct vc4_dev *vc4; member
316 struct vc4_dev *vc4; member
642 readl(vc4->v3d->regs + (offset)); \
803 vc4_first_bin_job(struct vc4_dev *vc4) in vc4_first_bin_job() argument
810 vc4_first_render_job(struct vc4_dev *vc4) in vc4_first_render_job() argument
817 vc4_last_render_job(struct vc4_dev *vc4) in vc4_last_render_job() argument
819 if (list_empty(&vc4->render_job_list)) in vc4_last_render_job()
821 return list_last_entry(&vc4->render_job_list, in vc4_last_render_job()
1059 void vc4_v3d_bin_bo_put(struct vc4_dev *vc4);
1060 int vc4_v3d_pm_get(struct vc4_dev *vc4);
[all …]
A Dvc4_plane.c282 struct vc4_hvs *hvs = vc4->hvs; in vc4_plane_duplicate_state()
337 struct vc4_hvs *hvs = vc4->hvs; in vc4_plane_destroy_state()
810 if (vc4->gen >= VC4_GEN_6_C) in vc4_lbm_size()
942 if (vc4->gen == VC4_GEN_5) in vc4_plane_allocate_lbm()
1157 WARN_ON_ONCE(vc4->gen != VC4_GEN_5 && vc4->gen != VC4_GEN_6_C && in vc4_hvs5_get_alpha_blend_mode()
1160 switch (vc4->gen) { in vc4_hvs5_get_alpha_blend_mode()
1193 WARN_ON_ONCE(vc4->gen != VC4_GEN_6_C && vc4->gen != VC4_GEN_6_D); in vc4_hvs6_get_alpha_mask_mode()
1483 if (vc4->gen == VC4_GEN_4) { in vc4_plane_mode_set()
2150 if (vc4->gen >= VC4_GEN_6_C) in vc4_plane_atomic_check()
2350 if (vc4->gen <= VC4_GEN_5) in vc4_plane_atomic_async_check()
[all …]
A DMakefile5 vc4-y := \
28 vc4-$(CONFIG_DRM_VC4_KUNIT_TEST) += \
35 vc4-$(CONFIG_DEBUG_FS) += vc4_debugfs.o
37 obj-$(CONFIG_DRM_VC4) += vc4.o
A Dvc4_validate.c108 struct vc4_dev *vc4 = exec->dev; in vc4_use_bo() local
112 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_use_bo()
167 struct vc4_dev *vc4 = exec->dev; in vc4_check_tex_size() local
172 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_check_tex_size()
357 struct vc4_dev *vc4 = to_vc4_dev(dev); in validate_tile_binning_config() local
387 bin_slot = vc4_v3d_get_bin_slot(vc4); in validate_tile_binning_config()
400 bin_addr = vc4->bin_bo->base.dma_addr + bin_slot * vc4->bin_alloc_size; in validate_tile_binning_config()
490 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_validate_bin_cl() local
495 if (WARN_ON_ONCE(vc4->gen > VC4_GEN_4)) in vc4_validate_bin_cl()
930 struct vc4_dev *vc4 = to_vc4_dev(dev); in vc4_validate_shader_recs() local
[all …]
A Dvc4_debugfs.c24 struct vc4_dev *vc4 = to_vc4_dev(minor->dev); in vc4_debugfs_init() local
25 struct drm_device *drm = &vc4->base; in vc4_debugfs_init()
29 if (vc4->v3d) { in vc4_debugfs_init()
A Dvc4_regs.h24 WARN_ON(!FIELD_FIT(hvs->vc4->gen == VC4_GEN_6_C ? \
27 FIELD_PREP(hvs->vc4->gen == VC4_GEN_6_C ? \
32 #define VC6_GET_FIELD(word, field) FIELD_GET(hvs->vc4->gen == VC4_GEN_6_C ? \
565 #define SCALER6_DISPX_CTRL0(x) ((hvs->vc4->gen == VC4_GEN_6_C) ? \
576 #define SCALER6_DISPX_CTRL1(x) ((hvs->vc4->gen == VC4_GEN_6_C) ? \
583 #define SCALER6_DISPX_BGND(x) ((hvs->vc4->gen == VC4_GEN_6_C) ? \
588 #define SCALER6_DISPX_LPTRS(x) ((hvs->vc4->gen == VC4_GEN_6_C) ? \
594 #define SCALER6_DISPX_COB(x) ((hvs->vc4->gen == VC4_GEN_6_C) ? \
601 #define SCALER6_DISPX_STATUS(x) ((hvs->vc4->gen == VC4_GEN_6_C) ? \
616 #define SCALER6_DISPX_DL(x) ((hvs->vc4->gen == VC4_GEN_6_C) ? \
[all …]
A Dvc4_fence.c39 struct vc4_dev *vc4 = to_vc4_dev(f->dev); in vc4_fence_signaled() local
41 return vc4->finished_seqno >= f->seqno; in vc4_fence_signaled()
A Dvc4_trace.h14 #define TRACE_SYSTEM vc4
154 #define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/vc4
/drivers/gpu/drm/vc4/tests/
A Dvc4_mock.c163 struct vc4_dev *vc4; in __mock_device() local
170 vc4 = drm_kunit_helper_alloc_drm_device_with_driver(test, dev, in __mock_device()
173 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, vc4); in __mock_device()
175 vc4->dev = dev; in __mock_device()
176 vc4->gen = gen; in __mock_device()
178 vc4->hvs = __vc4_hvs_alloc(vc4, NULL, NULL); in __mock_device()
179 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, vc4->hvs); in __mock_device()
181 drm = &vc4->base; in __mock_device()
196 return vc4; in __mock_device()
A Dvc4_test_pv_muxing.c22 struct vc4_dev *vc4; member
682 struct vc4_dev *vc4; in drm_vc4_test_pv_muxing() local
688 vc4 = priv->vc4; in drm_vc4_test_pv_muxing()
689 drm = &vc4->base; in drm_vc4_test_pv_muxing()
737 struct vc4_dev *vc4; in drm_vc4_test_pv_muxing_invalid() local
743 vc4 = priv->vc4; in drm_vc4_test_pv_muxing_invalid()
744 drm = &vc4->base; in drm_vc4_test_pv_muxing_invalid()
788 priv->vc4 = vc4; in vc4_pv_muxing_test_init()
843 drm = &vc4->base; in drm_test_vc5_pv_muxing_bugs_subsequent_crtc_enable()
943 drm = &vc4->base; in drm_test_vc5_pv_muxing_bugs_stable_fifo()
[all …]
/drivers/net/dsa/b53/
A Db53_common.c386 u8 mgmt, vc0, vc1, vc4 = 0, vc5; in b53_enable_vlan() local
399 b53_read8(dev, B53_VLAN_PAGE, B53_VLAN_CTRL4, &vc4); in b53_enable_vlan()
408 vc4 &= ~VC4_ING_VID_CHECK_MASK; in b53_enable_vlan()
410 vc4 |= VC4_ING_VID_VIO_DROP << VC4_ING_VID_CHECK_S; in b53_enable_vlan()
413 vc4 |= VC4_NO_ING_VID_CHK << VC4_ING_VID_CHECK_S; in b53_enable_vlan()
426 vc4 &= ~VC4_ING_VID_CHECK_MASK; in b53_enable_vlan()
430 vc4 |= VC4_ING_VID_VIO_FWD << VC4_ING_VID_CHECK_S; in b53_enable_vlan()
432 vc4 |= VC4_ING_VID_VIO_TO_IMP << VC4_ING_VID_CHECK_S; in b53_enable_vlan()
460 b53_write8(dev, B53_VLAN_PAGE, B53_VLAN_CTRL4, vc4); in b53_enable_vlan()
2955 u8 vc4; in b53_switch_init() local
[all …]
/drivers/gpu/drm/ci/xfails/
A Dmsm-apq8016-skips.txt6 ^vc4.*
A Dmeson-g12b-skips.txt7 ^vc4.*
A Di915-jsl-skips.txt10 ^vc4.*
A Di915-whl-skips.txt10 ^vc4.*
A Drockchip-rk3288-skips.txt10 ^vc4.*

Completed in 759 milliseconds

123