Lines Matching refs:coresight_device
198 struct coresight_device *dest_dev;
200 struct coresight_device *src_dev;
213 struct coresight_device *orig;
215 struct coresight_device *target;
245 struct coresight_device { struct
258 struct coresight_device *def_sink; argument
291 #define to_coresight_device(d) container_of(d, struct coresight_device, dev)
315 int (*enable)(struct coresight_device *csdev, enum cs_mode mode,
317 int (*disable)(struct coresight_device *csdev);
318 void *(*alloc_buffer)(struct coresight_device *csdev,
322 unsigned long (*update_buffer)(struct coresight_device *csdev,
334 int (*enable)(struct coresight_device *csdev,
337 void (*disable)(struct coresight_device *csdev,
351 int (*cpu_id)(struct coresight_device *csdev);
352 int (*enable)(struct coresight_device *csdev, struct perf_event *event,
354 void (*disable)(struct coresight_device *csdev,
368 int (*enable)(struct coresight_device *csdev, enum cs_mode mode,
370 int (*disable)(struct coresight_device *csdev, void *data);
559 static inline bool coresight_is_percpu_source(struct coresight_device *csdev) in coresight_is_percpu_source()
565 static inline bool coresight_is_percpu_sink(struct coresight_device *csdev) in coresight_is_percpu_sink()
571 extern struct coresight_device *
573 extern void coresight_unregister(struct coresight_device *csdev);
574 extern int coresight_enable(struct coresight_device *csdev);
575 extern void coresight_disable(struct coresight_device *csdev);
579 extern int coresight_claim_device(struct coresight_device *csdev);
580 extern int coresight_claim_device_unlocked(struct coresight_device *csdev);
582 extern void coresight_disclaim_device(struct coresight_device *csdev);
583 extern void coresight_disclaim_device_unlocked(struct coresight_device *csdev);
589 u32 coresight_relaxed_read32(struct coresight_device *csdev, u32 offset);
590 u32 coresight_read32(struct coresight_device *csdev, u32 offset);
591 void coresight_write32(struct coresight_device *csdev, u32 val, u32 offset);
592 void coresight_relaxed_write32(struct coresight_device *csdev,
594 u64 coresight_relaxed_read64(struct coresight_device *csdev, u32 offset);
595 u64 coresight_read64(struct coresight_device *csdev, u32 offset);
596 void coresight_relaxed_write64(struct coresight_device *csdev,
598 void coresight_write64(struct coresight_device *csdev, u64 val, u32 offset);
601 static inline struct coresight_device *
603 static inline void coresight_unregister(struct coresight_device *csdev) {} in coresight_unregister()
605 coresight_enable(struct coresight_device *csdev) { return -ENOSYS; } in coresight_enable()
606 static inline void coresight_disable(struct coresight_device *csdev) {} in coresight_disable()
614 static inline int coresight_claim_device_unlocked(struct coresight_device *csdev) in coresight_claim_device_unlocked()
619 static inline int coresight_claim_device(struct coresight_device *csdev) in coresight_claim_device()
624 static inline void coresight_disclaim_device(struct coresight_device *csdev) {} in coresight_disclaim_device()
625 static inline void coresight_disclaim_device_unlocked(struct coresight_device *csdev) {} in coresight_disclaim_device_unlocked()
632 static inline u32 coresight_relaxed_read32(struct coresight_device *csdev, u32 offset) in coresight_relaxed_read32()
638 static inline u32 coresight_read32(struct coresight_device *csdev, u32 offset) in coresight_read32()
644 static inline void coresight_write32(struct coresight_device *csdev, u32 val, u32 offset) in coresight_write32()
648 static inline void coresight_relaxed_write32(struct coresight_device *csdev, in coresight_relaxed_write32()
653 static inline u64 coresight_relaxed_read64(struct coresight_device *csdev, in coresight_relaxed_read64()
660 static inline u64 coresight_read64(struct coresight_device *csdev, u32 offset) in coresight_read64()
666 static inline void coresight_relaxed_write64(struct coresight_device *csdev, in coresight_relaxed_write64()
671 static inline void coresight_write64(struct coresight_device *csdev, u64 val, u32 offset) in coresight_write64()
685 struct coresight_device *
689 struct coresight_device *