Lines Matching +full:default +full:- +full:state
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * debug.h - DesignWare USB3 DRD Controller Debug Header
5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com
17 * dwc3_gadget_ep_cmd_string - returns endpoint command string
37 return "Get Endpoint State"; in dwc3_gadget_ep_cmd_string()
42 default: in dwc3_gadget_ep_cmd_string()
48 * dwc3_gadget_generic_cmd_string - returns generic command string
75 default: in dwc3_gadget_generic_cmd_string()
81 * dwc3_gadget_link_string - returns link name
82 * @link_state: link state code
116 default: in dwc3_gadget_link_string()
117 return "UNKNOWN link state"; in dwc3_gadget_link_string()
122 * dwc3_gadget_hs_link_string - returns highspeed and below link name
123 * @link_state: link state code
145 default: in dwc3_gadget_hs_link_string()
146 return "UNKNOWN link state"; in dwc3_gadget_hs_link_string()
151 * dwc3_trb_type_string - returns TRB type as a string
168 return "isoc-first"; in dwc3_trb_type_string()
173 default: in dwc3_trb_type_string()
178 static inline const char *dwc3_ep0_state_string(enum dwc3_ep0_state state) in dwc3_ep0_state_string() argument
180 switch (state) { in dwc3_ep0_state_string()
189 default: in dwc3_ep0_state_string()
195 * dwc3_gadget_event_string - returns event name
201 enum dwc3_link_state state = event->event_info & DWC3_LINK_STATE_MASK; in dwc3_gadget_event_string() local
203 switch (event->type) { in dwc3_gadget_event_string()
206 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
210 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
214 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
218 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
222 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
225 snprintf(str, size, "End-Of-Frame [%s]", in dwc3_gadget_event_string()
226 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
229 snprintf(str, size, "Start-Of-Frame [%s]", in dwc3_gadget_event_string()
230 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
234 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
238 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
242 dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
244 default: in dwc3_gadget_event_string()
252 * dwc3_ep_event_string - returns event name
258 u8 epnum = event->endpoint_number; in dwc3_ep_event_string()
265 status = event->status; in dwc3_ep_event_string()
267 switch (event->endpoint_event) { in dwc3_ep_event_string()
269 len += scnprintf(str + len, size - len, in dwc3_ep_event_string()
276 scnprintf(str + len, size - len, " [%s]", in dwc3_ep_event_string()
280 scnprintf(str + len, size - len, in dwc3_ep_event_string()
282 event->parameters, in dwc3_ep_event_string()
288 len += scnprintf(str + len, size - len, in dwc3_ep_event_string()
290 event->parameters, in dwc3_ep_event_string()
296 int phase = DEPEVT_STATUS_CONTROL_PHASE(event->status); in dwc3_ep_event_string()
300 scnprintf(str + len, size - len, in dwc3_ep_event_string()
304 scnprintf(str + len, size - len, in dwc3_ep_event_string()
310 scnprintf(str + len, size - len, "FIFO"); in dwc3_ep_event_string()
313 status = event->status; in dwc3_ep_event_string()
317 scnprintf(str + len, size - len, " Stream %d Found", in dwc3_ep_event_string()
318 event->parameters); in dwc3_ep_event_string()
321 default: in dwc3_ep_event_string()
322 scnprintf(str + len, size - len, " Stream Not Found"); in dwc3_ep_event_string()
328 scnprintf(str + len, size - len, "Endpoint Command Complete"); in dwc3_ep_event_string()
330 default: in dwc3_ep_event_string()
331 scnprintf(str + len, size - len, "UNKNOWN"); in dwc3_ep_event_string()
338 * dwc3_gadget_event_type_string - return event name
353 return "Wake-Up"; in dwc3_gadget_event_type_string()
366 default: in dwc3_gadget_event_type_string()
387 case -ETIMEDOUT: in dwc3_ep_cmd_status_string()
395 default: in dwc3_ep_cmd_status_string()
403 case -ETIMEDOUT: in dwc3_gadget_generic_cmd_status_string()
409 default: in dwc3_gadget_generic_cmd_status_string()