Lines Matching refs:td

73 				      struct usb_td __iomem *td,
79 return ++td;
152 struct usb_td __iomem *td;
168 ep_mem_size = ring_len * sizeof(*td) + sizeof(struct fhci_ep_pram);
203 ep->ep_pram_ptr = (void __iomem *)ep->td_base + sizeof(*td) * ring_len;
211 td = ep->td_base;
213 out_be32(&td->buf_ptr, 0);
214 out_be16(&td->status, 0);
215 out_be16(&td->length, 0);
216 out_be16(&td->extra, 0);
217 td++;
219 td--;
220 out_be16(&td->status, TD_W); /* for last TD set Wrap bit */
221 out_be16(&td->length, 0);
281 struct usb_td __iomem *td;
293 td = ep->conf_td;
294 td_status = in_be16(&td->status);
295 td_length = in_be16(&td->length);
296 buf = in_be32(&td->buf_ptr);
297 extra_data = in_be16(&td->extra);
307 clrbits16(&td->status, ~TD_W);
308 out_be16(&td->length, 0);
309 out_be32(&td->buf_ptr, 0);
310 out_be16(&td->extra, 0);
386 struct usb_td __iomem *td;
392 td = ep->empty_td;
393 td_status = in_be16(&td->status);
395 if (td_status & TD_R && in_be16(&td->length)) {
404 pkt->priv_data = td;
405 out_be32(&td->buf_ptr, virt_to_phys(pkt->data));
421 out_be16(&td->extra, extra_data);
450 out_be16(&td->status, td_status);
454 out_be16(&td->length, pkt->len + CRC_SIZE);
456 out_be16(&td->length, pkt->len);
471 struct usb_td __iomem *td;
474 td = ep->td_base;
476 td_status = in_be16(&td->status);
477 in_be32(&td->buf_ptr);
478 in_be16(&td->extra);
482 out_be16(&td->status, (td_status & ~TD_R) | TD_TO);
484 else if (in_be32(&td->buf_ptr) == DUMMY_BD_BUFFER)
485 out_be32(&td->buf_ptr, DUMMY2_BD_BUFFER);
490 td++;
495 td = ep->td_base;
497 out_be16(&td->status, 0);
498 out_be16(&td->length, 0);
499 out_be32(&td->buf_ptr, 0);
500 out_be16(&td->extra, 0);
501 td++;
502 } while (!(in_be16(&td->status) & TD_W));
503 out_be16(&td->status, TD_W); /* for last TD set Wrap bit */
504 out_be16(&td->length, 0);
505 out_be32(&td->buf_ptr, 0);
506 out_be16(&td->extra, 0);
527 struct usb_td __iomem *td;
535 td = cpm_muram_addr(tb_ptr);
536 td_status = in_be16(&td->status);
537 buf_ptr = in_be32(&td->buf_ptr);
538 in_be16(&td->extra);
541 out_be16(&td->status, (td_status & ~TD_R) | TD_TO);
543 out_be32(&td->buf_ptr, 0);
549 td = next_bd(ep->td_base, td, td_status);
550 td_status = in_be16(&td->status);
551 buf_ptr = in_be32(&td->buf_ptr);
552 in_be16(&td->extra);
591 struct usb_td __iomem *td;
595 td = cpm_muram_addr(tb_ptr);
597 if (in_be32(&td->buf_ptr) == DUMMY_BD_BUFFER) {
598 struct usb_td __iomem *old_td = td;
601 td_status = in_be16(&td->status);
603 td = next_bd(ep->td_base, td, td_status);
604 tb_ptr = cpm_muram_offset(td);
608 if (in_be16(&td->status) & TD_R)