Lines Matching refs:csdev
21 #define csdev_to_catu_drvdata(csdev) \ argument
22 dev_get_drvdata(csdev->dev.parent)
332 struct coresight_device *csdev; in catu_alloc_etr_buf() local
336 csdev = tmc_etr_get_catu_device(tmc_drvdata); in catu_alloc_etr_buf()
337 if (!csdev) in catu_alloc_etr_buf()
343 catu_table = catu_init_sg_table(&csdev->dev, node, in catu_alloc_etr_buf()
404 struct csdev_access *csa = &drvdata->csdev->access; in catu_wait_for_ready()
414 struct device *dev = &drvdata->csdev->dev; in catu_enable_hw()
415 struct coresight_device *csdev = drvdata->csdev; in catu_enable_hw() local
426 rc = coresight_claim_device_unlocked(csdev); in catu_enable_hw()
455 static int catu_enable(struct coresight_device *csdev, void *data) in catu_enable() argument
458 struct catu_drvdata *catu_drvdata = csdev_to_catu_drvdata(csdev); in catu_enable()
469 struct device *dev = &drvdata->csdev->dev; in catu_disable_hw()
470 struct coresight_device *csdev = drvdata->csdev; in catu_disable_hw() local
473 coresight_disclaim_device_unlocked(csdev); in catu_disable_hw()
483 static int catu_disable(struct coresight_device *csdev, void *__unused) in catu_disable() argument
486 struct catu_drvdata *catu_drvdata = csdev_to_catu_drvdata(csdev); in catu_disable()
565 drvdata->csdev = coresight_register(&catu_desc); in catu_probe()
566 if (IS_ERR(drvdata->csdev)) in catu_probe()
567 ret = PTR_ERR(drvdata->csdev); in catu_probe()
578 coresight_unregister(drvdata->csdev); in catu_remove()