Searched refs:etr_buf (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/hwtracing/coresight/ |
D | coresight-tmc-etr.c | 41 struct etr_buf *etr_buf; member 591 struct etr_buf *etr_buf, int node, in tmc_etr_alloc_flat_buf() argument 605 flat_buf->vaddr = dma_alloc_coherent(real_dev, etr_buf->size, in tmc_etr_alloc_flat_buf() 612 flat_buf->size = etr_buf->size; in tmc_etr_alloc_flat_buf() 614 etr_buf->hwaddr = flat_buf->daddr; in tmc_etr_alloc_flat_buf() 615 etr_buf->mode = ETR_MODE_FLAT; in tmc_etr_alloc_flat_buf() 616 etr_buf->private = flat_buf; in tmc_etr_alloc_flat_buf() 620 static void tmc_etr_free_flat_buf(struct etr_buf *etr_buf) in tmc_etr_free_flat_buf() argument 622 struct etr_flat_buf *flat_buf = etr_buf->private; in tmc_etr_free_flat_buf() 633 static void tmc_etr_sync_flat_buf(struct etr_buf *etr_buf, u64 rrp, u64 rwp) in tmc_etr_sync_flat_buf() argument [all …]
|
D | coresight-catu.c | 284 static void catu_free_etr_buf(struct etr_buf *etr_buf) in catu_free_etr_buf() argument 288 if (!etr_buf || etr_buf->mode != ETR_MODE_CATU || !etr_buf->private) in catu_free_etr_buf() 291 catu_buf = etr_buf->private; in catu_free_etr_buf() 296 static ssize_t catu_get_data_etr_buf(struct etr_buf *etr_buf, u64 offset, in catu_get_data_etr_buf() argument 299 struct catu_etr_buf *catu_buf = etr_buf->private; in catu_get_data_etr_buf() 304 static void catu_sync_etr_buf(struct etr_buf *etr_buf, u64 rrp, u64 rwp) in catu_sync_etr_buf() argument 306 struct catu_etr_buf *catu_buf = etr_buf->private; in catu_sync_etr_buf() 314 r_offset = rrp - etr_buf->hwaddr; in catu_sync_etr_buf() 315 w_offset = rwp - etr_buf->hwaddr; in catu_sync_etr_buf() 317 if (!etr_buf->full) { in catu_sync_etr_buf() [all …]
|
D | coresight-tmc.h | 153 struct etr_buf { struct 197 struct etr_buf *etr_buf; /* TMC ETR */ member 208 struct etr_buf *sysfs_buf; 209 struct etr_buf *perf_buf; 213 int (*alloc)(struct tmc_drvdata *drvdata, struct etr_buf *etr_buf, 215 void (*sync)(struct etr_buf *etr_buf, u64 rrp, u64 rwp); 216 ssize_t (*get_data)(struct etr_buf *etr_buf, u64 offset, size_t len, 218 void (*free)(struct etr_buf *etr_buf);
|