Lines Matching refs:etmdrvdata
44 static struct etm_drvdata *etmdrvdata[NR_CPUS]; variable
712 if (!etmdrvdata[cpu]) in etm_online_cpu()
715 if (etmdrvdata[cpu]->boot_enable && !etmdrvdata[cpu]->sticky_enable) in etm_online_cpu()
716 coresight_enable_sysfs(etmdrvdata[cpu]->csdev); in etm_online_cpu()
722 if (!etmdrvdata[cpu]) in etm_starting_cpu()
725 spin_lock(&etmdrvdata[cpu]->spinlock); in etm_starting_cpu()
726 if (!etmdrvdata[cpu]->os_unlock) { in etm_starting_cpu()
727 etm_os_unlock(etmdrvdata[cpu]); in etm_starting_cpu()
728 etmdrvdata[cpu]->os_unlock = true; in etm_starting_cpu()
731 if (coresight_get_mode(etmdrvdata[cpu]->csdev)) in etm_starting_cpu()
732 etm_enable_hw(etmdrvdata[cpu]); in etm_starting_cpu()
733 spin_unlock(&etmdrvdata[cpu]->spinlock); in etm_starting_cpu()
739 if (!etmdrvdata[cpu]) in etm_dying_cpu()
742 spin_lock(&etmdrvdata[cpu]->spinlock); in etm_dying_cpu()
743 if (coresight_get_mode(etmdrvdata[cpu]->csdev)) in etm_dying_cpu()
744 etm_disable_hw(etmdrvdata[cpu]); in etm_dying_cpu()
745 spin_unlock(&etmdrvdata[cpu]->spinlock); in etm_dying_cpu()
920 etmdrvdata[drvdata->cpu] = drvdata; in etm_probe()
937 etmdrvdata[cpu] = NULL; in clear_etmdrvdata()
958 etmdrvdata[drvdata->cpu] = NULL; in etm_remove()