Home
last modified time | relevance | path

Searched refs:perfmon (Results 1 – 14 of 14) sorted by relevance

/drivers/gpu/drm/vc4/
Dvc4_perfmon.c18 void vc4_perfmon_get(struct vc4_perfmon *perfmon) in vc4_perfmon_get() argument
20 if (perfmon) in vc4_perfmon_get()
21 refcount_inc(&perfmon->refcnt); in vc4_perfmon_get()
24 void vc4_perfmon_put(struct vc4_perfmon *perfmon) in vc4_perfmon_put() argument
26 if (perfmon && refcount_dec_and_test(&perfmon->refcnt)) in vc4_perfmon_put()
27 kfree(perfmon); in vc4_perfmon_put()
30 void vc4_perfmon_start(struct vc4_dev *vc4, struct vc4_perfmon *perfmon) in vc4_perfmon_start() argument
35 if (WARN_ON_ONCE(!perfmon || vc4->active_perfmon)) in vc4_perfmon_start()
38 for (i = 0; i < perfmon->ncounters; i++) in vc4_perfmon_start()
39 V3D_WRITE(V3D_PCTRS(i), perfmon->events[i]); in vc4_perfmon_start()
[all …]
Dvc4_irq.c129 if (next && next->perfmon == exec->perfmon) in vc4_irq_finish_bin_job()
143 if (exec->perfmon) in vc4_cancel_bin_job()
144 vc4_perfmon_stop(vc4, exec->perfmon, false); in vc4_cancel_bin_job()
169 if (exec->perfmon && !nextrender && in vc4_irq_finish_render_job()
170 (!nextbin || nextbin->perfmon != exec->perfmon)) in vc4_irq_finish_render_job()
171 vc4_perfmon_stop(vc4, exec->perfmon, true); in vc4_irq_finish_render_job()
182 else if (nextbin && nextbin->perfmon != exec->perfmon) in vc4_irq_finish_render_job()
Dvc4_drv.h595 struct vc4_perfmon *perfmon; member
610 } perfmon; member
881 void vc4_perfmon_get(struct vc4_perfmon *perfmon);
882 void vc4_perfmon_put(struct vc4_perfmon *perfmon);
883 void vc4_perfmon_start(struct vc4_dev *vc4, struct vc4_perfmon *perfmon);
884 void vc4_perfmon_stop(struct vc4_dev *vc4, struct vc4_perfmon *perfmon,
Dvc4_gem.c481 if (exec->perfmon && vc4->active_perfmon != exec->perfmon) in vc4_submit_next_bin_job()
482 vc4_perfmon_start(vc4, exec->perfmon); in vc4_submit_next_bin_job()
500 if (next && next->perfmon == exec->perfmon) in vc4_submit_next_bin_job()
706 (!renderjob || renderjob->perfmon == exec->perfmon)) { in vc4_queue_submit()
983 vc4_perfmon_put(exec->perfmon); in vc4_complete_exec()
1178 exec->perfmon = vc4_perfmon_find(vc4file, in vc4_submit_cl_ioctl()
1180 if (!exec->perfmon) { in vc4_submit_cl_ioctl()
/drivers/gpu/drm/nouveau/nvkm/engine/pm/
Dbase.c214 struct nvkm_pm *pm = dom->perfmon->pm; in nvkm_perfdom_init()
244 struct nvkm_pm *pm = dom->perfmon->pm; in nvkm_perfdom_sample()
268 struct nvkm_pm *pm = dom->perfmon->pm; in nvkm_perfdom_read()
313 struct nvkm_pm *pm = dom->perfmon->pm; in nvkm_perfdom_dtor()
366 nvkm_perfdom_new_(struct nvkm_perfmon *perfmon, in nvkm_perfdom_new_() argument
373 struct nvkm_pm *pm = perfmon->pm; in nvkm_perfdom_new_()
419 dom->perfmon = perfmon; in nvkm_perfdom_new_()
434 nvkm_perfmon_mthd_query_domain(struct nvkm_perfmon *perfmon, in nvkm_perfmon_mthd_query_domain() argument
440 struct nvkm_object *object = &perfmon->object; in nvkm_perfmon_mthd_query_domain()
441 struct nvkm_pm *pm = perfmon->pm; in nvkm_perfmon_mthd_query_domain()
[all …]
Dpriv.h75 struct nvkm_perfmon *perfmon; member
/drivers/crypto/caam/
Dctrl.c420 ccbvid = rd_reg32(&ctrl->perfmon.ccb_id); in caam_get_era_from_hw()
425 id_ms = rd_reg32(&ctrl->perfmon.caam_id_ms); in caam_get_era_from_hw()
582 struct caam_perfmon *perfmon; in caam_probe() local
620 caam_little_end = !(bool)(rd_reg32(&ctrl->perfmon.status) & in caam_probe()
622 comp_params = rd_reg32(&ctrl->perfmon.comp_parms_ms); in caam_probe()
735 perfmon = (struct caam_perfmon __force *)&ctrl->perfmon; in caam_probe()
785 rng_vid = (rd_reg32(&ctrl->perfmon.cha_id_ls) & in caam_probe()
858 caam_id = (u64)rd_reg32(&ctrl->perfmon.caam_id_ms) << 32 | in caam_probe()
859 (u64)rd_reg32(&ctrl->perfmon.caam_id_ls); in caam_probe()
869 ctrlpriv->ctl, &perfmon->req_dequeued, in caam_probe()
[all …]
Dregs.h596 struct caam_perfmon perfmon; member
689 struct caam_perfmon perfmon; member
Dcaamrng.c323 rng_inst = (rd_reg32(&priv->ctrl->perfmon.cha_num_ls) & in caam_rng_init()
Dcaamalg.c3547 cha_vid = rd_reg32(&priv->ctrl->perfmon.cha_id_ls); in caam_algapi_init()
3551 cha_inst = rd_reg32(&priv->ctrl->perfmon.cha_num_ls); in caam_algapi_init()
3561 aes_rn = rd_reg32(&priv->ctrl->perfmon.cha_rev_ls) & in caam_algapi_init()
Dcaamhash.c1994 md_vid = (rd_reg32(&priv->ctrl->perfmon.cha_id_ls) & in caam_algapi_hash_init()
1996 md_inst = (rd_reg32(&priv->ctrl->perfmon.cha_num_ls) & in caam_algapi_hash_init()
Dcaamalg_qi.c2565 cha_vid = rd_reg32(&priv->ctrl->perfmon.cha_id_ls); in caam_qi_algapi_init()
2569 cha_inst = rd_reg32(&priv->ctrl->perfmon.cha_num_ls); in caam_qi_algapi_init()
Dcaampkc.c1096 pk_inst = (rd_reg32(&priv->ctrl->perfmon.cha_num_ls) & in caam_pkc_init()
/drivers/gpu/drm/nouveau/include/nvkm/engine/
Dpm.h10 struct nvkm_object *perfmon; member