Lines Matching refs:out
46 char *out = buf; in uhci_show_td() local
51 out += sprintf(out, "%*s[%p] link (%08x) ", space, "", td, in uhci_show_td()
53 out += sprintf(out, "e%d %s%s%s%s%s%s%s%s%s%sLength=%x ", in uhci_show_td()
66 if (out - buf > len) in uhci_show_td()
85 out += sprintf(out, "MaxLen=%x DT%d EndPt=%x Dev=%x, PID=%x(%s) ", in uhci_show_td()
92 out += sprintf(out, "(buf=%08x)\n", hc32_to_cpu(uhci, td->buffer)); in uhci_show_td()
95 if (out - buf > len) in uhci_show_td()
96 out += sprintf(out, " ...\n"); in uhci_show_td()
97 return out - buf; in uhci_show_td()
103 char *out = buf; in uhci_show_urbp() local
109 out += sprintf(out, "urb_priv [%p] ", urbp); in uhci_show_urbp()
110 out += sprintf(out, "urb [%p] ", urbp->urb); in uhci_show_urbp()
111 out += sprintf(out, "qh [%p] ", urbp->qh); in uhci_show_urbp()
112 out += sprintf(out, "Dev=%d ", usb_pipedevice(urbp->urb->pipe)); in uhci_show_urbp()
113 out += sprintf(out, "EP=%x(%s) ", usb_pipeendpoint(urbp->urb->pipe), in uhci_show_urbp()
115 if (out - buf > len) in uhci_show_urbp()
126 out += sprintf(out, "%s%s", ptype, (urbp->fsbr ? " FSBR" : "")); in uhci_show_urbp()
127 out += sprintf(out, " Actlen=%d%s", urbp->urb->actual_length, in uhci_show_urbp()
132 out += sprintf(out, " Unlinked=%d", urbp->urb->unlinked); in uhci_show_urbp()
133 out += sprintf(out, "\n"); in uhci_show_urbp()
135 if (out - buf > len) in uhci_show_urbp()
142 out += sprintf(out, "%*s%d: ", space + 2, "", i); in uhci_show_urbp()
143 out += uhci_show_td(uhci, td, out, in uhci_show_urbp()
144 len - (out - buf), 0); in uhci_show_urbp()
145 if (out - buf > len) in uhci_show_urbp()
155 out += sprintf(out, in uhci_show_urbp()
159 if (out - buf > len) in uhci_show_urbp()
160 out += sprintf(out, " ...\n"); in uhci_show_urbp()
162 return out - buf; in uhci_show_urbp()
168 char *out = buf; in uhci_show_qh() local
181 out += sprintf(out, "%*s[%p] %s QH link (%08x) element (%08x)\n", in uhci_show_qh()
186 out += sprintf(out, in uhci_show_qh()
191 out += sprintf(out, "%*s period %d phase %d load %d us\n", in uhci_show_qh()
193 if (out - buf > len) in uhci_show_qh()
197 out += sprintf(out, "%*s Element points to QH (bug?)\n", space, ""); in uhci_show_qh()
200 out += sprintf(out, "%*s Depth traverse\n", space, ""); in uhci_show_qh()
203 out += sprintf(out, "%*s Bit 3 set (bug?)\n", space, ""); in uhci_show_qh()
206 out += sprintf(out, "%*s Element is NULL (bug?)\n", space, ""); in uhci_show_qh()
208 if (out - buf > len) in uhci_show_qh()
212 out += sprintf(out, "%*s queue is empty\n", space, ""); in uhci_show_qh()
214 out += uhci_show_td(uhci, uhci->term_td, out, in uhci_show_qh()
215 len - (out - buf), 0); in uhci_show_qh()
216 if (out - buf > len) in uhci_show_qh()
226 out += sprintf(out, "%*s Element != First TD\n", in uhci_show_qh()
231 out += uhci_show_urbp(uhci, urbp, out, in uhci_show_qh()
232 len - (out - buf), space + 2); in uhci_show_qh()
233 if (out - buf > len) in uhci_show_qh()
240 out += sprintf(out, "%*s Skipped %d URBs\n", in uhci_show_qh()
244 if (out - buf > len) in uhci_show_qh()
248 out += sprintf(out, "%*s Dummy TD\n", space, ""); in uhci_show_qh()
249 out += uhci_show_td(uhci, qh->dummy_td, out, in uhci_show_qh()
250 len - (out - buf), 0); in uhci_show_qh()
251 if (out - buf > len) in uhci_show_qh()
256 if (out - buf > len) in uhci_show_qh()
257 out += sprintf(out, " ...\n"); in uhci_show_qh()
259 return out - buf; in uhci_show_qh()
307 char *out = buf; in uhci_show_status() local
323 out += sprintf(out, " usbcmd = %04x %s%s%s%s%s%s%s%s\n", in uhci_show_status()
333 if (out - buf > len) in uhci_show_status()
336 out += sprintf(out, " usbstat = %04x %s%s%s%s%s%s\n", in uhci_show_status()
344 if (out - buf > len) in uhci_show_status()
347 out += sprintf(out, " usbint = %04x\n", usbint); in uhci_show_status()
348 out += sprintf(out, " usbfrnum = (%d)%03x\n", (usbfrnum >> 10) & 1, in uhci_show_status()
350 out += sprintf(out, " flbaseadd = %08x\n", flbaseadd); in uhci_show_status()
351 out += sprintf(out, " sof = %02x\n", sof); in uhci_show_status()
352 if (out - buf > len) in uhci_show_status()
355 out += uhci_show_sc(1, portsc1, out); in uhci_show_status()
356 if (out - buf > len) in uhci_show_status()
359 out += uhci_show_sc(2, portsc2, out); in uhci_show_status()
360 if (out - buf > len) in uhci_show_status()
363 out += sprintf(out, in uhci_show_status()
369 if (out - buf > len) in uhci_show_status()
370 out += sprintf(out, " ...\n"); in uhci_show_status()
371 return out - buf; in uhci_show_status()
376 char *out = buf; in uhci_sprint_schedule() local
390 out += uhci_show_root_hub_state(uhci, out); in uhci_sprint_schedule()
391 if (out - buf > len) in uhci_sprint_schedule()
393 out += sprintf(out, "HC status\n"); in uhci_sprint_schedule()
394 out += uhci_show_status(uhci, out, len - (out - buf)); in uhci_sprint_schedule()
395 if (out - buf > len) in uhci_sprint_schedule()
398 out += sprintf(out, "Periodic load table\n"); in uhci_sprint_schedule()
400 out += sprintf(out, "\t%d", uhci->load[i]); in uhci_sprint_schedule()
402 *out++ = '\n'; in uhci_sprint_schedule()
404 out += sprintf(out, "Total: %d, #INT: %d, #ISO: %d\n", in uhci_sprint_schedule()
411 out += sprintf(out, "Frame List\n"); in uhci_sprint_schedule()
417 if (out - buf > len) in uhci_sprint_schedule()
426 out += sprintf(out, "- Frame %d -> (%08x)\n", in uhci_sprint_schedule()
438 out += sprintf(out, in uhci_sprint_schedule()
440 if (out - buf > len) in uhci_sprint_schedule()
446 out += uhci_show_td(uhci, td, out, in uhci_sprint_schedule()
447 len - (out - buf), 4); in uhci_sprint_schedule()
448 if (out - buf > len) in uhci_sprint_schedule()
459 out += sprintf(out, in uhci_sprint_schedule()
464 out += sprintf(out, in uhci_sprint_schedule()
467 if (out - buf > len) in uhci_sprint_schedule()
475 out += sprintf(out, "Skipped %d bad links\n", nerrs); in uhci_sprint_schedule()
477 out += sprintf(out, "Skeleton QHs\n"); in uhci_sprint_schedule()
479 if (out - buf > len) in uhci_sprint_schedule()
487 out += sprintf(out, "- skel_%s_qh\n", qh_names[i]); in uhci_sprint_schedule()
488 out += uhci_show_qh(uhci, qh, out, len - (out - buf), 4); in uhci_sprint_schedule()
489 if (out - buf > len) in uhci_sprint_schedule()
495 out += sprintf(out, in uhci_sprint_schedule()
497 if (out - buf > len) in uhci_sprint_schedule()
513 out += uhci_show_qh(uhci, qh, out, in uhci_sprint_schedule()
514 len - (out - buf), 4); in uhci_sprint_schedule()
515 if (out - buf > len) in uhci_sprint_schedule()
522 out += sprintf(out, " Skipped %d QHs\n", cnt); in uhci_sprint_schedule()
535 out += sprintf(out, in uhci_sprint_schedule()
538 if (out - buf > len) in uhci_sprint_schedule()
543 if (out - buf > len) in uhci_sprint_schedule()
544 out += sprintf(out, " ...\n"); in uhci_sprint_schedule()
546 return out - buf; in uhci_sprint_schedule()