Lines Matching refs:amd_nb
366 struct amd_nb *nb = cpuc->amd_nb; in amd_has_nb()
395 struct amd_nb *nb = cpuc->amd_nb; in __amd_put_nb_event_constraints()
453 struct amd_nb *nb = cpuc->amd_nb; in __amd_get_nb_event_constraints()
502 static struct amd_nb *amd_alloc_nb(int cpu) in amd_alloc_nb()
504 struct amd_nb *nb; in amd_alloc_nb()
507 nb = kzalloc_node(sizeof(struct amd_nb), GFP_KERNEL, cpu_to_node(cpu)); in amd_alloc_nb()
550 WARN_ON_ONCE(cpuc->amd_nb); in amd_pmu_cpu_prepare()
555 cpuc->amd_nb = amd_alloc_nb(cpu); in amd_pmu_cpu_prepare()
556 if (cpuc->amd_nb) in amd_pmu_cpu_prepare()
569 struct amd_nb *nb; in amd_pmu_cpu_starting()
581 nb = per_cpu(cpu_hw_events, i).amd_nb; in amd_pmu_cpu_starting()
586 *onln = cpuc->amd_nb; in amd_pmu_cpu_starting()
587 cpuc->amd_nb = nb; in amd_pmu_cpu_starting()
592 cpuc->amd_nb->nb_id = nb_id; in amd_pmu_cpu_starting()
593 cpuc->amd_nb->refcnt++; in amd_pmu_cpu_starting()
608 if (cpuhw->amd_nb) { in amd_pmu_cpu_dead()
609 struct amd_nb *nb = cpuhw->amd_nb; in amd_pmu_cpu_dead()
614 cpuhw->amd_nb = NULL; in amd_pmu_cpu_dead()