Lines Matching refs:csdev

600 	struct device *real_dev = drvdata->csdev->dev.parent;  in tmc_etr_alloc_flat_buf()
619 flat_buf->dev = &drvdata->csdev->dev; in tmc_etr_alloc_flat_buf()
698 struct device *dev = &drvdata->csdev->dev; in tmc_etr_alloc_sg_buf()
779 struct coresight_device *tmp, *etr = drvdata->csdev; in tmc_etr_get_catu_device()
868 struct device *dev = &drvdata->csdev->dev; in tmc_alloc_etr_buf()
972 dev_dbg(&drvdata->csdev->dev, in tmc_sync_etr_buf()
1060 rc = coresight_claim_device(drvdata->csdev); in tmc_etr_enable_hw()
1154 coresight_disclaim_device(drvdata->csdev); in tmc_etr_disable_hw()
1159 static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etr_sink_sysfs() argument
1163 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etr_sink_sysfs()
1199 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_sysfs()
1216 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_sysfs()
1226 dev_dbg(&csdev->dev, "TMC-ETR enabled\n"); in tmc_enable_etr_sink_sysfs()
1397 static void *tmc_alloc_etr_buffer(struct coresight_device *csdev, in tmc_alloc_etr_buffer() argument
1402 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_alloc_etr_buffer()
1407 dev_dbg(&csdev->dev, "Unable to allocate ETR buffer\n"); in tmc_alloc_etr_buffer()
1512 tmc_update_etr_buffer(struct coresight_device *csdev, in tmc_update_etr_buffer() argument
1518 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_update_etr_buffer()
1525 if (atomic_read(csdev->refcnt) != 1) { in tmc_update_etr_buffer()
1602 static int tmc_enable_etr_sink_perf(struct coresight_device *csdev, void *data) in tmc_enable_etr_sink_perf() argument
1607 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etr_sink_perf()
1637 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_perf()
1647 atomic_inc(csdev->refcnt); in tmc_enable_etr_sink_perf()
1655 static int tmc_enable_etr_sink(struct coresight_device *csdev, in tmc_enable_etr_sink() argument
1660 return tmc_enable_etr_sink_sysfs(csdev); in tmc_enable_etr_sink()
1662 return tmc_enable_etr_sink_perf(csdev, data); in tmc_enable_etr_sink()
1669 static int tmc_disable_etr_sink(struct coresight_device *csdev) in tmc_disable_etr_sink() argument
1672 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_disable_etr_sink()
1681 if (atomic_dec_return(csdev->refcnt)) { in tmc_disable_etr_sink()
1697 dev_dbg(&csdev->dev, "TMC-ETR disabled\n"); in tmc_disable_etr_sink()