Lines Matching refs:csdev
21 #define csdev_to_catu_drvdata(csdev) \ argument
22 dev_get_drvdata(csdev->dev.parent)
330 struct coresight_device *csdev; in catu_alloc_etr_buf() local
335 csdev = tmc_etr_get_catu_device(tmc_drvdata); in catu_alloc_etr_buf()
336 if (!csdev) in catu_alloc_etr_buf()
338 catu_dev = csdev->dev.parent; in catu_alloc_etr_buf()
446 static int catu_enable(struct coresight_device *csdev, void *data) in catu_enable() argument
449 struct catu_drvdata *catu_drvdata = csdev_to_catu_drvdata(csdev); in catu_enable()
471 static int catu_disable(struct coresight_device *csdev, void *__unused) in catu_disable() argument
474 struct catu_drvdata *catu_drvdata = csdev_to_catu_drvdata(csdev); in catu_disable()
551 drvdata->csdev = coresight_register(&catu_desc); in catu_probe()
552 if (IS_ERR(drvdata->csdev)) in catu_probe()
553 ret = PTR_ERR(drvdata->csdev); in catu_probe()