Searched refs:etr_buf (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-tmc-etr.c | 48 struct etr_buf *etr_buf; member 603 struct etr_buf *etr_buf, int node, in tmc_etr_alloc_flat_buf() argument 617 flat_buf->vaddr = dma_alloc_noncoherent(real_dev, etr_buf->size, in tmc_etr_alloc_flat_buf() 626 flat_buf->size = etr_buf->size; in tmc_etr_alloc_flat_buf() 628 etr_buf->hwaddr = flat_buf->daddr; in tmc_etr_alloc_flat_buf() 629 etr_buf->mode = ETR_MODE_FLAT; in tmc_etr_alloc_flat_buf() 630 etr_buf->private = flat_buf; in tmc_etr_alloc_flat_buf() 634 static void tmc_etr_free_flat_buf(struct etr_buf *etr_buf) in tmc_etr_free_flat_buf() argument 636 struct etr_flat_buf *flat_buf = etr_buf->private; in tmc_etr_free_flat_buf() 641 dma_free_noncoherent(real_dev, etr_buf->size, in tmc_etr_free_flat_buf() [all …]
|
| H A D | coresight-catu.c | 285 static void catu_free_etr_buf(struct etr_buf *etr_buf) in catu_free_etr_buf() argument 289 if (!etr_buf || etr_buf->mode != ETR_MODE_CATU || !etr_buf->private) in catu_free_etr_buf() 292 catu_buf = etr_buf->private; in catu_free_etr_buf() 297 static ssize_t catu_get_data_etr_buf(struct etr_buf *etr_buf, u64 offset, in catu_get_data_etr_buf() argument 300 struct catu_etr_buf *catu_buf = etr_buf->private; in catu_get_data_etr_buf() 305 static void catu_sync_etr_buf(struct etr_buf *etr_buf, u64 rrp, u64 rwp) in catu_sync_etr_buf() argument 307 struct catu_etr_buf *catu_buf = etr_buf->private; in catu_sync_etr_buf() 315 r_offset = rrp - etr_buf->hwaddr; in catu_sync_etr_buf() 316 w_offset = rwp - etr_buf->hwaddr; in catu_sync_etr_buf() 318 if (!etr_buf->full) { in catu_sync_etr_buf() [all …]
|
| H A D | coresight-tmc.h | 182 struct etr_buf { struct 262 struct etr_buf *etr_buf; /* TMC ETR */ member 274 struct etr_buf *sysfs_buf; 275 struct etr_buf *perf_buf; 281 int (*alloc)(struct tmc_drvdata *drvdata, struct etr_buf *etr_buf, 283 void (*sync)(struct etr_buf *etr_buf, u64 rrp, u64 rwp); 284 ssize_t (*get_data)(struct etr_buf *etr_buf, u64 offset, size_t len, 286 void (*free)(struct etr_buf *etr_buf); 446 struct etr_buf *tmc_etr_get_buffer(struct coresight_device *csdev,
|