Lines Matching refs:num_ptds
193 int num_ptds = ((len + PTD_HEADER_SIZE - 1) / epq->blk_size) + 1;
201 if (ep->num_ptds)
202 pr_err("%s: %s len %d/%d num_ptds %d buf_map %08lx skip_map %08lx\n", __func__,
203 epq->name, len, epq->blk_size, num_ptds, epq->buf_map, epq->skip_map);
204 BUG_ON(ep->num_ptds != 0);
207 num_ptds, 0);
212 num_ptds, found, len, (int)(epq->blk_size - PTD_HEADER_SIZE));
216 ep->num_ptds += num_ptds;
217 epq->buf_avail -= num_ptds;
220 bitmap_set(&epq->buf_map, found, num_ptds);
223 epq->buf_avail, epq->buf_count, num_ptds, epq->buf_map, epq->skip_map);
231 int last = ep->ptd_index + ep->num_ptds;
234 pr_err("%s: ep %p req %d len %d %s PTD[%d] $%04x num_ptds %d buf_count %d buf_avail %d buf_map %08lx skip_map %08lx\n",
236 ep->ptd_offset, ep->num_ptds, epq->buf_count, epq->buf_avail,
244 epq->buf_avail += ep->num_ptds;
252 ep->ptd_offset, ep->num_ptds, epq->buf_avail, epq->buf_count);
256 ep->num_ptds = 0;
674 BUG_ON(ep->num_ptds == 0);
730 ep->num_req, epq->name, ep->num_ptds, epq->buf_map, epq->skip_map);
734 __func__, ep->num_req, ep->length, epq->name, ep->num_ptds,
852 int num_ptds = (ep->length + PTD_HEADER_SIZE + (epq->blk_size - 1)) / epq->blk_size;
855 ep->length, num_ptds, epq->blk_size, ptd_offset + num_ptds * epq->blk_size);
857 ptd_offset += num_ptds * epq->blk_size;
969 BUG_ON(ep->num_ptds == 0);