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 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_enable()
77 atomic_inc(csdev->refcnt); in tpiu_enable()
78 dev_dbg(&csdev->dev, "TPIU enabled\n"); in tpiu_enable()
98 static int tpiu_disable(struct coresight_device *csdev) in tpiu_disable() argument
100 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_disable()
102 if (atomic_dec_return(csdev->refcnt)) in tpiu_disable()
107 dev_dbg(&csdev->dev, "TPIU disabled\n"); in tpiu_disable()
166 drvdata->csdev = coresight_register(&desc); in tpiu_probe()
168 if (!IS_ERR(drvdata->csdev)) { in tpiu_probe()
173 return PTR_ERR(drvdata->csdev); in tpiu_probe()