Lines Matching refs:etmdrvdata
43 static struct etm_drvdata *etmdrvdata[NR_CPUS]; variable
685 if (!etmdrvdata[cpu]) in etm_online_cpu()
688 if (etmdrvdata[cpu]->boot_enable && !etmdrvdata[cpu]->sticky_enable) in etm_online_cpu()
689 coresight_enable(etmdrvdata[cpu]->csdev); in etm_online_cpu()
695 if (!etmdrvdata[cpu]) in etm_starting_cpu()
698 spin_lock(&etmdrvdata[cpu]->spinlock); in etm_starting_cpu()
699 if (!etmdrvdata[cpu]->os_unlock) { in etm_starting_cpu()
700 etm_os_unlock(etmdrvdata[cpu]); in etm_starting_cpu()
701 etmdrvdata[cpu]->os_unlock = true; in etm_starting_cpu()
704 if (local_read(&etmdrvdata[cpu]->mode)) in etm_starting_cpu()
705 etm_enable_hw(etmdrvdata[cpu]); in etm_starting_cpu()
706 spin_unlock(&etmdrvdata[cpu]->spinlock); in etm_starting_cpu()
712 if (!etmdrvdata[cpu]) in etm_dying_cpu()
715 spin_lock(&etmdrvdata[cpu]->spinlock); in etm_dying_cpu()
716 if (local_read(&etmdrvdata[cpu]->mode)) in etm_dying_cpu()
717 etm_disable_hw(etmdrvdata[cpu]); in etm_dying_cpu()
718 spin_unlock(&etmdrvdata[cpu]->spinlock); in etm_dying_cpu()
899 etmdrvdata[drvdata->cpu] = drvdata; in etm_probe()
916 etmdrvdata[cpu] = NULL; in clear_etmdrvdata()
937 etmdrvdata[drvdata->cpu] = NULL; in etm_remove()