1 /* SPDX-License-Identifier: GPL-2.0 */
4 #define TRACE_SYSTEM fsi_master_gpio
6 #if !defined(_TRACE_FSI_MASTER_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
7 #define _TRACE_FSI_MASTER_GPIO_H
9 #include <linux/tracepoint.h>
11 TRACE_EVENT(fsi_master_gpio_in
,
12 TP_PROTO(const struct fsi_master_gpio
*master
, int bits
, uint64_t msg
),
13 TP_ARGS(master
, bits
, msg
),
15 __field(int, master_idx
)
17 __field(uint64_t, msg
)
20 __entry
->master_idx
= master
->master
.idx
;
22 __entry
->msg
= msg
& ((1ull<<bits
) - 1);
24 TP_printk("fsi-gpio%d => %0*llx[%d]",
26 (__entry
->bits
+ 3) / 4,
32 TRACE_EVENT(fsi_master_gpio_out
,
33 TP_PROTO(const struct fsi_master_gpio
*master
, int bits
, uint64_t msg
),
34 TP_ARGS(master
, bits
, msg
),
36 __field(int, master_idx
)
38 __field(uint64_t, msg
)
41 __entry
->master_idx
= master
->master
.idx
;
43 __entry
->msg
= msg
& ((1ull<<bits
) - 1);
45 TP_printk("fsi-gpio%d <= %0*llx[%d]",
47 (__entry
->bits
+ 3) / 4,
53 TRACE_EVENT(fsi_master_gpio_clock_zeros
,
54 TP_PROTO(const struct fsi_master_gpio
*master
, int clocks
),
55 TP_ARGS(master
, clocks
),
57 __field(int, master_idx
)
61 __entry
->master_idx
= master
->master
.idx
;
62 __entry
->clocks
= clocks
;
64 TP_printk("fsi-gpio%d clock %d zeros",
65 __entry
->master_idx
, __entry
->clocks
69 TRACE_EVENT(fsi_master_gpio_break
,
70 TP_PROTO(const struct fsi_master_gpio
*master
),
73 __field(int, master_idx
)
76 __entry
->master_idx
= master
->master
.idx
;
78 TP_printk("fsi-gpio%d ----break---",
83 TRACE_EVENT(fsi_master_gpio_crc_cmd_error
,
84 TP_PROTO(const struct fsi_master_gpio
*master
),
87 __field(int, master_idx
)
90 __entry
->master_idx
= master
->master
.idx
;
92 TP_printk("fsi-gpio%d ----CRC command retry---",
97 TRACE_EVENT(fsi_master_gpio_crc_rsp_error
,
98 TP_PROTO(const struct fsi_master_gpio
*master
),
101 __field(int, master_idx
)
104 __entry
->master_idx
= master
->master
.idx
;
106 TP_printk("fsi-gpio%d ----CRC response---",
111 TRACE_EVENT(fsi_master_gpio_poll_response_busy
,
112 TP_PROTO(const struct fsi_master_gpio
*master
, int busy
),
113 TP_ARGS(master
, busy
),
115 __field(int, master_idx
)
119 __entry
->master_idx
= master
->master
.idx
;
120 __entry
->busy
= busy
;
122 TP_printk("fsi-gpio%d: device reported busy %d times",
123 __entry
->master_idx
, __entry
->busy
)
126 TRACE_EVENT(fsi_master_gpio_cmd_abs_addr
,
127 TP_PROTO(const struct fsi_master_gpio
*master
, u32 addr
),
128 TP_ARGS(master
, addr
),
130 __field(int, master_idx
)
134 __entry
->master_idx
= master
->master
.idx
;
135 __entry
->addr
= addr
;
137 TP_printk("fsi-gpio%d: Sending ABS_ADR %06x",
138 __entry
->master_idx
, __entry
->addr
)
141 TRACE_EVENT(fsi_master_gpio_cmd_rel_addr
,
142 TP_PROTO(const struct fsi_master_gpio
*master
, u32 rel_addr
),
143 TP_ARGS(master
, rel_addr
),
145 __field(int, master_idx
)
146 __field(u32
, rel_addr
)
149 __entry
->master_idx
= master
->master
.idx
;
150 __entry
->rel_addr
= rel_addr
;
152 TP_printk("fsi-gpio%d: Sending REL_ADR %03x",
153 __entry
->master_idx
, __entry
->rel_addr
)
156 TRACE_EVENT(fsi_master_gpio_cmd_same_addr
,
157 TP_PROTO(const struct fsi_master_gpio
*master
),
160 __field(int, master_idx
)
163 __entry
->master_idx
= master
->master
.idx
;
165 TP_printk("fsi-gpio%d: Sending SAME_ADR",
169 #endif /* _TRACE_FSI_MASTER_GPIO_H */
171 #include <trace/define_trace.h>