• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/adm5120/files/drivers/usb/host/

Lines Matching defs:ed

88 	struct ed	*ed;
101 /* every endpoint has an ed, locate and maybe (re)initialize it */
102 ed = ed_get(ahcd, urb->ep, urb->dev, pipe, urb->interval);
103 if (!ed)
107 switch (ed->type) {
149 urb_priv->ed = ed;
166 /* schedule the ed if needed */
167 if (ed->state == ED_IDLE) {
168 ret = ed_schedule(ahcd, ed);
173 if (ed->type == PIPE_ISOCHRONOUS) {
177 frame += max_t (u16, 8, ed->interval);
178 frame &= ~(ed->interval - 1);
179 frame |= ed->branch;
186 } else if (ed->type == PIPE_ISOCHRONOUS)
187 urb->start_frame = ed->last_iso + ed->interval;
189 /* fill the TDs and link them to the ed; and
197 admhc_dump_ed(ahcd, "admhc_urb_enqueue", urb_priv->ed, 1);
239 if (urb_priv->ed->state == ED_OPER)
240 start_ed_unlink(ahcd, urb_priv->ed);
266 struct ed *ed = ep->hcpriv;
272 if (!ed)
277 admhc_dump_ed(ahcd, "EP-DISABLE", ed, 1);
286 ed->state = ED_IDLE;
290 switch (ed->state) {
301 if (list_empty(&ed->td_list)) {
302 td_free(ahcd, ed->dummy);
303 ed_free(ahcd, ed);
309 * that's not our job. can't recover; must leak ed.
311 admhc_err(ahcd, "leak ed %p (#%02x) state %d%s\n",
312 ed, ep->desc.bEndpointAddress, ed->state,
313 list_empty(&ed->td_list) ? "" : " (has tds)");
314 td_free(ahcd, ed->dummy);
393 struct ed *ed;
395 ed = ed_create(ahcd, PIPE_INTERRUPT, ED_DUMMY_INFO);
396 if (!ed)
399 ahcd->ed_tails[PIPE_INTERRUPT] = ed;
401 ed = ed_create(ahcd, PIPE_ISOCHRONOUS, ED_DUMMY_INFO);
402 if (!ed)
405 ahcd->ed_tails[PIPE_ISOCHRONOUS] = ed;
406 ed->ed_prev = ahcd->ed_tails[PIPE_INTERRUPT];
407 ahcd->ed_tails[PIPE_INTERRUPT]->ed_next = ed;
408 ahcd->ed_tails[PIPE_INTERRUPT]->hwNextED = cpu_to_hc32(ahcd, ed->dma);
410 ed = ed_create(ahcd, PIPE_CONTROL, ED_DUMMY_INFO);
411 if (!ed)
414 ahcd->ed_tails[PIPE_CONTROL] = ed;
415 ed->ed_prev = ahcd->ed_tails[PIPE_ISOCHRONOUS];
416 ahcd->ed_tails[PIPE_ISOCHRONOUS]->ed_next = ed;
417 ahcd->ed_tails[PIPE_ISOCHRONOUS]->hwNextED = cpu_to_hc32(ahcd, ed->dma);
419 ed = ed_create(ahcd, PIPE_BULK, ED_DUMMY_INFO);
420 if (!ed)
423 ahcd->ed_tails[PIPE_BULK] = ed;
424 ed->ed_prev = ahcd->ed_tails[PIPE_CONTROL];
425 ahcd->ed_tails[PIPE_CONTROL]->ed_next = ed;
426 ahcd->ed_tails[PIPE_CONTROL]->hwNextED = cpu_to_hc32(ahcd, ed->dma);
431 admhc_dump_ed(ahcd, "ed intr", ahcd->ed_tails[PIPE_INTERRUPT], 1);
432 admhc_dump_ed(ahcd, "ed isoc", ahcd->ed_tails[PIPE_ISOCHRONOUS], 1);
433 admhc_dump_ed(ahcd, "ed ctrl", ahcd->ed_tails[PIPE_CONTROL], 1);
434 admhc_dump_ed(ahcd, "ed bulk", ahcd->ed_tails[PIPE_BULK], 1);
796 pr_info("%s: block sizes: ed %Zd td %Zd\n", hcd_name,
797 sizeof(struct ed), sizeof(struct td));