Lines Matching defs:n_desc
555 u16 idx, inc, n_desc = 0, ntd_max = 0;
604 n_desc++;
631 if (n_desc > DESCNUM_THRESHOLD)
662 int n_desc)
664 struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc];
685 qh->n_bytes[n_desc] = len;
695 (n_desc * sizeof(struct dwc2_dma_desc)),
716 int n_desc = 0;
731 if (n_desc) {
741 qtd->n_desc = 0;
743 if (n_desc > 1) {
744 qh->desc_list[n_desc - 1].status |= HOST_DMA_A;
747 n_desc - 1,
748 &qh->desc_list[n_desc - 1]);
751 ((n_desc - 1) *
756 dwc2_fill_host_dma_desc(hsotg, chan, qtd, qh, n_desc);
759 n_desc, &qh->desc_list[n_desc],
760 qh->desc_list[n_desc].buf,
761 qh->desc_list[n_desc].status);
762 qtd->n_desc++;
763 n_desc++;
765 n_desc != MAX_DMA_DESC_NUM_GENERIC);
767 dev_vdbg(hsotg->dev, "n_desc=%d\n", n_desc);
771 if (n_desc == MAX_DMA_DESC_NUM_GENERIC)
775 if (n_desc) {
776 qh->desc_list[n_desc - 1].status |=
779 n_desc - 1, &qh->desc_list[n_desc - 1]);
781 qh->desc_list_dma + (n_desc - 1) *
785 if (n_desc > 1) {
794 chan->ntd = n_desc;
1174 } else if (desc_num + 1 == qtd->n_desc) {
1214 qtd_desc_count = qtd->n_desc;