Lines Matching refs:ptd

170 	struct ptd *ptd;  in pack_fifo()  local
178 ptd = &ep->ptd; in pack_fifo()
179 dump_ptd(ptd); in pack_fifo()
180 dump_ptd_out_data(ptd, ep->data); in pack_fifo()
181 isp116x_write_data16(isp116x, ptd->count); in pack_fifo()
182 isp116x_write_data16(isp116x, ptd->mps); in pack_fifo()
183 isp116x_write_data16(isp116x, ptd->len); in pack_fifo()
184 isp116x_write_data16(isp116x, ptd->faddr); in pack_fifo()
185 buflen -= sizeof(struct ptd); in pack_fifo()
202 struct ptd *ptd; in unpack_fifo() local
210 ptd = &ep->ptd; in unpack_fifo()
211 ptd->count = isp116x_read_data16(isp116x); in unpack_fifo()
212 ptd->mps = isp116x_read_data16(isp116x); in unpack_fifo()
213 ptd->len = isp116x_read_data16(isp116x); in unpack_fifo()
214 ptd->faddr = isp116x_read_data16(isp116x); in unpack_fifo()
215 buflen -= sizeof(struct ptd); in unpack_fifo()
221 dump_ptd(ptd); in unpack_fifo()
222 dump_ptd_in_data(ptd, ep->data); in unpack_fifo()
236 struct ptd *ptd; in preproc_atl_queue() local
245 ptd = &ep->ptd; in preproc_atl_queue()
276 ptd->count = PTD_CC_MSK | PTD_ACTIVE_MSK | PTD_TOGGLE(toggle); in preproc_atl_queue()
277 ptd->mps = PTD_MPS(ep->maxpacket) in preproc_atl_queue()
280 ptd->len = PTD_LEN(len) | PTD_DIR(dir); in preproc_atl_queue()
281 ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe)); in preproc_atl_queue()
283 ptd->mps |= PTD_LAST_MSK; in preproc_atl_queue()
286 isp116x->atl_bufshrt = sizeof(struct ptd) + isp116x->atl_buflen; in preproc_atl_queue()
354 struct ptd *ptd; in postproc_atl_queue() local
364 ptd = &ep->ptd; in postproc_atl_queue()
365 cc = PTD_GET_CC(ptd); in postproc_atl_queue()
384 PTD_GET_TOGGLE(ptd)); in postproc_atl_queue()
385 urb->actual_length += PTD_GET_COUNT(ptd); in postproc_atl_queue()
402 if (usb_pipeint(urb->pipe) && !PTD_GET_LEN(ptd)) { in postproc_atl_queue()
416 usb_settoggle(udev, ep->epnum, 1, PTD_GET_TOGGLE(ptd) in postproc_atl_queue()
419 usb_settoggle(udev, ep->epnum, 0, PTD_GET_TOGGLE(ptd) in postproc_atl_queue()
425 urb->actual_length += PTD_GET_COUNT(ptd); in postproc_atl_queue()
426 if (PTD_GET_ACTIVE(ptd) in postproc_atl_queue()
435 && !(PTD_GET_COUNT(ptd) % ep->maxpacket)) { in postproc_atl_queue()
447 if (PTD_GET_ACTIVE(ptd) in postproc_atl_queue()
461 if (PTD_GET_ACTIVE(ptd) in postproc_atl_queue()