Lines Matching +full:ctrl +full:- +full:b

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * trace.h - DesignWare USB3 DRD Controller Trace Support
5 * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com
31 __entry->base = base;
32 __entry->offset = offset;
33 __entry->value = value;
36 __entry->base + __entry->offset,
37 __entry->offset,
38 __entry->value)
59 __entry->event = event;
60 __entry->ep0state = dwc->ep0state;
62 TP_printk("event (%08x): %s", __entry->event,
64 __entry->event, __entry->ep0state))
73 TP_PROTO(struct usb_ctrlrequest *ctrl),
74 TP_ARGS(ctrl),
83 __entry->bRequestType = ctrl->bRequestType;
84 __entry->bRequest = ctrl->bRequest;
85 __entry->wValue = le16_to_cpu(ctrl->wValue);
86 __entry->wIndex = le16_to_cpu(ctrl->wIndex);
87 __entry->wLength = le16_to_cpu(ctrl->wLength);
90 __entry->bRequestType,
91 __entry->bRequest, __entry->wValue,
92 __entry->wIndex, __entry->wLength)
97 TP_PROTO(struct usb_ctrlrequest *ctrl),
98 TP_ARGS(ctrl)
105 __string(name, req->dep->name)
116 __entry->req = req;
117 __entry->actual = req->request.actual;
118 __entry->length = req->request.length;
119 __entry->status = req->request.status;
120 __entry->zero = req->request.zero;
121 __entry->short_not_ok = req->request.short_not_ok;
122 __entry->no_interrupt = req->request.no_interrupt;
125 __get_str(name), __entry->req, __entry->actual, __entry->length,
126 __entry->zero ? "Z" : "z",
127 __entry->short_not_ok ? "S" : "s",
128 __entry->no_interrupt ? "i" : "I",
129 __entry->status
167 __entry->cmd = cmd;
168 __entry->param = param;
169 __entry->status = status;
171 TP_printk("cmd '%s' [%x] param %08x --> status: %s",
172 dwc3_gadget_generic_cmd_string(__entry->cmd),
173 __entry->cmd, __entry->param,
174 dwc3_gadget_generic_cmd_status_string(__entry->status)
188 __string(name, dep->name)
197 __entry->cmd = cmd;
198 __entry->param0 = params->param0;
199 __entry->param1 = params->param1;
200 __entry->param2 = params->param2;
201 __entry->cmd_status = cmd_status;
203 TP_printk("%s: cmd '%s' [%x] params %08x %08x %08x --> status: %s",
204 __get_str(name), dwc3_gadget_ep_cmd_string(__entry->cmd),
205 __entry->cmd, __entry->param0,
206 __entry->param1, __entry->param2,
207 dwc3_ep_cmd_status_string(__entry->cmd_status)
221 __string(name, dep->name)
226 __field(u32, ctrl)
233 __entry->trb = trb;
234 __entry->bpl = trb->bpl;
235 __entry->bph = trb->bph;
236 __entry->size = trb->size;
237 __entry->ctrl = trb->ctrl;
238 __entry->type = usb_endpoint_type(dep->endpoint.desc);
239 __entry->enqueue = dep->trb_enqueue;
240 __entry->dequeue = dep->trb_dequeue;
242 TP_printk("%s: trb %p (E%d:D%d) buf %08x%08x size %s%d ctrl %08x sofn %08x (%c%c%c%c:%c%c:%s)",
243 __get_str(name), __entry->trb, __entry->enqueue,
244 __entry->dequeue, __entry->bph, __entry->bpl,
246 int pcm = ((__entry->size >> 24) & 3) + 1;
248 switch (__entry->type) {
267 DWC3_TRB_SIZE_LENGTH(__entry->size), __entry->ctrl,
268 DWC3_TRB_CTRL_GET_SID_SOFN(__entry->ctrl),
269 __entry->ctrl & DWC3_TRB_CTRL_HWO ? 'H' : 'h',
270 __entry->ctrl & DWC3_TRB_CTRL_LST ? 'L' : 'l',
271 __entry->ctrl & DWC3_TRB_CTRL_CHN ? 'C' : 'c',
272 __entry->ctrl & DWC3_TRB_CTRL_CSP ? 'S' : 's',
273 __entry->ctrl & DWC3_TRB_CTRL_ISP_IMI ? 'S' : 's',
274 __entry->ctrl & DWC3_TRB_CTRL_IOC ? 'C' : 'c',
275 dwc3_trb_type_string(DWC3_TRBCTL_TYPE(__entry->ctrl))
293 __string(name, dep->name)
305 __entry->maxpacket = dep->endpoint.maxpacket;
306 __entry->maxpacket_limit = dep->endpoint.maxpacket_limit;
307 __entry->max_streams = dep->endpoint.max_streams;
308 __entry->maxburst = dep->endpoint.maxburst;
309 __entry->flags = dep->flags;
310 __entry->direction = dep->direction;
311 __entry->trb_enqueue = dep->trb_enqueue;
312 __entry->trb_dequeue = dep->trb_dequeue;
315 __get_str(name), __entry->maxpacket,
316 __entry->maxpacket_limit, __entry->max_streams,
317 __entry->maxburst, __entry->trb_enqueue,
318 __entry->trb_dequeue,
319 __entry->flags & DWC3_EP_ENABLED ? 'E' : 'e',
320 __entry->flags & DWC3_EP_STALL ? 'S' : 's',
321 __entry->flags & DWC3_EP_WEDGE ? 'W' : 'w',
322 __entry->flags & DWC3_EP_TRANSFER_STARTED ? 'B' : 'b',
323 __entry->flags & DWC3_EP_PENDING_REQUEST ? 'P' : 'p',
324 __entry->direction ? '<' : '>'