Lines Matching refs:csdev

426 static int etm_cpu_id(struct coresight_device *csdev)  in etm_cpu_id()  argument
428 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_cpu_id()
460 static int etm_trace_id(struct coresight_device *csdev) in etm_trace_id() argument
462 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_trace_id()
467 static int etm_enable_perf(struct coresight_device *csdev, in etm_enable_perf() argument
470 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_enable_perf()
483 static int etm_enable_sysfs(struct coresight_device *csdev) in etm_enable_sysfs() argument
485 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_enable_sysfs()
512 static int etm_enable(struct coresight_device *csdev, in etm_enable() argument
517 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_enable()
527 ret = etm_enable_sysfs(csdev); in etm_enable()
530 ret = etm_enable_perf(csdev, event); in etm_enable()
564 static void etm_disable_perf(struct coresight_device *csdev) in etm_disable_perf() argument
566 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_disable_perf()
585 static void etm_disable_sysfs(struct coresight_device *csdev) in etm_disable_sysfs() argument
587 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_disable_sysfs()
610 static void etm_disable(struct coresight_device *csdev, in etm_disable() argument
614 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etm_disable()
627 etm_disable_sysfs(csdev); in etm_disable()
630 etm_disable_perf(csdev); in etm_disable()
658 coresight_enable(etmdrvdata[cpu]->csdev); in etm_online_cpu()
837 drvdata->csdev = coresight_register(&desc); in etm_probe()
838 if (IS_ERR(drvdata->csdev)) { in etm_probe()
839 ret = PTR_ERR(drvdata->csdev); in etm_probe()
843 ret = etm_perf_symlink(drvdata->csdev, true); in etm_probe()
845 coresight_unregister(drvdata->csdev); in etm_probe()
852 coresight_enable(drvdata->csdev); in etm_probe()