Lines Matching refs:ed

150 	struct ed	*ed;  in ohci_urb_enqueue()  local
158 if (! (ed = ed_get (ohci, urb->ep, urb->dev, pipe, urb->interval))) in ohci_urb_enqueue()
162 switch (ed->type) { in ohci_urb_enqueue()
196 urb_priv->ed = ed; in ohci_urb_enqueue()
224 if (ed->state == ED_IDLE) { in ohci_urb_enqueue()
225 retval = ed_schedule (ohci, ed); in ohci_urb_enqueue()
238 list_add(&ed->in_use_list, &ohci->eds_in_use); in ohci_urb_enqueue()
240 if (ed->type == PIPE_ISOCHRONOUS) { in ohci_urb_enqueue()
244 frame += max_t (u16, 8, ed->interval); in ohci_urb_enqueue()
245 frame &= ~(ed->interval - 1); in ohci_urb_enqueue()
246 frame |= ed->branch; in ohci_urb_enqueue()
248 ed->last_iso = frame + ed->interval * (size - 1); in ohci_urb_enqueue()
250 } else if (ed->type == PIPE_ISOCHRONOUS) { in ohci_urb_enqueue()
252 u16 frame = ed->last_iso + ed->interval; in ohci_urb_enqueue()
253 u16 length = ed->interval * (size - 1); in ohci_urb_enqueue()
260 frame += (next - frame + ed->interval - 1) & in ohci_urb_enqueue()
261 -ed->interval; in ohci_urb_enqueue()
277 ed->interval); in ohci_urb_enqueue()
287 ed->last_iso = frame + length; in ohci_urb_enqueue()
326 if (urb_priv->ed->state == ED_OPER) in ohci_urb_dequeue()
327 start_ed_unlink(ohci, urb_priv->ed); in ohci_urb_dequeue()
349 struct ed *ed = ep->hcpriv; in ohci_endpoint_disable() local
355 if (!ed) in ohci_endpoint_disable()
363 ed->state = ED_IDLE; in ohci_endpoint_disable()
367 switch (ed->state) { in ohci_endpoint_disable()
378 if (list_empty (&ed->td_list)) { in ohci_endpoint_disable()
379 td_free (ohci, ed->dummy); in ohci_endpoint_disable()
380 ed_free (ohci, ed); in ohci_endpoint_disable()
389 ed, ep->desc.bEndpointAddress, ed->state, in ohci_endpoint_disable()
390 list_empty (&ed->td_list) ? "" : " (has tds)"); in ohci_endpoint_disable()
391 td_free (ohci, ed->dummy); in ohci_endpoint_disable()
730 struct ed *ed; in io_watchdog_func() local
760 list_for_each_entry(ed, &ohci->eds_in_use, in_use_list) { in io_watchdog_func()
761 if (ed->pending_td) { in io_watchdog_func()
763 OKAY_TO_TAKEBACK(ohci, ed)) { in io_watchdog_func()
764 unsigned tmp = hc32_to_cpu(ohci, ed->hwINFO); in io_watchdog_func()
770 add_to_done_list(ohci, ed->pending_td); in io_watchdog_func()
775 td = ed->pending_td; in io_watchdog_func()
779 list_for_each_entry(td_next, &ed->td_list, td_list) { in io_watchdog_func()
787 head = hc32_to_cpu(ohci, ACCESS_ONCE(ed->hwHeadP)) & TD_MASK; in io_watchdog_func()
789 td_next = list_prepare_entry(td, &ed->td_list, td_list); in io_watchdog_func()
790 list_for_each_entry_continue(td_next, &ed->td_list, td_list) { in io_watchdog_func()
801 ed->takeback_wdh_cnt = ohci->wdh_cnt + 2; in io_watchdog_func()
802 ed->pending_td = td; in io_watchdog_func()
1015 struct ed *ed = priv->ed; in ohci_restart() local
1017 switch (ed->state) { in ohci_restart()
1019 ed->state = ED_UNLINK; in ohci_restart()
1020 ed->hwINFO |= cpu_to_hc32(ohci, ED_DEQUEUE); in ohci_restart()
1021 ed_deschedule (ohci, ed); in ohci_restart()
1023 ed->ed_next = ohci->ed_rm_list; in ohci_restart()
1024 ed->ed_prev = NULL; in ohci_restart()
1025 ohci->ed_rm_list = ed; in ohci_restart()
1031 ed, ed->state); in ohci_restart()
1266 sizeof (struct ed), sizeof (struct td)); in ohci_hcd_mod_init()