Lines Matching refs:ptd_offset
189 int ptd_offset = -EINVAL; in claim_ptd_buffers() local
210 ptd_offset = get_ptd_offset(epq, found); in claim_ptd_buffers()
211 WARN_ON(ptd_offset < 0); in claim_ptd_buffers()
212 ep->ptd_offset = ptd_offset; in claim_ptd_buffers()
219 __func__, epq->name, ep->ptd_index, ep->ptd_offset, in claim_ptd_buffers()
232 ep->ptd_offset, ep->num_ptds, epq->buf_count, epq->buf_avail, in release_ptd_buffers()
246 ep->ptd_offset, ep->num_ptds, epq->buf_avail, epq->buf_count); in release_ptd_buffers()
251 ep->ptd_offset = -EINVAL; in release_ptd_buffers()
352 isp1362_write_buffer(isp1362_hcd, ptd, ep->ptd_offset, PTD_HEADER_SIZE); in isp1362_write_ptd()
355 ep->ptd_offset + PTD_HEADER_SIZE, len); in isp1362_write_ptd()
368 BUG_ON(ep->ptd_offset < 0); in isp1362_read_ptd()
374 isp1362_read_buffer(isp1362_hcd, ptd, ep->ptd_offset, PTD_HEADER_SIZE); in isp1362_read_ptd()
381 ep->ptd_offset, act_len, ep->length); in isp1362_read_ptd()
389 ep->ptd_offset + PTD_HEADER_SIZE, act_len); in isp1362_read_ptd()
404 DBG(1, "%s: ep %p PTD[%d] $%04x\n", __func__, ep, ep->ptd_index, ep->ptd_offset); in remove_ptd()
405 BUG_ON(ep->ptd_offset < 0); in remove_ptd()
407 epq = get_ptd_queue(isp1362_hcd, ep->ptd_offset); in remove_ptd()
422 index, ep->ptd_offset, epq->skip_map, 1 << index); in remove_ptd()
660 get_ptd_queue(isp1362_hcd, ep->ptd_offset); in finish_unlinks()
665 DBG(1, "%s: remove PTD[%d] $%04x\n", __func__, index, ep->ptd_offset); in finish_unlinks()
735 ep->ptd_offset, ep, ep->num_req); in submit_req()
843 u16 ptd_offset = ep->ptd_offset; in next_ptd() local
846 DBG(2, "%s: PTD offset $%04x + %04x => %d * %04x -> $%04x\n", __func__, ptd_offset, in next_ptd()
847 ep->length, num_ptds, epq->blk_size, ptd_offset + num_ptds * epq->blk_size); in next_ptd()
849 ptd_offset += num_ptds * epq->blk_size; in next_ptd()
850 if (ptd_offset < epq->buf_start + epq->buf_size) in next_ptd()
851 return ptd_offset; in next_ptd()
861 int ptd_offset; in start_iso_transfers() local
876 ptd_offset = epq->buf_start; in start_iso_transfers()
896 if (ptd_offset + PTD_HEADER_SIZE + ep->length > in start_iso_transfers()
902 ep->ptd_offset = ptd_offset; in start_iso_transfers()
905 ptd_offset = next_ptd(epq, ep); in start_iso_transfers()
906 if (ptd_offset < 0) { in start_iso_transfers()
955 index, ep->ptd_offset); in finish_transfers()
997 DBG(1, "%s: Checking PTD $%04x\n", __func__, ep->ptd_offset); in finish_iso_transfers()
1283 ep->ptd_offset = -EINVAL; in isp1362_urb_enqueue()
1425 urb, ep, ep->num_req, ep->ptd_index, ep->ptd_offset); in isp1362_urb_dequeue()
1462 ep, ep->num_req, ep->ptd_index, ep->ptd_offset); in isp1362_endpoint_disable()
2133 isp1362_hcd->load[ep->branch], ep->ptd_index, ep->ptd_offset); in isp1362_show()