Lines Matching refs:str
168 dwc3_gadget_event_string(char *str, const struct dwc3_event_devt *event) in dwc3_gadget_event_string() argument
174 sprintf(str, "Disconnect: [%s]", in dwc3_gadget_event_string()
178 sprintf(str, "Reset [%s]", dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
181 sprintf(str, "Connection Done [%s]", in dwc3_gadget_event_string()
185 sprintf(str, "Link Change [%s]", in dwc3_gadget_event_string()
189 sprintf(str, "WakeUp [%s]", dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
192 sprintf(str, "End-Of-Frame [%s]", in dwc3_gadget_event_string()
196 sprintf(str, "Start-Of-Frame [%s]", in dwc3_gadget_event_string()
200 sprintf(str, "Erratic Error [%s]", in dwc3_gadget_event_string()
204 sprintf(str, "Command Complete [%s]", in dwc3_gadget_event_string()
208 sprintf(str, "Overflow [%s]", dwc3_gadget_link_string(state)); in dwc3_gadget_event_string()
211 sprintf(str, "UNKNOWN"); in dwc3_gadget_event_string()
214 return str; in dwc3_gadget_event_string()
217 static inline void dwc3_decode_get_status(__u8 t, __u16 i, __u16 l, char *str) in dwc3_decode_get_status() argument
221 sprintf(str, "Get Interface Status(Intf = %d, Length = %d)", in dwc3_decode_get_status()
225 sprintf(str, "Get Endpoint Status(ep%d%s)", in dwc3_decode_get_status()
233 __u16 i, char *str) in dwc3_decode_set_clear_feature() argument
237 sprintf(str, "%s Device Feature(%s%s)", in dwc3_decode_set_clear_feature()
285 sprintf(str, "%s Interface Feature(%s)", in dwc3_decode_set_clear_feature()
291 sprintf(str, "%s Endpoint Feature(%s ep%d%s)", in dwc3_decode_set_clear_feature()
300 static inline void dwc3_decode_set_address(__u16 v, char *str) in dwc3_decode_set_address() argument
302 sprintf(str, "Set Address(Addr = %02x)", v); in dwc3_decode_set_address()
306 __u16 i, __u16 l, char *str) in dwc3_decode_get_set_descriptor() argument
308 sprintf(str, "%s %s Descriptor(Index = %d, Length = %d)", in dwc3_decode_get_set_descriptor()
367 static inline void dwc3_decode_get_configuration(__u16 l, char *str) in dwc3_decode_get_configuration() argument
369 sprintf(str, "Get Configuration(Length = %d)", l); in dwc3_decode_get_configuration()
372 static inline void dwc3_decode_set_configuration(__u8 v, char *str) in dwc3_decode_set_configuration() argument
374 sprintf(str, "Set Configuration(Config = %d)", v); in dwc3_decode_set_configuration()
377 static inline void dwc3_decode_get_intf(__u16 i, __u16 l, char *str) in dwc3_decode_get_intf() argument
379 sprintf(str, "Get Interface(Intf = %d, Length = %d)", i, l); in dwc3_decode_get_intf()
382 static inline void dwc3_decode_set_intf(__u8 v, __u16 i, char *str) in dwc3_decode_set_intf() argument
384 sprintf(str, "Set Interface(Intf = %d, Alt.Setting = %d)", i, v); in dwc3_decode_set_intf()
387 static inline void dwc3_decode_synch_frame(__u16 i, __u16 l, char *str) in dwc3_decode_synch_frame() argument
389 sprintf(str, "Synch Frame(Endpoint = %d, Length = %d)", i, l); in dwc3_decode_synch_frame()
392 static inline void dwc3_decode_set_sel(__u16 l, char *str) in dwc3_decode_set_sel() argument
394 sprintf(str, "Set SEL(Length = %d)", l); in dwc3_decode_set_sel()
397 static inline void dwc3_decode_set_isoch_delay(__u8 v, char *str) in dwc3_decode_set_isoch_delay() argument
399 sprintf(str, "Set Isochronous Delay(Delay = %d ns)", v); in dwc3_decode_set_isoch_delay()
405 static inline const char *dwc3_decode_ctrl(char *str, __u8 bRequestType, in dwc3_decode_ctrl() argument
410 dwc3_decode_get_status(bRequestType, wIndex, wLength, str); in dwc3_decode_ctrl()
415 wIndex, str); in dwc3_decode_ctrl()
418 dwc3_decode_set_address(wValue, str); in dwc3_decode_ctrl()
423 wIndex, wLength, str); in dwc3_decode_ctrl()
426 dwc3_decode_get_configuration(wLength, str); in dwc3_decode_ctrl()
429 dwc3_decode_set_configuration(wValue, str); in dwc3_decode_ctrl()
432 dwc3_decode_get_intf(wIndex, wLength, str); in dwc3_decode_ctrl()
435 dwc3_decode_set_intf(wValue, wIndex, str); in dwc3_decode_ctrl()
438 dwc3_decode_synch_frame(wIndex, wLength, str); in dwc3_decode_ctrl()
441 dwc3_decode_set_sel(wLength, str); in dwc3_decode_ctrl()
444 dwc3_decode_set_isoch_delay(wValue, str); in dwc3_decode_ctrl()
447 sprintf(str, "%02x %02x %02x %02x %02x %02x %02x %02x", in dwc3_decode_ctrl()
457 return str; in dwc3_decode_ctrl()
465 dwc3_ep_event_string(char *str, const struct dwc3_event_depevt *event, in dwc3_ep_event_string() argument
473 ret = sprintf(str, "ep%d%s: ", epnum >> 1, in dwc3_ep_event_string()
482 len = strlen(str); in dwc3_ep_event_string()
483 sprintf(str + len, "Transfer Complete (%c%c%c)", in dwc3_ep_event_string()
488 len = strlen(str); in dwc3_ep_event_string()
491 sprintf(str + len, " [%s]", dwc3_ep0_state_string(ep0state)); in dwc3_ep_event_string()
494 len = strlen(str); in dwc3_ep_event_string()
496 sprintf(str + len, "Transfer In Progress [%d] (%c%c%c)", in dwc3_ep_event_string()
503 len = strlen(str); in dwc3_ep_event_string()
505 sprintf(str + len, "Transfer Not Ready [%d]%s", in dwc3_ep_event_string()
516 strcat(str, " [Data Phase]"); in dwc3_ep_event_string()
519 strcat(str, " [Status Phase]"); in dwc3_ep_event_string()
524 strcat(str, "FIFO"); in dwc3_ep_event_string()
531 sprintf(str + ret, " Stream %d Found", in dwc3_ep_event_string()
536 strcat(str, " Stream Not Found"); in dwc3_ep_event_string()
542 strcat(str, "Endpoint Command Complete"); in dwc3_ep_event_string()
545 sprintf(str, "UNKNOWN"); in dwc3_ep_event_string()
548 return str; in dwc3_ep_event_string()
585 static inline const char *dwc3_decode_event(char *str, u32 event, u32 ep0state) in dwc3_decode_event() argument
590 return dwc3_gadget_event_string(str, &evt.devt); in dwc3_decode_event()
592 return dwc3_ep_event_string(str, &evt.depevt, ep0state); in dwc3_decode_event()