Lines Matching refs:sysfs_buf
1084 struct etr_buf *etr_buf = drvdata->sysfs_buf; in tmc_etr_get_sysfs_trace()
1116 if (WARN_ON(drvdata->sysfs_buf != etr_buf)) { in tmc_etr_sync_sysfs_buf()
1117 tmc_etr_free_sysfs_buf(drvdata->sysfs_buf); in tmc_etr_sync_sysfs_buf()
1118 drvdata->sysfs_buf = NULL; in tmc_etr_sync_sysfs_buf()
1164 struct etr_buf *sysfs_buf = NULL, *new_buf = NULL, *free_buf = NULL; in tmc_enable_etr_sink_sysfs() local
1175 sysfs_buf = READ_ONCE(drvdata->sysfs_buf); in tmc_enable_etr_sink_sysfs()
1176 if (!sysfs_buf || (sysfs_buf->size != drvdata->size)) { in tmc_enable_etr_sink_sysfs()
1207 sysfs_buf = READ_ONCE(drvdata->sysfs_buf); in tmc_enable_etr_sink_sysfs()
1208 if (!sysfs_buf || (new_buf && sysfs_buf->size != new_buf->size)) { in tmc_enable_etr_sink_sysfs()
1209 free_buf = sysfs_buf; in tmc_enable_etr_sink_sysfs()
1210 drvdata->sysfs_buf = new_buf; in tmc_enable_etr_sink_sysfs()
1213 ret = tmc_etr_enable_hw(drvdata, drvdata->sysfs_buf); in tmc_enable_etr_sink_sysfs()
1733 if (!drvdata->sysfs_buf) { in tmc_read_prepare_etr()
1752 struct etr_buf *sysfs_buf = NULL; in tmc_read_unprepare_etr() local
1773 sysfs_buf = drvdata->sysfs_buf; in tmc_read_unprepare_etr()
1774 drvdata->sysfs_buf = NULL; in tmc_read_unprepare_etr()
1781 if (sysfs_buf) in tmc_read_unprepare_etr()
1782 tmc_etr_free_sysfs_buf(sysfs_buf); in tmc_read_unprepare_etr()