Lines Matching refs:ed
496 uint32_t addr, struct ohci_ed *ed)
498 return get_dwords(ohci, addr, (uint32_t *)ed, sizeof(*ed) >> 2);
523 uint32_t addr, struct ohci_ed *ed)
525 return put_dwords(ohci, addr, (uint32_t *)ed, sizeof(*ed) >> 2);
602 static int ohci_service_iso_td(OHCIState *ohci, struct ohci_ed *ed,
620 addr = ed->head & OHCI_DPTR_MASK;
632 printf("--- ISO_TD ED head 0x%.8x tailp 0x%.8x\n"
639 ed->head & OHCI_DPTR_MASK, ed->tail & OHCI_DPTR_MASK,
653 the next ISO TD of the same ED */
657 ed->head &= ~OHCI_DPTR_MASK;
658 ed->head |= (iso_td.next & OHCI_DPTR_MASK);
668 dir = OHCI_BM(ed->flags, ED_D);
751 ohci->usb_packet.devaddr = OHCI_BM(ed->flags, ED_FA);
752 ohci->usb_packet.devep = OHCI_BM(ed->flags, ED_EN);
823 ed->head &= ~OHCI_DPTR_MASK;
824 ed->head |= (iso_td.next & OHCI_DPTR_MASK);
838 static int ohci_service_td(OHCIState *ohci, struct ohci_ed *ed)
852 addr = ed->head & OHCI_DPTR_MASK;
866 dir = OHCI_BM(ed->flags, ED_D);
941 ohci->usb_packet.devaddr = OHCI_BM(ed->flags, ED_FA);
942 ohci->usb_packet.devep = OHCI_BM(ed->flags, ED_EN);
990 ed->head &= ~OHCI_ED_C;
992 ed->head |= OHCI_ED_C;
1019 ed->head |= OHCI_ED_H;
1023 ed->head &= ~OHCI_DPTR_MASK;
1024 ed->head |= td.next & OHCI_DPTR_MASK;
1037 struct ohci_ed ed;
1048 if (!ohci_read_ed(ohci, cur, &ed)) {
1049 fprintf(stderr, "usb-ohci: ED read error at %x\n", cur);
1053 next_ed = ed.next & OHCI_DPTR_MASK;
1055 if ((ed.head & OHCI_ED_H) || (ed.flags & OHCI_ED_K)) {
1057 /* Cancel pending packets for ED that have been paused. */
1058 addr = ed.head & OHCI_DPTR_MASK;
1066 while ((ed.head & OHCI_DPTR_MASK) != ed.tail) {
1068 dprintf("ED @ 0x%.8x fa=%u en=%u d=%u s=%u k=%u f=%u mps=%u "
1070 OHCI_BM(ed.flags, ED_FA), OHCI_BM(ed.flags, ED_EN),
1071 OHCI_BM(ed.flags, ED_D), (ed.flags & OHCI_ED_S)!= 0,
1072 (ed.flags & OHCI_ED_K) != 0, (ed.flags & OHCI_ED_F) != 0,
1073 OHCI_BM(ed.flags, ED_MPS), (ed.head & OHCI_ED_H) != 0,
1074 (eded.head & OHCI_DPTR_MASK,
1075 ed.tail & OHCI_DPTR_MASK, ed.next & OHCI_DPTR_MASK);
1079 if ((ed.flags & OHCI_ED_F) == 0) {
1080 if (ohci_service_td(ohci, &ed))
1084 if (ohci_service_iso_td(ohci, &ed, completion))
1089 ohci_put_ed(ohci, cur, &ed);