Searched refs:etr_buf (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/hwtracing/coresight/ |
D | coresight-tmc-etr.c | 557 struct etr_buf *etr_buf, int node, in tmc_etr_alloc_flat_buf() argument 570 flat_buf->vaddr = dma_alloc_coherent(drvdata->dev, etr_buf->size, in tmc_etr_alloc_flat_buf() 577 flat_buf->size = etr_buf->size; in tmc_etr_alloc_flat_buf() 579 etr_buf->hwaddr = flat_buf->daddr; in tmc_etr_alloc_flat_buf() 580 etr_buf->mode = ETR_MODE_FLAT; in tmc_etr_alloc_flat_buf() 581 etr_buf->private = flat_buf; in tmc_etr_alloc_flat_buf() 585 static void tmc_etr_free_flat_buf(struct etr_buf *etr_buf) in tmc_etr_free_flat_buf() argument 587 struct etr_flat_buf *flat_buf = etr_buf->private; in tmc_etr_free_flat_buf() 595 static void tmc_etr_sync_flat_buf(struct etr_buf *etr_buf, u64 rrp, u64 rwp) in tmc_etr_sync_flat_buf() argument 601 etr_buf->offset = rrp - etr_buf->hwaddr; in tmc_etr_sync_flat_buf() [all …]
|
D | coresight-catu.c | 282 static void catu_free_etr_buf(struct etr_buf *etr_buf) in catu_free_etr_buf() argument 286 if (!etr_buf || etr_buf->mode != ETR_MODE_CATU || !etr_buf->private) in catu_free_etr_buf() 289 catu_buf = etr_buf->private; in catu_free_etr_buf() 294 static ssize_t catu_get_data_etr_buf(struct etr_buf *etr_buf, u64 offset, in catu_get_data_etr_buf() argument 297 struct catu_etr_buf *catu_buf = etr_buf->private; in catu_get_data_etr_buf() 302 static void catu_sync_etr_buf(struct etr_buf *etr_buf, u64 rrp, u64 rwp) in catu_sync_etr_buf() argument 304 struct catu_etr_buf *catu_buf = etr_buf->private; in catu_sync_etr_buf() 312 r_offset = rrp - etr_buf->hwaddr; in catu_sync_etr_buf() 313 w_offset = rwp - etr_buf->hwaddr; in catu_sync_etr_buf() 315 if (!etr_buf->full) { in catu_sync_etr_buf() [all …]
|
D | coresight-tmc.h | 145 struct etr_buf { struct 183 struct etr_buf *etr_buf; /* TMC ETR */ member 195 int (*alloc)(struct tmc_drvdata *drvdata, struct etr_buf *etr_buf, 197 void (*sync)(struct etr_buf *etr_buf, u64 rrp, u64 rwp); 198 ssize_t (*get_data)(struct etr_buf *etr_buf, u64 offset, size_t len, 200 void (*free)(struct etr_buf *etr_buf);
|