Lines Matching refs:csdev
60 struct coresight_device *csdev; member
72 static int tpiu_enable(struct coresight_device *csdev, u32 mode, void *__unused) in tpiu_enable() argument
74 tpiu_enable_hw(&csdev->access); in tpiu_enable()
75 atomic_inc(csdev->refcnt); in tpiu_enable()
76 dev_dbg(&csdev->dev, "TPIU enabled\n"); in tpiu_enable()
96 static int tpiu_disable(struct coresight_device *csdev) in tpiu_disable() argument
98 if (atomic_dec_return(csdev->refcnt)) in tpiu_disable()
101 tpiu_disable_hw(&csdev->access); in tpiu_disable()
103 dev_dbg(&csdev->dev, "TPIU disabled\n"); in tpiu_disable()
163 drvdata->csdev = coresight_register(&desc); in tpiu_probe()
165 if (!IS_ERR(drvdata->csdev)) { in tpiu_probe()
170 return PTR_ERR(drvdata->csdev); in tpiu_probe()
177 coresight_unregister(drvdata->csdev); in tpiu_remove()