Lines Matching refs:ptd
169 struct ptd *ptd; in pack_fifo() local
177 ptd = &ep->ptd; in pack_fifo()
178 dump_ptd(ptd); in pack_fifo()
179 dump_ptd_out_data(ptd, ep->data); in pack_fifo()
180 isp116x_write_data16(isp116x, ptd->count); in pack_fifo()
181 isp116x_write_data16(isp116x, ptd->mps); in pack_fifo()
182 isp116x_write_data16(isp116x, ptd->len); in pack_fifo()
183 isp116x_write_data16(isp116x, ptd->faddr); in pack_fifo()
184 buflen -= sizeof(struct ptd); in pack_fifo()
201 struct ptd *ptd; in unpack_fifo() local
209 ptd = &ep->ptd; in unpack_fifo()
210 ptd->count = isp116x_read_data16(isp116x); in unpack_fifo()
211 ptd->mps = isp116x_read_data16(isp116x); in unpack_fifo()
212 ptd->len = isp116x_read_data16(isp116x); in unpack_fifo()
213 ptd->faddr = isp116x_read_data16(isp116x); in unpack_fifo()
214 buflen -= sizeof(struct ptd); in unpack_fifo()
220 dump_ptd(ptd); in unpack_fifo()
221 dump_ptd_in_data(ptd, ep->data); in unpack_fifo()
235 struct ptd *ptd; in preproc_atl_queue() local
244 ptd = &ep->ptd; in preproc_atl_queue()
275 ptd->count = PTD_CC_MSK | PTD_ACTIVE_MSK | PTD_TOGGLE(toggle); in preproc_atl_queue()
276 ptd->mps = PTD_MPS(ep->maxpacket) in preproc_atl_queue()
279 ptd->len = PTD_LEN(len) | PTD_DIR(dir); in preproc_atl_queue()
280 ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe)); in preproc_atl_queue()
282 ptd->mps |= PTD_LAST_MSK; in preproc_atl_queue()
285 isp116x->atl_bufshrt = sizeof(struct ptd) + isp116x->atl_buflen; in preproc_atl_queue()
353 struct ptd *ptd; in postproc_atl_queue() local
363 ptd = &ep->ptd; in postproc_atl_queue()
364 cc = PTD_GET_CC(ptd); in postproc_atl_queue()
383 PTD_GET_TOGGLE(ptd)); in postproc_atl_queue()
384 urb->actual_length += PTD_GET_COUNT(ptd); in postproc_atl_queue()
401 if (usb_pipeint(urb->pipe) && !PTD_GET_LEN(ptd)) { in postproc_atl_queue()
415 usb_settoggle(udev, ep->epnum, 1, PTD_GET_TOGGLE(ptd) in postproc_atl_queue()
418 usb_settoggle(udev, ep->epnum, 0, PTD_GET_TOGGLE(ptd) in postproc_atl_queue()
424 urb->actual_length += PTD_GET_COUNT(ptd); in postproc_atl_queue()
425 if (PTD_GET_ACTIVE(ptd) in postproc_atl_queue()
434 && !(PTD_GET_COUNT(ptd) % ep->maxpacket)) { in postproc_atl_queue()
446 if (PTD_GET_ACTIVE(ptd) in postproc_atl_queue()
460 if (PTD_GET_ACTIVE(ptd) in postproc_atl_queue()