Lines Matching refs:csdev
595 struct device *real_dev = drvdata->csdev->dev.parent; in tmc_etr_alloc_flat_buf()
613 flat_buf->dev = &drvdata->csdev->dev; in tmc_etr_alloc_flat_buf()
675 struct device *dev = &drvdata->csdev->dev; in tmc_etr_alloc_sg_buf()
756 struct coresight_device *tmp, *etr = drvdata->csdev; in tmc_etr_get_catu_device()
833 struct device *dev = &drvdata->csdev->dev; in tmc_alloc_etr_buf()
937 dev_dbg(&drvdata->csdev->dev, in tmc_sync_etr_buf()
1123 static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etr_sink_sysfs() argument
1127 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etr_sink_sysfs()
1163 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_sysfs()
1180 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_sysfs()
1190 dev_dbg(&csdev->dev, "TMC-ETR enabled\n"); in tmc_enable_etr_sink_sysfs()
1361 static void *tmc_alloc_etr_buffer(struct coresight_device *csdev, in tmc_alloc_etr_buffer() argument
1366 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_alloc_etr_buffer()
1371 dev_dbg(&csdev->dev, "Unable to allocate ETR buffer\n"); in tmc_alloc_etr_buffer()
1476 tmc_update_etr_buffer(struct coresight_device *csdev, in tmc_update_etr_buffer() argument
1482 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_update_etr_buffer()
1489 if (atomic_read(csdev->refcnt) != 1) { in tmc_update_etr_buffer()
1559 static int tmc_enable_etr_sink_perf(struct coresight_device *csdev, void *data) in tmc_enable_etr_sink_perf() argument
1564 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etr_sink_perf()
1596 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_perf()
1606 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_perf()
1614 static int tmc_enable_etr_sink(struct coresight_device *csdev, in tmc_enable_etr_sink() argument
1619 return tmc_enable_etr_sink_sysfs(csdev); in tmc_enable_etr_sink()
1621 return tmc_enable_etr_sink_perf(csdev, data); in tmc_enable_etr_sink()
1628 static int tmc_disable_etr_sink(struct coresight_device *csdev) in tmc_disable_etr_sink() argument
1631 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_disable_etr_sink()
1640 if (atomic_dec_return(csdev->refcnt)) { in tmc_disable_etr_sink()
1656 dev_dbg(&csdev->dev, "TMC-ETR disabled\n"); in tmc_disable_etr_sink()