Lines Matching refs:ptd
164 Write ptd's and data for scheduled transfers into
170 struct ptd *ptd;
178 ptd = &ep->ptd;
179 dump_ptd(ptd);
180 dump_ptd_out_data(ptd, ep->data);
181 isp116x_write_data16(isp116x, ptd->count);
182 isp116x_write_data16(isp116x, ptd->mps);
183 isp116x_write_data16(isp116x, ptd->len);
184 isp116x_write_data16(isp116x, ptd->faddr);
185 buflen -= sizeof(struct ptd);
196 Read the processed ptd's and data from fifo ram back to
202 struct ptd *ptd;
210 ptd = &ep->ptd;
211 ptd->count = isp116x_read_data16(isp116x);
212 ptd->mps = isp116x_read_data16(isp116x);
213 ptd->len = isp116x_read_data16(isp116x);
214 ptd->faddr = isp116x_read_data16(isp116x);
215 buflen -= sizeof(struct ptd);
221 dump_ptd(ptd);
222 dump_ptd_in_data(ptd, ep->data);
236 struct ptd *ptd;
245 ptd = &ep->ptd;
276 ptd->count = PTD_CC_MSK | PTD_ACTIVE_MSK | PTD_TOGGLE(toggle);
277 ptd->mps = PTD_MPS(ep->maxpacket)
280 ptd->len = PTD_LEN(len) | PTD_DIR(dir);
281 ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe));
283 ptd->mps |= PTD_LAST_MSK;
286 isp116x->atl_bufshrt = sizeof(struct ptd) + isp116x->atl_buflen;
354 struct ptd *ptd;
364 ptd = &ep->ptd;
365 cc = PTD_GET_CC(ptd);
384 PTD_GET_TOGGLE(ptd));
385 urb->actual_length += PTD_GET_COUNT(ptd);
402 if (usb_pipeint(urb->pipe) && !PTD_GET_LEN(ptd)) {
416 usb_settoggle(udev, ep->epnum, 1, PTD_GET_TOGGLE(ptd)
419 usb_settoggle(udev, ep->epnum, 0, PTD_GET_TOGGLE(ptd)
425 urb->actual_length += PTD_GET_COUNT(ptd);
426 if (PTD_GET_ACTIVE(ptd)
435 && !(PTD_GET_COUNT(ptd) % ep->maxpacket)) {
447 if (PTD_GET_ACTIVE(ptd)
461 if (PTD_GET_ACTIVE(ptd)