• Home
  • Raw
  • Download

Lines Matching refs:ed

496                                uint32_t addr, struct ohci_ed *ed)  in ohci_read_ed()  argument
498 return get_dwords(ohci, addr, (uint32_t *)ed, sizeof(*ed) >> 2); in ohci_read_ed()
523 uint32_t addr, struct ohci_ed *ed) in ohci_put_ed() argument
525 return put_dwords(ohci, addr, (uint32_t *)ed, sizeof(*ed) >> 2); in ohci_put_ed()
602 static int ohci_service_iso_td(OHCIState *ohci, struct ohci_ed *ed, in ohci_service_iso_td() argument
620 addr = ed->head & OHCI_DPTR_MASK; in ohci_service_iso_td()
639 ed->head & OHCI_DPTR_MASK, ed->tail & OHCI_DPTR_MASK, in ohci_service_iso_td()
657 ed->head &= ~OHCI_DPTR_MASK; in ohci_service_iso_td()
658 ed->head |= (iso_td.next & OHCI_DPTR_MASK); in ohci_service_iso_td()
668 dir = OHCI_BM(ed->flags, ED_D); in ohci_service_iso_td()
751 ohci->usb_packet.devaddr = OHCI_BM(ed->flags, ED_FA); in ohci_service_iso_td()
752 ohci->usb_packet.devep = OHCI_BM(ed->flags, ED_EN); in ohci_service_iso_td()
823 ed->head &= ~OHCI_DPTR_MASK; in ohci_service_iso_td()
824 ed->head |= (iso_td.next & OHCI_DPTR_MASK); in ohci_service_iso_td()
838 static int ohci_service_td(OHCIState *ohci, struct ohci_ed *ed) in ohci_service_td() argument
852 addr = ed->head & OHCI_DPTR_MASK; in ohci_service_td()
866 dir = OHCI_BM(ed->flags, ED_D); in ohci_service_td()
941 ohci->usb_packet.devaddr = OHCI_BM(ed->flags, ED_FA); in ohci_service_td()
942 ohci->usb_packet.devep = OHCI_BM(ed->flags, ED_EN); in ohci_service_td()
990 ed->head &= ~OHCI_ED_C; in ohci_service_td()
992 ed->head |= OHCI_ED_C; in ohci_service_td()
1019 ed->head |= OHCI_ED_H; in ohci_service_td()
1023 ed->head &= ~OHCI_DPTR_MASK; in ohci_service_td()
1024 ed->head |= td.next & OHCI_DPTR_MASK; in ohci_service_td()
1037 struct ohci_ed ed; in ohci_service_ed_list() local
1048 if (!ohci_read_ed(ohci, cur, &ed)) { in ohci_service_ed_list()
1053 next_ed = ed.next & OHCI_DPTR_MASK; in ohci_service_ed_list()
1055 if ((ed.head & OHCI_ED_H) || (ed.flags & OHCI_ED_K)) { in ohci_service_ed_list()
1058 addr = ed.head & OHCI_DPTR_MASK; in ohci_service_ed_list()
1066 while ((ed.head & OHCI_DPTR_MASK) != ed.tail) { in ohci_service_ed_list()
1070 OHCI_BM(ed.flags, ED_FA), OHCI_BM(ed.flags, ED_EN), in ohci_service_ed_list()
1071 OHCI_BM(ed.flags, ED_D), (ed.flags & OHCI_ED_S)!= 0, in ohci_service_ed_list()
1072 (ed.flags & OHCI_ED_K) != 0, (ed.flags & OHCI_ED_F) != 0, in ohci_service_ed_list()
1073 OHCI_BM(ed.flags, ED_MPS), (ed.head & OHCI_ED_H) != 0, in ohci_service_ed_list()
1074 (ed.head & OHCI_ED_C) != 0, ed.head & OHCI_DPTR_MASK, in ohci_service_ed_list()
1075 ed.tail & OHCI_DPTR_MASK, ed.next & OHCI_DPTR_MASK); in ohci_service_ed_list()
1079 if ((ed.flags & OHCI_ED_F) == 0) { in ohci_service_ed_list()
1080 if (ohci_service_td(ohci, &ed)) in ohci_service_ed_list()
1084 if (ohci_service_iso_td(ohci, &ed, completion)) in ohci_service_ed_list()
1089 ohci_put_ed(ohci, cur, &ed); in ohci_service_ed_list()