Lines Matching refs:csdev
279 #define source_ops(csdev) csdev->ops->source_ops argument
280 #define sink_ops(csdev) csdev->ops->sink_ops argument
281 #define link_ops(csdev) csdev->ops->link_ops argument
282 #define helper_ops(csdev) csdev->ops->helper_ops argument
283 #define ect_ops(csdev) csdev->ops->ect_ops argument
295 int (*enable)(struct coresight_device *csdev, u32 mode, void *data);
296 int (*disable)(struct coresight_device *csdev);
297 void *(*alloc_buffer)(struct coresight_device *csdev,
301 unsigned long (*update_buffer)(struct coresight_device *csdev,
313 int (*enable)(struct coresight_device *csdev, int iport, int oport);
314 void (*disable)(struct coresight_device *csdev, int iport, int oport);
328 int (*cpu_id)(struct coresight_device *csdev);
329 int (*trace_id)(struct coresight_device *csdev);
330 int (*enable)(struct coresight_device *csdev,
332 void (*disable)(struct coresight_device *csdev,
346 int (*enable)(struct coresight_device *csdev, void *data);
347 int (*disable)(struct coresight_device *csdev, void *data);
357 int (*enable)(struct coresight_device *csdev);
358 int (*disable)(struct coresight_device *csdev);
468 static inline bool coresight_is_percpu_source(struct coresight_device *csdev) in coresight_is_percpu_source() argument
470 return csdev && (csdev->type == CORESIGHT_DEV_TYPE_SOURCE) && in coresight_is_percpu_source()
471 (csdev->subtype.source_subtype == CORESIGHT_DEV_SUBTYPE_SOURCE_PROC); in coresight_is_percpu_source()
474 static inline bool coresight_is_percpu_sink(struct coresight_device *csdev) in coresight_is_percpu_sink() argument
476 return csdev && (csdev->type == CORESIGHT_DEV_TYPE_SINK) && in coresight_is_percpu_sink()
477 (csdev->subtype.sink_subtype == CORESIGHT_DEV_SUBTYPE_SINK_PERCPU_SYSMEM); in coresight_is_percpu_sink()
482 extern void coresight_unregister(struct coresight_device *csdev);
483 extern int coresight_enable(struct coresight_device *csdev);
484 extern void coresight_disable(struct coresight_device *csdev);
488 extern int coresight_claim_device(struct coresight_device *csdev);
489 extern int coresight_claim_device_unlocked(struct coresight_device *csdev);
491 extern void coresight_disclaim_device(struct coresight_device *csdev);
492 extern void coresight_disclaim_device_unlocked(struct coresight_device *csdev);
498 u32 coresight_relaxed_read32(struct coresight_device *csdev, u32 offset);
499 u32 coresight_read32(struct coresight_device *csdev, u32 offset);
500 void coresight_write32(struct coresight_device *csdev, u32 val, u32 offset);
501 void coresight_relaxed_write32(struct coresight_device *csdev,
503 u64 coresight_relaxed_read64(struct coresight_device *csdev, u32 offset);
504 u64 coresight_read64(struct coresight_device *csdev, u32 offset);
505 void coresight_relaxed_write64(struct coresight_device *csdev,
507 void coresight_write64(struct coresight_device *csdev, u64 val, u32 offset);
512 static inline void coresight_unregister(struct coresight_device *csdev) {} in coresight_unregister() argument
514 coresight_enable(struct coresight_device *csdev) { return -ENOSYS; } in coresight_enable() argument
515 static inline void coresight_disable(struct coresight_device *csdev) {} in coresight_disable() argument
523 static inline int coresight_claim_device_unlocked(struct coresight_device *csdev) in coresight_claim_device_unlocked() argument
528 static inline int coresight_claim_device(struct coresight_device *csdev) in coresight_claim_device() argument
533 static inline void coresight_disclaim_device(struct coresight_device *csdev) {} in coresight_disclaim_device() argument
534 static inline void coresight_disclaim_device_unlocked(struct coresight_device *csdev) {} in coresight_disclaim_device_unlocked() argument
541 static inline u32 coresight_relaxed_read32(struct coresight_device *csdev, u32 offset) in coresight_relaxed_read32() argument
547 static inline u32 coresight_read32(struct coresight_device *csdev, u32 offset) in coresight_read32() argument
553 static inline void coresight_write32(struct coresight_device *csdev, u32 val, u32 offset) in coresight_write32() argument
557 static inline void coresight_relaxed_write32(struct coresight_device *csdev, in coresight_relaxed_write32() argument
562 static inline u64 coresight_relaxed_read64(struct coresight_device *csdev, in coresight_relaxed_read64() argument
569 static inline u64 coresight_read64(struct coresight_device *csdev, u32 offset) in coresight_read64() argument
575 static inline void coresight_relaxed_write64(struct coresight_device *csdev, in coresight_relaxed_write64() argument
580 static inline void coresight_write64(struct coresight_device *csdev, u64 val, u32 offset) in coresight_write64() argument