.. | .. |
---|
1 | | -// SPDX-License-Identifier: GPL-2.0 |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
---|
2 | 2 | /** |
---|
3 | 3 | * trace.h - DesignWare USB3 DRD Controller Trace Support |
---|
4 | 4 | * |
---|
5 | | - * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com |
---|
| 5 | + * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com |
---|
6 | 6 | * |
---|
7 | 7 | * Author: Felipe Balbi <balbi@ti.com> |
---|
8 | 8 | */ |
---|
.. | .. |
---|
86 | 86 | __entry->wIndex = le16_to_cpu(ctrl->wIndex); |
---|
87 | 87 | __entry->wLength = le16_to_cpu(ctrl->wLength); |
---|
88 | 88 | ), |
---|
89 | | - TP_printk("%s", dwc3_decode_ctrl(__get_str(str), DWC3_MSG_MAX, |
---|
| 89 | + TP_printk("%s", usb_decode_ctrl(__get_str(str), DWC3_MSG_MAX, |
---|
90 | 90 | __entry->bRequestType, |
---|
91 | 91 | __entry->bRequest, __entry->wValue, |
---|
92 | 92 | __entry->wIndex, __entry->wLength) |
---|
.. | .. |
---|
104 | 104 | TP_STRUCT__entry( |
---|
105 | 105 | __string(name, req->dep->name) |
---|
106 | 106 | __field(struct dwc3_request *, req) |
---|
107 | | - __field(unsigned, actual) |
---|
108 | | - __field(unsigned, length) |
---|
| 107 | + __field(unsigned int, actual) |
---|
| 108 | + __field(unsigned int, length) |
---|
109 | 109 | __field(int, status) |
---|
110 | 110 | __field(int, zero) |
---|
111 | 111 | __field(int, short_not_ok) |
---|
.. | .. |
---|
227 | 227 | __field(u32, size) |
---|
228 | 228 | __field(u32, ctrl) |
---|
229 | 229 | __field(u32, type) |
---|
| 230 | + __field(u32, enqueue) |
---|
| 231 | + __field(u32, dequeue) |
---|
230 | 232 | ), |
---|
231 | 233 | TP_fast_assign( |
---|
232 | 234 | __assign_str(name, dep->name); |
---|
.. | .. |
---|
236 | 238 | __entry->size = trb->size; |
---|
237 | 239 | __entry->ctrl = trb->ctrl; |
---|
238 | 240 | __entry->type = usb_endpoint_type(dep->endpoint.desc); |
---|
| 241 | + __entry->enqueue = dep->trb_enqueue; |
---|
| 242 | + __entry->dequeue = dep->trb_dequeue; |
---|
239 | 243 | ), |
---|
240 | | - TP_printk("%s: trb %p buf %08x%08x size %s%d ctrl %08x (%c%c%c%c:%c%c:%s)", |
---|
241 | | - __get_str(name), __entry->trb, __entry->bph, __entry->bpl, |
---|
| 244 | + TP_printk("%s: trb %p (E%d:D%d) buf %08x%08x size %s%d ctrl %08x (%c%c%c%c:%c%c:%s)", |
---|
| 245 | + __get_str(name), __entry->trb, __entry->enqueue, |
---|
| 246 | + __entry->dequeue, __entry->bph, __entry->bpl, |
---|
242 | 247 | ({char *s; |
---|
243 | 248 | int pcm = ((__entry->size >> 24) & 3) + 1; |
---|
| 249 | + |
---|
244 | 250 | switch (__entry->type) { |
---|
245 | 251 | case USB_ENDPOINT_XFER_INT: |
---|
246 | 252 | case USB_ENDPOINT_XFER_ISOC: |
---|
.. | .. |
---|
286 | 292 | TP_ARGS(dep), |
---|
287 | 293 | TP_STRUCT__entry( |
---|
288 | 294 | __string(name, dep->name) |
---|
289 | | - __field(unsigned, maxpacket) |
---|
290 | | - __field(unsigned, maxpacket_limit) |
---|
291 | | - __field(unsigned, max_streams) |
---|
292 | | - __field(unsigned, maxburst) |
---|
293 | | - __field(unsigned, flags) |
---|
294 | | - __field(unsigned, direction) |
---|
| 295 | + __field(unsigned int, maxpacket) |
---|
| 296 | + __field(unsigned int, maxpacket_limit) |
---|
| 297 | + __field(unsigned int, max_streams) |
---|
| 298 | + __field(unsigned int, maxburst) |
---|
| 299 | + __field(unsigned int, flags) |
---|
| 300 | + __field(unsigned int, direction) |
---|
295 | 301 | __field(u8, trb_enqueue) |
---|
296 | 302 | __field(u8, trb_dequeue) |
---|
297 | 303 | ), |
---|