Lines Matching refs:amd_nb
356 struct amd_nb *nb = cpuc->amd_nb; in amd_has_nb()
385 struct amd_nb *nb = cpuc->amd_nb; in __amd_put_nb_event_constraints()
443 struct amd_nb *nb = cpuc->amd_nb; in __amd_get_nb_event_constraints()
492 static struct amd_nb *amd_alloc_nb(int cpu) in amd_alloc_nb()
494 struct amd_nb *nb; in amd_alloc_nb()
497 nb = kzalloc_node(sizeof(struct amd_nb), GFP_KERNEL, cpu_to_node(cpu)); in amd_alloc_nb()
517 WARN_ON_ONCE(cpuc->amd_nb); in amd_pmu_cpu_prepare()
522 cpuc->amd_nb = amd_alloc_nb(cpu); in amd_pmu_cpu_prepare()
523 if (!cpuc->amd_nb) in amd_pmu_cpu_prepare()
533 struct amd_nb *nb; in amd_pmu_cpu_starting()
545 nb = per_cpu(cpu_hw_events, i).amd_nb; in amd_pmu_cpu_starting()
550 *onln = cpuc->amd_nb; in amd_pmu_cpu_starting()
551 cpuc->amd_nb = nb; in amd_pmu_cpu_starting()
556 cpuc->amd_nb->nb_id = nb_id; in amd_pmu_cpu_starting()
557 cpuc->amd_nb->refcnt++; in amd_pmu_cpu_starting()
569 if (cpuhw->amd_nb) { in amd_pmu_cpu_dead()
570 struct amd_nb *nb = cpuhw->amd_nb; in amd_pmu_cpu_dead()
575 cpuhw->amd_nb = NULL; in amd_pmu_cpu_dead()