Lines Matching refs:csdev
64 struct coresight_device *csdev; member
77 static int tpiu_enable(struct coresight_device *csdev, enum cs_mode mode, in tpiu_enable() argument
80 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_enable()
83 tpiu_enable_hw(&csdev->access); in tpiu_enable()
84 csdev->refcnt++; in tpiu_enable()
85 dev_dbg(&csdev->dev, "TPIU enabled\n"); in tpiu_enable()
105 static int tpiu_disable(struct coresight_device *csdev) in tpiu_disable() argument
107 struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpiu_disable()
110 csdev->refcnt--; in tpiu_disable()
111 if (csdev->refcnt) in tpiu_disable()
114 tpiu_disable_hw(&csdev->access); in tpiu_disable()
116 dev_dbg(&csdev->dev, "TPIU disabled\n"); in tpiu_disable()
180 drvdata->csdev = coresight_register(&desc); in __tpiu_probe()
182 if (!IS_ERR(drvdata->csdev)) in __tpiu_probe()
185 return PTR_ERR(drvdata->csdev); in __tpiu_probe()
202 coresight_unregister(drvdata->csdev); in __tpiu_remove()