• Home
  • Raw
  • Download

Lines Matching refs:size

14 static inline const char *cdns2_decode_usb_irq(char *str, size_t size,  in cdns2_decode_usb_irq()  argument
19 ret = snprintf(str, size, "usbirq: 0x%02x - ", usb_irq); in cdns2_decode_usb_irq()
22 ret += snprintf(str + ret, size - ret, "SOF "); in cdns2_decode_usb_irq()
24 ret += snprintf(str + ret, size - ret, "SUTOK "); in cdns2_decode_usb_irq()
26 ret += snprintf(str + ret, size - ret, "SETUP "); in cdns2_decode_usb_irq()
28 ret += snprintf(str + ret, size - ret, "Suspend "); in cdns2_decode_usb_irq()
30 ret += snprintf(str + ret, size - ret, "Reset "); in cdns2_decode_usb_irq()
32 ret += snprintf(str + ret, size - ret, "HS "); in cdns2_decode_usb_irq()
34 ret += snprintf(str + ret, size - ret, "LPM "); in cdns2_decode_usb_irq()
36 ret += snprintf(str + ret, size - ret, ", EXT: 0x%02x - ", ext_irq); in cdns2_decode_usb_irq()
39 ret += snprintf(str + ret, size - ret, "Wakeup "); in cdns2_decode_usb_irq()
41 ret += snprintf(str + ret, size - ret, "VBUS_FALL "); in cdns2_decode_usb_irq()
43 ret += snprintf(str + ret, size - ret, "VBUS_RISE "); in cdns2_decode_usb_irq()
45 if (ret >= size) in cdns2_decode_usb_irq()
51 static inline const char *cdns2_decode_dma_irq(char *str, size_t size, in cdns2_decode_dma_irq() argument
57 ret = snprintf(str, size, "ISTS: %08x, %s: %08x ", in cdns2_decode_dma_irq()
61 ret += snprintf(str + ret, size - ret, "IOC "); in cdns2_decode_dma_irq()
63 ret += snprintf(str + ret, size - ret, "ISP "); in cdns2_decode_dma_irq()
65 ret += snprintf(str + ret, size - ret, "DESCMIS "); in cdns2_decode_dma_irq()
67 ret += snprintf(str + ret, size - ret, "TRBERR "); in cdns2_decode_dma_irq()
69 ret += snprintf(str + ret, size - ret, "OUTSMM "); in cdns2_decode_dma_irq()
71 ret += snprintf(str + ret, size - ret, "ISOERR "); in cdns2_decode_dma_irq()
73 ret += snprintf(str + ret, size - ret, "DBUSY "); in cdns2_decode_dma_irq()
75 ret += snprintf(str + ret, size - ret, "CCS "); in cdns2_decode_dma_irq()
77 if (ret >= size) in cdns2_decode_dma_irq()
83 static inline const char *cdns2_decode_epx_irq(char *str, size_t size, in cdns2_decode_epx_irq() argument
87 return cdns2_decode_dma_irq(str, size, ep_ists, ep_sts, ep_name); in cdns2_decode_epx_irq()
90 static inline const char *cdns2_decode_ep0_irq(char *str, size_t size, in cdns2_decode_ep0_irq() argument
94 return cdns2_decode_dma_irq(str, size, ep_ists, ep_sts, in cdns2_decode_ep0_irq()
100 char *str, size_t size) in cdns2_raw_ring() argument
108 ret = snprintf(str, size, "\n\t\tTR for %s:", pep->name); in cdns2_raw_ring()
112 ret += snprintf(str + ret, size - ret, in cdns2_raw_ring()
118 ret += snprintf(str + ret, size - ret, in cdns2_raw_ring()
122 ret += snprintf(str + ret, size - ret, in cdns2_raw_ring()
127 ret += snprintf(str + ret, size - ret, in cdns2_raw_ring()
135 ret += snprintf(str + ret, size - ret, in cdns2_raw_ring()
143 if (ret >= size) in cdns2_raw_ring()
161 static inline const char *cdns2_decode_trb(char *str, size_t size, u32 flags, in cdns2_decode_trb() argument
169 ret = snprintf(str, size, in cdns2_decode_trb()
179 ret = snprintf(str, size, in cdns2_decode_trb()
192 ret = snprintf(str, size, "type '%s' -> raw %08x %08x %08x", in cdns2_decode_trb()
197 if (ret >= size) in cdns2_decode_trb()