xhci-dbg.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. /*
  2. * xHCI host controller driver
  3. *
  4. * Copyright (C) 2008 Intel Corp.
  5. *
  6. * Author: Sarah Sharp
  7. * Some code borrowed from the Linux EHCI driver.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  15. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  16. * for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software Foundation,
  20. * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. #include "xhci.h"
  23. #define XHCI_INIT_VALUE 0x0
  24. /* Add verbose debugging later, just print everything for now */
  25. void xhci_dbg_regs(struct xhci_hcd *xhci)
  26. {
  27. u32 temp;
  28. xhci_dbg(xhci, "// xHCI capability registers at 0x%x:\n",
  29. (unsigned int) xhci->cap_regs);
  30. temp = xhci_readl(xhci, &xhci->cap_regs->hc_capbase);
  31. xhci_dbg(xhci, "// @%x = 0x%x (CAPLENGTH AND HCIVERSION)\n",
  32. (unsigned int) &xhci->cap_regs->hc_capbase,
  33. (unsigned int) temp);
  34. xhci_dbg(xhci, "// CAPLENGTH: 0x%x\n",
  35. (unsigned int) HC_LENGTH(temp));
  36. #if 0
  37. xhci_dbg(xhci, "// HCIVERSION: 0x%x\n",
  38. (unsigned int) HC_VERSION(temp));
  39. #endif
  40. xhci_dbg(xhci, "// xHCI operational registers at 0x%x:\n",
  41. (unsigned int) xhci->op_regs);
  42. temp = xhci_readl(xhci, &xhci->cap_regs->run_regs_off);
  43. xhci_dbg(xhci, "// @%x = 0x%x RTSOFF\n",
  44. (unsigned int) &xhci->cap_regs->run_regs_off,
  45. (unsigned int) temp & RTSOFF_MASK);
  46. xhci_dbg(xhci, "// xHCI runtime registers at 0x%x:\n",
  47. (unsigned int) xhci->run_regs);
  48. temp = xhci_readl(xhci, &xhci->cap_regs->db_off);
  49. xhci_dbg(xhci, "// @%x = 0x%x DBOFF\n",
  50. (unsigned int) &xhci->cap_regs->db_off, temp);
  51. xhci_dbg(xhci, "// Doorbell array at 0x%x:\n",
  52. (unsigned int) xhci->dba);
  53. }
  54. void xhci_print_cap_regs(struct xhci_hcd *xhci)
  55. {
  56. u32 temp;
  57. xhci_dbg(xhci, "xHCI capability registers at 0x%x:\n",
  58. (unsigned int) xhci->cap_regs);
  59. temp = xhci_readl(xhci, &xhci->cap_regs->hc_capbase);
  60. xhci_dbg(xhci, "CAPLENGTH AND HCIVERSION 0x%x:\n",
  61. (unsigned int) temp);
  62. xhci_dbg(xhci, "CAPLENGTH: 0x%x\n",
  63. (unsigned int) HC_LENGTH(temp));
  64. xhci_dbg(xhci, "HCIVERSION: 0x%x\n",
  65. (unsigned int) HC_VERSION(temp));
  66. temp = xhci_readl(xhci, &xhci->cap_regs->hcs_params1);
  67. xhci_dbg(xhci, "HCSPARAMS 1: 0x%x\n",
  68. (unsigned int) temp);
  69. xhci_dbg(xhci, " Max device slots: %u\n",
  70. (unsigned int) HCS_MAX_SLOTS(temp));
  71. xhci_dbg(xhci, " Max interrupters: %u\n",
  72. (unsigned int) HCS_MAX_INTRS(temp));
  73. xhci_dbg(xhci, " Max ports: %u\n",
  74. (unsigned int) HCS_MAX_PORTS(temp));
  75. temp = xhci_readl(xhci, &xhci->cap_regs->hcs_params2);
  76. xhci_dbg(xhci, "HCSPARAMS 2: 0x%x\n",
  77. (unsigned int) temp);
  78. xhci_dbg(xhci, " Isoc scheduling threshold: %u\n",
  79. (unsigned int) HCS_IST(temp));
  80. xhci_dbg(xhci, " Maximum allowed segments in event ring: %u\n",
  81. (unsigned int) HCS_ERST_MAX(temp));
  82. temp = xhci_readl(xhci, &xhci->cap_regs->hcs_params3);
  83. xhci_dbg(xhci, "HCSPARAMS 3 0x%x:\n",
  84. (unsigned int) temp);
  85. xhci_dbg(xhci, " Worst case U1 device exit latency: %u\n",
  86. (unsigned int) HCS_U1_LATENCY(temp));
  87. xhci_dbg(xhci, " Worst case U2 device exit latency: %u\n",
  88. (unsigned int) HCS_U2_LATENCY(temp));
  89. temp = xhci_readl(xhci, &xhci->cap_regs->hcc_params);
  90. xhci_dbg(xhci, "HCC PARAMS 0x%x:\n", (unsigned int) temp);
  91. xhci_dbg(xhci, " HC generates %s bit addresses\n",
  92. HCC_64BIT_ADDR(temp) ? "64" : "32");
  93. /* FIXME */
  94. xhci_dbg(xhci, " FIXME: more HCCPARAMS debugging\n");
  95. temp = xhci_readl(xhci, &xhci->cap_regs->run_regs_off);
  96. xhci_dbg(xhci, "RTSOFF 0x%x:\n", temp & RTSOFF_MASK);
  97. }
  98. void xhci_print_command_reg(struct xhci_hcd *xhci)
  99. {
  100. u32 temp;
  101. temp = xhci_readl(xhci, &xhci->op_regs->command);
  102. xhci_dbg(xhci, "USBCMD 0x%x:\n", temp);
  103. xhci_dbg(xhci, " HC is %s\n",
  104. (temp & CMD_RUN) ? "running" : "being stopped");
  105. xhci_dbg(xhci, " HC has %sfinished hard reset\n",
  106. (temp & CMD_RESET) ? "not " : "");
  107. xhci_dbg(xhci, " Event Interrupts %s\n",
  108. (temp & CMD_EIE) ? "enabled " : "disabled");
  109. xhci_dbg(xhci, " Host System Error Interrupts %s\n",
  110. (temp & CMD_EIE) ? "enabled " : "disabled");
  111. xhci_dbg(xhci, " HC has %sfinished light reset\n",
  112. (temp & CMD_LRESET) ? "not " : "");
  113. }
  114. void xhci_print_status(struct xhci_hcd *xhci)
  115. {
  116. u32 temp;
  117. temp = xhci_readl(xhci, &xhci->op_regs->status);
  118. xhci_dbg(xhci, "USBSTS 0x%x:\n", temp);
  119. xhci_dbg(xhci, " Event ring is %sempty\n",
  120. (temp & STS_EINT) ? "not " : "");
  121. xhci_dbg(xhci, " %sHost System Error\n",
  122. (temp & STS_FATAL) ? "WARNING: " : "No ");
  123. xhci_dbg(xhci, " HC is %s\n",
  124. (temp & STS_HALT) ? "halted" : "running");
  125. }
  126. void xhci_print_op_regs(struct xhci_hcd *xhci)
  127. {
  128. xhci_dbg(xhci, "xHCI operational registers at 0x%x:\n",
  129. (unsigned int) xhci->op_regs);
  130. xhci_print_command_reg(xhci);
  131. xhci_print_status(xhci);
  132. }
  133. void xhci_print_ports(struct xhci_hcd *xhci)
  134. {
  135. u32 __iomem *addr;
  136. int i, j;
  137. int ports;
  138. char *names[NUM_PORT_REGS] = {
  139. "status",
  140. "power",
  141. "link",
  142. "reserved",
  143. };
  144. ports = HCS_MAX_PORTS(xhci->hcs_params1);
  145. addr = &xhci->op_regs->port_status_base;
  146. for (i = 0; i < ports; i++) {
  147. for (j = 0; j < NUM_PORT_REGS; ++j) {
  148. xhci_dbg(xhci, "0x%x port %s reg = 0x%x\n",
  149. (unsigned int) addr,
  150. names[j],
  151. (unsigned int) xhci_readl(xhci, addr));
  152. addr++;
  153. }
  154. }
  155. }
  156. void xhci_print_ir_set(struct xhci_hcd *xhci, struct intr_reg *ir_set, int set_num)
  157. {
  158. void *addr;
  159. u32 temp;
  160. addr = &ir_set->irq_pending;
  161. temp = xhci_readl(xhci, addr);
  162. if (temp == XHCI_INIT_VALUE)
  163. return;
  164. xhci_dbg(xhci, " 0x%x: ir_set[%i]\n", (unsigned int) ir_set, set_num);
  165. xhci_dbg(xhci, " 0x%x: ir_set.pending = 0x%x\n",
  166. (unsigned int) addr, (unsigned int) temp);
  167. addr = &ir_set->irq_control;
  168. temp = xhci_readl(xhci, addr);
  169. xhci_dbg(xhci, " 0x%x: ir_set.control = 0x%x\n",
  170. (unsigned int) addr, (unsigned int) temp);
  171. addr = &ir_set->erst_size;
  172. temp = xhci_readl(xhci, addr);
  173. xhci_dbg(xhci, " 0x%x: ir_set.erst_size = 0x%x\n",
  174. (unsigned int) addr, (unsigned int) temp);
  175. addr = &ir_set->rsvd;
  176. temp = xhci_readl(xhci, addr);
  177. if (temp != XHCI_INIT_VALUE)
  178. xhci_dbg(xhci, " WARN: 0x%x: ir_set.rsvd = 0x%x\n",
  179. (unsigned int) addr, (unsigned int) temp);
  180. addr = &ir_set->erst_base[0];
  181. temp = xhci_readl(xhci, addr);
  182. xhci_dbg(xhci, " 0x%x: ir_set.erst_base[0] = 0x%x\n",
  183. (unsigned int) addr, (unsigned int) temp);
  184. addr = &ir_set->erst_base[1];
  185. temp = xhci_readl(xhci, addr);
  186. xhci_dbg(xhci, " 0x%x: ir_set.erst_base[1] = 0x%x\n",
  187. (unsigned int) addr, (unsigned int) temp);
  188. addr = &ir_set->erst_dequeue[0];
  189. temp = xhci_readl(xhci, addr);
  190. xhci_dbg(xhci, " 0x%x: ir_set.erst_dequeue[0] = 0x%x\n",
  191. (unsigned int) addr, (unsigned int) temp);
  192. addr = &ir_set->erst_dequeue[1];
  193. temp = xhci_readl(xhci, addr);
  194. xhci_dbg(xhci, " 0x%x: ir_set.erst_dequeue[1] = 0x%x\n",
  195. (unsigned int) addr, (unsigned int) temp);
  196. }
  197. void xhci_print_run_regs(struct xhci_hcd *xhci)
  198. {
  199. u32 temp;
  200. int i;
  201. xhci_dbg(xhci, "xHCI runtime registers at 0x%x:\n",
  202. (unsigned int) xhci->run_regs);
  203. temp = xhci_readl(xhci, &xhci->run_regs->microframe_index);
  204. xhci_dbg(xhci, " 0x%x: Microframe index = 0x%x\n",
  205. (unsigned int) &xhci->run_regs->microframe_index,
  206. (unsigned int) temp);
  207. for (i = 0; i < 7; ++i) {
  208. temp = xhci_readl(xhci, &xhci->run_regs->rsvd[i]);
  209. if (temp != XHCI_INIT_VALUE)
  210. xhci_dbg(xhci, " WARN: 0x%x: Rsvd[%i] = 0x%x\n",
  211. (unsigned int) &xhci->run_regs->rsvd[i],
  212. i, (unsigned int) temp);
  213. }
  214. }
  215. void xhci_print_registers(struct xhci_hcd *xhci)
  216. {
  217. xhci_print_cap_regs(xhci);
  218. xhci_print_op_regs(xhci);
  219. xhci_print_ports(xhci);
  220. }
  221. void xhci_print_trb_offsets(struct xhci_hcd *xhci, union xhci_trb *trb)
  222. {
  223. int i;
  224. for (i = 0; i < 4; ++i)
  225. xhci_dbg(xhci, "Offset 0x%x = 0x%x\n",
  226. i*4, trb->generic.field[i]);
  227. }
  228. /**
  229. * Debug a transfer request block (TRB).
  230. */
  231. void xhci_debug_trb(struct xhci_hcd *xhci, union xhci_trb *trb)
  232. {
  233. u64 address;
  234. u32 type = xhci_readl(xhci, &trb->link.control) & TRB_TYPE_BITMASK;
  235. switch (type) {
  236. case TRB_TYPE(TRB_LINK):
  237. xhci_dbg(xhci, "Link TRB:\n");
  238. xhci_print_trb_offsets(xhci, trb);
  239. address = trb->link.segment_ptr[0] +
  240. (((u64) trb->link.segment_ptr[1]) << 32);
  241. xhci_dbg(xhci, "Next ring segment DMA address = 0x%llx\n", address);
  242. xhci_dbg(xhci, "Interrupter target = 0x%x\n",
  243. GET_INTR_TARGET(trb->link.intr_target));
  244. xhci_dbg(xhci, "Cycle bit = %u\n",
  245. (unsigned int) (trb->link.control & TRB_CYCLE));
  246. xhci_dbg(xhci, "Toggle cycle bit = %u\n",
  247. (unsigned int) (trb->link.control & LINK_TOGGLE));
  248. xhci_dbg(xhci, "No Snoop bit = %u\n",
  249. (unsigned int) (trb->link.control & TRB_NO_SNOOP));
  250. break;
  251. case TRB_TYPE(TRB_TRANSFER):
  252. address = trb->trans_event.buffer[0] +
  253. (((u64) trb->trans_event.buffer[1]) << 32);
  254. /*
  255. * FIXME: look at flags to figure out if it's an address or if
  256. * the data is directly in the buffer field.
  257. */
  258. xhci_dbg(xhci, "DMA address or buffer contents= %llu\n", address);
  259. break;
  260. case TRB_TYPE(TRB_COMPLETION):
  261. address = trb->event_cmd.cmd_trb[0] +
  262. (((u64) trb->event_cmd.cmd_trb[1]) << 32);
  263. xhci_dbg(xhci, "Command TRB pointer = %llu\n", address);
  264. xhci_dbg(xhci, "Completion status = %u\n",
  265. (unsigned int) GET_COMP_CODE(trb->event_cmd.status));
  266. xhci_dbg(xhci, "Flags = 0x%x\n", (unsigned int) trb->event_cmd.flags);
  267. break;
  268. default:
  269. xhci_dbg(xhci, "Unknown TRB with TRB type ID %u\n",
  270. (unsigned int) type>>10);
  271. xhci_print_trb_offsets(xhci, trb);
  272. break;
  273. }
  274. }
  275. /**
  276. * Debug a segment with an xHCI ring.
  277. *
  278. * @return The Link TRB of the segment, or NULL if there is no Link TRB
  279. * (which is a bug, since all segments must have a Link TRB).
  280. *
  281. * Prints out all TRBs in the segment, even those after the Link TRB.
  282. *
  283. * XXX: should we print out TRBs that the HC owns? As long as we don't
  284. * write, that should be fine... We shouldn't expect that the memory pointed to
  285. * by the TRB is valid at all. Do we care about ones the HC owns? Probably,
  286. * for HC debugging.
  287. */
  288. void xhci_debug_segment(struct xhci_hcd *xhci, struct xhci_segment *seg)
  289. {
  290. int i;
  291. u32 addr = (u32) seg->dma;
  292. union xhci_trb *trb = seg->trbs;
  293. for (i = 0; i < TRBS_PER_SEGMENT; ++i) {
  294. trb = &seg->trbs[i];
  295. xhci_dbg(xhci, "@%08x %08x %08x %08x %08x\n", addr,
  296. (unsigned int) trb->link.segment_ptr[0],
  297. (unsigned int) trb->link.segment_ptr[1],
  298. (unsigned int) trb->link.intr_target,
  299. (unsigned int) trb->link.control);
  300. addr += sizeof(*trb);
  301. }
  302. }
  303. void xhci_dbg_ring_ptrs(struct xhci_hcd *xhci, struct xhci_ring *ring)
  304. {
  305. xhci_dbg(xhci, "Ring deq = 0x%x (virt), 0x%x (dma)\n",
  306. (unsigned int) ring->dequeue,
  307. trb_virt_to_dma(ring->deq_seg, ring->dequeue));
  308. xhci_dbg(xhci, "Ring deq updated %u times\n",
  309. ring->deq_updates);
  310. xhci_dbg(xhci, "Ring enq = 0x%x (virt), 0x%x (dma)\n",
  311. (unsigned int) ring->enqueue,
  312. trb_virt_to_dma(ring->enq_seg, ring->enqueue));
  313. xhci_dbg(xhci, "Ring enq updated %u times\n",
  314. ring->enq_updates);
  315. }
  316. /**
  317. * Debugging for an xHCI ring, which is a queue broken into multiple segments.
  318. *
  319. * Print out each segment in the ring. Check that the DMA address in
  320. * each link segment actually matches the segment's stored DMA address.
  321. * Check that the link end bit is only set at the end of the ring.
  322. * Check that the dequeue and enqueue pointers point to real data in this ring
  323. * (not some other ring).
  324. */
  325. void xhci_debug_ring(struct xhci_hcd *xhci, struct xhci_ring *ring)
  326. {
  327. /* FIXME: Throw an error if any segment doesn't have a Link TRB */
  328. struct xhci_segment *seg;
  329. struct xhci_segment *first_seg = ring->first_seg;
  330. xhci_debug_segment(xhci, first_seg);
  331. if (!ring->enq_updates && !ring->deq_updates) {
  332. xhci_dbg(xhci, " Ring has not been updated\n");
  333. return;
  334. }
  335. for (seg = first_seg->next; seg != first_seg; seg = seg->next)
  336. xhci_debug_segment(xhci, seg);
  337. }
  338. void xhci_dbg_erst(struct xhci_hcd *xhci, struct xhci_erst *erst)
  339. {
  340. u32 addr = (u32) erst->erst_dma_addr;
  341. int i;
  342. struct xhci_erst_entry *entry;
  343. for (i = 0; i < erst->num_entries; ++i) {
  344. entry = &erst->entries[i];
  345. xhci_dbg(xhci, "@%08x %08x %08x %08x %08x\n",
  346. (unsigned int) addr,
  347. (unsigned int) entry->seg_addr[0],
  348. (unsigned int) entry->seg_addr[1],
  349. (unsigned int) entry->seg_size,
  350. (unsigned int) entry->rsvd);
  351. addr += sizeof(*entry);
  352. }
  353. }
  354. void xhci_dbg_cmd_ptrs(struct xhci_hcd *xhci)
  355. {
  356. u32 val;
  357. val = xhci_readl(xhci, &xhci->op_regs->cmd_ring[0]);
  358. xhci_dbg(xhci, "// xHC command ring deq ptr low bits + flags = 0x%x\n", val);
  359. val = xhci_readl(xhci, &xhci->op_regs->cmd_ring[1]);
  360. xhci_dbg(xhci, "// xHC command ring deq ptr high bits = 0x%x\n", val);
  361. }
  362. void xhci_dbg_ctx(struct xhci_hcd *xhci, struct xhci_device_control *ctx, dma_addr_t dma, unsigned int last_ep)
  363. {
  364. int i, j;
  365. int last_ep_ctx = 31;
  366. /* Fields are 32 bits wide, DMA addresses are in bytes */
  367. int field_size = 32 / 8;
  368. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - drop flags\n",
  369. (unsigned int) &ctx->drop_flags,
  370. dma, ctx->drop_flags);
  371. dma += field_size;
  372. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - add flags\n",
  373. (unsigned int) &ctx->add_flags,
  374. dma, ctx->add_flags);
  375. dma += field_size;
  376. for (i = 0; i > 6; ++i) {
  377. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - rsvd[%d]\n",
  378. (unsigned int) &ctx->rsvd[i],
  379. dma, ctx->rsvd[i], i);
  380. dma += field_size;
  381. }
  382. xhci_dbg(xhci, "Slot Context:\n");
  383. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - dev_info\n",
  384. (unsigned int) &ctx->slot.dev_info,
  385. dma, ctx->slot.dev_info);
  386. dma += field_size;
  387. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - dev_info2\n",
  388. (unsigned int) &ctx->slot.dev_info2,
  389. dma, ctx->slot.dev_info2);
  390. dma += field_size;
  391. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - tt_info\n",
  392. (unsigned int) &ctx->slot.tt_info,
  393. dma, ctx->slot.tt_info);
  394. dma += field_size;
  395. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - dev_state\n",
  396. (unsigned int) &ctx->slot.dev_state,
  397. dma, ctx->slot.dev_state);
  398. dma += field_size;
  399. for (i = 0; i > 4; ++i) {
  400. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - rsvd[%d]\n",
  401. (unsigned int) &ctx->slot.reserved[i],
  402. dma, ctx->slot.reserved[i], i);
  403. dma += field_size;
  404. }
  405. if (last_ep < 31)
  406. last_ep_ctx = last_ep + 1;
  407. for (i = 0; i < last_ep_ctx; ++i) {
  408. xhci_dbg(xhci, "Endpoint %02d Context:\n", i);
  409. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - ep_info\n",
  410. (unsigned int) &ctx->ep[i].ep_info,
  411. dma, ctx->ep[i].ep_info);
  412. dma += field_size;
  413. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - ep_info2\n",
  414. (unsigned int) &ctx->ep[i].ep_info2,
  415. dma, ctx->ep[i].ep_info2);
  416. dma += field_size;
  417. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - deq[0]\n",
  418. (unsigned int) &ctx->ep[i].deq[0],
  419. dma, ctx->ep[i].deq[0]);
  420. dma += field_size;
  421. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - deq[1]\n",
  422. (unsigned int) &ctx->ep[i].deq[1],
  423. dma, ctx->ep[i].deq[1]);
  424. dma += field_size;
  425. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - tx_info\n",
  426. (unsigned int) &ctx->ep[i].tx_info,
  427. dma, ctx->ep[i].tx_info);
  428. dma += field_size;
  429. for (j = 0; j < 3; ++j) {
  430. xhci_dbg(xhci, "@%08x (virt) @%08x (dma) %#08x - rsvd[%d]\n",
  431. (unsigned int) &ctx->ep[i].reserved[j],
  432. dma, ctx->ep[i].reserved[j], j);
  433. dma += field_size;
  434. }
  435. }
  436. }