• Home
  • Raw
  • Download

Lines Matching refs:ptd

264 	struct ptd *ptd;  in prepare_ptd()  local
272 ptd = &ep->ptd; in prepare_ptd()
329 ptd->count = PTD_CC_MSK | PTD_ACTIVE_MSK | PTD_TOGGLE(toggle); in prepare_ptd()
330 ptd->mps = PTD_MPS(ep->maxpacket) | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) | in prepare_ptd()
332 ptd->len = PTD_LEN(len) | PTD_DIR(dir); in prepare_ptd()
333 ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe)); in prepare_ptd()
336 ptd->faddr |= PTD_SF_INT(ep->branch); in prepare_ptd()
337 ptd->faddr |= PTD_PR(ep->interval ? __ffs(ep->interval) : 0); in prepare_ptd()
340 ptd->faddr |= PTD_SF_ISO(fno); in prepare_ptd()
348 struct ptd *ptd = &ep->ptd; in isp1362_write_ptd() local
349 int len = PTD_GET_DIR(ptd) == PTD_DIR_IN ? 0 : ep->length; in isp1362_write_ptd()
351 prefetch(ptd); in isp1362_write_ptd()
352 isp1362_write_buffer(isp1362_hcd, ptd, ep->ptd_offset, PTD_HEADER_SIZE); in isp1362_write_ptd()
357 dump_ptd(ptd); in isp1362_write_ptd()
358 dump_ptd_out_data(ptd, ep->data); in isp1362_write_ptd()
364 struct ptd *ptd = &ep->ptd; in isp1362_read_ptd() local
373 prefetchw(ptd); in isp1362_read_ptd()
374 isp1362_read_buffer(isp1362_hcd, ptd, ep->ptd_offset, PTD_HEADER_SIZE); in isp1362_read_ptd()
375 dump_ptd(ptd); in isp1362_read_ptd()
376 act_len = PTD_GET_COUNT(ptd); in isp1362_read_ptd()
377 if (PTD_GET_DIR(ptd) != PTD_DIR_IN || act_len == 0) in isp1362_read_ptd()
390 dump_ptd_in_data(ptd, ep->data); in isp1362_read_ptd()
503 struct ptd *ptd; in postproc_ep() local
512 ptd = &ep->ptd; in postproc_ep()
513 cc = PTD_GET_CC(ptd); in postproc_ep()
516 ep->num_req, ptd); in postproc_ep()
533 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep()
541 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep()
545 urb->actual_length += PTD_GET_COUNT(ptd); in postproc_ep()
554 PTD_GET_TOGGLE(ptd)); in postproc_ep()
573 if (PTD_GET_COUNT(ptd) != ep->length) in postproc_ep()
575 PTD_GET_COUNT(ptd), ep->length); in postproc_ep()
576 BUG_ON(PTD_GET_COUNT(ptd) != ep->length); in postproc_ep()
579 usb_settoggle(udev, ep->epnum, 1, PTD_GET_TOGGLE(ptd)); in postproc_ep()
600 len = PTD_GET_COUNT(ptd); in postproc_ep()
604 usb_settoggle(udev, ep->epnum, 0, PTD_GET_TOGGLE(ptd)); in postproc_ep()
915 ep->ptd.mps |= PTD_LAST_MSK; in start_iso_transfers()