3 #define TRACE_SYSTEM fsi_master_ast_cf
5 #if !defined(_TRACE_FSI_MASTER_ACF_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_FSI_MASTER_ACF_H
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(fsi_master_acf_copro_command
,
11 TP_PROTO(const struct fsi_master_acf
*master
, uint32_t op
),
14 __field(int, master_idx
)
18 __entry
->master_idx
= master
->master
.idx
;
21 TP_printk("fsi-acf%d command %08x",
22 __entry
->master_idx
, __entry
->op
26 TRACE_EVENT(fsi_master_acf_send_request
,
27 TP_PROTO(const struct fsi_master_acf
*master
, const struct fsi_msg
*cmd
, u8 rbits
),
28 TP_ARGS(master
, cmd
, rbits
),
30 __field(int, master_idx
)
31 __field(uint64_t, msg
)
36 __entry
->master_idx
= master
->master
.idx
;
37 __entry
->msg
= cmd
->msg
;
38 __entry
->bits
= cmd
->bits
;
39 __entry
->rbits
= rbits
;
41 TP_printk("fsi-acf%d cmd: %016llx/%d/%d",
42 __entry
->master_idx
, (unsigned long long)__entry
->msg
,
43 __entry
->bits
, __entry
->rbits
47 TRACE_EVENT(fsi_master_acf_copro_response
,
48 TP_PROTO(const struct fsi_master_acf
*master
, u8 rtag
, u8 rcrc
, __be32 rdata
, bool crc_ok
),
49 TP_ARGS(master
, rtag
, rcrc
, rdata
, crc_ok
),
51 __field(int, master_idx
)
58 __entry
->master_idx
= master
->master
.idx
;
61 __entry
->rdata
= be32_to_cpu(rdata
);
62 __entry
->crc_ok
= crc_ok
;
64 TP_printk("fsi-acf%d rsp: tag=%04x crc=%04x data=%08x %c\n",
65 __entry
->master_idx
, __entry
->rtag
, __entry
->rcrc
,
66 __entry
->rdata
, __entry
->crc_ok
? ' ' : '!'
70 TRACE_EVENT(fsi_master_acf_crc_rsp_error
,
71 TP_PROTO(const struct fsi_master_acf
*master
, int retries
),
72 TP_ARGS(master
, retries
),
74 __field(int, master_idx
)
78 __entry
->master_idx
= master
->master
.idx
;
79 __entry
->retries
= retries
;
81 TP_printk("fsi-acf%d CRC error in response retry %d",
82 __entry
->master_idx
, __entry
->retries
86 TRACE_EVENT(fsi_master_acf_poll_response_busy
,
87 TP_PROTO(const struct fsi_master_acf
*master
, int busy_count
),
88 TP_ARGS(master
, busy_count
),
90 __field(int, master_idx
)
91 __field(int, busy_count
)
94 __entry
->master_idx
= master
->master
.idx
;
95 __entry
->busy_count
= busy_count
;
97 TP_printk("fsi-acf%d: device reported busy %d times",
98 __entry
->master_idx
, __entry
->busy_count
102 TRACE_EVENT(fsi_master_acf_cmd_abs_addr
,
103 TP_PROTO(const struct fsi_master_acf
*master
, u32 addr
),
104 TP_ARGS(master
, addr
),
106 __field(int, master_idx
)
110 __entry
->master_idx
= master
->master
.idx
;
111 __entry
->addr
= addr
;
113 TP_printk("fsi-acf%d: Sending ABS_ADR %06x",
114 __entry
->master_idx
, __entry
->addr
118 TRACE_EVENT(fsi_master_acf_cmd_rel_addr
,
119 TP_PROTO(const struct fsi_master_acf
*master
, u32 rel_addr
),
120 TP_ARGS(master
, rel_addr
),
122 __field(int, master_idx
)
123 __field(u32
, rel_addr
)
126 __entry
->master_idx
= master
->master
.idx
;
127 __entry
->rel_addr
= rel_addr
;
129 TP_printk("fsi-acf%d: Sending REL_ADR %03x",
130 __entry
->master_idx
, __entry
->rel_addr
134 TRACE_EVENT(fsi_master_acf_cmd_same_addr
,
135 TP_PROTO(const struct fsi_master_acf
*master
),
138 __field(int, master_idx
)
141 __entry
->master_idx
= master
->master
.idx
;
143 TP_printk("fsi-acf%d: Sending SAME_ADR",
148 #endif /* _TRACE_FSI_MASTER_ACF_H */
150 #include <trace/define_trace.h>