Lines Matching refs:csdev
46 struct coresight_device *csdev; member
55 struct coresight_device *csdev = drvdata->csdev; in dynamic_funnel_enable_hw() local
62 rc = coresight_claim_device_unlocked(csdev); in dynamic_funnel_enable_hw()
77 static int funnel_enable(struct coresight_device *csdev, int inport, in funnel_enable() argument
81 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_enable()
86 if (atomic_read(&csdev->refcnt[inport]) == 0) { in funnel_enable()
93 atomic_inc(&csdev->refcnt[inport]); in funnel_enable()
97 dev_dbg(&csdev->dev, "FUNNEL inport %d enabled\n", inport); in funnel_enable()
105 struct coresight_device *csdev = drvdata->csdev; in dynamic_funnel_disable_hw() local
115 coresight_disclaim_device_unlocked(csdev); in dynamic_funnel_disable_hw()
120 static void funnel_disable(struct coresight_device *csdev, int inport, in funnel_disable() argument
123 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_disable()
128 if (atomic_dec_return(&csdev->refcnt[inport]) == 0) { in funnel_disable()
136 dev_dbg(&csdev->dev, "FUNNEL inport %d disabled\n", inport); in funnel_disable()
265 drvdata->csdev = coresight_register(&desc); in funnel_probe()
266 if (IS_ERR(drvdata->csdev)) { in funnel_probe()
267 ret = PTR_ERR(drvdata->csdev); in funnel_probe()
284 coresight_unregister(drvdata->csdev); in funnel_remove()