Lines Matching refs:csdev

86 	struct coresight_device	*csdev;  member
97 static int etb_set_buffer(struct coresight_device *csdev,
144 static int etb_enable_sysfs(struct coresight_device *csdev) in etb_enable_sysfs() argument
148 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_enable_sysfs()
166 atomic_inc(csdev->refcnt); in etb_enable_sysfs()
172 static int etb_enable_perf(struct coresight_device *csdev, void *data) in etb_enable_perf() argument
177 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_enable_perf()
201 atomic_inc(csdev->refcnt); in etb_enable_perf()
210 ret = etb_set_buffer(csdev, handle); in etb_enable_perf()
219 atomic_inc(csdev->refcnt); in etb_enable_perf()
227 static int etb_enable(struct coresight_device *csdev, u32 mode, void *data) in etb_enable() argument
233 ret = etb_enable_sysfs(csdev); in etb_enable()
236 ret = etb_enable_perf(csdev, data); in etb_enable()
246 dev_dbg(&csdev->dev, "ETB enabled\n"); in etb_enable()
253 struct device *dev = &drvdata->csdev->dev; in __etb_disable_hw()
289 struct device *dev = &drvdata->csdev->dev; in etb_dump_hw()
349 static int etb_disable(struct coresight_device *csdev) in etb_disable() argument
351 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_disable()
356 if (atomic_dec_return(csdev->refcnt)) { in etb_disable()
369 dev_dbg(&csdev->dev, "ETB disabled\n"); in etb_disable()
373 static void *etb_alloc_buffer(struct coresight_device *csdev, in etb_alloc_buffer() argument
400 static int etb_set_buffer(struct coresight_device *csdev, in etb_set_buffer() argument
424 static unsigned long etb_update_buffer(struct coresight_device *csdev, in etb_update_buffer() argument
436 struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in etb_update_buffer()
446 if (atomic_read(csdev->refcnt) != 1) in etb_update_buffer()
462 dev_err(&csdev->dev, in etb_update_buffer()
596 dev_dbg(&drvdata->csdev->dev, "ETB dumped\n"); in etb_dump()
607 dev_dbg(&drvdata->csdev->dev, "%s: successfully opened\n", __func__); in etb_open()
617 struct device *dev = &drvdata->csdev->dev; in etb_read()
644 dev_dbg(&drvdata->csdev->dev, "%s: released\n", __func__); in etb_release()
785 drvdata->csdev = coresight_register(&desc); in etb_probe()
786 if (IS_ERR(drvdata->csdev)) in etb_probe()
787 return PTR_ERR(drvdata->csdev); in etb_probe()
800 coresight_unregister(drvdata->csdev); in etb_probe()