Lines Matching +full:x +full:- +full:size

1 /* SPDX-License-Identifier: GPL-2.0 */
61 return "Stopped - Length Invalid"; in cdnsp_trb_comp_code_string()
63 return "Stopped - Short Packet"; in cdnsp_trb_comp_code_string()
97 return "No-Op"; in cdnsp_trb_type_string()
119 return "No-Op Command"; in cdnsp_trb_type_string()
177 static inline const char *cdnsp_decode_trb(char *str, size_t size, u32 field0, in cdnsp_decode_trb() argument
180 int ep_id = TRB_TO_EP_INDEX(field3) - 1; in cdnsp_decode_trb()
190 ret = scnprintf(str, size, in cdnsp_decode_trb()
191 "LINK %08x%08x intr %ld type '%s' flags %c:%c:%c:%c", in cdnsp_decode_trb()
203 ret = scnprintf(str, size, in cdnsp_decode_trb()
204 "ep%d%s(%d) type '%s' TRB %08x%08x status '%s'" in cdnsp_decode_trb()
215 ret = scnprintf(str, size, "%s: flags %c", in cdnsp_decode_trb()
220 ret = scnprintf(str, size, in cdnsp_decode_trb()
221 "type '%s' bRequestType %02x bRequest %02x " in cdnsp_decode_trb()
222 "wValue %02x%02x wIndex %02x%02x wLength %d " in cdnsp_decode_trb()
223 "length %ld TD size %ld intr %ld Setup ID %ld " in cdnsp_decode_trb()
242 ret = scnprintf(str, size, in cdnsp_decode_trb()
243 "type '%s' Buffer %08x%08x length %ld TD size %ld " in cdnsp_decode_trb()
258 ret = scnprintf(str, size, in cdnsp_decode_trb()
259 "Buffer %08x%08x length %ld TD size %ld intr" in cdnsp_decode_trb()
274 ret = scnprintf(str, size, in cdnsp_decode_trb()
275 "type '%s' Buffer %08x%08x length %ld " in cdnsp_decode_trb()
276 "TD size %ld intr %ld " in cdnsp_decode_trb()
294 ret = scnprintf(str, size, "%s: flags %c", in cdnsp_decode_trb()
299 ret = scnprintf(str, size, "%s: slot %ld flags %c", in cdnsp_decode_trb()
305 ret = scnprintf(str, size, in cdnsp_decode_trb()
306 "%s: ctx %08x%08x slot %ld flags %c:%c", in cdnsp_decode_trb()
313 ret = scnprintf(str, size, in cdnsp_decode_trb()
314 "%s: ctx %08x%08x slot %ld flags %c:%c", in cdnsp_decode_trb()
321 ret = scnprintf(str, size, in cdnsp_decode_trb()
322 "%s: ctx %08x%08x slot %ld flags %c", in cdnsp_decode_trb()
329 ret = scnprintf(str, size, in cdnsp_decode_trb()
330 "%s: ep%d%s(%d) ctx %08x%08x slot %ld flags %c", in cdnsp_decode_trb()
338 ret = scnprintf(str, size, in cdnsp_decode_trb()
348 ret = scnprintf(str, size, in cdnsp_decode_trb()
349 "%s: ep%d%s(%d) deq %08x%08x stream %ld slot %ld flags %c", in cdnsp_decode_trb()
358 ret = scnprintf(str, size, "%s: slot %ld flags %c", in cdnsp_decode_trb()
366 ret = scnprintf(str, size, in cdnsp_decode_trb()
367 "%s: ep%d%s(%d) H_SID %x%s%s D_SID %lx flags %c:%c", in cdnsp_decode_trb()
378 ret = scnprintf(str, size, in cdnsp_decode_trb()
379 "type '%s' -> raw %08x %08x %08x %08x", in cdnsp_decode_trb()
384 if (ret == size - 1) in cdnsp_decode_trb()
402 s = "full-speed"; in cdnsp_decode_slot_context()
405 s = "high-speed"; in cdnsp_decode_slot_context()
408 s = "super-speed"; in cdnsp_decode_slot_context()
411 s = "super-speed plus"; in cdnsp_decode_slot_context()
463 static inline const char *cdnsp_decode_portsc(char *str, size_t size, in cdnsp_decode_portsc() argument
468 ret = scnprintf(str, size, "%s %s %s Link:%s PortSpeed:%d ", in cdnsp_decode_portsc()
469 portsc & PORT_POWER ? "Powered" : "Powered-off", in cdnsp_decode_portsc()
470 portsc & PORT_CONNECT ? "Connected" : "Not-connected", in cdnsp_decode_portsc()
476 ret += scnprintf(str + ret, size - ret, "In-Reset "); in cdnsp_decode_portsc()
478 ret += scnprintf(str + ret, size - ret, "Change: "); in cdnsp_decode_portsc()
480 ret += scnprintf(str + ret, size - ret, "CSC "); in cdnsp_decode_portsc()
482 ret += scnprintf(str + ret, size - ret, "WRC "); in cdnsp_decode_portsc()
484 ret += scnprintf(str + ret, size - ret, "PRC "); in cdnsp_decode_portsc()
486 ret += scnprintf(str + ret, size - ret, "PLC "); in cdnsp_decode_portsc()
488 ret += scnprintf(str + ret, size - ret, "CEC "); in cdnsp_decode_portsc()
489 ret += scnprintf(str + ret, size - ret, "Wake: "); in cdnsp_decode_portsc()
491 ret += scnprintf(str + ret, size - ret, "WCE "); in cdnsp_decode_portsc()
493 ret += scnprintf(str + ret, size - ret, "WDE "); in cdnsp_decode_portsc()
538 static inline const char *cdnsp_decode_ep_context(char *str, size_t size, in cdnsp_decode_ep_context() argument
565 ret = scnprintf(str, size, "State %s mult %d max P. Streams %d %s", in cdnsp_decode_ep_context()
569 ret += scnprintf(str + ret, size - ret, in cdnsp_decode_ep_context()
573 ret += scnprintf(str + ret, size - ret, in cdnsp_decode_ep_context()
578 ret += scnprintf(str + ret, size - ret, "avg trb len %d", avg); in cdnsp_decode_ep_context()