Lines Matching refs:csdev
16 static int tmc_set_etf_buffer(struct coresight_device *csdev,
149 static int tmc_enable_etf_sink_sysfs(struct coresight_device *csdev) in tmc_enable_etf_sink_sysfs() argument
155 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etf_sink_sysfs()
185 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_sysfs()
208 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_sysfs()
223 static int tmc_enable_etf_sink_perf(struct coresight_device *csdev, void *data) in tmc_enable_etf_sink_perf() argument
228 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etf_sink_perf()
253 ret = tmc_set_etf_buffer(csdev, handle); in tmc_enable_etf_sink_perf()
262 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_perf()
271 atomic_inc(csdev->refcnt); in tmc_enable_etf_sink_perf()
279 static int tmc_enable_etf_sink(struct coresight_device *csdev, in tmc_enable_etf_sink() argument
286 ret = tmc_enable_etf_sink_sysfs(csdev); in tmc_enable_etf_sink()
289 ret = tmc_enable_etf_sink_perf(csdev, data); in tmc_enable_etf_sink()
300 dev_dbg(&csdev->dev, "TMC-ETB/ETF enabled\n"); in tmc_enable_etf_sink()
304 static int tmc_disable_etf_sink(struct coresight_device *csdev) in tmc_disable_etf_sink() argument
307 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_disable_etf_sink()
316 if (atomic_dec_return(csdev->refcnt)) { in tmc_disable_etf_sink()
330 dev_dbg(&csdev->dev, "TMC-ETB/ETF disabled\n"); in tmc_disable_etf_sink()
334 static int tmc_enable_etf_link(struct coresight_device *csdev, in tmc_enable_etf_link() argument
339 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_enable_etf_link()
353 dev_dbg(&csdev->dev, "TMC-ETF enabled\n"); in tmc_enable_etf_link()
357 static void tmc_disable_etf_link(struct coresight_device *csdev, in tmc_disable_etf_link() argument
361 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_disable_etf_link()
373 dev_dbg(&csdev->dev, "TMC-ETF disabled\n"); in tmc_disable_etf_link()
376 static void *tmc_alloc_etf_buffer(struct coresight_device *csdev, in tmc_alloc_etf_buffer() argument
404 static int tmc_set_etf_buffer(struct coresight_device *csdev, in tmc_set_etf_buffer() argument
428 static unsigned long tmc_update_etf_buffer(struct coresight_device *csdev, in tmc_update_etf_buffer() argument
440 struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tmc_update_etf_buffer()
452 if (atomic_read(csdev->refcnt) != 1) in tmc_update_etf_buffer()