Searched refs:etr_buf (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/hwtracing/coresight/ |
D | coresight-tmc-etr.c | 40 struct etr_buf *etr_buf; member 596 struct etr_buf *etr_buf, int node, in tmc_etr_alloc_flat_buf() argument 610 flat_buf->vaddr = dma_alloc_noncoherent(real_dev, etr_buf->size, in tmc_etr_alloc_flat_buf() 618 flat_buf->size = etr_buf->size; in tmc_etr_alloc_flat_buf() 620 etr_buf->hwaddr = flat_buf->daddr; in tmc_etr_alloc_flat_buf() 621 etr_buf->mode = ETR_MODE_FLAT; in tmc_etr_alloc_flat_buf() 622 etr_buf->private = flat_buf; in tmc_etr_alloc_flat_buf() 626 static void tmc_etr_free_flat_buf(struct etr_buf *etr_buf) in tmc_etr_free_flat_buf() argument 628 struct etr_flat_buf *flat_buf = etr_buf->private; in tmc_etr_free_flat_buf() 633 dma_free_noncoherent(real_dev, etr_buf->size, in tmc_etr_free_flat_buf() [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 | 154 struct etr_buf { struct 200 struct etr_buf *etr_buf; /* TMC ETR */ member 212 struct etr_buf *sysfs_buf; 213 struct etr_buf *perf_buf; 217 int (*alloc)(struct tmc_drvdata *drvdata, struct etr_buf *etr_buf, 219 void (*sync)(struct etr_buf *etr_buf, u64 rrp, u64 rwp); 220 ssize_t (*get_data)(struct etr_buf *etr_buf, u64 offset, size_t len, 222 void (*free)(struct etr_buf *etr_buf);
|