Home
last modified time | relevance | path

Searched refs:nd_pmu (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/nvdimm/
H A Dnd_perf.c160 nd_pmu->cpu = target; in nvdimm_pmu_cpu_offline()
176 nd_pmu->cpu = cpu; in nvdimm_pmu_cpu_online()
229 nd_pmu->cpu = cpumask_any(&nd_pmu->arch_cpumask); in nvdimm_pmu_cpu_hotplug_init()
255 cpuhp_state_remove_instance_nocalls(nd_pmu->cpuhp_state, &nd_pmu->node); in nvdimm_pmu_cpu_hotplug_init()
265 cpuhp_state_remove_instance_nocalls(nd_pmu->cpuhp_state, &nd_pmu->node); in nvdimm_pmu_free_hotplug_memory()
277 if (!nd_pmu || !pdev) in register_nvdimm_pmu()
281 if (WARN_ON_ONCE(!(nd_pmu->pmu.event_init && nd_pmu->pmu.add && in register_nvdimm_pmu()
282 nd_pmu->pmu.del && nd_pmu->pmu.read && nd_pmu->pmu.name))) in register_nvdimm_pmu()
309 rc = perf_pmu_register(&nd_pmu->pmu, nd_pmu->pmu.name, -1); in register_nvdimm_pmu()
317 nd_pmu->pmu.name); in register_nvdimm_pmu()
[all …]
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dpapr_scm.c413 if (!nd_pmu) in papr_scm_pmu_event_init()
445 if (!nd_pmu) in papr_scm_pmu_add()
465 if (!nd_pmu) in papr_scm_pmu_read()
483 struct nvdimm_pmu *nd_pmu; in papr_scm_pmu_register() local
486 nd_pmu = kzalloc(sizeof(*nd_pmu), GFP_KERNEL); in papr_scm_pmu_register()
487 if (!nd_pmu) { in papr_scm_pmu_register()
500 nd_pmu->pmu.read = papr_scm_pmu_read; in papr_scm_pmu_register()
501 nd_pmu->pmu.add = papr_scm_pmu_add; in papr_scm_pmu_register()
502 nd_pmu->pmu.del = papr_scm_pmu_del; in papr_scm_pmu_register()
519 p->pdev->archdata.priv = nd_pmu; in papr_scm_pmu_register()
[all …]
/openbmc/linux/include/linux/
H A Dnd.h67 void unregister_nvdimm_pmu(struct nvdimm_pmu *nd_pmu);
75 static inline void unregister_nvdimm_pmu(struct nvdimm_pmu *nd_pmu) { } in unregister_nvdimm_pmu() argument