Lines Matching refs:num_ptds

190 	int num_ptds = ((len + PTD_HEADER_SIZE - 1) / epq->blk_size) + 1;  in claim_ptd_buffers()  local
198 if (ep->num_ptds) in claim_ptd_buffers()
200 epq->name, len, epq->blk_size, num_ptds, epq->buf_map, epq->skip_map); in claim_ptd_buffers()
201 BUG_ON(ep->num_ptds != 0); in claim_ptd_buffers()
204 num_ptds, 0); in claim_ptd_buffers()
209 num_ptds, found, len, (int)(epq->blk_size - PTD_HEADER_SIZE)); in claim_ptd_buffers()
213 ep->num_ptds += num_ptds; in claim_ptd_buffers()
214 epq->buf_avail -= num_ptds; in claim_ptd_buffers()
217 bitmap_set(&epq->buf_map, found, num_ptds); in claim_ptd_buffers()
220 epq->buf_avail, epq->buf_count, num_ptds, epq->buf_map, epq->skip_map); in claim_ptd_buffers()
227 int last = ep->ptd_index + ep->num_ptds; in release_ptd_buffers()
232 ep->ptd_offset, ep->num_ptds, epq->buf_count, epq->buf_avail, in release_ptd_buffers()
236 bitmap_clear(&epq->buf_map, ep->ptd_index, ep->num_ptds); in release_ptd_buffers()
237 bitmap_set(&epq->skip_map, ep->ptd_index, ep->num_ptds); in release_ptd_buffers()
238 epq->buf_avail += ep->num_ptds; in release_ptd_buffers()
246 ep->ptd_offset, ep->num_ptds, epq->buf_avail, epq->buf_count); in release_ptd_buffers()
250 ep->num_ptds = 0; in release_ptd_buffers()
666 BUG_ON(ep->num_ptds == 0); in finish_unlinks()
722 ep->num_req, epq->name, ep->num_ptds, epq->buf_map, epq->skip_map); in submit_req()
726 __func__, ep->num_req, ep->length, epq->name, ep->num_ptds, in submit_req()
844 int num_ptds = (ep->length + PTD_HEADER_SIZE + (epq->blk_size - 1)) / epq->blk_size; in next_ptd() local
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()
961 BUG_ON(ep->num_ptds == 0); in finish_transfers()