Lines Matching +full:data +full:- +full:size

1 /* SPDX-License-Identifier: GPL-2.0 */
40 const u32 *data) in show_data_read_write() argument
42 const struct cfg_read_pkg *msg = (const struct cfg_read_pkg *)data; in show_data_read_write()
46 msg->addr.offset, msg->addr.length, msg->addr.port, in show_data_read_write()
47 msg->addr.space, msg->addr.seq); in show_data_read_write()
52 static inline const char *show_data_error(struct trace_seq *p, const u32 *data) in show_data_error() argument
54 const struct cfg_error_pkg *msg = (const struct cfg_error_pkg *)data; in show_data_error()
57 trace_seq_printf(p, "error=%#x, port=%d, plug=%#x, ", msg->error, in show_data_error()
58 msg->port, msg->pg); in show_data_error()
63 static inline const char *show_data_event(struct trace_seq *p, const u32 *data) in show_data_event() argument
65 const struct cfg_event_pkg *msg = (const struct cfg_event_pkg *)data; in show_data_event()
68 trace_seq_printf(p, "port=%d, unplug=%#x, ", msg->port, msg->unplug); in show_data_event()
73 static inline const char *show_route(struct trace_seq *p, const u32 *data) in show_route() argument
75 const struct tb_cfg_header *header = (const struct tb_cfg_header *)data; in show_route()
84 const u32 *data, u32 length) in show_data() argument
93 show_route(p, data); in show_data()
94 show_data_read_write(p, data); in show_data()
98 show_route(p, data); in show_data()
99 show_data_error(p, data); in show_data()
103 show_route(p, data); in show_data()
104 show_data_event(p, data); in show_data()
115 show_route(p, data); in show_data()
119 trace_seq_printf(p, "data=["); in show_data()
121 trace_seq_printf(p, "%s0x%08x", prefix, data[i]); in show_data()
132 TP_PROTO(int index, u8 type, const void *data, size_t size),
133 TP_ARGS(index, type, data, size),
137 __field(size_t, size)
138 __dynamic_array(u32, data, size / 4)
141 __entry->index = index;
142 __entry->type = type;
143 __entry->size = size / 4;
144 memcpy(__get_dynamic_array(data), data, size);
146 TP_printk("type=%s, size=%zd, domain=%d, %s",
147 show_type_name(__entry->type), __entry->size, __entry->index,
148 show_data(p, __entry->type, __get_dynamic_array(data),
149 __entry->size)
154 TP_PROTO(int index, u8 type, const void *data, size_t size),
155 TP_ARGS(index, type, data, size)
159 TP_PROTO(int index, u8 type, const void *data, size_t size),
160 TP_ARGS(index, type, data, size)
164 TP_PROTO(int index, u8 type, const void *data, size_t size, bool dropped),
165 TP_ARGS(index, type, data, size, dropped),
169 __field(size_t, size)
170 __dynamic_array(u32, data, size / 4)
174 __entry->index = index;
175 __entry->type = type;
176 __entry->size = size / 4;
177 memcpy(__get_dynamic_array(data), data, size);
178 __entry->dropped = dropped;
180 TP_printk("type=%s, dropped=%u, size=%zd, domain=%d, %s",
181 show_type_name(__entry->type), __entry->dropped,
182 __entry->size, __entry->index,
183 show_data(p, __entry->type, __get_dynamic_array(data),
184 __entry->size)